Skip to content

Commit ae904ca

Browse files
committed
PCI/vmd: Create named irq domain
Use the fwnode to create a named domain so diagnosis works. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Jens Axboe <axboe@kernel.dk> Cc: Marc Zyngier <marc.zyngier@arm.com> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Keith Busch <keith.busch@intel.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: linux-pci@vger.kernel.org Cc: Bjorn Helgaas <bhelgaas@google.com> Cc: Christoph Hellwig <hch@lst.de> Link: http://lkml.kernel.org/r/20170619235444.379861978@linutronix.de
1 parent f8f37ca commit ae904ca

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

drivers/pci/host/vmd.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,7 @@ static int vmd_find_free_domain(void)
554554
static int vmd_enable_domain(struct vmd_dev *vmd)
555555
{
556556
struct pci_sysdata *sd = &vmd->sysdata;
557+
struct fwnode_handle *fn;
557558
struct resource *res;
558559
u32 upper_bits;
559560
unsigned long flags;
@@ -617,8 +618,13 @@ static int vmd_enable_domain(struct vmd_dev *vmd)
617618

618619
sd->node = pcibus_to_node(vmd->dev->bus);
619620

620-
vmd->irq_domain = pci_msi_create_irq_domain(NULL, &vmd_msi_domain_info,
621+
fn = irq_domain_alloc_named_id_fwnode("VMD-MSI", vmd->sysdata.domain);
622+
if (!fn)
623+
return -ENODEV;
624+
625+
vmd->irq_domain = pci_msi_create_irq_domain(fn, &vmd_msi_domain_info,
621626
x86_vector_domain);
627+
irq_domain_free_fwnode(fn);
622628
if (!vmd->irq_domain)
623629
return -ENODEV;
624630

0 commit comments

Comments
 (0)