Re: [PATCH] ASoC: SOF: Intel: hda: Stop the controller before freeing its DMA buffers

From: Sasha Levin

Date: Sun Nov 01 2026 - 19:32:29 EST


On Sun, Nov 01, 2026 at 11:00:54PM +0000, Mark Brown wrote:
hda_dsp_probe() starts the CORB/RIRB DMA engines through
hda_dsp_ctrl_init_chip(), but neither hda_dsp_remove() nor the error
path of hda_dsp_probe() stops them before hda_dsp_stream_free() frees
the CORB/RIRB ring buffer and the position buffer. Unsolicited
responses also stay enabled, so the controller can keep writing RIRB
entries into the freed page.

This doesn't apply against current code, please check and resend.

Just to confirm, I see this in Linus's tree:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=11ae63bd9030349a0136fb2edd1622a4a029edc8 .

--
Thanks,
Sasha