Re: [Intel-gfx] [PATCH] drm/i915/pmu: Initialise the spinlock before registering

2019-10-25 Thread Matthew Auld
On Fri, 25 Oct 2019 at 17:55, Chris Wilson wrote: > > As the GT may be running in parallel with the module initialisation > code, we may enter i915_pmu_gt_parked() as we are executing > i915_pmu_register(). We have to init the spinlock before we mark > pmu.event_init so that it is available for

[Intel-gfx] [PATCH] drm/i915/pmu: Initialise the spinlock before registering

2019-10-25 Thread Chris Wilson
As the GT may be running in parallel with the module initialisation code, we may enter i915_pmu_gt_parked() as we are executing i915_pmu_register(). We have to init the spinlock before we mark pmu.event_init so that it is available for use by i915_pmu_gt_parked() (which may run as soon as