From 76ae4d3e16ce18f227eeed361f6f5017c3ab9abf Mon Sep 17 00:00:00 2001 From: Pan Xiuli Date: Thu, 28 Jan 2021 07:47:38 +0000 Subject: [PATCH] cavs: pm: change the timeout value for HOST IPC handler After checking the kernel log the HOST will always handle and replay DSP sent IPC GLB_TRACE_MSG in about 40us. set the FW side wait timeout to 100us to improve the performance of DSP power switch. Signed-off-by: Pan Xiuli --- src/platform/intel/cavs/lib/pm_runtime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform/intel/cavs/lib/pm_runtime.c b/src/platform/intel/cavs/lib/pm_runtime.c index 96236352c..b359ef709 100644 --- a/src/platform/intel/cavs/lib/pm_runtime.c +++ b/src/platform/intel/cavs/lib/pm_runtime.c @@ -612,10 +612,10 @@ void platform_pm_runtime_power_off(void) #if CAVS_VERSION >= CAVS_VERSION_1_8 int ret; - /* check if DSP is busy sending IPC for 10ms */ + /* check if DSP is busy sending IPC for 100us */ ret = poll_for_register_delay(IPC_HOST_BASE + IPC_DIPCIDR, IPC_DIPCIDR_BUSY, 0, - 10000); + 100); /* did command succeed */ if (ret < 0) tr_err(&power_tr, "failed to wait for DSP sent IPC handled.");