All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alan Previn <alan.previn.teres.alexis@intel.com>
To: intel-xe@lists.freedesktop.org
Cc: Alan Previn <alan.previn.teres.alexis@intel.com>,
	julia.filipchuk@intel.com, matthew.brost@intel.com,
	rodrigo.vivi@intel.com, Zhanjun Dong <zhanjun.dong@intel.com>
Subject: [PATCH v8 1/2] drm/xe: Remove extra newlines from LRC snapshot dump
Date: Wed,  2 Sep 2026 15:44:16 -0700	[thread overview]
Message-ID: <20260902224417.879960-5-alan.previn.teres.alexis@intel.com> (raw)
In-Reply-To: <20260902224417.879960-4-alan.previn.teres.alexis@intel.com>

From: Zhanjun Dong <zhanjun.dong@intel.com>

The LRC snapshot printer adds an extra newline before the replay
offset and replay length lines. This leaves blank lines in the
HWCTX section of the dump.

Remove the stray newlines so the snapshot output remains compact
and consistently formatted.

Signed-off-by: Zhanjun Dong <zhanjun.dong@intel.com>
Reviewed-by: Julia Filipchuk <julia.filipchuk@intel.com>
---
 drivers/gpu/drm/xe/xe_lrc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/xe/xe_lrc.c b/drivers/gpu/drm/xe/xe_lrc.c
index 25fe9dbc9141..3b70b8a88259 100644
--- a/drivers/gpu/drm/xe/xe_lrc.c
+++ b/drivers/gpu/drm/xe/xe_lrc.c
@@ -2633,8 +2633,8 @@ void xe_lrc_snapshot_print(struct xe_lrc_snapshot *snapshot, struct drm_printer
 	}
 
 	drm_printf(p, "\n\t[HWCTX].length: 0x%lx\n", snapshot->lrc_size - LRC_PPHWSP_SIZE);
-	drm_printf(p, "\n\t[HWCTX].replay_offset: 0x%lx\n", snapshot->replay_offset);
-	drm_printf(p, "\n\t[HWCTX].replay_length: 0x%lx\n", snapshot->replay_size);
+	drm_printf(p, "\t[HWCTX].replay_offset: 0x%lx\n", snapshot->replay_offset);
+	drm_printf(p, "\t[HWCTX].replay_length: 0x%lx\n", snapshot->replay_size);
 
 	drm_puts(p, "\t[HWCTX].data: ");
 	for (; i < snapshot->lrc_size; i += sizeof(u32)) {
-- 
2.43.0


  reply	other threads:[~2026-09-02 22:44 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-31 15:54 [PATCH v7 0/2] drm/xe/guc: Compress GuC log and CTB dump with zstd Zhanjun Dong
2026-07-31 15:54 ` [PATCH v7 1/2] drm/xe: Remove extra newlines from LRC snapshot dump Zhanjun Dong
2026-07-31 15:54 ` [PATCH v7 2/2] drm/xe/guc: Compress GuC log and CTB dump with zstd Zhanjun Dong
2026-08-05  1:07   ` Rodrigo Vivi
2026-08-05 13:47     ` Souza, Jose
2026-07-31 16:00 ` ✗ CI.checkpatch: warning for drm/xe/guc: Compress GuC log and CTB dump with zstd (rev3) Patchwork
2026-07-31 16:01 ` ✓ CI.KUnit: success " Patchwork
2026-07-31 16:45 ` ✓ Xe.CI.BAT: " Patchwork
2026-07-31 17:39 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-09-02 22:44 ` [PATCH v8 0/2] drm/xe/guc: Compress GuC log and CTB dump with zstd Alan Previn
2026-09-02 22:44   ` Alan Previn [this message]
2026-09-02 22:44   ` [PATCH v8 2/2] " Alan Previn
2026-09-02 22:59     ` sashiko-bot
2026-09-02 23:37   ` [PATCH v8 0/2] " Teres Alexis, Alan Previn
  -- strict thread matches above, loose matches on Subject: below --
2026-09-02 23:40 Alan Previn
2026-09-02 23:40 ` [PATCH v8 1/2] drm/xe: Remove extra newlines from LRC snapshot dump Alan Previn

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=20260902224417.879960-5-alan.previn.teres.alexis@intel.com \
    --to=alan.previn.teres.alexis@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=julia.filipchuk@intel.com \
    --cc=matthew.brost@intel.com \
    --cc=rodrigo.vivi@intel.com \
    --cc=zhanjun.dong@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.