diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2019-02-28 10:20:34 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2019-02-28 11:08:02 +0000 |
commit | 13f1bfd3b3329b19950f95964580a84795ce7be9 (patch) | |
tree | d83dc5c9149e02d0cdcb13526493af68ec20c07f /drivers/gpu/drm/i915/i915_gem_gtt.c | |
parent | 32eb6bcfdda9dad240cf6a22fda2b3418b1a1b8e (diff) | |
download | linux-stable-13f1bfd3b3329b19950f95964580a84795ce7be9.tar.gz linux-stable-13f1bfd3b3329b19950f95964580a84795ce7be9.tar.bz2 linux-stable-13f1bfd3b3329b19950f95964580a84795ce7be9.zip |
drm/i915: Make object/vma allocation caches global
As our allocations are not device specific, we can move our slab caches
to a global scope.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190228102035.5857-2-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem_gtt.c')
-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 39671caab76b..7e79691664e5 100644 --- a/drivers/gpu/drm/i915/i915_gem_gtt.c +++ b/drivers/gpu/drm/i915/i915_gem_gtt.c @@ -1913,7 +1913,7 @@ static struct i915_vma *pd_vma_create(struct gen6_hw_ppgtt *ppgtt, int size) GEM_BUG_ON(!IS_ALIGNED(size, I915_GTT_PAGE_SIZE)); GEM_BUG_ON(size > ggtt->vm.total); - vma = kmem_cache_zalloc(i915->vmas, GFP_KERNEL); + vma = i915_vma_alloc(); if (!vma) return ERR_PTR(-ENOMEM); |