diff options
author | Takashi Iwai <[email protected]> | 2019-04-10 13:03:22 +0200 |
---|---|---|
committer | Chris Wilson <[email protected]> | 2019-04-10 14:13:47 +0100 |
commit | 4bdc42094d9c4af75f90ee49b9009ea8dfe41444 (patch) | |
tree | 6facb4080bed4da06e3f2384820e7f2dbb4ec1e5 /tools/perf/scripts/python/mem-phys-addr.py | |
parent | f11cb1c19ad0563b3c1ea5eb16a6bac0e401f428 (diff) |
ALSA: hda: Fix racy display power access
snd_hdac_display_power() doesn't handle the concurrent calls carefully
enough, and it may lead to the doubly get_power or put_power calls,
when a runtime PM and an async work get called in racy way.
This patch addresses it by reusing the bus->lock mutex that has been
used for protecting the link state change in ext bus code, so that it
can protect against racy display state changes. The initialization of
bus->lock was moved from snd_hdac_ext_bus_init() to
snd_hdac_bus_init() as well accordingly.
Testcase: igt/i915_pm_rpm/module-reload #glk-dsi
Reported-by: Chris Wilson <[email protected]>
Cc: Imre Deak <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Signed-off-by: Chris Wilson <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions