Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ASoC: SOF: Intel: hda-dai: Drop call to hda_link_dma_cleanup in dai_s… #5049

Conversation

ujfalusi
Copy link
Collaborator

@ujfalusi ujfalusi commented Jun 7, 2024

…uspend()

The DAI ops and sequences have been reworked but the hda_dai_suspend() function kept the call to hda_link_dma_cleanup().
This causes a system lockup on suspend with paused streams.

Drop the stale call to fix the system lockup.
Note: that this patch will not fix the suspend while pause, it is not working, but at least the system is not locked up hard.

…uspend()

The DAI ops and sequences have been reworked but the hda_dai_suspend()
function kept the call to hda_link_dma_cleanup().
This causes a system lockup on suspend with paused streams.

Drop the stale call to fix the system lockup.
Note: that this patch will _not_ fix the suspend while pause, it is not
working, but at least the system is not locked up hard.

Signed-off-by: Peter Ujfalusi <[email protected]>
cpu_dai);
if (ret < 0)
return ret;

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to contradict the comments line 599-602, and it's not clear why this causes a hard lockup?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, something is not right for sure, but it prevents the lockup.
If we suspend with active audio we run through the pre_trigger/trigger/post_trigger sequence (and SUSPEND/STOP/PAUSE_PUSH is identical up to post_trigger) then we call hda_link_dma_cleanup().

With the suspend while paused we just have a longer delay between the triggers and the hda_link_dma_cleanup()

But, we have failing FE triggers, so we might fail to stop host side and this has some side effect on the link side if it is cleaned?
We cannot see this as the system is hard locked..

@ujfalusi
Copy link
Collaborator Author

ujfalusi commented Jun 7, 2024

Likely just a side effect that it is fixing the lockup, closing.

@ujfalusi ujfalusi closed this Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants