From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Ilia Levi <ilia.levi@intel.com>, <intel-xe@lists.freedesktop.org>,
<piotr.piorkowski@intel.com>, <koby.elbaz@intel.com>,
<yaron.avizrat@intel.com>
Subject: Re: [PATCH] drm/xe: Make irq enabled flag atomic
Date: Wed, 11 Dec 2024 18:29:02 -0500 [thread overview]
Message-ID: <Z1ogPhzM1eD6VtlR@intel.com> (raw)
In-Reply-To: <b6x4mamnsw2ljm7n7tl7amqmdwqnihjdnufiowudm2i4fxowun@wa2y7s2t2kke>
On Wed, Dec 11, 2024 at 01:58:08PM -0600, Lucas De Marchi wrote:
> On Wed, Dec 11, 2024 at 01:13:49PM -0500, Rodrigo Vivi wrote:
> > On Tue, Dec 10, 2024 at 07:35:06PM +0200, Ilia Levi wrote:
> > > The irq.enabled flag was protected by a spin lock (irq.lock).
> > > By making it atomic we no longer need to wait for the spin lock in
> > > irq handlers. This will become especially useful for MSI-X irq
> > > handlers to prevent lock contention between different interrupts.
> > >
> > > Signed-off-by: Ilia Levi <ilia.levi@intel.com>
> >
> > Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> >
> > pushing soon to drm-xe-next. Thanks for the patch
> >
>
> I just saw the commit in the tree and was wondering... why exactly do we
> need that flag checked in the irq handlers? why can't we simply do
> a) turn off irq
> b) synchronize_irq()
>
> kind of like xe_irq_suspend() is doing, but in the opposite order. It
> seems this was just copy-pasted over and over or am I missing a
> synchronization here?
A very good question. We likely don't need that check there.
Ilia, perhaps you could give it a try along with your upcoming MSX IRQ
series?
>
> Lucas De Marchi
next prev parent reply other threads:[~2024-12-11 23:29 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-10 17:35 [PATCH] drm/xe: Make irq enabled flag atomic Ilia Levi
2024-12-10 21:28 ` ✓ CI.Patch_applied: success for " Patchwork
2024-12-10 21:29 ` ✓ CI.checkpatch: " Patchwork
2024-12-10 21:30 ` ✓ CI.KUnit: " Patchwork
2024-12-10 21:48 ` ✓ CI.Build: " Patchwork
2024-12-10 21:50 ` ✓ CI.Hooks: " Patchwork
2024-12-10 21:52 ` ✓ CI.checksparse: " Patchwork
2024-12-10 22:28 ` ✓ Xe.CI.BAT: " Patchwork
2024-12-11 1:04 ` ✗ Xe.CI.Full: failure " Patchwork
2024-12-11 18:13 ` [PATCH] " Rodrigo Vivi
2024-12-11 19:58 ` Lucas De Marchi
2024-12-11 23:29 ` Rodrigo Vivi [this message]
2024-12-12 12:45 ` Levi, Ilia
2024-12-12 14:36 ` Lucas De Marchi
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=Z1ogPhzM1eD6VtlR@intel.com \
--to=rodrigo.vivi@intel.com \
--cc=ilia.levi@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=koby.elbaz@intel.com \
--cc=lucas.demarchi@intel.com \
--cc=piotr.piorkowski@intel.com \
--cc=yaron.avizrat@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).