Skip to contentSkip to conversation

drm/i915: test fix for missed irqs on IVB

PATCH New Ben Widawsky 1 participant 1 message Apr 17, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915: test fix for missed irqs on IVB

This is based on a workaround implemented in the windows driver. I've tried a similar fix for Sandrybridge with no luck, but it is a bit different for IVB. This is pretty experimental at this point; hopefully it helps anyone having any missed IRQ issues ;)

Cc Jesse Barnes <[email protected]>
Cc Michael Larabel <[email protected]>
---
 drivers/gpu/drm/i915/i915_reg.h         |    2 ++
 drivers/gpu/drm/i915/intel_ringbuffer.c |   47 +++++++++++++++++++++++++++++++
 2 files changed, 49 insertions(+)
drivers/gpu/drm/i915/i915_reg.h +2 -0
index cb55444..e925324 100644
@@ -210,6 +210,7 @@
 #define   MI_MEM_VIRTUAL	(1 << 22) /* 965+ only */
 #define MI_STORE_DWORD_INDEX	MI_INSTR(0x21, 1)
 #define   MI_STORE_DWORD_INDEX_SHIFT 2
+#define MI_STORE_REGISTER_MEM	MI_INSTR(0x24, 1)
 /* Official intel docs are somewhat sloppy concerning MI_LOAD_REGISTER_IMM:
  * - Always issue a MI_NOOP _before_ the MI_LOAD_REGISTER_IMM - otherwise hw
  *   simply ignores the register load under certain conditions.
@@ -217,6 +218,7 @@
  *   address/value pairs. Don't overdue it, though, x <= 2^4 must hold!
  */
 #define MI_LOAD_REGISTER_IMM(x)	MI_INSTR(0x22, 2*x-1)
+#define MI_LOAD_REGISTER_MEM	MI_INSTR(0x29, 1)
 #define MI_FLUSH_DW		MI_INSTR(0x26, 1) /* for GEN6 */
 #define   MI_INVALIDATE_TLB	(1<<18)
 #define   MI_INVALIDATE_BSD	(1<<7)
drivers/gpu/drm/i915/intel_ringbuffer.c +47 -0

59 lines not on this page · raw message

Signature · 1 line
1.7.10