drm/xe: Add stats for tlb invalidation count
authorNirmoy Das <nirmoy.das@intel.com>
Sat, 10 Aug 2024 19:15:19 +0000 (21:15 +0200)
committerNirmoy Das <nirmoy.das@intel.com>
Mon, 12 Aug 2024 17:08:53 +0000 (19:08 +0200)
commit39fa14e5bdd037f50df0af408da7251e400b41fd
treedd30ca8bf244faeac61a144b0327fa0208be1227
parentacc4e41ec41fa28ae9fbdb1a2750525a7a242743
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>
drivers/gpu/drm/xe/xe_gt_stats.c
drivers/gpu/drm/xe/xe_gt_stats.h
drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c