summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/xe_gt_stats.c
diff options
context:
space:
mode:
authorNirmoy Das <nirmoy.das@intel.com>2024-08-10 22:15:19 +0300
committerNirmoy Das <nirmoy.das@intel.com>2024-08-12 20:08:53 +0300
commit39fa14e5bdd037f50df0af408da7251e400b41fd (patch)
treedd30ca8bf244faeac61a144b0327fa0208be1227 /drivers/gpu/drm/xe/xe_gt_stats.c
parentacc4e41ec41fa28ae9fbdb1a2750525a7a242743 (diff)
downloadlinux-39fa14e5bdd037f50df0af408da7251e400b41fd.tar.xz
drm/xe: Add stats for tlb invalidation count
Add stats for tlb invalidation count which can be viewed with per GT stat debugfs file. Example output: cat /sys/kernel/debug/dri/0/gt0/stats tlb_inval_count: 22 v2: fix #include order(Tejas) Cc: Lucas De Marchi <lucas.demarchi@intel.com> Cc: Matthew Brost <matthew.brost@intel.com> Cc: Michal Wajdeczko <michal.wajdeczko@intel.com> Cc: Sai Gowtham Ch <sai.gowtham.ch@intel.com> Reviewed-by: Tejas Upadhyay <tejas.upadhyay@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240810191522.18616-2-nirmoy.das@intel.com Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_gt_stats.c')
-rw-r--r--drivers/gpu/drm/xe/xe_gt_stats.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_gt_stats.c b/drivers/gpu/drm/xe/xe_gt_stats.c
index a054cd52329c..c7364a5aef8f 100644
--- a/drivers/gpu/drm/xe/xe_gt_stats.c
+++ b/drivers/gpu/drm/xe/xe_gt_stats.c
@@ -27,6 +27,7 @@ void xe_gt_stats_incr(struct xe_gt *gt, const enum xe_gt_stats_id id, int incr)
}
static const char *const stat_description[__XE_GT_STATS_NUM_IDS] = {
+ "tlb_inval_count",
};
/**