net: ethernet: mtk_eth_soc: support 36-bit DMA addressing on MT7988
authorDaniel Golle <daniel@makrotopia.org>
Tue, 22 Aug 2023 16:33:12 +0000 (17:33 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 24 Aug 2023 02:23:22 +0000 (19:23 -0700)
commit2d75891ebc09ba9cf30697dfd54497ef0220308f
treec841ad1daeb08e1456597b24c3cf8783fda766b6
parentebb1e4f9cf38da2139b37e24b5e10bff3dcc4187
net: ethernet: mtk_eth_soc: support 36-bit DMA addressing on MT7988

Systems having 4 GiB of RAM and more require DMA addressing beyond the
current 32-bit limit. Starting from MT7988 the hardware now supports
36-bit DMA addressing, let's use that new capability in the driver to
avoid running into swiotlb on systems with 4 GiB of RAM or more.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Link: https://lore.kernel.org/r/95b919c98876c9e49761e44662e7c937479eecb8.1692721443.git.daniel@makrotopia.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mediatek/mtk_eth_soc.c
drivers/net/ethernet/mediatek/mtk_eth_soc.h