Bjorn Helgaas
8a1940bca9
Revert "genirq/msi: Provide constants for PCI/IMS support"
...
This reverts commit e23d4192bf .
IMS (Interrupt Message Store) support appeared in v6.2, but there are no
users yet.
Remove it for now. We can add it back when a user comes along.
Link: https://lore.kernel.org/r/20240410221307.2162676-8-helgaas@kernel.org
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com >
Reviewed-by: Kevin Tian <kevin.tian@intel.com >
Reviewed-by: Thomas Gleixner <tglx@linutronix.de >
2024-05-15 17:02:08 -05:00
Thomas Gleixner
2d566a498d
genirq/msi: Provide DOMAIN_BUS_WIRED_TO_MSI
...
Provide a domain bus token for the upcoming support for wire to MSI device
domains so the domain can be distinguished from regular device MSI domains.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Signed-off-by: Anup Patel <apatel@ventanamicro.com >
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Link: https://lore.kernel.org/r/20240127161753.114685-10-apatel@ventanamicro.com
2024-02-15 17:55:40 +01:00
Thomas Gleixner
6516d5a295
genirq/irqdomain: Add DOMAIN_BUS_DEVICE_MSI
...
Add a new domain bus token to prepare for device MSI which aims to replace
the existing platform MSI maze.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Signed-off-by: Anup Patel <apatel@ventanamicro.com >
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Link: https://lore.kernel.org/r/20240127161753.114685-5-apatel@ventanamicro.com
2024-02-15 17:55:40 +01:00
Thomas Gleixner
e23d4192bf
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
2022-12-05 22:22:34 +01:00
Thomas Gleixner
cc7594ffad
iommu/amd: Switch to MSI base domains
...
Remove the global PCI/MSI irqdomain implementation and provide the required
MSI parent ops so the PCI/MSI code can detect the new parent and setup per
device domains.
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.209212272@linutronix.de
2022-12-05 22:22:33 +01:00
Thomas Gleixner
9a945234ab
iommu/vt-d: Switch to MSI parent domains
...
Remove the global PCI/MSI irqdomain implementation and provide the required
MSI parent ops so the PCI/MSI code can detect the new parent and setup per
device domains.
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.151226317@linutronix.de
2022-12-05 22:22:33 +01:00
Thomas Gleixner
bd141a3db4
genirq/msi: Provide BUS_DEVICE_PCI_MSI[X]
...
Provide new bus tokens for the upcoming per device PCI/MSI and PCI/MSIX
interrupt domains.
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/20221124232325.917219885@linutronix.de
2022-12-05 22:22:32 +01:00
Thomas Gleixner
aeef20527c
genirq/irqdomain: Move bus token enum into a seperate header
...
Split the bus token defines out into a seperate header file to avoid
inclusion of irqdomain.h in msi.h.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Reviewed-by: Ashok Raj <ashok.raj@intel.com >
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com >
Link: https://lore.kernel.org/r/20221111122014.237221143@linutronix.de
2022-11-17 15:15:19 +01:00