Certain regions of memory in MSM8917 are marked as 'no-map'. These
regions may cause security violation when included in the standard mapping.

Signed-off-by: Reza Kurniawan <[email protected]>
Reviewed-by: Balaji Selvanathan <[email protected]>
---
 arch/arm/mach-snapdragon/mem_map.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm/mach-snapdragon/mem_map.c 
b/arch/arm/mach-snapdragon/mem_map.c
index f64ec0c67..eb0242ef8 100644
--- a/arch/arm/mach-snapdragon/mem_map.c
+++ b/arch/arm/mach-snapdragon/mem_map.c
@@ -216,7 +216,8 @@ void enable_caches(void)
         * reserved regions as inacessible (PTE_TYPE_FAULT)
         */
        if (qcom_memmap_source == QCOM_MEMMAP_SOURCE_SMEM ||
-           fdt_node_check_compatible(gd->fdt_blob, 0, "qcom,qcs404") == 0) {
+           fdt_node_check_compatible(gd->fdt_blob, 0, "qcom,qcs404") == 0 ||
+           fdt_node_check_compatible(gd->fdt_blob, 0, "qcom,msm8917") == 0) {
                carveout_start = get_timer(0);
                /* Takes ~20-50ms on SDM845 */
                configure_reserved_memory();

-- 
2.55.0

Reply via email to