Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Jani Nikula <jani.nikula@intel.com>
Cc: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Subject: Re: [PATCH 4/5] drm/i915/irq: rename de_irq_mask[] to de_pipe_imr_mask[]
Date: Thu, 18 Sep 2025 20:33:15 +0300	[thread overview]
Message-ID: <aMxCWz284u0uhtnQ@intel.com> (raw)
In-Reply-To: <55bbf17df871331c2c34af748cf9cf812d6a65d7.1758198300.git.jani.nikula@intel.com>

On Thu, Sep 18, 2025 at 03:25:47PM +0300, Jani Nikula wrote:
> Rename the struct intel_display de_irq_mask[] member to
> de_pipe_imr_mask[] to reflect its usage more accurately.
> 
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

> ---
>  .../gpu/drm/i915/display/intel_display_core.h    |  6 +++++-
>  drivers/gpu/drm/i915/display/intel_display_irq.c | 16 ++++++++--------
>  2 files changed, 13 insertions(+), 9 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/display/intel_display_core.h b/drivers/gpu/drm/i915/display/intel_display_core.h
> index 4a52bbe327b7..df4da52cbdb3 100644
> --- a/drivers/gpu/drm/i915/display/intel_display_core.h
> +++ b/drivers/gpu/drm/i915/display/intel_display_core.h
> @@ -485,7 +485,11 @@ struct intel_display {
>  		 * bitfield.
>  		 */
>  		u32 ilk_de_imr_mask;
> -		u32 de_irq_mask[I915_MAX_PIPES];
> +		/*
> +		 * Cached value of BDW+ DE pipe IMR to avoid reads in updating
> +		 * the bitfield.
> +		 */
> +		u32 de_pipe_imr_mask[I915_MAX_PIPES];
>  		u32 pipestat_irq_mask[I915_MAX_PIPES];
>  	} irq;
>  
> diff --git a/drivers/gpu/drm/i915/display/intel_display_irq.c b/drivers/gpu/drm/i915/display/intel_display_irq.c
> index f4ba9b08e044..93c2e42f98c9 100644
> --- a/drivers/gpu/drm/i915/display/intel_display_irq.c
> +++ b/drivers/gpu/drm/i915/display/intel_display_irq.c
> @@ -215,13 +215,13 @@ static void bdw_update_pipe_irq(struct intel_display *display,
>  	if (drm_WARN_ON(display->drm, !intel_irqs_enabled(dev_priv)))
>  		return;
>  
> -	new_val = display->irq.de_irq_mask[pipe];
> +	new_val = display->irq.de_pipe_imr_mask[pipe];
>  	new_val &= ~interrupt_mask;
>  	new_val |= (~enabled_irq_mask & interrupt_mask);
>  
> -	if (new_val != display->irq.de_irq_mask[pipe]) {
> -		display->irq.de_irq_mask[pipe] = new_val;
> -		intel_de_write(display, GEN8_DE_PIPE_IMR(pipe), display->irq.de_irq_mask[pipe]);
> +	if (new_val != display->irq.de_pipe_imr_mask[pipe]) {
> +		display->irq.de_pipe_imr_mask[pipe] = new_val;
> +		intel_de_write(display, GEN8_DE_PIPE_IMR(pipe), display->irq.de_pipe_imr_mask[pipe]);
>  		intel_de_posting_read(display, GEN8_DE_PIPE_IMR(pipe));
>  	}
>  }
> @@ -2085,8 +2085,8 @@ void gen8_irq_power_well_post_enable(struct intel_display *display,
>  
>  	for_each_pipe_masked(display, pipe, pipe_mask)
>  		intel_display_irq_regs_init(display, GEN8_DE_PIPE_IRQ_REGS(pipe),
> -					    display->irq.de_irq_mask[pipe],
> -					    ~display->irq.de_irq_mask[pipe] | extra_ier);
> +					    display->irq.de_pipe_imr_mask[pipe],
> +					    ~display->irq.de_pipe_imr_mask[pipe] | extra_ier);
>  
>  	spin_unlock_irq(&display->irq.lock);
>  }
> @@ -2300,12 +2300,12 @@ void gen8_de_irq_postinstall(struct intel_display *display)
>  	}
>  
>  	for_each_pipe(display, pipe) {
> -		display->irq.de_irq_mask[pipe] = ~de_pipe_masked;
> +		display->irq.de_pipe_imr_mask[pipe] = ~de_pipe_masked;
>  
>  		if (intel_display_power_is_enabled(display,
>  						   POWER_DOMAIN_PIPE(pipe)))
>  			intel_display_irq_regs_init(display, GEN8_DE_PIPE_IRQ_REGS(pipe),
> -						    display->irq.de_irq_mask[pipe],
> +						    display->irq.de_pipe_imr_mask[pipe],
>  						    de_pipe_enables);
>  	}
>  
> -- 
> 2.47.3

