[Intel-gfx] [PATCH 15/15] drm/i915: WARN if IIR is not zero at i8xx irq_postinstall

Paulo Zanoni przanoni at gmail.com
Wed Jul 24 00:33:55 CEST 2013


From: Paulo Zanoni <paulo.r.zanoni at intel.com>

Same thing as the previous non-i8xx commit.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni at intel.com>
---
 drivers/gpu/drm/i915/i915_irq.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c
index 4f0bc26..8b12caa 100644
--- a/drivers/gpu/drm/i915/i915_irq.c
+++ b/drivers/gpu/drm/i915/i915_irq.c
@@ -100,8 +100,8 @@ static const u32 hpd_status_i915[] = { /* i915 and valleyview are the same */
 } while (0)
 
 #define INTEL_IRQ_REG_INIT16(type, do_iir, ier_val, imr_val) do { \
-	if (do_iir) \
-		I915_WRITE16(type##IR, I915_READ16(type##IR)); \
+	WARN(I915_READ16(type##IR) != 0, "Register 0x%x is not 0\n", \
+	     type##IR); \
 	I915_WRITE16(type##MR, (imr_val)); \
 	I915_WRITE16(type##ER, (ier_val)); \
 	POSTING_READ16(type##ER); \
-- 
1.8.1.2




More information about the Intel-gfx mailing list