OSDN Git Service

drm/amd/display: Prevent PSR disable/reenable in HPD IRQ
authorWyatt Wood <wyatt.wood@amd.com>
Wed, 24 Nov 2021 17:50:20 +0000 (12:50 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Dec 2021 18:10:16 +0000 (13:10 -0500)
commitd29b7980b55ebe96ba167aeb88e81775c141f659
treea478cceee6c0bbc70b77d6adf2bcdabe23ae3b0b
parentbe1ac692c08971486d68a88f39fc4e2cecb80a8e
drm/amd/display: Prevent PSR disable/reenable in HPD IRQ

[Why]
When HPD IRQ occurs, it triggers a PSR disable and reenable
directly through dc layer.
Since it does not pass through the power layer, the layer
that tracks whether PSR is enabled or disabled and which
masks are set, this layer is now out of sync with the real
PSR state in FW.
Theoretically PSR can be enabled during hw programming
sequences or any other situation where we must disable PSR.

[How]
Check if PSR is enabled before doing PSR disable/reenable.

Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Pavle Kotarac <Pavle.Kotarac@amd.com>
Signed-off-by: Wyatt Wood <wyatt.wood@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c