]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/gpu/drm/i915/i915_gem_gtt.c
drm/i915: Unbind any residual objects/vma from the Global GTT on shutdown
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 10 Feb 2017 16:35:22 +0000 (16:35 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 10 Feb 2017 19:10:05 +0000 (19:10 +0000)
commit94d4a2a9aeec18d9a67f3353bfb9861402719fbd
treedd34bf1814a8737ba1c944d5a6592055b483f1d9
parentcad3688ff00656face6c78a1028fd02288b4a960
drm/i915: Unbind any residual objects/vma from the Global GTT on shutdown

We may unload the PCI device before all users (such as dma-buf) are
completely shutdown. This may leave VMA in the global GTT which we want
to revoke, whilst keeping the objects themselves around to service the
dma-buf.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170210163523.17533-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.c