From: Jesper Dangaard Brouer <bro...@redhat.com>
Date: Wed, 13 Feb 2019 02:55:34 +0100

> As pointed out by David Miller in [1] the current page_pool implementation
> stores dma_addr_t in page->private. This won't work on 32-bit platforms with
> 64-bit DMA addresses since the page->private is an unsigned long and the
> dma_addr_t a u64.
> 
> Since no driver is yet using the DMA mapping capabilities of the API let's
> fix this by storing the information in 'struct page' and use that to store
> and retrieve DMA addresses from network drivers.
> 
> As long as the addresses returned from dma_map_page() are aligned the first
> bit, used by the compound pages code should not be set.
> 
> Ilias tested the first two patches on Espressobin driver mvneta, for which
> we have patches for using the DMA API of page_pool.
> 
> [1]: 
> https://lore.kernel.org/netdev/20181207.230655.1261252486319967024.da...@davemloft.net/
> 
> Signed-off-by: Jesper Dangaard Brouer <bro...@redhat.com>
> Signed-off-by: Ilias Apalodimas <ilias.apalodi...@linaro.org>

Series applied, thanks Jesper.

Reply via email to