Skip to content

Instantly share code, notes, and snippets.

@mthierry
Created October 24, 2017 22:59
Show Gist options
  • Save mthierry/36ee13d51091ce55535b748ad4a80463 to your computer and use it in GitHub Desktop.
Save mthierry/36ee13d51091ce55535b748ad4a80463 to your computer and use it in GitHub Desktop.
diff --git a/drivers/gpu/drm/i915/intel_lrc.c b/drivers/gpu/drm/i915/intel_lrc.c
index 7f42565ce53e..eada3dc145b6 100644
--- a/drivers/gpu/drm/i915/intel_lrc.c
+++ b/drivers/gpu/drm/i915/intel_lrc.c
@@ -915,6 +915,8 @@ static void intel_lrc_irq_handler(unsigned long data)
/* After the final element, the hw should be idle */
GEM_BUG_ON(port_count(port) == 0 &&
!(status & GEN8_CTX_STATUS_ACTIVE_IDLE));
+ if (status & GEN8_CTX_STATUS_ACTIVE_IDLE)
+ mdelay(2);
}
if (head != execlists->csb_head) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment