OSDN Git Service

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)
commit9b2fdc332189334f8b33ff5d62594a2fb65794f0
treee8c7e4d79fb1fe58d2a1f932423cccec98c3250a
parent55eea8ef98641f6e1e1c202bd3a49a57c1dd4059
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