]> 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)
committerJani Nikula <jani.nikula@intel.com>
Mon, 29 Jul 2019 12:45:49 +0000 (15:45 +0300)
commit1711182d261169c269379179cc13ac4001d08e09
treeb550136f2f94a09065a5f7ae006cfe78bb8c9e25
parent6bcd49064951ead041b1c7d0e04a79a2c7eecf68
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: b3eb6faf8152d3 ("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
(cherry picked from commit a5af1df716c123a09341351008fc497bea137b77)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_perf.c