Skip to content

Commit 5689916

Browse files
kv2019inashif
authored andcommitted
soc: xtensa: intel_adsp: cavs: fix assert on L3_MEM_BASE_ADDR
The assert on L3_MEM_BASE_ADDR is incorrect, we need must convert to uncached before use. Fixes: ffd2121 ("soc: xtensa: intel_adsp: cavs: fix power_down_cavs() signature") Signed-off-by: Kai Vehmanen <[email protected]>
1 parent 34ea488 commit 5689916

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

soc/xtensa/intel_adsp/cavs/power.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,10 @@ void pm_state_set(enum pm_state state, uint8_t substate_id)
9393
.adsp_imr_magic = ADSP_IMR_MAGIC_VALUE,
9494
.imr_restore_vector = rom_entry,
9595
};
96-
struct imr_layout *imr_layout = (struct imr_layout *)L3_MEM_BASE_ADDR;
96+
struct imr_layout *imr_layout =
97+
z_soc_uncached_ptr((__sparse_force void __sparse_cache *)
98+
L3_MEM_BASE_ADDR);
9799

98-
__ASSERT_NO_MSG(arch_xtensa_is_ptr_uncached((void *)L3_MEM_BASE_ADDR));
99100
imr_layout->imr_state.header = hdr;
100101

101102
#ifdef CONFIG_ADSP_POWER_DOWN_HPSRAM

0 commit comments

Comments
 (0)