From: Marc Zyngier <maz@kernel.org>
To: Zenghui Yu <yuzenghui@huawei.com>
Cc: linux-kernel@vger.kernel.org, tglx@linutronix.de,
wanghaibin.wang@huawei.com
Subject: Re: [PATCH] genirq/irqdomain: Make sure all irq domain flags are distinct
Date: Fri, 21 Feb 2020 10:13:58 +0000 [thread overview]
Message-ID: <7dec8c6eb07f634a4cccec3be5136e2f@kernel.org> (raw)
In-Reply-To: <20200221020725.2038-1-yuzenghui@huawei.com>
On 2020-02-21 02:07, Zenghui Yu wrote:
> This was noticed when printing debugfs for MSIs on my ARM64 server.
> The new dstate IRQD_MSI_NOMASK_QUIRK came out surprisingly while it
> should only be the x86 stuff for the time being...
>
> It's the overlap in irqdomain flags which leads to this confusion.
> (1 << 1) might be a good choice for old IRQ_DOMAIN_NAME_ALLOCATED,
> use it to avoid this overlap.
>
> Fixes: 6f1a4891a592 ("x86/apic/msi: Plug non-maskable MSI affinity
> race")
To be fair, the real source of the bug is this:
6a6544e520abe ("genirq/irqdomain: Remove auto-recursive hierarchy
support")
> Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>
> ---
> include/linux/irqdomain.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/linux/irqdomain.h b/include/linux/irqdomain.h
> index b2d47571ab67..8d062e86d954 100644
> --- a/include/linux/irqdomain.h
> +++ b/include/linux/irqdomain.h
> @@ -192,7 +192,7 @@ enum {
> IRQ_DOMAIN_FLAG_HIERARCHY = (1 << 0),
>
> /* Irq domain name was allocated in __irq_domain_add() */
> - IRQ_DOMAIN_NAME_ALLOCATED = (1 << 6),
> + IRQ_DOMAIN_NAME_ALLOCATED = (1 << 1),
>
> /* Irq domain is an IPI domain with virq per cpu */
> IRQ_DOMAIN_FLAG_IPI_PER_CPU = (1 << 2),
Acked-by: Marc Zyngier <maz@kernel.org>
Thomas, do you mind picking this one up, as I don't have anything
else for the time being?
M.
--
Jazz is not dead. It just smells funny...
next prev parent reply other threads:[~2020-02-21 10:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-21 2:07 [PATCH] genirq/irqdomain: Make sure all irq domain flags are distinct Zenghui Yu
2020-02-21 10:13 ` Marc Zyngier [this message]
2020-02-24 11:30 ` Thomas Gleixner
2020-02-21 10:31 ` [tip: irq/urgent] " tip-bot2 for Zenghui Yu
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=7dec8c6eb07f634a4cccec3be5136e2f@kernel.org \
--to=maz@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@linutronix.de \
--cc=wanghaibin.wang@huawei.com \
--cc=yuzenghui@huawei.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.