From adad42b8ed42520402423467221651834d554b13 Mon Sep 17 00:00:00 2001 From: Patrick Daly Date: Thu, 30 Jun 2022 18:53:16 -0700 Subject: [PATCH] ARM: dts: msm: Remove bootloader-managed regions from Kalama memory map Bootloaders guarantee that certain regions, if present, are not passed to linux as valid memory. The size of these regions should not be assumed to be a constant value. Change-Id: I6cf7a1e3468dcd44656bff8e14cd74f64e091200 --- qcom/kalama.dtsi | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/qcom/kalama.dtsi b/qcom/kalama.dtsi index 280a05fe..9d87d04c 100644 --- a/qcom/kalama.dtsi +++ b/qcom/kalama.dtsi @@ -349,15 +349,11 @@ reg = <0x0 0x80a00000 0x0 0x400000>; }; - hyp_tags_mem: hyp_tags_region@80e00000 { - no-map; - reg = <0x0 0x80e00000 0x0 0x3d0000>; - }; - - hyp_tags_reserved_mem: hyp_tags_reserved_region@811d0000 { - no-map; - reg = <0x0 0x811d0000 0x0 0x30000>; - }; + /* + * hyp_tags_mem & hyp_tags_reserved_mem not passed to linux + * as valid memory. Size of these regions varies based on + * bootloader policy. + */ /* merged xbl_dt_log, xbl_ramdump, aop_image */ xbl_dt_log_merged_mem: xbl_dt_log_merged@81a00000 { @@ -505,15 +501,10 @@ reg = <0x0 0xd8300000 0x0 0x500000>; }; - ta_mem: ta_region@d8800000 { - no-map; - reg = <0x0 0xd8800000 0x0 0x7400000>; - }; - - tz_tags_mem: tz_tags_region@e1200000 { - no-map; - reg = <0x0 0xdfc00000 0x0 0x2140000>; - }; + /* + * ta_mem & tz_tags_mem not passed to linux as valid memory. Size + * varies based on bootloader policy. + */ hwfence_shbuf: hwfence-shmem { no-map;