From: Marc Zyngier <maz@kernel.org>
To: "Cédric Le Goater" <clg@kaod.org>
Cc: Thomas Gleixner <tglx@linutronix.de>,
PowerPC <linuxppc-dev@lists.ozlabs.org>,
linux-kernel@vger.kernel.org, Greg Kurz <groug@kaod.org>
Subject: Re: [PATCH 16/39] irqdomain: Make normal and nomap irqdomains exclusive
Date: Tue, 16 Nov 2021 08:33:42 +0000 [thread overview]
Message-ID: <87a6i48pp5.wl-maz@kernel.org> (raw)
In-Reply-To: <1fe9d629-0f5f-4807-b97c-77b3b3c7de72@kaod.org>
On Mon, 15 Nov 2021 19:05:17 +0000,
Cédric Le Goater <clg@kaod.org> wrote:
>
> Hello Mark,
s/k/c/
>
> On 5/20/21 18:37, Marc Zyngier wrote:
> > Direct mappings are completely exclusive of normal mappings, meaning
> > that we can refactor the code slightly so that we can get rid of
> > the revmap_direct_max_irq field and use the revmap_size field
> > instead, reducing the size of the irqdomain structure.
> >
> > Signed-off-by: Marc Zyngier <maz@kernel.org>
>
>
> This patch is breaking the POWER9/POWER10 XIVE driver (these are not
> old PPC systems :) on machines sharing the same LSI HW IRQ. For instance,
> a linux KVM guest with a virtio-rng and a virtio-balloon device. In that
> case, Linux creates two distinct IRQ mappings which can lead to some
> unexpected behavior.
Either the irq domain translates, or it doesn't. If the driver creates
a nomap domain, and yet expects some sort of translation to happen,
then the driver is fundamentally broken. And even without that: how do
you end-up with a single HW interrupt having two mappings?
> A fix to go forward would be to change the XIVE IRQ domain to use a
> 'Tree' domain for reverse mapping and not the 'No Map' domain mapping.
> I will keep you updated for XIVE.
I bet there is a bit more to it. From what you are saying above,
something rather ungodly is happening in the XIVE code.
M.
--
Without deviation from the norm, progress is not possible.
next prev parent reply other threads:[~2021-11-16 8:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20210520163751.27325-1-maz@kernel.org>
[not found] ` <20210520163751.27325-17-maz@kernel.org>
2021-11-15 19:05 ` [PATCH 16/39] irqdomain: Make normal and nomap irqdomains exclusive Cédric Le Goater
2021-11-16 8:33 ` Marc Zyngier [this message]
2021-11-16 10:27 ` Cédric Le Goater
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=87a6i48pp5.wl-maz@kernel.org \
--to=maz@kernel.org \
--cc=clg@kaod.org \
--cc=groug@kaod.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=tglx@linutronix.de \
/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).