]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe/pmu: Initialize PMU event types based on first available GT
authorMatt Roper <matthew.d.roper@intel.com>
Mon, 13 Oct 2025 20:09:54 +0000 (13:09 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Tue, 14 Oct 2025 14:44:58 +0000 (07:44 -0700)
commit999ef874c1458e54ce221fcf2674eeb7c29508d5
tree82bf95c52a520b57208f4ee8b0e84f60e6beb10c
parent090e7fc422a5810b0267d2e83859e05b53007563
drm/xe/pmu: Initialize PMU event types based on first available GT

GT ID#0 (primary GT on tile 0) may not always be available if the
primary GT has been disabled via configfs.  Instead use the first
available GT when determining which PMU events are supported.  If there
are no GTs, then don't advertise any GT-related events.

Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://lore.kernel.org/r/20251013200944.2499947-36-matthew.d.roper@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
drivers/gpu/drm/xe/xe_pmu.c