Skip to content

Commit 3e49a81

Browse files
committed
iommu/amd: Use named irq domain interface
Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Joerg Roedel <joro@8bytes.org> 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: iommu@lists.linux-foundation.org Cc: Christoph Hellwig <hch@lst.de> Link: http://lkml.kernel.org/r/20170619235444.142270582@linutronix.de
1 parent cea29b6 commit 3e49a81

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

drivers/iommu/amd_iommu.c

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4395,13 +4395,20 @@ static struct irq_chip amd_ir_chip = {
43954395

43964396
int amd_iommu_create_irq_domain(struct amd_iommu *iommu)
43974397
{
4398-
iommu->ir_domain = irq_domain_add_tree(NULL, &amd_ir_domain_ops, iommu);
4398+
struct fwnode_handle *fn;
4399+
4400+
fn = irq_domain_alloc_named_id_fwnode("AMD-IR", iommu->index);
4401+
if (!fn)
4402+
return -ENOMEM;
4403+
iommu->ir_domain = irq_domain_create_tree(fn, &amd_ir_domain_ops, iommu);
4404+
irq_domain_free_fwnode(fn);
43994405
if (!iommu->ir_domain)
44004406
return -ENOMEM;
44014407

44024408
iommu->ir_domain->parent = arch_get_ir_parent_domain();
4403-
iommu->msi_domain = arch_create_msi_irq_domain(iommu->ir_domain);
4404-
4409+
iommu->msi_domain = arch_create_remap_msi_irq_domain(iommu->ir_domain,
4410+
"AMD-IR-MSI",
4411+
iommu->index);
44054412
return 0;
44064413
}
44074414

0 commit comments

Comments
 (0)