From b3ecf7d9f83f156f8c2c0507488d700f6b0cbb66 Mon Sep 17 00:00:00 2001 From: Yilun Lin Date: Mon, 22 Jul 2019 17:08:35 +0800 Subject: mt_scp/ipi: only invoke interrupt when ipi ready IPC interrupt should only be invoked when the task inited and informing AP that SCP is ready. TEST=Boot SCP, and doesn't see the process stack overflow. BUG=b:137920815 BRANCH=none Change-Id: Ibe926b77705718a986c3b090227328b569cd9b59 Signed-off-by: Yilun Lin Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1736411 Reviewed-by: Erin Lo Reviewed-by: Nicolas Boichat Commit-Queue: Yilun Lin Tested-by: Yilun Lin --- chip/mt_scp/ipi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chip') diff --git a/chip/mt_scp/ipi.c b/chip/mt_scp/ipi.c index 8819586a2f..544ebb5d75 100644 --- a/chip/mt_scp/ipi.c +++ b/chip/mt_scp/ipi.c @@ -110,7 +110,7 @@ void ipi_enable_irq(int irq) task_enable_irq(irq); - if (pending_ipc) + if (ipi_ready && pending_ipc) /* * IPC may be triggered while SCP_IRQ_IPC0 was disabled. * AP will still updates SCP_GIPC_IN. -- cgit v1.2.1