Commit f8409a6a authored by Thomas Gleixner's avatar Thomas Gleixner

x86/uv: Create named irq domain

Use the fwnode to create a named domain so diagnosis works.
Signed-off-by: default avatarThomas 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: Christoph Hellwig <hch@lst.de>
Link: http://lkml.kernel.org/r/20170619235443.907511074@linutronix.deSigned-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 5f432711
...@@ -160,13 +160,21 @@ static struct irq_domain *uv_get_irq_domain(void) ...@@ -160,13 +160,21 @@ static struct irq_domain *uv_get_irq_domain(void)
{ {
static struct irq_domain *uv_domain; static struct irq_domain *uv_domain;
static DEFINE_MUTEX(uv_lock); static DEFINE_MUTEX(uv_lock);
struct fwnode_handle *fn;
mutex_lock(&uv_lock); mutex_lock(&uv_lock);
if (uv_domain == NULL) { if (uv_domain)
uv_domain = irq_domain_add_tree(NULL, &uv_domain_ops, NULL); 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) if (uv_domain)
uv_domain->parent = x86_vector_domain; uv_domain->parent = x86_vector_domain;
} out:
mutex_unlock(&uv_lock); mutex_unlock(&uv_lock);
return uv_domain; return uv_domain;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment