]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: qcom: x1e80100-*: Allocate some CMA buffers
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Wed, 22 May 2024 11:40:09 +0000 (13:40 +0200)
committerBjorn Andersson <andersson@kernel.org>
Mon, 27 May 2024 00:00:04 +0000 (19:00 -0500)
In a fashion identical to commit 5f84c7c35d49 ("arm64: dts: qcom:
sc8280xp: Define CMA region for CRD and X13s"), there exists a need for
more than the default 32 MiB of CMA, namely for the ath12k_pci device.

Reserve a 128MiB chunk to make boot-time failures like:
 cma: cma_alloc: reserved: alloc failed, req-size: 128 pages, ret: -12
go away.

Fixes: af16b00578a7 ("arm64: dts: qcom: Add base X1E80100 dtsi and the QCP dts")
Fixes: bd50b1f5b6f3 ("arm64: dts: qcom: x1e80100: Add Compute Reference Device")
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20240522-topic-x1e_cma-v1-1-b69e3b467452@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/x1e80100-crd.dts
arch/arm64/boot/dts/qcom/x1e80100-qcp.dts

index c5c2895b37c7fb9915b737a1d7a95aaf7e86220e..cfcedf1d26a00b88ee132abde2d524f949e085b5 100644 (file)
                stdout-path = "serial0:115200n8";
        };
 
+       reserved-memory {
+               linux,cma {
+                       compatible = "shared-dma-pool";
+                       size = <0x0 0x8000000>;
+                       reusable;
+                       linux,cma-default;
+               };
+       };
+
        sound {
                compatible = "qcom,x1e80100-sndcard";
                model = "X1E80100-CRD";
index 2061fbe7b75a9eb0ccbb291b5421eb126af0b897..8f67c393b871b243147beaf6984fdf979f9915fa 100644 (file)
                stdout-path = "serial0:115200n8";
        };
 
+       reserved-memory {
+               linux,cma {
+                       compatible = "shared-dma-pool";
+                       size = <0x0 0x8000000>;
+                       reusable;
+                       linux,cma-default;
+               };
+       };
+
        vph_pwr: vph-pwr-regulator {
                compatible = "regulator-fixed";