From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 1/3] drm/i915/irq: Don't call gen8_gt_irq_handler() needlessly
Date: Mon, 9 Nov 2026 14:37:05 +0200 [thread overview]
Message-ID: <avG-cZIl6qt08iKX@intel.com> (raw)
In-Reply-To: <20261109123012.8110-2-ville.syrjala@linux.intel.com>
On Mon, Nov 09, 2026 at 02:30:10PM +0200, Ville Syrjala wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> We already have GEN8_GT_IRQS to teel whether any of the GT
s/teel/test/ lol
> interrupts need processing. If none of the relevant bits are
> set skip the whole gen8_gt_irq_handler(), as a micro optimization.
> We already do the equivalent for the display irqs, so why not
> do it for GT irqs as well.
>
> Originally gen8_gt_irq_handler() was a static inline, so this
> probably wouldn't have made sense. But these days it's a proper
> function call every time.
>
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> ---
> drivers/gpu/drm/i915/i915_irq.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c
> index 0762017d9089..448c4730d178 100644
> --- a/drivers/gpu/drm/i915/i915_irq.c
> +++ b/drivers/gpu/drm/i915/i915_irq.c
> @@ -455,7 +455,8 @@ static irqreturn_t gen8_irq_handler(int irq, void *arg)
> }
>
> /* Find, queue (onto bottom-halves), then clear each source */
> - gen8_gt_irq_handler(to_gt(dev_priv), master_ctl);
> + if (master_ctl & GEN8_GT_IRQS)
> + gen8_gt_irq_handler(to_gt(dev_priv), master_ctl);
>
> /* IRQs are synced during runtime_suspend, we don't require a wakeref */
> if (master_ctl & ~GEN8_GT_IRQS) {
> --
> 2.56.0
--
Ville Syrjälä
Intel
next prev parent reply other threads:[~2026-11-09 12:37 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ä [this message]
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
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=avG-cZIl6qt08iKX@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=intel-gfx@lists.freedesktop.org \
/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