[SRU][Jammy:linux-intel-iotg][PATCH v2 0/1] EHL: net: stmmac: Add GFP_DMA32 for rx buffers if no 64 capability

Jian Hui Lee jianhui.lee at canonical.com
Wed May 11 02:55:09 UTC 2022


BugLink: https://launchpad.net/bugs/1956413

Use page_pool_alloc_pages instead of page_pool_dev_alloc_pages, which can give the gfp parameter, in the case of not supporting 64-bit width, using 32-bit address memory can reduce a copy from swiotlb.

For linux-intel-iotg-5.15, we need to cherry-pick patch 884d2b845477 from linux mainline.


David Wu (1):
  net: stmmac: Add GFP_DMA32 for rx buffers if no 64 capability

 .../net/ethernet/stmicro/stmmac/stmmac_main.c    | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

-- 
2.34.1




More information about the kernel-team mailing list