From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753559AbdFVQxm (ORCPT ); Thu, 22 Jun 2017 12:53:42 -0400 Received: from terminus.zytor.com ([65.50.211.136]:48839 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752107AbdFVQxl (ORCPT ); Thu, 22 Jun 2017 12:53:41 -0400 Date: Thu, 22 Jun 2017 09:47:57 -0700 From: tip-bot for Thomas Gleixner Message-ID: Cc: bhelgaas@google.com, linux-kernel@vger.kernel.org, mpe@ellerman.id.au, mingo@kernel.org, keith.busch@intel.com, hpa@zytor.com, marc.zyngier@arm.com, peterz@infradead.org, hch@lst.de, axboe@kernel.dk, tglx@linutronix.de Reply-To: mpe@ellerman.id.au, marc.zyngier@arm.com, hpa@zytor.com, keith.busch@intel.com, mingo@kernel.org, linux-kernel@vger.kernel.org, bhelgaas@google.com, axboe@kernel.dk, hch@lst.de, tglx@linutronix.de, peterz@infradead.org In-Reply-To: <20170619235444.379861978@linutronix.de> References: <20170619235444.379861978@linutronix.de> To: linux-tip-commits@vger.kernel.org Subject: [tip:irq/core] PCI/vmd: Create named irq domain Git-Commit-ID: ae904cafd59d7120ef2afb97b252eadeba45e95f X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: ae904cafd59d7120ef2afb97b252eadeba45e95f Gitweb: http://git.kernel.org/tip/ae904cafd59d7120ef2afb97b252eadeba45e95f Author: Thomas Gleixner AuthorDate: Tue, 20 Jun 2017 01:37:15 +0200 Committer: Thomas Gleixner CommitDate: Thu, 22 Jun 2017 18:21:12 +0200 PCI/vmd: Create named irq domain Use the fwnode to create a named domain so diagnosis works. Signed-off-by: Thomas Gleixner Cc: Jens Axboe Cc: Marc Zyngier Cc: Michael Ellerman Cc: Keith Busch Cc: Peter Zijlstra Cc: linux-pci@vger.kernel.org Cc: Bjorn Helgaas Cc: Christoph Hellwig Link: http://lkml.kernel.org/r/20170619235444.379861978@linutronix.de --- drivers/pci/host/vmd.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/pci/host/vmd.c b/drivers/pci/host/vmd.c index e27ad2a..31203d6 100644 --- 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_dev *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); + irq_domain_free_fwnode(fn); if (!vmd->irq_domain) return -ENODEV;