drm/i915: Report aliasing ppgtt size as ggtt size
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 2 Sep 2019 04:02:44 +0000 (05:02 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 3 Sep 2019 04:29:33 +0000 (05:29 +0100)
The aliasing-ppgtt is constrained to be the same size as the Global GTT
since it aliases the same address space. Simplifying gtt size reporting
in this case.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190902040303.14195-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_context.c

index b8969605f4e897fa717a78ca8dbbeccbdc7764f2..f1c0e5d958f3b6db9733bf548f8cabe83cd2568d 100644 (file)
@@ -2231,8 +2231,6 @@ int i915_gem_context_getparam_ioctl(struct drm_device *dev, void *data,
                args->size = 0;
                if (ctx->vm)
                        args->value = ctx->vm->total;
-               else if (to_i915(dev)->ggtt.alias)
-                       args->value = to_i915(dev)->ggtt.alias->vm.total;
                else
                        args->value = to_i915(dev)->ggtt.vm.total;
                break;