Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] drm/xe/throttle: Log throttle reasons
@ 2024-11-29  7:43 Raag Jadav
  2024-11-29  7:52 ` ✓ CI.Patch_applied: success for drm/xe/throttle: Log throttle reasons (rev2) Patchwork
                   ` (8 more replies)
  0 siblings, 9 replies; 12+ messages in thread
From: Raag Jadav @ 2024-11-29  7:43 UTC (permalink / raw)
  To: intel-xe
  Cc: anshuman.gupta, Michal.Wajdeczko, ashutosh.dixit, rodrigo.vivi,
	matthew.brost, Raag Jadav

Log throttle register MMIO reads which will be useful for debugging.

Signed-off-by: Raag Jadav <raag.jadav@intel.com>
---

v2: Use gt oriented logging (Michal)
    Drop local variables (Ashutosh, Rodrigo)
    Move logging to status attribute and reduce spam (Matthew Brost)

 drivers/gpu/drm/xe/xe_gt_throttle.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/xe/xe_gt_throttle.c b/drivers/gpu/drm/xe/xe_gt_throttle.c
index 03b225364101..8db78d616b6f 100644
--- a/drivers/gpu/drm/xe/xe_gt_throttle.c
+++ b/drivers/gpu/drm/xe/xe_gt_throttle.c
@@ -8,6 +8,7 @@
 #include <regs/xe_gt_regs.h>
 #include "xe_device.h"
 #include "xe_gt.h"
+#include "xe_gt_printk.h"
 #include "xe_gt_sysfs.h"
 #include "xe_gt_throttle.h"
 #include "xe_mmio.h"
@@ -53,6 +54,7 @@ static u32 read_status(struct xe_gt *gt)
 {
 	u32 status = xe_gt_throttle_get_limit_reasons(gt) & GT0_PERF_LIMIT_REASONS_MASK;
 
+	xe_gt_dbg(gt, "throttle reasons: 0x%08x\n", status);
 	return status;
 }
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-12-02 17:15 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-29  7:43 [PATCH v2] drm/xe/throttle: Log throttle reasons Raag Jadav
2024-11-29  7:52 ` ✓ CI.Patch_applied: success for drm/xe/throttle: Log throttle reasons (rev2) Patchwork
2024-11-29  7:52 ` ✓ CI.checkpatch: " Patchwork
2024-11-29  7:53 ` ✓ CI.KUnit: " Patchwork
2024-11-29  8:19 ` ✓ CI.Build: " Patchwork
2024-11-29  8:23 ` ✓ CI.Hooks: " Patchwork
2024-11-29  8:25 ` ✓ CI.checksparse: " Patchwork
2024-11-29  8:50 ` ✓ Xe.CI.BAT: " Patchwork
2024-11-29 19:09 ` ✗ Xe.CI.Full: failure " Patchwork
2024-12-02  6:50 ` [PATCH v2] drm/xe/throttle: Log throttle reasons Riana Tauro
2024-12-02 14:02   ` Raag Jadav
2024-12-02 17:09     ` Rodrigo Vivi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox