]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc10eddb49ab319b0df073e499b0ca4cfd859b7da
treefe9ae005cebfcbf5f44a02daf3a73868a105a33e
parentc98c0d4997dc1b275be4387c962ab738a2e109d3
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