drm/i915: s/0x50/RING_PSMI_CTL/
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 4 Nov 2015 21:20:04 +0000 (23:20 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 18 Nov 2015 12:35:13 +0000 (14:35 +0200)
Use the RING_PSMI_CTL define insted of hand rolling the register offset.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1446672017-24497-17-git-send-email-ville.syrjala@linux.intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_gpu_error.c

index 27b6ac9..b3698d0 100644 (file)
@@ -873,7 +873,7 @@ static void i915_record_ring_state(struct drm_device *dev,
        struct drm_i915_private *dev_priv = dev->dev_private;
 
        if (INTEL_INFO(dev)->gen >= 6) {
-               ering->rc_psmi = I915_READ(ring->mmio_base + 0x50);
+               ering->rc_psmi = I915_READ(RING_PSMI_CTL(ring->mmio_base));
                ering->fault_reg = I915_READ(RING_FAULT_REG(ring));
                if (INTEL_INFO(dev)->gen >= 8)
                        gen8_record_semaphore_state(dev_priv, error, ring, ering);