]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Add emulated sink support for updating FS
authorAurabindo Pillai <aurabindo.pillai@amd.com>
Wed, 11 Aug 2021 18:38:44 +0000 (14:38 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Sep 2021 20:55:10 +0000 (16:55 -0400)
commit6f90c676972d7d79b1ca97432793ce8ef606a1c8
treee8c7e4d79fb1fe58d2a1f932423cccec98c3250a
parentbd4d637062c20ea739ae00d92941d1f26ab51fc4
drm/amd/display: Add emulated sink support for updating FS

[Why]
When forced modes are used during certain IGT tests,
without a real connector, dc_sink would be null when
standard modes are added by the driver. Calling the
function to update freesync capabilities at this
point will result in an error being printed

[How]
Use emulated sink when available. If both the normal
and emulated sink are not available, set all freesync
parameters to 0.

Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@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