From: Paulo Zanoni <[email protected]>

Same thing as the previous non-i8xx commit.

Signed-off-by: Paulo Zanoni <[email protected]>
---
 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

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to