From cf2d1ea24de45936a225ad723d3b43db40d5f4d4 Mon Sep 17 00:00:00 2001 From: Patrick Daly Date: Tue, 30 Jul 2024 16:19:32 -0700 Subject: [PATCH] ARM: dts: msm: Increase virtio-mem maximum size ZRAM is being disabled on tuivm due to observed stability issues due to ZRAM's use of GFP_MEMALLOC. Increase maximum movable zone size to compensate. When kswapd swaps out pages, PF_MEMALLOC is set, which results in zram ignoring the min_watermark, and lowmem_reserve. This is problematic because we intend for movable memory to stay in ZONE_MOVABLE, rather than falling back to ZONE_NORMAL. If the later occurs to such a high degree that all ZONE_NORMAL memory is consumed, as is observed to be the case during a "C2PA" testcase, attempts to plug in additional ZONE_MOVABLE memory may fail due to requiring a small amount of GFP_KERNEL memory. Change-Id: Ic847e90514f80ccb91daa98849440d7a9b97f156 Signed-off-by: Patrick Daly --- qcom/sun-vm.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/sun-vm.dtsi b/qcom/sun-vm.dtsi index 1f17f2f3..f2f25f6e 100644 --- a/qcom/sun-vm.dtsi +++ b/qcom/sun-vm.dtsi @@ -716,7 +716,7 @@ compatible = "qcom,virtio-mem"; depends-on-supply = <&mem_buf_msgq>; /* Must be memory_block_size_bytes() aligned */ - qcom,max-size = <0x0 0x10000000>; + qcom,max-size = <0x0 0x18000000>; qcom,ipa-range = <0x0 0x0 0xf 0xffffffff>; qcom,block-size = <0x400000>; qcom,initial-movable-zone-size = <0x2000000>;