diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/1165-test-patch-for-hpd-dpms-check.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.19.8/1165-test-patch-for-hpd-dpms-check.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/1165-test-patch-for-hpd-dpms-check.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/1165-test-patch-for-hpd-dpms-check.patch new file mode 100644 index 00000000..32b67f79 --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/1165-test-patch-for-hpd-dpms-check.patch @@ -0,0 +1,37 @@ +From e519fa7e8972bc3556382eb6168705c82c561882 Mon Sep 17 00:00:00 2001 +From: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com> +Date: Wed, 16 Jan 2019 15:44:08 -0500 +Subject: [PATCH 1165/2940] test patch for hpd dpms check + +Change-Id: Id97a00720acd9d8d3a0e0a8df812640582fa191c +Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com> +--- + drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +index f70d38361028..33f623d1150b 100644 +--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c ++++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +@@ -1179,6 +1179,9 @@ static void handle_hpd_irq(void *param) + if (aconnector->fake_enable) + aconnector->fake_enable = false; + ++ if (aconnector->base.dpms != DRM_MODE_DPMS_ON) ++ goto unlock; ++ + if (!dc_link_detect_sink(aconnector->dc_link, &new_connection_type)) + DRM_ERROR("KMS: Failed to detect connector\n"); + +@@ -1204,6 +1207,8 @@ static void handle_hpd_irq(void *param) + if (aconnector->base.force == DRM_FORCE_UNSPECIFIED) + drm_kms_helper_hotplug_event(dev); + } ++ ++unlock: + mutex_unlock(&aconnector->hpd_lock); + + } +-- +2.17.1 + |