From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753516AbdFVQuL (ORCPT ); Thu, 22 Jun 2017 12:50:11 -0400 Received: from terminus.zytor.com ([65.50.211.136]:36789 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753423AbdFVQtX (ORCPT ); Thu, 22 Jun 2017 12:49:23 -0400 Date: Thu, 22 Jun 2017 09:44:35 -0700 From: tip-bot for Thomas Gleixner Message-ID: Cc: keith.busch@intel.com, axboe@kernel.dk, hpa@zytor.com, peterz@infradead.org, mingo@kernel.org, hch@lst.de, tglx@linutronix.de, linux-kernel@vger.kernel.org, mpe@ellerman.id.au, marc.zyngier@arm.com Reply-To: peterz@infradead.org, mingo@kernel.org, hpa@zytor.com, axboe@kernel.dk, keith.busch@intel.com, linux-kernel@vger.kernel.org, mpe@ellerman.id.au, marc.zyngier@arm.com, tglx@linutronix.de, hch@lst.de In-Reply-To: <20170619235443.907511074@linutronix.de> References: <20170619235443.907511074@linutronix.de> To: linux-tip-commits@vger.kernel.org Subject: [tip:irq/core] x86/uv: Create named irq domain Git-Commit-ID: f8409a6a4bf86e2d90ec8460df2874e4e19ebb27 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: f8409a6a4bf86e2d90ec8460df2874e4e19ebb27 Gitweb: http://git.kernel.org/tip/f8409a6a4bf86e2d90ec8460df2874e4e19ebb27 Author: Thomas Gleixner AuthorDate: Tue, 20 Jun 2017 01:37:09 +0200 Committer: Thomas Gleixner CommitDate: Thu, 22 Jun 2017 18:21:10 +0200 x86/uv: 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: Christoph Hellwig Link: http://lkml.kernel.org/r/20170619235443.907511074@linutronix.de Signed-off-by: Thomas Gleixner --- arch/x86/platform/uv/uv_irq.c | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/arch/x86/platform/uv/uv_irq.c b/arch/x86/platform/uv/uv_irq.c index 776c659..03fc397 100644 --- a/arch/x86/platform/uv/uv_irq.c +++ b/arch/x86/platform/uv/uv_irq.c @@ -160,13 +160,21 @@ static struct irq_domain *uv_get_irq_domain(void) { static struct irq_domain *uv_domain; static DEFINE_MUTEX(uv_lock); + struct fwnode_handle *fn; mutex_lock(&uv_lock); - if (uv_domain == NULL) { - uv_domain = irq_domain_add_tree(NULL, &uv_domain_ops, NULL); - if (uv_domain) - uv_domain->parent = x86_vector_domain; - } + if (uv_domain) + goto out; + + fn = irq_domain_alloc_named_fwnode("UV-CORE"); + if (!fn) + goto out; + + uv_domain = irq_domain_create_tree(fn, &uv_domain_ops, NULL); + irq_domain_free_fwnode(fn); + if (uv_domain) + uv_domain->parent = x86_vector_domain; +out: mutex_unlock(&uv_lock); return uv_domain;