OSDN Git Service

powerpc/xive: Add support for IRQ domain hierarchy
authorCédric Le Goater <clg@kaod.org>
Thu, 1 Jul 2021 13:27:21 +0000 (15:27 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 10 Aug 2021 13:14:57 +0000 (23:14 +1000)
commit14be098c5387eb93b794f299f3c3e2ddf6038ec7
tree1b794888534b52c53fa4b0e87964b2e0b95fe225
parente81202007363bd694b711f307f02320b5f98edaa
powerpc/xive: Add support for IRQ domain hierarchy

This adds handlers to allocate/free IRQs in a domain hierarchy. We
could try to use xive_irq_domain_map() in xive_irq_domain_alloc() but
we rely on xive_irq_alloc_data() to set the IRQ handler data and
duplicating the code is simpler.

xive_irq_free_data() needs to be called when IRQ are freed to clear
the MMIO mappings and free the XIVE handler data, xive_irq_data
structure. This is going to be a problem with MSI domains which we
will address later.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210701132750.1475580-4-clg@kaod.org
arch/powerpc/sysdev/xive/common.c