[Intel-gfx] [PATCH v7 01/12] drm/i915/perf: ensure we keep a reference on the driver

Chris Wilson chris at chris-wilson.co.uk
Tue Jul 9 09:35:34 UTC 2019


Quoting Lionel Landwerlin (2019-07-09 10:31:57)
> 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 at intel.com>
> Suggested-by: Chris Wilson <chris at chris-wilson.co.uk>
> Fixes: eec688e1420da5 ("drm/i915: Add i915 perf infrastructure")
Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>

There's a mean test you can try in igt, open the i915_perf fd, try to
unload the module, read from the fd, close fd, unload the module.
-Chris


More information about the Intel-gfx mailing list