Skip to content

Commit

Permalink
Intel: ACE: move hpsram_mask to a data section
Browse files Browse the repository at this point in the history
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 <guennadi.liakhovetski@linux.intel.com>
  • Loading branch information
lyakh authored and aescolar committed Sep 16, 2024
1 parent aa67cb2 commit 1dde706
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions soc/intel/intel_adsp/ace/power_down.S
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1dde706

Please sign in to comment.