drm/i915: HWSTAM is only 16-bit on gen3
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 24 Apr 2012 21:59:48 +0000 (22:59 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 3 May 2012 09:18:18 +0000 (11:18 +0200)
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_irq.c

index e8e4b9c41c6fa694c5d476a577c1de2504225c0e..3c3e33a6c2494ba79b9ade8fa7915781dd7bff6b 100644 (file)
@@ -2339,7 +2339,7 @@ static void i915_irq_preinstall(struct drm_device * dev)
                I915_WRITE(PORT_HOTPLUG_STAT, I915_READ(PORT_HOTPLUG_STAT));
        }
 
-       I915_WRITE(HWSTAM, 0xeffe);
+       I915_WRITE16(HWSTAM, 0xeffe);
        for_each_pipe(pipe)
                I915_WRITE(PIPESTAT(pipe), 0);
        I915_WRITE(IMR, 0xffffffff);
@@ -2537,7 +2537,7 @@ static void i915_irq_uninstall(struct drm_device * dev)
                I915_WRITE(PORT_HOTPLUG_STAT, I915_READ(PORT_HOTPLUG_STAT));
        }
 
-       I915_WRITE(HWSTAM, 0xffffffff);
+       I915_WRITE16(HWSTAM, 0xffff);
        for_each_pipe(pipe)
                I915_WRITE(PIPESTAT(pipe), 0);
        I915_WRITE(IMR, 0xffffffff);