]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/xe: Add clearing stats to GT debugfs
authorMatthew Brost <matthew.brost@intel.com>
Fri, 29 Aug 2025 17:22:31 +0000 (10:22 -0700)
committerMatthew Brost <matthew.brost@intel.com>
Wed, 3 Sep 2025 05:23:07 +0000 (22:23 -0700)
commit56e6d568854519ed8e3f57444b8073a32d963fe6
tree87165648c6fba53885d6e4c508019c1dbb9bef61
parent8d6f16f1f082881aa50ea7ae537b604dec647ed6
drm/xe: Add clearing stats to GT debugfs

It helpful to clear GT stats, run a test cases which is being profiled,
and look at the results of the stats from the individual test case. Make
stats entry writable and upon write clear the stats.

v5:
 - Drop clear_stats debugfs entry (Lucas)
v6:
 - Use xe_gt_stats_clear rather than helper (Michal)
 - Rework loop in xe_gt_stats_clear (Michal)

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Link: https://lore.kernel.org/r/20250829172232.1308004-2-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_gt_debugfs.c
drivers/gpu/drm/xe/xe_gt_stats.c
drivers/gpu/drm/xe/xe_gt_stats.h