[PATCH 0/8] Fix i915 pmu on bind/unbind

Lucas De Marchi lucas.demarchi at intel.com
Fri Oct 11 22:54:22 UTC 2024


Add i915 changes on top of the fixes proposed at
https://lore.kernel.org/all/20241008183501.1354695-1-lucas.demarchi@intel.com/

First patch is the patches needed from that series, squashed to avoid
reviewing them here and multiple versions.

Second and third patches fix the issues with i915 unbind. The rest are
"nice to have refactors/cleanups".

This series went through the sames bind/unbind tests as they dummy_pmu.
I do get some warnings, but none related to PMU - they are related with
other parts of i915 not behaving correctly on fast bind/unbind
sequences:

	- i915 0000:03:00.0: [drm] *ERROR* Failed to setup i915 fbdev emulation (ret=-512)

	and

	- RIP: 0010:drm_mode_config_cleanup+0x2f4/0x310 [drm]


Lucas De Marchi (8):
  squashed series - 20241008183501.1354695-1-lucas.demarchi at intel.com
  drm/i915/pmu: Let resource survive unbind
  drm/i915/pmu: Fix crash due to use-after-free
  drm/i915/pmu: Rename cpuhp_slot to cpuhp_state
  drm/i915/pmu: Stop setting event_init to NULL
  drm/i915/pmu: Replace closed with registered
  drm/i915/pmu: Remove pointless synchronize_rcu() call
  drm/i915/pmu: Release open events when unregistering

 drivers/gpu/drm/i915/i915_pmu.c | 129 +++++++++++++++++++++-----------
 drivers/gpu/drm/i915/i915_pmu.h |  10 ++-
 include/linux/perf_event.h      |  12 +++
 kernel/events/core.c            |  37 +++++++--
 4 files changed, 137 insertions(+), 51 deletions(-)

-- 
2.47.0



More information about the Intel-gfx mailing list