diff options
author | Anshuman Gupta <[email protected]> | 2021-01-07 16:55:00 +0530 |
---|---|---|
committer | Jani Nikula <[email protected]> | 2021-01-08 18:29:49 +0200 |
commit | 5f8be91161b37e9396a8a4d4e014decbbe30383b (patch) | |
tree | 1ef8a8c0f5bdf8a02e704f8ae37619d246f87be0 /lib/mpi/mpi-sub-ui.c | |
parent | 10205618052908770451acd33eaeaa7685e97ed2 (diff) |
drm/i915/pps: Reuse POWER_DOMAIN_DISPLAY_CORE in pps_{lock, unlock}
We need a power_domain wakeref in pps_{lock,unlock} to prevent
a race while resetting pps state in intel_power_sequencer_reset().
intel_power_sequencer_reset() need a pps_mutex to access pps_pipe
but it can't grab pps_mutex due to deadlock with power_well
functions are called while holding pps_mutex.
intel_power_sequencer_reset() is called by power_well function
associated with legacy platforms like vlv and chv therefore re-use
the POWER_DOMAIN_DISPLAY_CORE power domain, which only used
by vlv and chv display power domain.
This will avoids the unnecessary noise of unrelated power wells
in pps_{lock,unlock}.
Cc: Jani Nikula <[email protected]>
Cc: Imre Deak <[email protected]>
Signed-off-by: Anshuman Gupta <[email protected]>
Reviewed-by: Jani Nikula <[email protected]>
Acked-by: Imre Deak <[email protected]>
Signed-off-by: Jani Nikula <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions