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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Mar 2022 10:51:04 +0000 (11:51 +0100)
commit164fcd1345e6e1042f2fd2a75bb38b075c8e0c5b
tree58f23cd3aa1d6d01540a03efbebfbe14cd842cb8
parent950480c325855ee5c48e7f1b40f728e254acd4cf
drm/amd/display: For vblank_disable_immediate, check PSR is really used

commit 4d22336f903930eb94588b939c310743a3640276 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c