From b18e5bba25a45e0ffc26d4b0a7c2fc7644dabe8e Mon Sep 17 00:00:00 2001 From: Roger Wang Date: Fri, 2 Aug 2024 10:15:05 +0800 Subject: [PATCH] pm: disable interrupt after exit from halt HSD: 15015857053 This commit is to disable core interrupt after exit from halt, which is porting from ISH. We need to keep interrupt disabled until all necessary hardware context restoration is done. Signed-off-by: Roger Wang --- bsp_sedi/soc/intel_ish/pm/ish_pm.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bsp_sedi/soc/intel_ish/pm/ish_pm.h b/bsp_sedi/soc/intel_ish/pm/ish_pm.h index 9994c9f..0aa3969 100644 --- a/bsp_sedi/soc/intel_ish/pm/ish_pm.h +++ b/bsp_sedi/soc/intel_ish/pm/ish_pm.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Intel Corporation + * Copyright (c) 2023-2024 Intel Corporation * * SPDX-License-Identifier: BSD-3-Clause */ @@ -47,7 +47,10 @@ static inline void ish_mia_halt(void) { /* make sure interrupts are enabled before halting */ __asm__ volatile("sti;\n" - "hlt;"); + "hlt;\n" + "nop;\n" + "nop;\n" + "cli;"); } /* reset ISH mintue-ia cpu core */