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
Subject: Re: [PATCH 1/3] drm/i915/irq: Don't call gen8_gt_irq_handler() needlessly
Date: Mon, 09 Nov 2026 16:24:31 +0200	[thread overview]
Message-ID: <52d812a102fe9fc43a5811e700d8cf90085ff874@intel.com> (raw)
In-Reply-To: <20261109123012.8110-2-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>
>
> We already have GEN8_GT_IRQS to teel whether any of the GT
> 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>

With the typo fixed,

Reviewed-by: Jani Nikula <jani.nikula@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) {

-- 
Jani Nikula, Intel

  parent reply	other threads:[~2026-11-09 14:24 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 [this message]
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=52d812a102fe9fc43a5811e700d8cf90085ff874@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.