All of 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 3/5] drm/i915/irq: rename irq_mask to gen2_imr_mask
Date: Thu, 18 Sep 2025 20:32:11 +0300	[thread overview]
Message-ID: <aMxCGzpbC5ZDtI1q@intel.com> (raw)
In-Reply-To: <2c193663cd3ae524d8159b4216e45462017042fa.1758198300.git.jani.nikula@intel.com>

On Thu, Sep 18, 2025 at 03:25:46PM +0300, Jani Nikula wrote:
> Rename the struct drm_i915_private irq_mask member to gen2_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>

> ---
>  drivers/gpu/drm/i915/gt/gen2_engine_cs.c |  8 ++++----
>  drivers/gpu/drm/i915/i915_drv.h          |  4 ++--
>  drivers/gpu/drm/i915/i915_irq.c          | 16 ++++++++--------
>  3 files changed, 14 insertions(+), 14 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/gt/gen2_engine_cs.c b/drivers/gpu/drm/i915/gt/gen2_engine_cs.c
> index 8116fd5987e2..8c01fb6d4e7b 100644
> --- a/drivers/gpu/drm/i915/gt/gen2_engine_cs.c
> +++ b/drivers/gpu/drm/i915/gt/gen2_engine_cs.c
> @@ -292,15 +292,15 @@ int gen4_emit_bb_start(struct i915_request *rq,
>  
>  void gen2_irq_enable(struct intel_engine_cs *engine)
>  {
> -	engine->i915->irq_mask &= ~engine->irq_enable_mask;
> -	intel_uncore_write(engine->uncore, GEN2_IMR, engine->i915->irq_mask);
> +	engine->i915->gen2_imr_mask &= ~engine->irq_enable_mask;
> +	intel_uncore_write(engine->uncore, GEN2_IMR, engine->i915->gen2_imr_mask);
>  	intel_uncore_posting_read_fw(engine->uncore, GEN2_IMR);
>  }
>  
>  void gen2_irq_disable(struct intel_engine_cs *engine)
>  {
> -	engine->i915->irq_mask |= engine->irq_enable_mask;
> -	intel_uncore_write(engine->uncore, GEN2_IMR, engine->i915->irq_mask);
> +	engine->i915->gen2_imr_mask |= engine->irq_enable_mask;
> +	intel_uncore_write(engine->uncore, GEN2_IMR, engine->i915->gen2_imr_mask);
>  }
>  
>  void gen5_irq_enable(struct intel_engine_cs *engine)
> diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
> index 37970d8db255..03e497d2081e 100644
> --- a/drivers/gpu/drm/i915/i915_drv.h
> +++ b/drivers/gpu/drm/i915/i915_drv.h
> @@ -234,8 +234,8 @@ struct drm_i915_private {
>  	/* Sideband mailbox protection */
>  	struct mutex sb_lock;
>  
> -	/** Cached value of IMR to avoid reads in updating the bitfield */
> -	u32 irq_mask;
> +	/* Cached value of gen 2-4 IMR to avoid reads in updating the bitfield */
> +	u32 gen2_imr_mask;
>  
>  	bool preserve_bios_swizzle;
>  
> diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c
> index e5fdfd51b549..ab65402bc6bf 100644
> --- a/drivers/gpu/drm/i915/i915_irq.c
> +++ b/drivers/gpu/drm/i915/i915_irq.c
> @@ -897,7 +897,7 @@ static void i915_irq_reset(struct drm_i915_private *dev_priv)
>  
>  	gen2_error_reset(uncore, GEN2_ERROR_REGS);
>  	gen2_irq_reset(uncore, GEN2_IRQ_REGS);
> -	dev_priv->irq_mask = ~0u;
> +	dev_priv->gen2_imr_mask = ~0u;
>  }
>  
>  static void i915_irq_postinstall(struct drm_i915_private *dev_priv)
> @@ -908,7 +908,7 @@ static void i915_irq_postinstall(struct drm_i915_private *dev_priv)
>  
>  	gen2_error_init(uncore, GEN2_ERROR_REGS, ~i9xx_error_mask(dev_priv));
>  
> -	dev_priv->irq_mask =
> +	dev_priv->gen2_imr_mask =
>  		~(I915_DISPLAY_PIPE_A_EVENT_INTERRUPT |
>  		  I915_DISPLAY_PIPE_B_EVENT_INTERRUPT |
>  		  I915_MASTER_ERROR_INTERRUPT);
> @@ -920,16 +920,16 @@ static void i915_irq_postinstall(struct drm_i915_private *dev_priv)
>  		I915_USER_INTERRUPT;
>  
>  	if (DISPLAY_VER(display) >= 3) {
> -		dev_priv->irq_mask &= ~I915_ASLE_INTERRUPT;
> +		dev_priv->gen2_imr_mask &= ~I915_ASLE_INTERRUPT;
>  		enable_mask |= I915_ASLE_INTERRUPT;
>  	}
>  
>  	if (HAS_HOTPLUG(display)) {
> -		dev_priv->irq_mask &= ~I915_DISPLAY_PORT_INTERRUPT;
> +		dev_priv->gen2_imr_mask &= ~I915_DISPLAY_PORT_INTERRUPT;
>  		enable_mask |= I915_DISPLAY_PORT_INTERRUPT;
>  	}
>  
> -	gen2_irq_init(uncore, GEN2_IRQ_REGS, dev_priv->irq_mask, enable_mask);
> +	gen2_irq_init(uncore, GEN2_IRQ_REGS, dev_priv->gen2_imr_mask, enable_mask);
>  
>  	i915_display_irq_postinstall(display);
>  }
> @@ -999,7 +999,7 @@ static void i965_irq_reset(struct drm_i915_private *dev_priv)
>  
>  	gen2_error_reset(uncore, GEN2_ERROR_REGS);
>  	gen2_irq_reset(uncore, GEN2_IRQ_REGS);
> -	dev_priv->irq_mask = ~0u;
> +	dev_priv->gen2_imr_mask = ~0u;
>  }
>  
>  static u32 i965_error_mask(struct drm_i915_private *i915)
> @@ -1029,7 +1029,7 @@ static void i965_irq_postinstall(struct drm_i915_private *dev_priv)
>  
>  	gen2_error_init(uncore, GEN2_ERROR_REGS, ~i965_error_mask(dev_priv));
>  
> -	dev_priv->irq_mask =
> +	dev_priv->gen2_imr_mask =
>  		~(I915_ASLE_INTERRUPT |
>  		  I915_DISPLAY_PORT_INTERRUPT |
>  		  I915_DISPLAY_PIPE_A_EVENT_INTERRUPT |
> @@ -1047,7 +1047,7 @@ static void i965_irq_postinstall(struct drm_i915_private *dev_priv)
>  	if (IS_G4X(dev_priv))
>  		enable_mask |= I915_BSD_USER_INTERRUPT;
>  
> -	gen2_irq_init(uncore, GEN2_IRQ_REGS, dev_priv->irq_mask, enable_mask);
> +	gen2_irq_init(uncore, GEN2_IRQ_REGS, dev_priv->gen2_imr_mask, enable_mask);
>  
>  	i965_display_irq_postinstall(display);
>  }
> -- 
> 2.47.3

-- 
Ville Syrjälä
Intel

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

Thread overview: 36+ 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ä [this message]
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ä
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 18:27 ` ✗ i915.CI.BAT: failure for drm/i915/irq: clarify and refactor ->irq_mask (rev2) Patchwork
2025-09-18 18:52 ` ✓ i915.CI.BAT: success for drm/i915/irq: clarify and refactor ->irq_mask (rev3) 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
2025-09-19  4:07 ` ✗ i915.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=aMxCGzpbC5ZDtI1q@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 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.