projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46c63b6
)
drm/xe: Add dbg messages for LRC WAs
author
Lucas De Marchi
<lucas.demarchi@intel.com>
Wed, 6 Sep 2023 01:20:52 +0000
(18:20 -0700)
committer
Rodrigo Vivi
<rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:41:03 +0000
(11:41 -0500)
Just like the GT and engine workarounds, add debug message with the
final value being written to the register for easy debugging.
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link:
https://lore.kernel.org/r/20230906012053.1733755-4-lucas.demarchi@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_gt.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/xe/xe_gt.c
b/drivers/gpu/drm/xe/xe_gt.c
index 3d6a7c11bac194bf7dde593430d5c768ef1d5b4b..9e226b8a005af3e33809fcb521160c4d68ce044b 100644
(file)
--- a/
drivers/gpu/drm/xe/xe_gt.c
+++ b/
drivers/gpu/drm/xe/xe_gt.c
@@
-133,10
+133,14
@@
static int emit_wa_job(struct xe_gt *gt, struct xe_exec_queue *q)
++count;
if (count) {
+ xe_gt_dbg(gt, "LRC WA %s save-restore batch\n", sr->name);
+
bb->cs[bb->len++] = MI_LOAD_REGISTER_IMM(count);
xa_for_each(&sr->xa, reg, entry) {
bb->cs[bb->len++] = reg;
bb->cs[bb->len++] = entry->set_bits;
+ xe_gt_dbg(gt, "REG[0x%lx] = 0x%08x", reg,
+ entry->set_bits);
}
}