]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/pmu: Handle PCI unbind
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Tue, 20 Oct 2020 10:08:21 +0000 (11:08 +0100)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Thu, 22 Oct 2020 09:06:29 +0000 (10:06 +0100)
commit3389b132195f410ef1402d8ffd0464d062955705
tree7b4fec62bde163f4662a3e6b433fdad2dac3260e
parent7e0cb07a6d4a72d6d90eb32e882fe80dd936987d
drm/i915/pmu: Handle PCI unbind

Mark the device as closed and keep references to driver data alive to
allow for safe driver unbind with active PMU clients. Perf core does not
otherwise handle this case so we have to do it manually like this.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20201020100822.543332-1-tvrtko.ursulin@linux.intel.com
drivers/gpu/drm/i915/i915_pmu.c
drivers/gpu/drm/i915/i915_pmu.h