drm/i915/gtt: Reorder aliasing_ppgtt fini
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 9 Jun 2018 09:01:51 +0000 (10:01 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 9 Jun 2018 09:37:58 +0000 (10:37 +0100)
commiteed2890374446ff67fe5b14517d0b2b08a1a11d2
treee969743407735c3017488246e127e21ac232bca8
parente1f8789883a1bfdb4bfa8b638eeb24eb089c5836
drm/i915/gtt: Reorder aliasing_ppgtt fini

To allow ourselves to use a first class vma for the aliasing_ppgtt page
directory, we have to reorder the shutdown on module unload to remove
and unpin the aliasing_ppgtt before complaining about any objects left
in the GGTT.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Matthew Auld <matthew.william.auld@gmail.com>
Reviewed-by: Matthew Auld <matthew.william.auld@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180609090151.22007-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.c