From: Jani Nikula <jani.nikula@linux.intel.com>
To: Ville Syrjala <ville.syrjala@linux.intel.com>,
intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 3/3] drm/i915/irq: Check the master bit outside gen11_gu_misc_irq_ack()
Date: Mon, 09 Nov 2026 16:27:41 +0200 [thread overview]
Message-ID: <0ed8eef5270646619eb0ef30807f6f80327132be@intel.com> (raw)
In-Reply-To: <20261109123012.8110-4-ville.syrjala@linux.intel.com>
On Mon, 09 Nov 2026, Ville Syrjala <ville.syrjala@linux.intel.com> wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> Pull the master GEN11_GU_MISC_IRQ bit check out from
> gen11_gu_misc_irq_ack(). This is just to make the code more
> consistent, with all the other sub irq handlers already checking
> the master bit(s) in the top level irq handlers.
>
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
> ---
> drivers/gpu/drm/i915/i915_irq.c | 16 +++++++---------
> 1 file changed, 7 insertions(+), 9 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c
> index b3fc3e31a5d4..648d76600c49 100644
> --- a/drivers/gpu/drm/i915/i915_irq.c
> +++ b/drivers/gpu/drm/i915/i915_irq.c
> @@ -493,14 +493,10 @@ static inline void gen11_master_intr_enable(void __iomem * const regs)
> raw_reg_write(regs, GEN11_GFX_MSTR_IRQ, GEN11_MASTER_IRQ);
> }
>
> -static u32 gen11_gu_misc_irq_ack(void __iomem * const regs,
> - u32 master_ctl)
> +static u32 gen11_gu_misc_irq_ack(void __iomem * const regs)
> {
> u32 iir;
>
> - if (!(master_ctl & GEN11_GU_MISC_IRQ))
> - return 0;
> -
> iir = raw_reg_read(regs, GEN11_GU_MISC_IIR);
> if (likely(iir))
> raw_reg_write(regs, GEN11_GU_MISC_IIR, iir);
> @@ -514,8 +510,8 @@ static irqreturn_t gen11_irq_handler(int irq, void *arg)
> struct intel_display *display = i915->display;
> void __iomem * const regs = intel_uncore_regs(&i915->uncore);
> struct intel_gt *gt = to_gt(i915);
> + u32 gu_misc_iir = 0;
> u32 master_ctl;
> - u32 gu_misc_iir;
>
> if (!intel_irqs_enabled(i915))
> return IRQ_NONE;
> @@ -534,7 +530,8 @@ static irqreturn_t gen11_irq_handler(int irq, void *arg)
> if (master_ctl & GEN11_DISPLAY_IRQ)
> intel_display_irq_handler(display, NULL);
>
> - gu_misc_iir = gen11_gu_misc_irq_ack(regs, master_ctl);
> + if (master_ctl & GEN11_GU_MISC_IRQ)
> + gu_misc_iir = gen11_gu_misc_irq_ack(regs);
>
> gen11_master_intr_enable(regs);
>
> @@ -575,7 +572,7 @@ static irqreturn_t dg1_irq_handler(int irq, void *arg)
> struct intel_gt *gt = to_gt(i915);
> void __iomem * const regs = intel_uncore_regs(gt->uncore);
> u32 master_tile_ctl, master_ctl;
> - u32 gu_misc_iir;
> + u32 gu_misc_iir = 0;
>
> if (!intel_irqs_enabled(i915))
> return IRQ_NONE;
> @@ -603,7 +600,8 @@ static irqreturn_t dg1_irq_handler(int irq, void *arg)
> if (master_ctl & GEN11_DISPLAY_IRQ)
> intel_display_irq_handler(display, NULL);
>
> - gu_misc_iir = gen11_gu_misc_irq_ack(regs, master_ctl);
> + if (master_ctl & GEN11_GU_MISC_IRQ)
> + gu_misc_iir = gen11_gu_misc_irq_ack(regs);
>
> dg1_master_intr_enable(regs);
--
Jani Nikula, Intel
next prev parent reply other threads:[~2026-11-09 14:27 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-09 12:30 [PATCH 0/3] drm/i915/irq: Micro optimize gen8/gen11 irq handlers Ville Syrjala
2026-11-09 12:30 ` [PATCH 1/3] drm/i915/irq: Don't call gen8_gt_irq_handler() needlessly Ville Syrjala
2026-11-09 12:37 ` Ville Syrjälä
2026-11-09 14:24 ` Jani Nikula
2026-11-09 12:30 ` [PATCH 2/3] drm/i915/irq: Don't call gen11_gt_irq_handler() needlessly Ville Syrjala
2026-11-09 14:26 ` Jani Nikula
2026-11-09 12:30 ` [PATCH 3/3] drm/i915/irq: Check the master bit outside gen11_gu_misc_irq_ack() Ville Syrjala
2026-11-09 14:27 ` Jani Nikula [this message]
2026-11-09 17:57 ` ✓ i915.CI.BAT: success for drm/i915/irq: Micro optimize gen8/gen11 irq handlers Patchwork
2026-11-11 20:30 ` ✓ i915.CI.BAT: success for drm/i915/irq: Micro optimize gen8/gen11 irq handlers (rev2) Patchwork
2026-11-12 15:50 ` ✗ i915.CI.Full: failure " Patchwork
2026-11-13 2:55 ` ✓ i915.CI.BAT: success for drm/i915/irq: Micro optimize gen8/gen11 irq handlers (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=0ed8eef5270646619eb0ef30807f6f80327132be@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=intel-gfx@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.