[Intel-gfx] [PATCH] drm/i915/pmu: Initialise the spinlock before registering
Matthew Auld
matthew.william.auld at gmail.com
Fri Oct 25 17:39:17 UTC 2019
On Fri, 25 Oct 2019 at 17:55, Chris Wilson <chris at chris-wilson.co.uk> 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 use by i915_pmu_gt_parked()
> (which may run as soon as event_init is set).
>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=112127
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
Reviewed-by: Matthew Auld <matthew.auld at intel.com>
More information about the Intel-gfx
mailing list