From 0afaf8a8cd809fa82829d8c820ba7a11883d92c0 Mon Sep 17 00:00:00 2001 From: Ranjani Sridharan Date: Mon, 5 Dec 2022 21:02:15 -0800 Subject: [PATCH] ipc4: handler: Fix D3 entry sequence Stop platform timer and disable interrupts before D3 entry for CAVS platforms. Signed-off-by: Ranjani Sridharan --- src/ipc/ipc4/handler.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ipc/ipc4/handler.c b/src/ipc/ipc4/handler.c index 35f9361ac117..cd4fd74fd20b 100644 --- a/src/ipc/ipc4/handler.c +++ b/src/ipc/ipc4/handler.c @@ -878,6 +878,10 @@ static int ipc4_module_process_dx(struct ipc4_message_request *ipc4) /* do platform specific suspending */ platform_context_save(sof_get()); +#if !defined(CONFIG_LIBRARY) && defined(CONFIG_CAVS) + arch_irq_lock(); + platform_timer_stop(timer_get()); +#endif ipc_get()->pm_prepare_D3 = 1; }