Skip to content

Commit f8409a6

Browse files
committed
x86/uv: Create named irq domain
Use the fwnode to create a named domain so diagnosis works. Signed-off-by: Thomas 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.de Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
1 parent 5f43271 commit f8409a6

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

‎arch/x86/platform/uv/uv_irq.c‎

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,21 @@ static struct irq_domain *uv_get_irq_domain(void)
160160
{
161161
static struct irq_domain *uv_domain;
162162
static DEFINE_MUTEX(uv_lock);
163+
struct fwnode_handle *fn;
163164

164165
mutex_lock(&uv_lock);
165-
if (uv_domain == NULL) {
166-
uv_domain = irq_domain_add_tree(NULL, &uv_domain_ops, NULL);
167-
if (uv_domain)
168-
uv_domain->parent = x86_vector_domain;
169-
}
166+
if (uv_domain)
167+
goto out;
168+
169+
fn = irq_domain_alloc_named_fwnode("UV-CORE");
170+
if (!fn)
171+
goto out;
172+
173+
uv_domain = irq_domain_create_tree(fn, &uv_domain_ops, NULL);
174+
irq_domain_free_fwnode(fn);
175+
if (uv_domain)
176+
uv_domain->parent = x86_vector_domain;
177+
out:
170178
mutex_unlock(&uv_lock);
171179

172180
return uv_domain;

0 commit comments

Comments
 (0)