OSDN Git Service

drm/amd/display: disable SubVP + DRR to prevent underflow
authorAurabindo Pillai <aurabindo.pillai@amd.com>
Wed, 15 Feb 2023 17:51:20 +0000 (12:51 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 16 Feb 2023 03:26:22 +0000 (22:26 -0500)
commit80c6d6804f31451848a3956a70c2bcb1f07cfcb0
treee213e11217de4253eecadd548531170a3de54136
parentac0bb08d2cb711dc0e332f91c4e67783fcbe3439
drm/amd/display: disable SubVP + DRR to prevent underflow

[Why&How]
Temporarily disable SubVP+DRR since Xorg has an architectural limitation
where freesync will not work in a multi monitor configuration. SubVP+DRR
requires that freesync be working.

Whether OS has variable refresh setting enabled or not, the state on
the crtc remains same unless an application requests VRR. Due to this,
there is no way to know whether freesync will actually work or not
while we are on the desktop from the kernel's perspective.

If userspace does not have a limitation with multi-display freesync (for
example wayland), then this feature can be enabled by adding a
dcfeaturemask option to amdgpu on the kernel cmdline like:

amdgpu.dcfeaturemask=0x200

Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/dc/dc.h
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
drivers/gpu/drm/amd/include/amd_shared.h