Skip to content

Commit

Permalink
drm/i915: Use complete address space in true PPGTT
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michel Thierry authored and Daniel Vetter committed Apr 10, 2015
1 parent d7b2633 commit a4e0bed
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/gpu/drm/i915/i915_gem_gtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit a4e0bed

Please sign in to comment.