]> git.itanic.dy.fi Git - linux-stable/commit
page_pool: Revert "page_pool: disable dma mapping support..."
authorYunsheng Lin <linyunsheng@huawei.com>
Wed, 17 Nov 2021 07:56:52 +0000 (15:56 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Nov 2021 11:29:40 +0000 (11:29 +0000)
commitf915b75bffb7257bd8d26376b8e1cc67771927f8
tree7345cc0ec2f0346e03fcb15aa540929a7f43076a
parenta66998e0fbf213d47d02813b9679426129d0d114
page_pool: Revert "page_pool: disable dma mapping support..."

This reverts commit d00e60ee54b12de945b8493cf18c1ada9e422514.

As reported by Guillaume in [1]:
Enabling LPAE always enables CONFIG_ARCH_DMA_ADDR_T_64BIT
in 32-bit systems, which breaks the bootup proceess when a
ethernet driver is using page pool with PP_FLAG_DMA_MAP flag.
As we were hoping we had no active consumers for such system
when we removed the dma mapping support, and LPAE seems like
a common feature for 32 bits system, so revert it.

1. https://www.spinics.net/lists/netdev/msg779890.html

Fixes: d00e60ee54b1 ("page_pool: disable dma mapping support for 32-bit arch with 64-bit DMA")
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Reported-by: "kernelci.org bot" <bot@kernelci.org>
Tested-by: "kernelci.org bot" <bot@kernelci.org>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/mm_types.h
include/net/page_pool.h
net/core/page_pool.c