Skip to content

Conversation

@tmleman
Copy link
Contributor

@tmleman tmleman commented Jun 2, 2025

When transitioning to D3 state with a pipeline containing a DAI that supports microphone privacy but is in HW-managed mode, the DSP can panic. This occurs because the mic_privacy_get_mic_disable_status() function is called unconditionally during suspend/resume regardless of the privacy mode.

Fix the issue by explicitly checking for
mic_privacy_manager_get_policy() == MIC_PRIVACY_FW_MANAGED before attempting to save/restore the mic disable status. This ensures we only interact with the privacy status when the firmware is responsible for managing it, and allows HW-managed configurations to properly transit through D3 power states without exceptions.

This is a small but critical fix to the previous microphone privacy D3 resume patch, addressing panic cases observed with HDA and SoundWire interfaces.

When transitioning to D3 state with a pipeline containing a DAI that
supports microphone privacy but is in HW-managed mode, the DSP can
panic. This occurs because the mic_privacy_get_mic_disable_status()
function is called unconditionally during suspend/resume regardless of
the privacy mode.

Fix the issue by explicitly checking for
mic_privacy_manager_get_policy() == MIC_PRIVACY_FW_MANAGED before
attempting to save/restore the mic disable status. This ensures we only
interact with the privacy status when the firmware is responsible for
managing it, and allows HW-managed configurations to properly transit
through D3 power states without exceptions.

This is a small but critical fix to the previous microphone privacy D3
resume patch, addressing panic cases observed with HDA and SoundWire
interfaces.

Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
Copilot AI review requested due to automatic review settings June 2, 2025 11:36
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a DSP panic during D3 entry for pipelines with a DAI that supports microphone privacy in HW-managed mode by adding an explicit condition.

  • Added a condition to check for MIC_PRIVACY_FW_MANAGED in both suspend and resume functions.
  • Ensures that mic disable status is only queried when the firmware is responsible for managing it.

@tmleman tmleman requested review from abonislawski and kv2019i June 2, 2025 11:39
Copy link
Collaborator

@kv2019i kv2019i left a comment

Choose a reason for hiding this comment

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

Thanks @tmleman !

@kv2019i kv2019i merged commit 287d174 into thesofproject:main Jun 3, 2025
42 of 48 checks passed
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.

3 participants