OSDN Git Service

drm/amd/display: set allow_freesync parameter in DM
authorAurabindo Pillai <aurabindo.pillai@amd.com>
Thu, 5 Jan 2023 19:21:45 +0000 (14:21 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 24 Jan 2023 17:27:29 +0000 (12:27 -0500)
commit7eaef1163b820caf202bbb0b1e823806ab836a38
tree362c95ff9b7e2d4b4036618f63ff981787e8e7d9
parent7e5098abffca0b9f884e4b602c7ce2f0a50f48e1
drm/amd/display: set allow_freesync parameter in DM

[Why&how]
There are cases where VRR is possible but not enabled. If allow_freesync
parameter is not set, SubVP logic defaults to checking only the ignore MSA
parameter that is always set if display is DRR capable, which breaks the system
while trying to enable SubVP on multi monitor configs where freesync
does not work due to Xorg limitation.

SubVP uses allow_freesync parameter to check if SubVP + DRR case can be executed.

Reviewed-by: Alvin Lee <Alvin.Lee2@amd.com>
Acked-by: Alan Liu <HaoPing.Liu@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c