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>
Mon, 21 Feb 2022 22:55:17 +0000 (17:55 -0500)
commit4d22336f903930eb94588b939c310743a3640276
treee31a8f625d563fab3e0804cdd3a9cb9f824c29f5
parente3f3824874da78db5775a5cb9c0970cd1c6978bc
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