Skip to content

Commit 4a69c4f

Browse files
raagjadavrodrigovivi
authored andcommitted
drm/xe/throttle: Log throttle reasons
Log throttle register MMIO reads which will be useful for debugging. Signed-off-by: Raag Jadav <raag.jadav@intel.com> Reviewed-by: Riana Tauro <riana.tauro@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20241129074300.1304068-1-raag.jadav@intel.com Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
1 parent 8f109f2 commit 4a69c4f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/gpu/drm/xe/xe_gt_throttle.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <regs/xe_gt_regs.h>
99
#include "xe_device.h"
1010
#include "xe_gt.h"
11+
#include "xe_gt_printk.h"
1112
#include "xe_gt_sysfs.h"
1213
#include "xe_gt_throttle.h"
1314
#include "xe_mmio.h"
@@ -53,6 +54,7 @@ static u32 read_status(struct xe_gt *gt)
5354
{
5455
u32 status = xe_gt_throttle_get_limit_reasons(gt) & GT0_PERF_LIMIT_REASONS_MASK;
5556

57+
xe_gt_dbg(gt, "throttle reasons: 0x%08x\n", status);
5658
return status;
5759
}
5860

0 commit comments

Comments
 (0)