Skip to content

Revert "ASoC: SOF: Intel: hda: stop CORB/RIRB DMA in hda_dsp_remove()" - #6006

Open
ujfalusi wants to merge 1 commit into
topic/sof-devfrom
revert-5976-hda-stop-corb-rirb-dma-on-remove
Open

ujfalusi wants to merge 1 commit into
topic/sof-devfrom
revert-5976-hda-stop-corb-rirb-dma-on-remove

Conversation

@ujfalusi

Copy link
Copy Markdown
Collaborator

Reverts #5976

Copilot AI balanced review requested due to automatic review settings October 29, 2026 07:18
@ujfalusi
ujfalusi requested a review from bardliao as a code owner October 29, 2026 07:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Removing hda_codec_stop_cmd_io() can leave RIRB DMA active when ring buffers are freed after firmware probing fails, reintroducing a critical DMA-after-free that can cause IOMMU faults or memory corruption.

1 open issue
What changed in this PR

This PR reverts #5976 in the Intel SOF audio driver, removing the explicit command-DMA shutdown added to controller teardown.

Changes:

  • Removes hda_codec_stop_cmd_io() from hda_dsp_remove().
  • Removes the accompanying comment about stopping CORB/RIRB DMA before freeing ring buffers.
File Description
sound/​soc/​sof/​intel/​hda.c Reverts the explicit CORB/RIRB DMA stop during device removal.

Review effort: Balanced

Comment thread sound/soc/sof/intel/hda.c
/* stop CORB/RIRB DMA before the ring buffers are freed below */
hda_codec_stop_cmd_io(sdev);

free_irq(sdev->ipc_irq, sdev);
@ujfalusi

ujfalusi commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator Author

reverting in favor of the upstream proposed, broader fix: https://lore.kernel.org/linux-sound/20261028144446.992948-1-sashal@kernel.org/

@yifanli-intel

@ujfalusi
ujfalusi requested a review from kv2019i October 29, 2026 08:18
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