From: Xin Wang <x.wang@intel.com>
To: intel-xe@lists.freedesktop.org
Cc: matthew.d.roper@intel.com, shuicheng.lin@intel.com,
Xin Wang <x.wang@intel.com>
Subject: [PATCH v2] drm/xe: highlight reserved PAT entries in dump output
Date: Wed, 29 Oct 2025 23:39:59 +0000 [thread overview]
Message-ID: <20251029233959.778689-1-x.wang@intel.com> (raw)
In-Reply-To: <20251022215504.5559-1-x.wang@intel.com>
Enhance the PAT table dump by marking reserved entries with an
asterisk (*) for improved readability and debugging.
V2:
Added a note in the "PAT table" header explaining the meaning of
the asterisk(*) to improve clarity for readers. (Matt Roper)
Signed-off-by: Xin Wang <x.wang@intel.com>
---
drivers/gpu/drm/xe/xe_pat.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_pat.c b/drivers/gpu/drm/xe/xe_pat.c
index 7649b554942a..d9f9d5bb8e5d 100644
--- a/drivers/gpu/drm/xe/xe_pat.c
+++ b/drivers/gpu/drm/xe/xe_pat.c
@@ -368,7 +368,7 @@ static int xe2_dump(struct xe_gt *gt, struct drm_printer *p)
if (!fw_ref)
return -ETIMEDOUT;
- drm_printf(p, "PAT table:\n");
+ drm_printf(p, "PAT table: (* = reserved entry)\n");
for (i = 0; i < xe->pat.n_entries; i++) {
if (xe_gt_is_media_type(gt))
@@ -376,14 +376,14 @@ static int xe2_dump(struct xe_gt *gt, struct drm_printer *p)
else
pat = xe_gt_mcr_unicast_read_any(gt, XE_REG_MCR(_PAT_INDEX(i)));
- drm_printf(p, "PAT[%2d] = [ %u, %u, %u, %u, %u, %u ] (%#8x)\n", i,
+ drm_printf(p, "PAT[%2d] = [ %u, %u, %u, %u, %u, %u ] (%#8x)%s\n", i,
!!(pat & XE2_NO_PROMOTE),
!!(pat & XE2_COMP_EN),
REG_FIELD_GET(XE2_L3_CLOS, pat),
REG_FIELD_GET(XE2_L3_POLICY, pat),
REG_FIELD_GET(XE2_L4_POLICY, pat),
REG_FIELD_GET(XE2_COH_MODE, pat),
- pat);
+ pat, xe->pat.table[i].coh_mode ? "" : " *");
}
/*
@@ -426,18 +426,18 @@ static int xe3p_xpc_dump(struct xe_gt *gt, struct drm_printer *p)
if (!fw_ref)
return -ETIMEDOUT;
- drm_printf(p, "PAT table:\n");
+ drm_printf(p, "PAT table: (* = reserved entry)\n");
for (i = 0; i < xe->pat.n_entries; i++) {
pat = xe_gt_mcr_unicast_read_any(gt, XE_REG_MCR(_PAT_INDEX(i)));
- drm_printf(p, "PAT[%2d] = [ %u, %u, %u, %u, %u ] (%#8x)\n", i,
+ drm_printf(p, "PAT[%2d] = [ %u, %u, %u, %u, %u ] (%#8x)%s\n", i,
!!(pat & XE2_NO_PROMOTE),
REG_FIELD_GET(XE2_L3_CLOS, pat),
REG_FIELD_GET(XE2_L3_POLICY, pat),
REG_FIELD_GET(XE2_L4_POLICY, pat),
REG_FIELD_GET(XE2_COH_MODE, pat),
- pat);
+ pat, xe->pat.table[i].coh_mode ? "" : " *");
}
/*
--
2.43.0
next prev parent reply other threads:[~2025-10-29 23:40 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-22 21:55 [PATCH] drm/xe: Dump PAT entries with reserved mark Xin Wang
2025-10-22 22:09 ` Wang, X
2025-10-29 19:48 ` Matt Roper
2025-10-29 21:28 ` Wang, X
2025-10-29 21:39 ` Matt Roper
2025-10-23 1:50 ` ✓ CI.KUnit: success for " Patchwork
2025-10-23 2:28 ` ✓ Xe.CI.BAT: " Patchwork
2025-10-23 9:07 ` ✗ Xe.CI.Full: failure " Patchwork
2025-10-29 23:39 ` Xin Wang [this message]
2025-10-30 16:35 ` [PATCH v2] drm/xe: highlight reserved PAT entries in dump output Matt Roper
2025-10-30 19:55 ` Wang, X
2025-10-30 20:13 ` Matt Roper
2025-10-30 20:38 ` Wang, X
2025-10-30 16:15 ` Xin Wang
2025-10-30 18:31 ` ✓ CI.KUnit: success for drm/xe: Dump PAT entries with reserved mark (rev2) Patchwork
2025-10-30 19:09 ` ✓ Xe.CI.BAT: " Patchwork
2025-10-30 22:17 ` [PATCH v3] drm/xe: highlight reserved PAT entries in dump output Xin Wang
2025-10-30 22:30 ` Matt Roper
2025-10-31 0:40 ` ✗ Xe.CI.Full: failure for drm/xe: Dump PAT entries with reserved mark (rev2) Patchwork
2025-10-31 1:14 ` ✓ CI.KUnit: success for drm/xe: Dump PAT entries with reserved mark (rev3) Patchwork
2025-10-31 2:04 ` ✓ Xe.CI.BAT: " Patchwork
2025-10-31 11:04 ` ✓ Xe.CI.Full: " Patchwork
2025-10-31 15:49 ` Matt Roper
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251029233959.778689-1-x.wang@intel.com \
--to=x.wang@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=matthew.d.roper@intel.com \
--cc=shuicheng.lin@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox