[PATCH 6/6] dma-mapping: introduce DMA range map, supplanting dma_pfn_offset

Christoph Hellwig hch at lst.de
Wed Sep 16 02:13:59 EDT 2020


On Tue, Sep 15, 2020 at 01:55:01PM -0600, Mathieu Poirier wrote:
> That did the trick - the stm32 platform driver's probe() function completes and
> the remote processor is operatinal. 
> 
> That being said the value returned by function dma_to_pfn()
> is 0x137fff in the original code and 0xfffff with your patches applied.

Yes, that is intentional.  The old code just applied the range and got
an out of range offset, the new one reports the max offset.



More information about the linux-arm-kernel mailing list