diff options
author | Ben Widawsky <benjamin.widawsky@intel.com> | 2013-11-22 10:31:46 -0800 |
---|---|---|
committer | Ben Widawsky <benjamin.widawsky@intel.com> | 2013-12-06 11:00:24 -0800 |
commit | 6cfcfaa6dcf40cc608f7c3cd1fd33fdf33d4be83 (patch) | |
tree | dadeb73511b3fac55b78bd5dd143b008ec6bd6d5 | |
parent | 2e8053c20057c903af99a1ce916885124b7ad9a3 (diff) |
drm/i915: Use topdown allocation for PPGTT
In order to decrease fragmentation, and decrease the risk of using
valuable mappable space for the page tables, we use the top down
allocator for the page tables.
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem_gtt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c index 37832e451bea..64c2e70173f4 100644 --- a/drivers/gpu/drm/i915/i915_gem_gtt.c +++ b/drivers/gpu/drm/i915/i915_gem_gtt.c @@ -861,7 +861,7 @@ alloc: &ppgtt->node, GEN6_PD_SIZE, GEN6_PD_ALIGN, 0, 0, dev_priv->gtt.base.total, - DRM_MM_BOTTOMUP); + DRM_MM_TOPDOWN); if (ret == -ENOSPC && !retried) { ret = i915_gem_evict_something(dev, &dev_priv->gtt.base, GEN6_PD_SIZE, GEN6_PD_ALIGN, |