arm64: dts: qcom: add few more reserved memory region
authorVignesh Viswanathan <quic_viswanat@quicinc.com>
Fri, 26 May 2023 11:06:53 +0000 (16:36 +0530)
committerBjorn Andersson <andersson@kernel.org>
Fri, 26 May 2023 20:12:53 +0000 (13:12 -0700)
In IPQ SoCs, bootloader will collect the system RAM contents upon crash
for the post morterm analysis. If we don't reserve the memory region used
by bootloader, obviously linux will consume it and upon next boot on
crash, bootloader will be loaded in the same region, which will lead to
loose some of the data, sometimes we may miss out critical information.
So lets reserve the region used by the bootloader.

Similarly SBL copies some data into the reserved region and it will be
used in the crash scenario. So reserve 1MB for SBL as well.

While at it, drop the size padding in the reserved memory region,
wherever applicable.

Signed-off-by: Vignesh Viswanathan <quic_viswanat@quicinc.com>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230526110653.27777-4-quic_viswanat@quicinc.com
arch/arm64/boot/dts/qcom/ipq6018.dtsi
arch/arm64/boot/dts/qcom/ipq8074.dtsi

index e21e36e192145323f910d0c72c1fbd857121c634..ee570d22e32b13c3f596585496e6910e6a78ff40 100644 (file)
                        no-map;
                };
 
+               bootloader@4a100000 {
+                       reg = <0x0 0x4a100000 0x0 0x400000>;
+                       no-map;
+               };
+
+               sbl@4a500000 {
+                       reg = <0x0 0x4a500000 0x0 0x100000>;
+                       no-map;
+               };
+
                tz: memory@4a600000 {
-                       reg = <0x0 0x4a600000 0x0 0x00400000>;
+                       reg = <0x0 0x4a600000 0x0 0x400000>;
                        no-map;
                };
 
                smem_region: memory@4aa00000 {
-                       reg = <0x0 0x4aa00000 0x0 0x00100000>;
+                       reg = <0x0 0x4aa00000 0x0 0x100000>;
                        no-map;
                };
 
                q6_region: memory@4ab00000 {
-                       reg = <0x0 0x4ab00000 0x0 0x05500000>;
+                       reg = <0x0 0x4ab00000 0x0 0x5500000>;
                        no-map;
                };
        };
index 695ad1fece0088460979cd5a91d33f97ba187d99..8a053c9486c573f28d5060b04a8c13c4d04b626f 100644 (file)
                #size-cells = <2>;
                ranges;
 
+               bootloader@4a600000 {
+                       reg = <0x0 0x4a600000 0x0 0x400000>;
+                       no-map;
+               };
+
+               sbl@4aa00000 {
+                       reg = <0x0 0x4aa00000 0x0 0x100000>;
+                       no-map;
+               };
+
                smem@4ab00000 {
                        compatible = "qcom,smem";
-                       reg = <0x0 0x4ab00000 0x0 0x00100000>;
+                       reg = <0x0 0x4ab00000 0x0 0x100000>;
                        no-map;
 
                        hwlocks = <&tcsr_mutex 0>;
                };
 
                memory@4ac00000 {
+                       reg = <0x0 0x4ac00000 0x0 0x400000>;
                        no-map;
-                       reg = <0x0 0x4ac00000 0x0 0x00400000>;
                };
        };