]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: Add GT stats ktime helpers
authorMatthew Brost <matthew.brost@intel.com>
Fri, 12 Dec 2025 18:28:46 +0000 (10:28 -0800)
committerMatthew Brost <matthew.brost@intel.com>
Mon, 15 Dec 2025 22:02:56 +0000 (14:02 -0800)
commitce3d65549c7a4ea4497546f49d18128281258ec5
treee42a1eac6d05292d9c74ae0bd9ae4aa8ffa4301a
parent4ac9048d05017449dde6320694d6e4700a8b9f5f
drm/xe: Add GT stats ktime helpers

Normalize GT stats that record execution periods in code paths by
adding helpers to perform the ktime calculation. Use these helpers in
the SVM code.

Suggested-by: Francois Dugast <francois.dugast@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patch.msgid.link/20251212182847.1683222-7-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_gt_stats.h
drivers/gpu/drm/xe/xe_svm.c