]> 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)
commitbe6f269fb42b76e7b8e475079ae44116eb0c1676
tree7345cc0ec2f0346e03fcb15aa540929a7f43076a
parentfe399d98a9386d62bb718e0bfad492add3511c9d
page_pool: Revert "page_pool: disable dma mapping support..."

This reverts commit 804efe94201e2adc7bd424018ac419f6809bbfa3.

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: 804efe94201e ("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