Re: [Intel-gfx] [PATCH] drm/i915/pmu: Check is pmu is closed before stopping event

2023-10-23 Thread Jani Nikula
On Thu, 19 Oct 2023, Umesh Nerlige Ramappa wrote: > When the driver unbinds, pmu is unregistered and i915->uabi_engines is > set to RB_ROOT. Due to this, when i915 PMU tries to stop the engine > events, it issues a warn_on because engine lookup fails. > > All perf hooks are taking care of this us

[Intel-gfx] [PATCH] drm/i915/pmu: Check is pmu is closed before stopping event

2023-10-19 Thread Umesh Nerlige Ramappa
When the driver unbinds, pmu is unregistered and i915->uabi_engines is set to RB_ROOT. Due to this, when i915 PMU tries to stop the engine events, it issues a warn_on because engine lookup fails. All perf hooks are taking care of this using a pmu->closed flag that is set when PMU unregisters. The

[Intel-gfx] [PATCH] drm/i915/pmu: Check is pmu is closed before stopping event

2023-10-19 Thread Umesh Nerlige Ramappa
When the driver unbinds, pmu is unregistered and i915->uabi_engines is set to RB_ROOT. Due to this, when i915 PMU tries to stop the engine events, it issues a warn_on because engine lookup fails. All perf hooks are taking care of this using a pmu->closed flag that is set when PMU unregisters. The