]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/xe: Add more SVM GT stats
authorMatthew Brost <matthew.brost@intel.com>
Fri, 29 Aug 2025 17:22:32 +0000 (10:22 -0700)
committerMatthew Brost <matthew.brost@intel.com>
Wed, 3 Sep 2025 05:23:08 +0000 (22:23 -0700)
commit4208fac3dce52d4328007028ec88dd5d0e78dcf2
treed46b9e0a0451361f4f0ed30d61c45435cc559943
parent56e6d568854519ed8e3f57444b8073a32d963fe6
drm/xe: Add more SVM GT stats

Add more SVM GT stats which give visibility to where time is spent in
the SVM page fault handler. Stats include number of faults at a given
size, total SVM page fault time, migration time in us, copy time in us,
copy kb, get pages time in us, and bind time in us. Will help in tuning
SVM for performance.

v2:
 - Include local changes
v3:
 - Add tlb invalidation + valid page fault + per size copy size stats
v4:
 - Ensure gt not NULL when incrementing SVM copy stats
 - Normalize stats names
 - Use magic macros to generate increment functions for ranges
v7:
 - Use DEF_STAT_STR (Michal)

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Francois Dugast <francois.dugast@intel.com>
Link: https://lore.kernel.org/r/20250829172232.1308004-3-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_gt_stats.c
drivers/gpu/drm/xe/xe_gt_stats_types.h
drivers/gpu/drm/xe/xe_svm.c