[PATCH 0/2] Add debugfs file to dump tlb inval stats

Nirmoy Das nirmoy.das at intel.com
Tue Jul 23 11:16:08 UTC 2024


TLB inval stats should be useful for IGT tests as requested 
by Sai.

With this series the output looks like: 

sudo cat  /sys/kernel/debug/dri/0/gt0/tlb_stats; sudo cat  /sys/kernel/debug/dri/0/gt1/tlb_stats
GT0, TLB Requests sent: 321, received: 321
GT1, TLB Requests sent: 212, received: 212

Cc: Matthew Brost <matthew.brost at intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi at intel.com>
Cc: Sai Gowtham Ch <sai.gowtham.ch at intel.com>
Nirmoy Das (2):
  drm/xe: Add sent and recv counters for tlb invalidations
  drm/xe: Create debugfs for tlb inval stats

 drivers/gpu/drm/xe/xe_gt_debugfs.c          |  9 +++++
 drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c | 44 +++++++++++++++------
 drivers/gpu/drm/xe/xe_gt_tlb_invalidation.h |  2 +
 drivers/gpu/drm/xe/xe_gt_types.h            |  4 ++
 4 files changed, 48 insertions(+), 11 deletions(-)

-- 
2.42.0



More information about the Intel-xe mailing list