From 1b87e6f8a711a89eb22f359579fb235f07119e56 Mon Sep 17 00:00:00 2001 From: Guennadi Liakhovetski Date: Wed, 11 Sep 2024 14:06:26 +0200 Subject: [PATCH] Intel: ACE: move hpsram_mask to a data section On platforms with enforced memory access modes, .text is read-only. Move hpsram_mask to a cached data section to fix PTL. Signed-off-by: Guennadi Liakhovetski --- soc/intel/intel_adsp/ace/power_down.S | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/soc/intel/intel_adsp/ace/power_down.S b/soc/intel/intel_adsp/ace/power_down.S index 234c8570bddabe..42ea10899efaea 100644 --- a/soc/intel/intel_adsp/ace/power_down.S +++ b/soc/intel/intel_adsp/ace/power_down.S @@ -4,20 +4,24 @@ #include "asm_memory_management.h" + .section .cached.hpsram_mask, "w" + .align 64 +hpsram_mask: + .rept MAX_MEMORY_SEGMENTS + .word 0 + .endr + + .global hpsram_mask + .section .text, "ax" .align 64 power_down_literals: .literal_position ipc_flag: .word 0x80000000 // IPC_DIPCTDR_BUSY -hpsram_mask: - .rept MAX_MEMORY_SEGMENTS - .word 0 - .endr sram_dis_loop_cnt: .word 4096 - .global hpsram_mask .global power_down .type power_down, @function