ipq806x: add missing enclosing reserved-memory block on C2600/AD7200
authorFilip Matijević <filip.matijevic.pz@gmail.com>
Sun, 5 Feb 2023 08:34:41 +0000 (09:34 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Tue, 7 Feb 2023 15:27:02 +0000 (16:27 +0100)
Most of the time when booting kernel prints a warning from
mm/page_alloc.c when pstore/ramoops is being initialized and ramoops is
not functional.

Fix this by moving ramopps node into reserved-memory block as described
in kernel documentation.

Fixes: 2964e5024c ("ipq806x: kernel ramoops storage for C2600/AD7200")
Signed-off-by: Filip Matijević <filip.matijevic.pz@gmail.com>
target/linux/ipq806x/files-5.15/arch/arm/boot/dts/qcom-ipq8064-ad7200-c2600.dtsi

index 576393015aceaffc71bb8d50bfa4d8102326cf17..7b352edb9bab1caab7dde377f232481a3dc41b98 100644 (file)
                device_type = "memory";
        };
 
-       ramoops@42100000 {
-               compatible = "ramoops";
-               reg = <0x42100000 0x40000>;
-               record-size = <0x4000>;
-               console-size = <0x4000>;
-               ftrace-size = <0x4000>;
-               pmsg-size = <0x4000>;
-       };
+       reserved-memory {
+                ramoops@42100000 {
+                        compatible = "ramoops";
+                        reg = <0x42100000 0x40000>;
+                        record-size = <0x4000>;
+                        console-size = <0x4000>;
+                        ftrace-size = <0x4000>;
+                        pmsg-size = <0x4000>;
+                };
+        };
 
        aliases {
                mdio-gpio0 = &mdio0;