diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/4937-drm-amd-display-dp-debugfs-allow-link-rate-lane-coun.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.14.71/4937-drm-amd-display-dp-debugfs-allow-link-rate-lane-coun.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/4937-drm-amd-display-dp-debugfs-allow-link-rate-lane-coun.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/4937-drm-amd-display-dp-debugfs-allow-link-rate-lane-coun.patch new file mode 100644 index 00000000..bcdb7f97 --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/4937-drm-amd-display-dp-debugfs-allow-link-rate-lane-coun.patch @@ -0,0 +1,41 @@ +From 60577e58760c282196b3803b7cd11016234e867e Mon Sep 17 00:00:00 2001 +From: Hersen Wu <hersenxs.wu@amd.com> +Date: Wed, 27 Jun 2018 13:03:04 -0400 +Subject: [PATCH 4937/5725] drm/amd/display: dp debugfs allow link rate lane + count greater than dp rx reported caps + +[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 | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +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 0276e09..0d9e410 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 +@@ -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; +-- +2.7.4 + |