]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/i915: Allocate LLC ringbuffers from stolen
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 8 Aug 2013 13:41:07 +0000 (14:41 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sat, 10 Aug 2013 09:24:41 +0000 (11:24 +0200)
As stolen objects now behave identically (wrt to default LLC cacheing)
as their normal system counterparts, we no longer have to differentiate
our usage for ringbuffers. So allocate them from stolen on SNB+ as well.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_ringbuffer.c

index 74d02a704515b1b173f4fda9692f5aff7e0aa37a..10c2aaa7eced3b47f94a8ca436138e84450ad89f 100644 (file)
@@ -1294,9 +1294,7 @@ static int intel_init_ring_buffer(struct drm_device *dev,
                        return ret;
        }
 
-       obj = NULL;
-       if (!HAS_LLC(dev))
-               obj = i915_gem_object_create_stolen(dev, ring->size);
+       obj = i915_gem_object_create_stolen(dev, ring->size);
        if (obj == NULL)
                obj = i915_gem_alloc_object(dev, ring->size);
        if (obj == NULL) {