diff options
| author | 2026-02-17 12:05:52 -0800 | |
|---|---|---|
| committer | 2026-02-17 18:12:10 -0800 | |
| commit | 9ff885ef8b428febbf41f13a511755d74704949e (patch) | |
| tree | c6d36a58ce1ddc4979d66f1619edad5c762e4ea9 /scripts/Makefile.thinlto | |
| parent | drm/xe/hwmon: Prevent unintended VRAM channel creation (diff) | |
drm/xe: Convert GT stats to per-cpu counters
Current GT statistics use atomic64_t counters. Atomic operations incur
a global coherency penalty.
Transition to dynamic per-cpu counters using alloc_percpu(). This allows
stats to be incremented via this_cpu_add(), which compiles to a single
non-locking instruction. This approach keeps the hot-path updates local
to the CPU, avoiding expensive cross-core cache invalidation traffic.
Use for_each_possible_cpu() during aggregation and clear operations to
ensure data consistency across CPU hotplug events.
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Stuart Summers <stuart.summers@intel.com>
Link: https://patch.msgid.link/20260217200552.596718-1-matthew.brost@intel.com
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
