You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MR: https://gitlab.com/redhat/rhel/src/kernel/rhel-9/-/merge_requests/3420
JIRA: https://issues.redhat.com/browse/RHEL-71914
commit 56a7087
Author: Yang Shi <[email protected]>
Date: Mon, 25 Nov 2024 09:16:50 -0800
Commit ba0fb44 ("dma-mapping: replace zone_dma_bits by
zone_dma_limit") and subsequent patches changed how zone_dma_limit is
calculated to allow a reduced ZONE_DMA even when RAM starts above 4GB.
Commit 122c234 ("arm64: mm: keep low RAM dma zone") further fixed
this to ensure ZONE_DMA remains below U32_MAX if RAM starts below 4GB,
especially on platforms that do not have IORT or DT description of the
device DMA ranges. While zone boundaries calculation was fixed by the
latter commit, zone_dma_limit, used to determine the GFP_DMA flag in the
core code, was not updated. This results in excessive use of GFP_DMA and
unnecessary ZONE_DMA allocations on some platforms.
Update zone_dma_limit to match the actual upper bound of ZONE_DMA.
Fixes: ba0fb44 ("dma-mapping: replace zone_dma_bits by zone_dma_limit")
Cc: <[email protected]> # 6.12.x
Reported-by: Yutang Jiang <[email protected]>
Tested-by: Yutang Jiang <[email protected]>
Signed-off-by: Yang Shi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[[email protected]: some tweaking of the commit log]
Signed-off-by: Catalin Marinas <[email protected]>
Signed-off-by: Luiz Capitulino <[email protected]>
Approved-by: Waiman Long <[email protected]>
Approved-by: Herton R. Krzesinski <[email protected]>
Approved-by: CKI KWF Bot <[email protected]>
Merged-by: CKI KWF Bot <[email protected]>
0 commit comments