ARM: dts: bcm2711-rpi-4-b: Adjust CMA size due to the OOM issue 27/251027/2 accepted/tizen/unified/20210107.123346 submit/tizen/20210107.044235
authorSung-hun Kim <sfoon.kim@samsung.com>
Thu, 7 Jan 2021 04:01:01 +0000 (13:01 +0900)
committerSung-hun Kim <sfoon.kim@samsung.com>
Thu, 7 Jan 2021 04:19:46 +0000 (13:19 +0900)
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 <sfoon.kim@samsung.com>
arch/arm/boot/dts/bcm2711-rpi-4-b.dts

index 8c2b616..2e4d2f4 100644 (file)
 };
 
 &cma {
-       size = <0x20000000>; /* 512MB */
+       size = <0x19000000>; /* 400MB (256 + 128 + 16) */
 };
 
 / {