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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 May 2021 12:47:30 +0000 (14:47 +0200)
commitcc6215d94de93b0e4d2696f219b2c93e3951e2c6
tree9911c9831e9c178bc0f304841802788483a72f03
parentbcefa89b3e48a0a7723c105d38dac64c8a0611b9
drm/amd/display: Fix debugfs link_settings entry

[ Upstream commit c006a1c00de29e8cdcde1d0254ac23433ed3fee9 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c