Re: [Intel-gfx] [PATCH i-g-t] perf: Avoid the regular drm_open_driver exithandler

2020-02-25 Thread Petri Latvala
On Tue, Feb 25, 2020 at 11:44:54AM +, Chris Wilson wrote: > Due to the way i915_perf_open() works, it installs a wakeref on the fd. > This wakeref prevents the normal drm_open_driver() exithandler from > returning (as that waits for all wakerefs to ensure the GPU is idle). We > need to

[Intel-gfx] [PATCH i-g-t] perf: Avoid the regular drm_open_driver exithandler

2020-02-25 Thread Chris Wilson
Due to the way i915_perf_open() works, it installs a wakeref on the fd. This wakeref prevents the normal drm_open_driver() exithandler from returning (as that waits for all wakerefs to ensure the GPU is idle). We need to manually control the nesting of cleanup, and so need to use