summaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorZhaoyang Huang <zhaoyang.huang@unisoc.com>2023-05-11 13:22:30 +0800
committerAndrew Morton <akpm@linux-foundation.org>2024-05-07 11:29:54 -0700
commit69e5f6e0d30577fc2a13cf09f9b2da8e5aaa6c46 (patch)
treeef72f1e955e4f416aec2ab7f0bf9192c732d65f5 /drivers/fpga/fpga-mgr.c
parent1553e3e07b2f4497df0152884596b20ed86a0367 (diff)
mm: optimization on page allocation when CMA enabled
According to current CMA utilization policy, an alloc_pages(GFP_USER) could 'steal' UNMOVABLE & RECLAIMABLE page blocks via the help of CMA(pass zone_watermark_ok by counting CMA in but use U&R in rmqueue), which could lead to following alloc_pages(GFP_KERNEL) fail. Solving this by introducing second watermark checking for GFP_MOVABLE, which could have the allocation use CMA when proper. -- Free_pages(30MB) | | -- WMARK_LOW(25MB) | -- Free_CMA(12MB) | | -- Link: https://lkml.kernel.org/r/20231016071245.2865233-1-zhaoyang.huang@unisoc.com Link: https://lkml.kernel.org/r/1683782550-25799-1-git-send-email-zhaoyang.huang@unisoc.com Signed-off-by: Zhaoyang Huang <zhaoyang.huang@unisoc.com> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Cc: ke.wang <ke.wang@unisoc.com> Cc: Minchan Kim <minchan@kernel.org> Cc: Roman Gushchin <roman.gushchin@linux.dev> Cc: Zhaoyang Huang <huangzhaoyang@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions