mirror of
https://github.com/torvalds/linux.git
synced 2024-11-14 08:02:07 +00:00
b85459aafa
snd_sof_remove() disables the DSP and unmaps the DSP BAR.
Removing topology after disabling the DSP results in a
kernel panic while unloading the pipeline widget. This is
because pipeline widget unload attempts to power down
the core it is scheduled on by accessing the DSP registers.
So, the suggested fix here is to unregister the machine driver
first to remove the topology and then disable the DSP
to avoid the situation described above.
Note that the kernel panic only happens in cases where the
HDaudio link is not managed by the hdac library,
e.g. no codec or when HDMI is not supported.
When the hdac library is used, snd_sof_remove() calls
snd_hdac_ext_bus_device_remove() to remove the codec which
unregisters the component driver thereby also removing the
topology before the DSP is disabled.
Fixes:
|
||
---|---|---|
.. | ||
intel | ||
xtensa | ||
control.c | ||
core.c | ||
debug.c | ||
ipc.c | ||
Kconfig | ||
loader.c | ||
Makefile | ||
nocodec.c | ||
ops.c | ||
ops.h | ||
pcm.c | ||
pm.c | ||
sof-acpi-dev.c | ||
sof-pci-dev.c | ||
sof-priv.h | ||
topology.c | ||
trace.c | ||
utils.c |