diff options
author | Bjorn Andersson <quic_bjorande@quicinc.com> | 2023-01-17 10:46:30 -0800 |
---|---|---|
committer | Bjorn Andersson <andersson@kernel.org> | 2023-01-18 16:19:56 -0600 |
commit | 5f84c7c35d49e6d92b720db19d421951f1ff8599 (patch) | |
tree | 8c6cf69f2cbfef1156cf9f9c3691406fb9e7801e /arch/arm64/boot/dts/qcom/sc8280xp-crd.dts | |
parent | fc1780dba41d294f1572d7a701df10eb6bc77385 (diff) |
arm64: dts: qcom: sc8280xp: Define CMA region for CRD and X13s
While booting the CRD, a series of CMA allocation errors can be seen in
the kernel log:
cma: cma_alloc: reserved: alloc failed, req-size: 128 pages, ret: -12
Growing the CMA region and querying /proc/meminfo indicates that a newly
booted system (currently) uses 64MB CMA.
Define a memory region sufficiently large for the current use cases, to
avoid forcing users to add this themselves, through command line
parameters etc.
While fixing the CRD define the same region for the X13s.
Tested-by: Andrew Halaney <ahalaney@redhat.com> # sc8280xp-lenovo-thinkpad-x13s
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230117184630.2775905-1-quic_bjorande@quicinc.com
Diffstat (limited to 'arch/arm64/boot/dts/qcom/sc8280xp-crd.dts')
-rw-r--r-- | arch/arm64/boot/dts/qcom/sc8280xp-crd.dts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts b/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts index 4e92dc28e2ce..6f686377dc3e 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts +++ b/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts @@ -128,6 +128,15 @@ regulator-boot-on; }; + + reserved-memory { + linux,cma { + compatible = "shared-dma-pool"; + size = <0x0 0x8000000>; + reusable; + linux,cma-default; + }; + }; }; &apps_rsc { |