From: Jani Nikula <jani.nikula@linux.intel.com>
To: Ville Syrjala <ville.syrjala@linux.intel.com>,
intel-xe@lists.freedesktop.org
Subject: Re: [PATCH 2/4] drm/xe: Extract xe_gu_misc_irq_{postinstall,reset}()
Date: Mon, 09 Nov 2026 14:00:16 +0200 [thread overview]
Message-ID: <724fccfff0c8aa0f4b2146a9a3ef25656f10ca4c@intel.com> (raw)
In-Reply-To: <20261109114554.19597-3-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>
>
> Make the GU_MISC interrupt setup a bit nicer by extracting
> it to its own functions.
>
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
> ---
> drivers/gpu/drm/xe/xe_irq.c | 27 ++++++++++++++++++---------
> 1 file changed, 18 insertions(+), 9 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_irq.c b/drivers/gpu/drm/xe/xe_irq.c
> index 320fc64e7d4f..7c39d7a3cf8a 100644
> --- a/drivers/gpu/drm/xe/xe_irq.c
> +++ b/drivers/gpu/drm/xe/xe_irq.c
> @@ -645,6 +645,12 @@ static void vf_irq_reset(struct xe_device *xe)
> }
> }
>
> +static void xe_gu_misc_irq_reset(struct xe_device *xe)
> +{
> + mask_and_disable(xe_device_get_root_tile(xe),
> + GU_MISC_IRQ_OFFSET);
> +}
> +
> static void xe_irq_reset(struct xe_device *xe)
> {
> struct xe_tile *tile;
> @@ -665,8 +671,7 @@ static void xe_irq_reset(struct xe_device *xe)
> xelp_irq_reset(tile);
> }
>
> - tile = xe_device_get_root_tile(xe);
> - mask_and_disable(tile, GU_MISC_IRQ_OFFSET);
> + xe_gu_misc_irq_reset(xe);
> xe_display_irq_reset(xe);
> xe_i2c_irq_reset(xe);
>
> @@ -696,6 +701,16 @@ static void vf_irq_postinstall(struct xe_device *xe)
> xe_assert(xe, xe_device_has_memirq(xe));
> }
>
> +static void xe_gu_misc_irq_postinstall(struct xe_device *xe)
> +{
> + /*
> + * ASLE backlight operations are reported via GUnit GSE interrupts
> + * on the root tile.
> + */
> + unmask_and_enable(xe_device_get_root_tile(xe),
> + GU_MISC_IRQ_OFFSET, GU_MISC_GSE);
> +}
> +
> static void xe_irq_postinstall(struct xe_device *xe)
> {
> if (IS_SRIOV_VF(xe))
> @@ -711,13 +726,7 @@ static void xe_irq_postinstall(struct xe_device *xe)
>
> xe_display_irq_postinstall(xe);
> xe_i2c_irq_postinstall(xe);
> -
> - /*
> - * ASLE backlight operations are reported via GUnit GSE interrupts
> - * on the root tile.
> - */
> - unmask_and_enable(xe_device_get_root_tile(xe),
> - GU_MISC_IRQ_OFFSET, GU_MISC_GSE);
> + xe_gu_misc_irq_postinstall(xe);
>
> /* Enable top-level interrupts */
> if (GRAPHICS_VERx100(xe) >= 1210)
--
Jani Nikula, Intel
next prev parent reply other threads:[~2026-11-09 12:00 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-09 11:45 [PATCH 0/4] drm/xe: Clean up the GU_MISC irq handling Ville Syrjala
2026-11-09 11:45 ` [PATCH 1/4] drm/xe: s/xe_display_irq_enable()/xe_display_gse_irq_handler()/ Ville Syrjala
2026-11-09 11:59 ` Jani Nikula
2026-11-09 11:45 ` [PATCH 2/4] drm/xe: Extract xe_gu_misc_irq_{postinstall,reset}() Ville Syrjala
2026-11-09 12:00 ` Jani Nikula [this message]
2026-11-09 11:45 ` [PATCH 3/4] drm/xe: Only enable the GSE interrupt when display needs it Ville Syrjala
2026-11-09 12:03 ` Jani Nikula
2026-11-09 11:45 ` [PATCH 4/4] drm/xe: Use intel_display_gse_irq_handler() Ville Syrjala
2026-11-09 11:51 ` sashiko-bot
2026-11-09 12:28 ` Ville Syrjälä
2026-11-09 12:05 ` Jani Nikula
2026-11-09 12:15 ` Ville Syrjälä
2026-11-09 12:22 ` Jani Nikula
2026-11-09 12:34 ` Ville Syrjälä
2026-11-09 14:10 ` ✓ CI.KUnit: success for drm/xe: Clean up the GU_MISC irq handling Patchwork
2026-11-09 14:59 ` ✓ Xe.CI.BAT: " Patchwork
2026-11-09 16:28 ` ✗ Xe.CI.FULL: failure " 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=724fccfff0c8aa0f4b2146a9a3ef25656f10ca4c@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=intel-xe@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.