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

From: Christoph Hellwig
Date: Wed Sep 16 2020 - 02:14:13 EST


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.