drm/i915: Use complete address space in true PPGTT
authorMichel Thierry <michel.thierry@intel.com>
Wed, 8 Apr 2015 11:13:35 +0000 (12:13 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 10 Apr 2015 06:56:13 +0000 (08:56 +0200)
True PPGTT is capable of having a full address space, even if the system
has less allocated memory.

Note that aliasing PPGTT always aliases the GGTT and thus should remain
of the same size.

Signed-off-by: Michel Thierry <michel.thierry@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_gtt.c

index f6b0ddc7a5fa3d84e431dc0e2112e5764d1588c5..2a01d5620a192e72d74441c3c93514569502d94e 100644 (file)
@@ -1030,11 +1030,9 @@ static int gen8_aliasing_ppgtt_init(struct i915_hw_ppgtt *ppgtt)
 
 static int gen8_ppgtt_init(struct i915_hw_ppgtt *ppgtt)
 {
-       struct drm_device *dev = ppgtt->base.dev;
-       struct drm_i915_private *dev_priv = dev->dev_private;
        int ret;
 
-       ret = gen8_ppgtt_init_common(ppgtt, dev_priv->gtt.base.total);
+       ret = gen8_ppgtt_init_common(ppgtt, (1ULL << 32));
        if (ret)
                return ret;