From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753399AbdFVQsl (ORCPT ); Thu, 22 Jun 2017 12:48:41 -0400 Received: from terminus.zytor.com ([65.50.211.136]:49391 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751677AbdFVQsk (ORCPT ); Thu, 22 Jun 2017 12:48:40 -0400 Date: Thu, 22 Jun 2017 09:44:00 -0700 From: tip-bot for Thomas Gleixner Message-ID: Cc: linux-kernel@vger.kernel.org, keith.busch@intel.com, tglx@linutronix.de, axboe@kernel.dk, mingo@kernel.org, peterz@infradead.org, hch@lst.de, marc.zyngier@arm.com, mpe@ellerman.id.au, hpa@zytor.com Reply-To: linux-kernel@vger.kernel.org, tglx@linutronix.de, keith.busch@intel.com, peterz@infradead.org, axboe@kernel.dk, mingo@kernel.org, hpa@zytor.com, mpe@ellerman.id.au, hch@lst.de, marc.zyngier@arm.com In-Reply-To: <20170619235443.829047007@linutronix.de> References: <20170619235443.829047007@linutronix.de> To: linux-tip-commits@vger.kernel.org Subject: [tip:irq/core] x86/htirq: Create named domain Git-Commit-ID: 5f432711ba94400fb39e9be81913ced81c141758 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: 5f432711ba94400fb39e9be81913ced81c141758 Gitweb: http://git.kernel.org/tip/5f432711ba94400fb39e9be81913ced81c141758 Author: Thomas Gleixner AuthorDate: Tue, 20 Jun 2017 01:37:08 +0200 Committer: Thomas Gleixner CommitDate: Thu, 22 Jun 2017 18:21:09 +0200 x86/htirq: Create named domain Use the fwnode to create a named domain so diagnosis works. Mark the init function __init while at it. Signed-off-by: Thomas Gleixner Cc: Jens Axboe Cc: Marc Zyngier Cc: Michael Ellerman Cc: Keith Busch Cc: Peter Zijlstra Cc: Christoph Hellwig Link: http://lkml.kernel.org/r/20170619235443.829047007@linutronix.de Signed-off-by: Thomas Gleixner --- arch/x86/kernel/apic/htirq.c | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/arch/x86/kernel/apic/htirq.c b/arch/x86/kernel/apic/htirq.c index ae50d34..56ccf93 100644 --- a/arch/x86/kernel/apic/htirq.c +++ b/arch/x86/kernel/apic/htirq.c @@ -150,16 +150,27 @@ static const struct irq_domain_ops htirq_domain_ops = { .deactivate = htirq_domain_deactivate, }; -void arch_init_htirq_domain(struct irq_domain *parent) +void __init arch_init_htirq_domain(struct irq_domain *parent) { + struct fwnode_handle *fn; + if (disable_apic) return; - htirq_domain = irq_domain_add_tree(NULL, &htirq_domain_ops, NULL); + fn = irq_domain_alloc_named_fwnode("PCI-HT"); + if (!fn) + goto warn; + + htirq_domain = irq_domain_create_tree(fn, &htirq_domain_ops, NULL); + irq_domain_free_fwnode(fn); if (!htirq_domain) - pr_warn("failed to initialize irqdomain for HTIRQ.\n"); - else - htirq_domain->parent = parent; + goto warn; + + htirq_domain->parent = parent; + return; + +warn: + pr_warn("Failed to initialize irqdomain for HTIRQ.\n"); } int arch_setup_ht_irq(int idx, int pos, struct pci_dev *dev,