From: Jani Nikula <jani.nikula@intel.com>
To: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
Cc: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Subject: Re: [PATCH 1/4] drm/{i915,xe}/display: move irq calls to parent interface
Date: Tue, 11 Nov 2025 09:39:15 +0200 [thread overview]
Message-ID: <ee5830da79fe36f4e638b008c0e23fa15fabacce@intel.com> (raw)
In-Reply-To: <aRJLn_9QFUdbkvgV@intel.com>
On Mon, 10 Nov 2025, Ville Syrjälä <ville.syrjala@linux.intel.com> wrote:
> On Mon, Nov 10, 2025 at 09:31:36PM +0200, Jani Nikula wrote:
>> @@ -146,7 +145,7 @@ void ilk_update_display_irq(struct intel_display *display,
>> new_val |= (~enabled_irq_mask & interrupt_mask);
>>
>> if (new_val != display->irq.ilk_de_imr_mask &&
>> - !drm_WARN_ON(display->drm, !intel_irqs_enabled(dev_priv))) {
>> + !drm_WARN_ON(display->drm, !display->parent->irq->enabled(display->drm))) {
>
> Can't we keep intel_irqs_enabled()/etc. as wrapper functions instead of
> open coding all that pointer chasing everywhere?
I opted for a compromise in v2, keeping the static wrappers inside
intel_display_irq.c, the most common caller of the interface, and
pointer chasing everywhere else.
I'm still a bit undecided how to deal with this in general. Currently
intel_display_rpm.c wraps the calls for rpm. But should we have
dedicated file(s) for the wrappers, with uniform naming conventions for
both the files and the wrappers? And do they *all* need a wrapper, even
when there's just one caller?
BR,
Jani.
--
Jani Nikula, Intel
next prev parent reply other threads:[~2025-11-11 7:39 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-10 19:31 [PATCH 0/4] drm/{i915, xe}/irq: clarify display and parent driver interfaces Jani Nikula
2025-11-10 19:31 ` [PATCH 1/4] drm/{i915, xe}/display: move irq calls to parent interface Jani Nikula
2025-11-10 20:31 ` [PATCH 1/4] drm/{i915,xe}/display: " Ville Syrjälä
2025-11-11 7:39 ` Jani Nikula [this message]
2025-11-10 19:31 ` [PATCH 2/4] drm/{i915, xe}/display: duplicate gen2 irq/error init/reset in display irq Jani Nikula
2025-11-10 19:31 ` [PATCH 3/4] drm/i915/display: convert the display irq interfaces to struct intel_display Jani Nikula
2025-11-10 19:31 ` [PATCH 4/4] drm/i915/display: shorten the intel_display_irq_regs_* function names Jani Nikula
2025-11-10 20:31 ` Ville Syrjälä
2025-11-11 8:07 ` Jani Nikula
2025-11-10 21:01 ` ✗ CI.checkpatch: warning for drm/{i915, xe}/irq: clarify display and parent driver interfaces Patchwork
2025-11-10 21:02 ` ✓ CI.KUnit: success " Patchwork
2025-11-10 21:17 ` ✗ CI.checksparse: warning " Patchwork
2025-11-10 21:39 ` ✓ Xe.CI.BAT: success " Patchwork
2025-11-10 21:57 ` ✓ i915.CI.BAT: " Patchwork
2025-11-11 4:43 ` ✓ i915.CI.Full: " Patchwork
2025-11-11 4:47 ` ✓ Xe.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=ee5830da79fe36f4e638b008c0e23fa15fabacce@intel.com \
--to=jani.nikula@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--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.