From 488b8a2b7d3cbde701c06180b6b40fa31d9e4186 Mon Sep 17 00:00:00 2001 From: Sung-hun Kim Date: Thu, 7 Jan 2021 13:01:01 +0900 Subject: [PATCH] ARM: dts: bcm2711-rpi-4-b: Adjust CMA size due to the OOM issue Since 32-bit kernel has a limitation in the lowmem size, big CMA size severely affect on available memory for kernel. Because of that, some test cases make OOM kills due to the exhaustion in kernel available memory that was reported by Jaehoon Chung (jh80.chung@samsung.com). To handle this, I adjusted CMA size to 400MB while it meets the requirement for UHD resolution. Change-Id: I189699d4ce5f2866c01edf68c8138e9278679188 Signed-off-by: Sung-hun Kim --- arch/arm/boot/dts/bcm2711-rpi-4-b.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts index 45d42be..f790ed6 100644 --- a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts +++ b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts @@ -754,7 +754,7 @@ }; &cma { - size = <0x20000000>; /* 512MB */ + size = <0x19000000>; /* 400MB (256 + 128 + 16) */ }; / { -- 2.7.4