diff options
author | Pierre-Louis Bossart <[email protected]> | 2020-01-24 15:36:21 -0600 |
---|---|---|
committer | Mark Brown <[email protected]> | 2020-01-27 17:51:59 +0000 |
commit | 410e5e55c9c1c9c0d452ac5b9adb37b933a7747e (patch) | |
tree | 4ef9a8e9a8acb285a8e46488fc929ea60a71a607 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 37e97e6faeabda405d0c4319f8419dcc3da14b2b (diff) |
ASoC: SOF: core: release resources on errors in probe_continue
The initial intent of releasing resources in the .remove does not work
well with HDaudio codecs. If the probe_continue() fails in a work
queue, e.g. due to missing firmware or authentication issues, we don't
release any resources, and as a result the kernel oopses during
suspend operations.
The suggested fix is to release all resources during errors in
probe_continue(), and use fw_state to track resource allocation
state, so that .remove does not attempt to release the same
hardware resources twice. PM operations are also modified so that
no action is done if DSP resources have been freed due to
an error at probe.
Reported-by: Takashi Iwai <[email protected]>
Co-developed-by: Kai Vehmanen <[email protected]>
Signed-off-by: Kai Vehmanen <[email protected]>
Bugzilla: http://bugzilla.suse.com/show_bug.cgi?id=1161246
Signed-off-by: Pierre-Louis Bossart <[email protected]>
Reviewed-by: Takashi Iwai <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Cc: [email protected]
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions