drm/i915: overlay: nuke readback to flush wc caches
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 11 Feb 2010 13:14:42 +0000 (14:14 +0100)
committerEric Anholt <eric@anholt.net>
Mon, 22 Feb 2010 16:54:29 +0000 (11:54 -0500)
I retested this and whatever this papered over, the problem doesn't seem
to exist anymore.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Eric Anholt <eric@anholt.net>
[anholt: fixed up compile warning]
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/intel_overlay.c

index 2639591c72e97c74be2e6c4783b3be38f673ff04..1257dc3cb474f47932a7bcfe61bd85a393510ff7 100644 (file)
@@ -199,16 +199,11 @@ static struct overlay_registers *intel_overlay_map_regs_atomic(struct intel_over
 
 static void intel_overlay_unmap_regs_atomic(struct intel_overlay *overlay)
 {
-       struct drm_device *dev = overlay->dev;
-        drm_i915_private_t *dev_priv = dev->dev_private;
-
        if (OVERLAY_NONPHYSICAL(overlay->dev))
                io_mapping_unmap_atomic(overlay->virt_addr);
 
        overlay->virt_addr = NULL;
 
-       I915_READ(OVADD); /* flush wc cashes */
-
        return;
 }