aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3995-drm-amdgpu-dm-Resume-short-HPD-IRQs-before-resuming-.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3995-drm-amdgpu-dm-Resume-short-HPD-IRQs-before-resuming-.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3995-drm-amdgpu-dm-Resume-short-HPD-IRQs-before-resuming-.patch55
1 files changed, 55 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3995-drm-amdgpu-dm-Resume-short-HPD-IRQs-before-resuming-.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3995-drm-amdgpu-dm-Resume-short-HPD-IRQs-before-resuming-.patch
new file mode 100644
index 00000000..3f8e8a9d
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3995-drm-amdgpu-dm-Resume-short-HPD-IRQs-before-resuming-.patch
@@ -0,0 +1,55 @@
+From dd588511b3d9462a8d8cb12bb5de259548dbcea4 Mon Sep 17 00:00:00 2001
+From: Lyude Paul <lyude@redhat.com>
+Date: Wed, 25 Sep 2019 17:52:48 -0400
+Subject: [PATCH 3995/4256] drm/amdgpu/dm: Resume short HPD IRQs before
+ resuming MST topology
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Since we're going to be reprobing the entire topology state on resume
+now using sideband transactions, we need to ensure that we actually have
+short HPD irqs enabled before calling drm_dp_mst_topology_mgr_resume().
+So, do that.
+
+Changes since v4:
+* Fix typo in comments
+
+Cc: Juston Li <juston.li@intel.com>
+Cc: Imre Deak <imre.deak@intel.com>
+Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
+Cc: Harry Wentland <hwentlan@amd.com>
+Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
+Signed-off-by: Lyude Paul <lyude@redhat.com>
+Acked-by: Alex Deucher <alexander.deucher@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+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 be9a95b534b8..7ade3cbb5552 100644
+--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
++++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+@@ -1221,15 +1221,15 @@ static int dm_resume(void *handle)
+ /* program HPD filter */
+ dc_resume(dm->dc);
+
+- /* On resume we need to rewrite the MSTM control bits to enamble MST*/
+- s3_handle_mst(ddev, false);
+-
+ /*
+ * early enable HPD Rx IRQ, should be done before set mode as short
+ * pulse interrupts are used for MST
+ */
+ amdgpu_dm_irq_resume_early(adev);
+
++ /* On resume we need to rewrite the MSTM control bits to enable MST*/
++ s3_handle_mst(ddev, false);
++
+ /* Do detection*/
+ list_for_each_entry(connector, &ddev->mode_config.connector_list, head) {
+ aconnector = to_amdgpu_dm_connector(connector);
+--
+2.17.1
+