summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaulo Zanoni <paulo.r.zanoni@intel.com>2013-07-09 17:09:47 -0300
committerPaulo Zanoni <paulo.r.zanoni@intel.com>2013-07-15 11:58:27 -0300
commit71c386f5efee5c284d5ee4128cd6418c66fe3874 (patch)
tree95b3b9ae7b5f02782a548ae0659a090f96665c9b
parent89300069d67fe21f92925f9ee0058affb438f03d (diff)
drm/i915: change how we reset SERR_INT and GEN7_ERR_INT
We don't need the I915_READ. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
-rw-r--r--drivers/gpu/drm/i915/i915_irq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c
index 653ec0612396..cd83dc3c3eaf 100644
--- a/drivers/gpu/drm/i915/i915_irq.c
+++ b/drivers/gpu/drm/i915/i915_irq.c
@@ -2037,7 +2037,7 @@ static void ibx_irq_reset(struct drm_device *dev)
intel_irq_reg_reset(dev_priv, SDEIER, SDEIMR, SDEIIR);
if (HAS_PCH_CPT(dev) || HAS_PCH_LPT(dev))
- I915_WRITE(SERR_INT, I915_READ(SERR_INT));
+ I915_WRITE(SERR_INT, 0xffffffff);
}
static void gen5_gt_irq_reset(struct drm_device *dev)
@@ -2059,7 +2059,7 @@ static void ironlake_irq_reset(struct drm_device *dev)
intel_irq_reg_reset(dev_priv, DEIER, DEIMR, DEIIR);
if (IS_GEN7(dev))
- I915_WRITE(GEN7_ERR_INT, I915_READ(GEN7_ERR_INT));
+ I915_WRITE(GEN7_ERR_INT, 0xffffffff);
gen5_gt_irq_reset(dev);