genirq/msi: Provide constants for PCI/IMS support
authorThomas Gleixner <tglx@linutronix.de>
Thu, 24 Nov 2022 23:26:28 +0000 (00:26 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 5 Dec 2022 21:22:34 +0000 (22:22 +0100)
commite23d4192bf9b612bce5b24f22719fd3cc6edaa69
treea6e24e09672b93f1784bd889ec677ccb8878424e
parent486254ad967dbef37fd797dd296fe69b465aa0f9
genirq/msi: Provide constants for PCI/IMS support

Provide the necessary constants for PCI/IMS support:

  - A new bus token for MSI irqdomain identification
  - A MSI feature flag for the MSI irqdomains to signal support
  - A secondary domain id

The latter expands the device internal domain pointer storage array from 1
to 2 entries. That extra pointer is mostly unused today, but the
alternative solutions would not be free either and would introduce more
complexity all over the place. Trade the 8bytes for simplicity.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Acked-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20221124232326.846169830@linutronix.de
include/linux/irqdomain_defs.h
include/linux/msi.h
include/linux/msi_api.h