From: Jani Nikula <jani.nikula@linux.intel.com>
To: Ville Syrjala <ville.syrjala@linux.intel.com>,
intel-gfx@lists.freedesktop.org
Cc: intel-xe@lists.freedesktop.org
Subject: Re: [PATCH 2/7] drm/i915/de: Pimp the intel_reg_rw tracepoint printf format
Date: Fri, 27 Nov 2026 16:36:58 +0200 [thread overview]
Message-ID: <d42d6e50ae618f5382189b407ed441a1d86474e3@intel.com> (raw)
In-Reply-To: <20261126212728.9034-3-ville.syrjala@linux.intel.com>
On Thu, 26 Nov 2026, Ville Syrjala <ville.syrjala@linux.intel.com> wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> Make the intel_reg_rw tracepoint prints a bit more pleasant:
> - Make the "read" vs. "write" field the same width so the
> following columns all line up when reading+writing the
> same registers
> - Zero pad the value to the full register width. Counting
> hex digits to figure out if I'm looking at bit 26 or bit
> 22 isn't particularly fun.
>
> I was also considering making the register offset field a
> constant width so things wouldn't shift around when the register
> offsets are in different ranges. But I don't really want to zero
> pad that as it makes it harder to see which register it is, and
> all the other options would add extra whitespace gaps into the
> string which doesn't seem like a good idea either. I guess most
> of our register offsets are in the five hex digit range anyway
> so this probably doesn't matter all that much.
An idea is to pad with space *before* the 0x, so that the values line up
too. But that shouldn't block this, can be tweaked to heart's content
later.
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
>
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_display_trace.h | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_display_trace.h b/drivers/gpu/drm/i915/display/intel_display_trace.h
> index fe69d203549b..0cd1eed0bccf 100644
> --- a/drivers/gpu/drm/i915/display/intel_display_trace.h
> +++ b/drivers/gpu/drm/i915/display/intel_display_trace.h
> @@ -978,9 +978,10 @@ TRACE_EVENT(intel_reg_rw,
> __entry->len = len;
> ),
>
> - TP_printk("%s reg=0x%x, len=%d, val=0x%x",
> - __entry->write ? "write" : "read",
> - __entry->reg, __entry->len, __entry->val)
> + TP_printk("%5s reg=0x%x, len=%d, val=0x%0*x",
> + __entry->write ? "write" : "read",
> + __entry->reg, __entry->len,
> + __entry->len * 2, __entry->val)
> );
>
> #endif /* __INTEL_DISPLAY_TRACE_H__ */
--
Jani Nikula, Intel
next prev parent reply other threads:[~2026-11-27 14:37 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 21:27 [PATCH 0/7] drm/i915/de: Nuke uncore Ville Syrjala
2026-11-26 21:27 ` [PATCH 1/7] drm/i915/de: Move the register tracepoint to display Ville Syrjala
2026-11-27 14:32 ` Jani Nikula
2026-11-26 21:27 ` [PATCH 2/7] drm/i915/de: Pimp the intel_reg_rw tracepoint printf format Ville Syrjala
2026-11-27 14:36 ` Jani Nikula [this message]
2026-11-26 21:27 ` [PATCH 3/7] drm/i915/de: Convert intel_de_read_fw() into a vfunc Ville Syrjala
2026-11-27 14:38 ` Jani Nikula
2026-11-26 21:27 ` [PATCH 4/7] drm/i915/de: Use raw readl()/writel()/etc for register access in display Ville Syrjala
2026-11-27 14:54 ` Jani Nikula
2026-11-26 21:27 ` [PATCH 5/7] drm/i915/de: Add intel_parent_mmio_regs() interface Ville Syrjala
2026-11-27 14:56 ` Jani Nikula
2026-11-26 21:27 ` [PATCH 6/7] drm/xe: Nuke the compat uncore stuff Ville Syrjala
2026-11-27 15:14 ` Jani Nikula
2026-11-27 15:34 ` Ville Syrjälä
2026-11-26 21:27 ` [PATCH 7/7] drm/i915/de: Document intel_de_write8()'s usage restrictions Ville Syrjala
2026-11-27 15:15 ` Jani Nikula
2026-11-26 22:27 ` ✓ i915.CI.BAT: success for drm/i915/de: Nuke uncore Patchwork
2026-11-26 23:43 ` ✗ CI.checkpatch: warning " Patchwork
2026-11-26 23:46 ` ✓ CI.KUnit: success " Patchwork
2026-11-27 0:24 ` ✓ Xe.CI.BAT: " Patchwork
2026-11-27 12:20 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-11-28 3:25 ` ✓ i915.CI.Full: success " Patchwork
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=d42d6e50ae618f5382189b407ed441a1d86474e3@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=ville.syrjala@linux.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.