drm/amd/display: For vblank_disable_immediate, check PSR is really used
authorMichel Dänzer <mdaenzer@redhat.com>
Tue, 15 Feb 2022 18:53:37 +0000 (19:53 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 16 Feb 2022 22:30:02 +0000 (17:30 -0500)
commitfdda8f3406f98fd087784f9516b3825bb4b5f6ad
tree34ffd99ca6e4005aa16c5d35b6fc2d301ecc42e7
parent29b440d20456033091a0376cecdc23c6875d51c3
drm/amd/display: For vblank_disable_immediate, check PSR is really used

Even if PSR is allowed for a present GPU, there might be no eDP link
which supports PSR.

Fixes: 708978487304 ("drm/amdgpu/display: Only set vblank_disable_immediate when PSR is not enabled")
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Michel Dänzer <mdaenzer@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c