drm/amd/display: Fix debugfs link_settings entry
authorFangzhi Zuo <Jerry.Zuo@amd.com>
Tue, 9 Mar 2021 16:22:36 +0000 (11:22 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Apr 2021 20:40:53 +0000 (16:40 -0400)
commitc006a1c00de29e8cdcde1d0254ac23433ed3fee9
treed2c27def5d8cca88fb843bf1b404b1c0464ef70f
parenta08f16cfe8dc7402228840d9ef857d6253bba9ee
drm/amd/display: Fix debugfs link_settings entry

1. Catch invalid link_rate and link_count settings
2. Call dc interface to overwrite preferred link settings, and wait
until next stream update to apply the new settings.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Fangzhi Zuo <Jerry.Zuo@amd.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Solomon Chiu <solomon.chiu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c