Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1670100

[patch 15/55] PCI: vmd: Create named irq domain

From Thomas Gleixner <tglx@linutronix.de>
Newsgroups linux.kernel
Subject [patch 15/55] PCI: vmd: Create named irq domain
Date 2017-06-20 02:10 +0200
Message-ID <tUeU4-1fU-89@gated-at.bofh.it> (permalink)
References <tUeKl-Xe-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Use the fwnode to create a named domain so diagnosis works.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Keith Busch <keith.busch@intel.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: linux-pci@vger.kernel.org
---
 drivers/pci/host/vmd.c |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

--- a/drivers/pci/host/vmd.c
+++ b/drivers/pci/host/vmd.c
@@ -554,6 +554,7 @@ static int vmd_find_free_domain(void)
 static int vmd_enable_domain(struct vmd_dev *vmd)
 {
 	struct pci_sysdata *sd = &vmd->sysdata;
+	struct fwnode_handle *fn;
 	struct resource *res;
 	u32 upper_bits;
 	unsigned long flags;
@@ -617,8 +618,13 @@ static int vmd_enable_domain(struct vmd_
 
 	sd->node = pcibus_to_node(vmd->dev->bus);
 
-	vmd->irq_domain = pci_msi_create_irq_domain(NULL, &vmd_msi_domain_info,
+	fn = irq_domain_alloc_named_id_fwnode("VMD-MSI", vmd->sysdata.domain);
+	if (!fn)
+		return -ENODEV;
+
+	vmd->irq_domain = pci_msi_create_irq_domain(fn, &vmd_msi_domain_info,
 						    x86_vector_domain);
+	kfree(fn);
 	if (!vmd->irq_domain)
 		return -ENODEV;
 

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[patch 15/55] PCI: vmd: Create named irq domain Thomas Gleixner <tglx@linutronix.de> - 2017-06-20 02:10 +0200
  Re: [patch 15/55] PCI: vmd: Create named irq domain Keith Busch <keith.busch@intel.com> - 2017-06-20 22:00 +0200
    Re: [patch 15/55] PCI: vmd: Create named irq domain Thomas Gleixner <tglx@linutronix.de> - 2017-06-20 22:10 +0200
      Re: [patch 15/55] PCI: vmd: Create named irq domain Thomas Gleixner <tglx@linutronix.de> - 2017-06-20 22:40 +0200
  [tip:irq/core] PCI/vmd: Create named irq domain tip-bot for Thomas Gleixner <tipbot@zytor.com> - 2017-06-22 19:00 +0200

csiph-web