All of lore.kernel.org
 help / color / mirror / Atom feed
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/3] drm/i915/dp: Drop using intel_de_read_notrace()
Date: Wed, 30 Sep 2026 17:53:33 +0300	[thread overview]
Message-ID: <971cd820abef78c947ee66a98b4c1a7a433ec361@intel.com> (raw)
In-Reply-To: <20260930115303.24285-2-ville.syrjala@linux.intel.com>

On Wed, 30 Sep 2026, Ville Syrjala <ville.syrjala@linux.intel.com> wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> I want to eliminate intel_de_read_notrace() to shrink the
> intel_de.h API a bit. That should help with the cleaning out
> the remaining uncore mess for xe vs. i915.
>
> Furthermore on xe intel_de_read_notrace() doesn't even do
> what it says on the tin, and instead all register accesses
> are traced anyway.
>
> Switch the last users of intel_de_read_notrace()
> (intel_dp_aux_wait_done() and intel_dp_aux_xfer())
> over to the normal intel_de_read().
>
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> ---
>  drivers/gpu/drm/i915/display/intel_dp_aux.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_dp_aux.c b/drivers/gpu/drm/i915/display/intel_dp_aux.c
> index 3cb07b0a901c..cd361164ecb8 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp_aux.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp_aux.c
> @@ -66,7 +66,7 @@ intel_dp_aux_wait_done(struct intel_dp *intel_dp)
>  	int ret;
>  
>  	if (intel_parent_irq_enabled(display)) {
> -#define C (((status = intel_de_read_notrace(display, ch_ctl)) & DP_AUX_CH_CTL_SEND_BUSY) == 0)
> +#define C (((status = intel_de_read(display, ch_ctl)) & DP_AUX_CH_CTL_SEND_BUSY) == 0)
>  		done = wait_event_timeout(display->gmbus.wait_queue, C,
>  					  msecs_to_jiffies_timeout(timeout_ms));
>  
> @@ -324,7 +324,7 @@ intel_dp_aux_xfer(struct intel_dp *intel_dp,
>  
>  	/* Try to wait for any previous AUX channel activity */
>  	for (try = 0; try < 3; try++) {
> -		status = intel_de_read_notrace(display, ch_ctl);
> +		status = intel_de_read(display, ch_ctl);
>  		if ((status & DP_AUX_CH_CTL_SEND_BUSY) == 0)
>  			break;
>  		msleep(1);

Sashiko has a point that there's now an extra trace call below this.

With that fixed,

Reviewed-by: Jani Nikula <jani.nikula@intel.com>



-- 
Jani Nikula, Intel

  parent reply	other threads:[~2026-09-30 14:53 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-30 11:53 [PATCH 1/3] drm/i915/gmbus: Switch GMBUS fully to _fw() register accesses Ville Syrjala
2026-09-30 11:53 ` [PATCH 2/3] drm/i915/dp: Drop using intel_de_read_notrace() Ville Syrjala
2026-09-30 12:02   ` sashiko-bot
2026-09-30 14:53   ` Jani Nikula [this message]
2026-10-01 15:16     ` Jani Nikula
2026-10-02 13:57   ` [PATCH v2 " Ville Syrjala
2026-09-30 11:53 ` [PATCH 3/3] drm/i915/de: Nuke intel_de_{read,write}_notrace() Ville Syrjala
2026-09-30 12:01   ` sashiko-bot
2026-09-30 14:54   ` Jani Nikula
2026-09-30 12:01 ` ✓ CI.KUnit: success for series starting with [1/3] drm/i915/gmbus: Switch GMBUS fully to _fw() register accesses Patchwork
2026-09-30 12:04 ` [PATCH 1/3] " sashiko-bot
2026-09-30 13:16 ` [PATCH v2 " Ville Syrjala
2026-09-30 14:14   ` Jani Nikula
2026-09-30 13:24 ` ✓ CI.KUnit: success for series starting with [v2,1/3] drm/i915/gmbus: Switch GMBUS fully to _fw() register accesses (rev2) Patchwork
2026-09-30 13:35 ` ✓ Xe.CI.BAT: success for series starting with [1/3] drm/i915/gmbus: Switch GMBUS fully to _fw() register accesses Patchwork
2026-09-30 13:52 ` ✓ i915.CI.BAT: " Patchwork
2026-09-30 15:02 ` ✓ Xe.CI.BAT: success for series starting with [v2,1/3] drm/i915/gmbus: Switch GMBUS fully to _fw() register accesses (rev2) Patchwork
2026-09-30 16:19 ` ✓ i915.CI.BAT: " Patchwork
2026-09-30 18:11 ` ✓ Xe.CI.FULL: " Patchwork
2026-10-01  6:08 ` ✓ i915.CI.Full: " Patchwork
2026-10-02 14:05 ` ✓ CI.KUnit: success for series starting with [v2,1/3] drm/i915/gmbus: Switch GMBUS fully to _fw() register accesses (rev3) Patchwork
2026-10-02 14:49 ` ✓ Xe.CI.BAT: " Patchwork
2026-10-02 16:18 ` ✗ i915.CI.BAT: failure " Patchwork
2026-10-02 16:26 ` ✗ Xe.CI.FULL: " 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=971cd820abef78c947ee66a98b4c1a7a433ec361@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.