]> git.baikalelectronics.ru Git - kernel.git/commit
genirq/irqdomain: Make sure all irq domain flags are distinct
authorZenghui Yu <yuzenghui@huawei.com>
Fri, 21 Feb 2020 02:07:25 +0000 (10:07 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 21 Feb 2020 10:29:15 +0000 (11:29 +0100)
commit70a31a8eeed42e40704b9a3db750bbac30cdde87
treecfdc6c5fb308d2003199b8f623748a71de95056b
parent6b0199829733a1cbeb1839e0af925f2b0623b6b2
genirq/irqdomain: Make sure all irq domain flags are distinct

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...

The new MSI quirk flag uses the same bit as IRQ_DOMAIN_NAME_ALLOCATED which
is oddly defined as bit 6 for no good reason.

Switch it to the non used bit 1.

Fixes: 5b3aabe67e2a ("x86/apic/msi: Plug non-maskable MSI affinity race")
Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/20200221020725.2038-1-yuzenghui@huawei.com
include/linux/irqdomain.h