[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [patch V2 23/46] irqdomain/msi: Provide DOMAIN_BUS_VMD_MSI
- To: "maz@xxxxxxxxxx" <maz@xxxxxxxxxx>, "tglx@xxxxxxxxxxxxx" <tglx@xxxxxxxxxxxxx>
- From: "Derrick, Jonathan" <jonathan.derrick@xxxxxxxxx>
- Date: Wed, 26 Aug 2020 20:57:37 +0000
- Accept-language: en-US
- Cc: "Williams, Dan J" <dan.j.williams@xxxxxxxxx>, "sivanich@xxxxxxx" <sivanich@xxxxxxx>, "wei.liu@xxxxxxxxxx" <wei.liu@xxxxxxxxxx>, "haiyangz@xxxxxxxxxxxxx" <haiyangz@xxxxxxxxxxxxx>, "Dey, Megha" <megha.dey@xxxxxxxxx>, "Lu, Baolu" <baolu.lu@xxxxxxxxx>, "Jiang, Dave" <dave.jiang@xxxxxxxxx>, "kys@xxxxxxxxxxxxx" <kys@xxxxxxxxxxxxx>, "Tian, Kevin" <kevin.tian@xxxxxxxxx>, "jgross@xxxxxxxx" <jgross@xxxxxxxx>, "jgg@xxxxxxxxxxxx" <jgg@xxxxxxxxxxxx>, "sstabellini@xxxxxxxxxx" <sstabellini@xxxxxxxxxx>, "linux-kernel@xxxxxxxxxxxxxxx" <linux-kernel@xxxxxxxxxxxxxxx>, "x86@xxxxxxxxxx" <x86@xxxxxxxxxx>, "rafael@xxxxxxxxxx" <rafael@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "iommu@xxxxxxxxxxxxxxxxxxxxxxxxxx" <iommu@xxxxxxxxxxxxxxxxxxxxxxxxxx>, "bhelgaas@xxxxxxxxxx" <bhelgaas@xxxxxxxxxx>, "linux-pci@xxxxxxxxxxxxxxx" <linux-pci@xxxxxxxxxxxxxxx>, "konrad.wilk@xxxxxxxxxx" <konrad.wilk@xxxxxxxxxx>, "alex.williamson@xxxxxxxxxx" <alex.williamson@xxxxxxxxxx>, "steve.wahl@xxxxxxx" <steve.wahl@xxxxxxx>, "boris.ostrovsky@xxxxxxxxxx" <boris.ostrovsky@xxxxxxxxxx>, "gregkh@xxxxxxxxxxxxxxxxxxx" <gregkh@xxxxxxxxxxxxxxxxxxx>, "rja@xxxxxxx" <rja@xxxxxxx>, "joro@xxxxxxxxxx" <joro@xxxxxxxxxx>, "sthemmin@xxxxxxxxxxxxx" <sthemmin@xxxxxxxxxxxxx>, "Pan, Jacob jun" <jacob.jun.pan@xxxxxxxxx>, "lorenzo.pieralisi@xxxxxxx" <lorenzo.pieralisi@xxxxxxx>, "linux-hyperv@xxxxxxxxxxxxxxx" <linux-hyperv@xxxxxxxxxxxxxxx>, "baolu.lu@xxxxxxxxxxxxxxx" <baolu.lu@xxxxxxxxxxxxxxx>
- Delivery-date: Thu, 27 Aug 2020 04:07:24 +0000
- Ironport-sdr: HLnbnJs5kkVLvZ2sxDPITCPDqZ1ln7Mr20gWKuHBCdV2WDr9pOwt+1EWeBmlyzNqsNC3cWSpg+ e3T+Ut5dz3Mw==
- Ironport-sdr: uWEevjo2fcSLS632lk5XvO4XX4B7UKiqIdkS0Y90NWd9XPgDl0SbIVpxAt9IDuzj/jQabTIcbh D+Zjh/W/gpjw==
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHWe6ChLzvzi3ZHs0+G2tRNy2Bxi6lLUO2AgAACG4A=
- Thread-topic: [patch V2 23/46] irqdomain/msi: Provide DOMAIN_BUS_VMD_MSI
On Wed, 2020-08-26 at 21:42 +0100, Marc Zyngier wrote:
> On Wed, 26 Aug 2020 12:16:51 +0100,
> Thomas Gleixner <tglx@xxxxxxxxxxxxx> wrote:
> > From: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> >
> > PCI devices behind a VMD bus are not subject to interrupt remapping, but
> > the irq domain for VMD MSI cannot be distinguished from a regular PCI/MSI
> > irq domain.
> >
> > Add a new domain bus token and allow it in the bus token check in
> > msi_check_reservation_mode() to keep the functionality the same once VMD
> > uses this token.
> >
> > Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> >
> > ---
> > include/linux/irqdomain.h | 1 +
> > kernel/irq/msi.c | 7 ++++++-
> > 2 files changed, 7 insertions(+), 1 deletion(-)
> >
> > --- a/include/linux/irqdomain.h
> > +++ b/include/linux/irqdomain.h
> > @@ -84,6 +84,7 @@ enum irq_domain_bus_token {
> > DOMAIN_BUS_FSL_MC_MSI,
> > DOMAIN_BUS_TI_SCI_INTA_MSI,
> > DOMAIN_BUS_WAKEUP,
> > + DOMAIN_BUS_VMD_MSI,
> > };
> >
> > /**
> > --- a/kernel/irq/msi.c
> > +++ b/kernel/irq/msi.c
> > @@ -370,8 +370,13 @@ static bool msi_check_reservation_mode(s
> > {
> > struct msi_desc *desc;
> >
> > - if (domain->bus_token != DOMAIN_BUS_PCI_MSI)
> > + switch(domain->bus_token) {
> > + case DOMAIN_BUS_PCI_MSI:
> > + case DOMAIN_BUS_VMD_MSI:
> > + break;
> > + default:
> > return false;
> > + }
> >
> > if (!(info->flags & MSI_FLAG_MUST_REACTIVATE))
> > return false;
>
> Acked-by: Marc Zyngier <maz@xxxxxxxxxx>
>
> M.
>
Acked-by: Jon Derrick <jonathan.derrick@xxxxxxxxx>
|