]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/perf: ensure we keep a reference on the driver
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 9 Jul 2019 12:33:39 +0000 (15:33 +0300)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 9 Jul 2019 20:26:40 +0000 (21:26 +0100)
commita04368fe5cce0e48902bf834bc29b8d22d67372e
tree266ba870a3da9e9187103bb4458b1ed86fb22f5a
parentd2ddbb6f622a3ddc444edfbf92a8ced3581221b6
drm/i915/perf: ensure we keep a reference on the driver

The i915 perf stream has its own file descriptor and is tied to
reference of the driver. We haven't taken care of keep the driver
alive.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Suggested-by: Chris Wilson <chris@chris-wilson.co.uk>
Fixes: 41b38c4f4ec517 ("drm/i915: Add i915 perf infrastructure")
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190709123351.5645-2-lionel.g.landwerlin@intel.com
drivers/gpu/drm/i915/i915_perf.c