arm64: dts: qcom: msm8916/39: Fix venus memory size
authorStephan Gerhold <stephan@gerhold.net>
Mon, 11 Sep 2023 17:41:51 +0000 (19:41 +0200)
committerBjorn Andersson <andersson@kernel.org>
Wed, 20 Sep 2023 16:27:53 +0000 (09:27 -0700)
Both MSM8916 and MSM8939 have unnecessarily large reservations for the
venus firmware for some reason. According to the ELF headers and
downstream [1] 5 MiB is enough. Let's set the minimum size as default.

With the dynamic reserved memory allocations boards can easily override
this if needed, although in practice there does not seem to be any
device with a different venus firmware size.

[1]: https://git.codelinaro.org/clo/la/kernel/msm-3.10/-/blame/LA.BR.1.2.9.1-02310-8x16.0/arch/arm/boot/dts/qcom/msm8939-common.dtsi#L69

Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Link: https://lore.kernel.org/r/20230911-msm8916-rmem-v1-9-b7089ec3e3a1@gerhold.net
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/msm8916.dtsi
arch/arm64/boot/dts/qcom/msm8939.dtsi

index b141331f51fd5513c10ec7d77904d870eccba721..4f799b536a92ad3778f8a507d03c0144ba6090ca 100644 (file)
@@ -98,7 +98,7 @@
                };
 
                venus_mem: venus {
-                       size = <0x0 0x600000>;
+                       size = <0x0 0x500000>;
                        alignment = <0x0 0x100000>;
                        alloc-ranges = <0x0 0x86800000 0x0 0x8000000>;
                        no-map;
index ba177725f3d7fd95e017d15ed1bcb9394eaa0ca4..715c86c217c5447c27bf5bac0379e6fb4212fa0e 100644 (file)
                };
 
                venus_mem: venus {
-                       size = <0x0 0x800000>;
+                       size = <0x0 0x500000>;
                        alignment = <0x0 0x100000>;
                        alloc-ranges = <0x0 0x86800000 0x0 0x8000000>;
                        no-map;