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 <xiuli.pan@linux.intel.com>
This commit is contained in:
Pan Xiuli 2021-01-28 07:47:38 +00:00 committed by Liam Girdwood
parent 882ef66c68
commit 76ae4d3e16
1 changed files with 2 additions and 2 deletions

View File

@ -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.");