aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/4475-drm-amd-display-Clear-underflow-status-for-debug-pur.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/4475-drm-amd-display-Clear-underflow-status-for-debug-pur.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/4475-drm-amd-display-Clear-underflow-status-for-debug-pur.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/4475-drm-amd-display-Clear-underflow-status-for-debug-pur.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/4475-drm-amd-display-Clear-underflow-status-for-debug-pur.patch
new file mode 100644
index 00000000..b28647e3
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/4475-drm-amd-display-Clear-underflow-status-for-debug-pur.patch
@@ -0,0 +1,39 @@
+From fe08223921db486e3639e0d57c91a660c3d8dad3 Mon Sep 17 00:00:00 2001
+From: Nikola Cornij <nikola.cornij@amd.com>
+Date: Fri, 27 Apr 2018 17:26:25 -0400
+Subject: [PATCH 4475/5725] drm/amd/display: Clear underflow status for debug
+ purposes
+
+We want to keep underflow sticky bit on for the longevity tests outside
+of test environment. For debug purposes it is, however, useful to clear
+underflow status after the test that caused it so that the following
+tests are not affected. This change fullfils both requirements by clearing
+the underflow only from within Windows or Diags test environment.
+
+Signed-off-by: Nikola Cornij <nikola.cornij@amd.com>
+Reviewed-by: Nikola Cornij <Nikola.Cornij@amd.com>
+Acked-by: Harry Wentland <harry.wentland@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
+index 400d0ca..c40993a 100644
+--- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
++++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
+@@ -326,6 +326,12 @@ void dcn10_log_hw_state(struct dc *dc)
+ s.h_total,
+ s.v_total,
+ s.underflow_occurred_status);
++
++ // Clear underflow for debug purposes
++ // We want to keep underflow sticky bit on for the longevity tests outside of test environment.
++ // This function is called only from Windows or Diags test environment, hence it's safe to clear
++ // it from here without affecting the original intent.
++ tg->funcs->clear_optc_underflow(tg);
+ }
+ DTN_INFO("\n");
+
+--
+2.7.4
+