OSDN Git Service

drm/i915: Split device release from unload
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 10 Feb 2017 16:35:21 +0000 (16:35 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 10 Feb 2017 19:10:05 +0000 (19:10 +0000)
commitcad3688ff00656face6c78a1028fd02288b4a960
treefe9ae005cebfcbf5f44a02daf3a73868a105a33e
parent317eaa95081bfa081a5bf147e175b4e007e5a105
drm/i915: Split device release from unload

We may need to keep our memory management alive after we have unloaded
the physical pci device. For example, if we have exported an object via
dmabuf, that will keep the device around but the pci device may be
removed before the dmabuf itself is released, use of the pci hardware
will be revoked, but the memory and object management needs to persist
for the dmabuf.

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-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_drv.c