-- 
Ville Syrjälä
Intel

  reply	other threads:[~2025-09-18 17:33 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-18 12:25 [PATCH 0/5] drm/i915/irq: clarify and refactor ->irq_mask Jani Nikula
2025-09-18 12:25 ` [PATCH 1/5] drm/i915/irq: use a dedicated IMR cache for VLV/CHV Jani Nikula
2025-09-18 17:31   ` Ville Syrjälä
2025-09-18 12:25 ` [PATCH 2/5] drm/i915/irq: use a dedicated IMR cache for gen 5-7 Jani Nikula
2025-09-18 17:31   ` Ville Syrjälä
2025-09-18 12:25 ` [PATCH 3/5] drm/i915/irq: rename irq_mask to gen2_imr_mask Jani Nikula
2025-09-18 17:32   ` Ville Syrjälä
2025-09-18 12:25 ` [PATCH 4/5] drm/i915/irq: rename de_irq_mask[] to de_pipe_imr_mask[] Jani Nikula
2025-09-18 17:33   ` Ville Syrjälä [this message]
2025-09-18 12:25 ` [PATCH 5/5] drm/i915/irq: add ilk_display_irq_reset() Jani Nikula
2025-09-18 12:35   ` Ville Syrjälä
2025-09-18 12:42     ` Jani Nikula
2025-09-18 12:41   ` [PATCH v2] " Jani Nikula
2025-09-18 12:54     ` Ville Syrjälä
2025-09-18 13:46       ` Jani Nikula
2025-09-18 13:38   ` [PATCH v3] " Jani Nikula
2025-09-18 17:25     ` Ville Syrjälä
2025-09-19  7:17       ` Jani Nikula
2025-09-18 12:46 ` ✗ CI.checkpatch: warning for drm/i915/irq: clarify and refactor ->irq_mask Patchwork
2025-09-18 12:47 ` ✓ CI.KUnit: success " Patchwork
2025-09-18 13:02 ` ✗ CI.checksparse: warning " Patchwork
2025-09-18 13:30 ` ✗ Xe.CI.BAT: failure " Patchwork
2025-09-18 13:36 ` ✗ CI.checkpatch: warning for drm/i915/irq: clarify and refactor ->irq_mask (rev2) Patchwork
2025-09-18 13:37 ` ✓ CI.KUnit: success " Patchwork
2025-09-18 13:52 ` ✗ CI.checksparse: warning " Patchwork
2025-09-18 14:18 ` ✓ Xe.CI.BAT: success " Patchwork
2025-09-18 14:30 ` ✗ CI.checkpatch: warning for drm/i915/irq: clarify and refactor ->irq_mask (rev3) Patchwork
2025-09-18 14:32 ` ✓ CI.KUnit: success " Patchwork
2025-09-18 14:47 ` ✗ CI.checksparse: warning " Patchwork
2025-09-18 15:06 ` ✓ Xe.CI.BAT: success " Patchwork
2025-09-18 21:00 ` ✗ Xe.CI.Full: failure for drm/i915/irq: clarify and refactor ->irq_mask Patchwork
2025-09-18 22:30 ` ✓ Xe.CI.Full: success for drm/i915/irq: clarify and refactor ->irq_mask (rev2) Patchwork
2025-09-18 23:11 ` ✗ Xe.CI.Full: failure for drm/i915/irq: clarify and refactor ->irq_mask (rev3) 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=aMxCWz284u0uhtnQ@intel.com \
    --to=ville.syrjala@linux.intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=jani.nikula@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