]> git.baikalelectronics.ru Git - kernel.git/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)
commit5001f8cf411674531d86a6e06dd2e064b1e1e892
tree7345cc0ec2f0346e03fcb15aa540929a7f43076a
parent85fde78e355d2f6dc923995ba9c54f894d5342b4
page_pool: Revert "page_pool: disable dma mapping support..."

This reverts commit d80f2c6e496609348b04b488e28c3c263ce732c6.

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: d80f2c6e4966 ("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