You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Early wake from DSP when running hotword pipeline with FW debug enabled #3034
ADLApplies to Alder Lake platformKeyword DetectionApplies to Keyword DetectionP1Blocker bugs or important featuresS0ixIssues related to S0ixbugSomething isn't working
But when wov stream is closed, the soix entry and exit is fine.
In kernel config,i had enabled FW debug and other options for debug purpose: (everything under SOF_DEBUG)
+CONFIG_SND_SOC_SOF_DEBUG=y
+CONFIG_SND_SOC_SOF_DEBUG_ENABLE_DEBUGFS_CACHE=y
+CONFIG_SND_SOC_SOF_DEBUG_ENABLE_FIRMWARE_TRACE=y
+CONFIG_SND_SOC_SOF_DEBUG_FORCE_IPC_POSITION=y
+CONFIG_SND_SOC_SOF_DEBUG_IPC_FLOOD_TEST=y
+CONFIG_SND_SOC_SOF_DEBUG_RETAIN_DSP_CONTEXT=y
+CONFIG_SND_SOC_SOF_DEBUG_VERBOSE_IPC=y
+CONFIG_SND_SOC_SOF_DEBUG_XRUN_STOP=y
+CONFIG_SND_SOC_SOF_DEVELOPER_SUPPORT=y
@sathyap-chrome thank you for reporting this. Im not sure if this is kernel issue or a FW issue yet. In the driver, we set the flag to disable trace when entering D0i3 in S0ix. But maybe the FW is not acting on it. Need to check
@sathyap-chrome I tried it on my Brya. My Brya can't enter S0ix from reading the residencies. Is there anything I should do to make the OS enter S0ix? My platform is Brya proto1 SKU1. BTW: if I run echo "freeze" > state, the display will be off, and if I clap, the WoV will waken the display.
some updates:
1 can't enter S0ix is because the coreboot is too old.
2 Based on the phenomenon, we suspect that fw is sending the log to host, which cause early wake from S0ix. After some debug, this assumption is precluded.
3. And I also found, if I disable dma trace either in driver or fw, this bug won’t happen.
4. After study the code, I guess maybe DMA should be disabled to enter S0ix on ADL.
@libinyang we do send the TRACE_DISABLE flag along with the PM_GATE IPC when we enter D0i3 during system suspend, right? Are you saying that more needs to be done from the host? Or is the FW not acting on it?
@libinyang we do send the TRACE_DISABLE flag along with the PM_GATE IPC when we enter D0i3 during system suspend, right? Are you saying that more needs to be done from the host? Or is the FW not acting on it?
@ranj063 Yes, we send the flag, but it didn't work. I have checked even there is no any log sent from fw, but if we triggered start the dma, pc10 won't be entered on ADL.
I can confim with SOF1.9.1 and kernel with dma-stop fixes, this still happens. System logs show system not cleanly entering S0ix in this case. Disabling the FW trace helps to solve the issue.
ADLApplies to Alder Lake platformKeyword DetectionApplies to Keyword DetectionP1Blocker bugs or important featuresS0ixIssues related to S0ixbugSomething isn't working
Activity
ranj063 commentedon Jul 9, 2021
@sathyap-chrome thank you for reporting this. Im not sure if this is kernel issue or a FW issue yet. In the driver, we set the flag to disable trace when entering D0i3 in S0ix. But maybe the FW is not acting on it. Need to check
libinyang commentedon Jul 26, 2021
@sathyap-chrome I tried it on my Brya. My Brya can't enter S0ix from reading the residencies. Is there anything I should do to make the OS enter S0ix? My platform is Brya proto1 SKU1. BTW: if I run
echo "freeze" > state, the display will be off, and if I clap, the WoV will waken the display.libinyang commentedon Aug 3, 2021
some updates:
1 can't enter S0ix is because the coreboot is too old.
2 Based on the phenomenon, we suspect that fw is sending the log to host, which cause early wake from S0ix. After some debug, this assumption is precluded.
3. And I also found, if I disable dma trace either in driver or fw, this bug won’t happen.
4. After study the code, I guess maybe DMA should be disabled to enter S0ix on ADL.
ranj063 commentedon Aug 3, 2021
@libinyang we do send the TRACE_DISABLE flag along with the PM_GATE IPC when we enter D0i3 during system suspend, right? Are you saying that more needs to be done from the host? Or is the FW not acting on it?
libinyang commentedon Aug 4, 2021
After some debug, this issue is caused when dma is triggered. So it seems this is an ADL specific issue. I will prepare a patch for this issue.
libinyang commentedon Aug 4, 2021
@ranj063 Yes, we send the flag, but it didn't work. I have checked even there is no any log sent from fw, but if we triggered start the dma, pc10 won't be entered on ADL.
libinyang commentedon Aug 16, 2021
This bug can be fixed by #3099.
However, we still have an open: why WoV dma needn't be stopped in S0ix.
kv2019i commentedon Dec 10, 2021
I can confim with SOF1.9.1 and kernel with dma-stop fixes, this still happens. System logs show system not cleanly entering S0ix in this case. Disabling the FW trace helps to solve the issue.
mwasko commentedon Dec 13, 2021
What is the reproduction rate of this issue?
kv2019i commentedon Dec 13, 2021
@mwasko This is 100% reproducible. The fact that we leave DMA programmed for trace, prevents S0ix entry although on TGL it works just fine.
keqiaozhang commentedon Jan 10, 2022
PR #3332 can fix this issue, so this bug can be closed.