]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amd/display: dp debugfs allow link rate lane count greater than dp rx reported...
authorHersen Wu <hersenxs.wu@amd.com>
Wed, 27 Jun 2018 17:03:04 +0000 (13:03 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Jul 2018 19:51:53 +0000 (14:51 -0500)
[Why]
when hw team does phy parameters tuning, there is need to force dp
link rate or lane count grater than the values from dp receiver to
check dp tx. current debufs limit link rate, lane count no more
than rx caps.

[How] remove force settings less than rx caps check

v2: Fix typo in title

Signed-off-by: Hersen Wu <hersenxs.wu@amd.com>
Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c

index 0276e09d0b82e6ab3e2c691c3beb57fa35f6d581..0d9e410ca01e2d9deca8d37021e4cd3d53f16539 100644 (file)
@@ -214,8 +214,7 @@ static ssize_t dp_link_settings_write(struct file *f, const char __user *buf,
                break;
        }
 
-       if (!valid_input || (param[0] > link->reported_link_cap.lane_count) ||
-                       (param[1] > link->reported_link_cap.link_rate)) {
+       if (!valid_input) {
                kfree(wr_buf);
                DRM_DEBUG_DRIVER("Invalid Input value No HW will be programmed\n");
                return bytes_from_user;