From: Ray Wu <[email protected]>

[Why]
IGT link-training-configs test fails to set the link rate on Replay panels
because some link rate types are not supported in debugfs. As a result,
debugfs treats these link rates as invalid, causing the IGT test to fail.

[How]
Add missing link rate types to resolve this issue.

Reviewed-by: ChiaHsuan Chung <[email protected]>
Signed-off-by: Ray Wu <[email protected]>
Signed-off-by: Wayne Lin <[email protected]>
---
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 
b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
index b9ed29ec60dc..5fb573214f18 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
@@ -302,8 +302,11 @@ static ssize_t dp_link_settings_write(struct file *f, 
const char __user *buf,
 
        switch (param[1]) {
        case LINK_RATE_LOW:
+       case LINK_RATE_RATE_2:
+       case LINK_RATE_RATE_3:
        case LINK_RATE_HIGH:
        case LINK_RATE_RBR2:
+       case LINK_RATE_RATE_6:
        case LINK_RATE_HIGH2:
        case LINK_RATE_HIGH3:
        case LINK_RATE_UHBR10:
-- 
2.43.0

Reply via email to