]> asedeno.scripts.mit.edu Git - linux.git/commit
irqchip/gic-v3-its: Don't map the MSI page in its_irq_compose_msi_msg()
authorJulien Grall <julien.grall@arm.com>
Wed, 1 May 2019 13:58:21 +0000 (14:58 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Fri, 3 May 2019 14:20:20 +0000 (15:20 +0100)
commit35ae7df21be098848722f96f0f33bf33467436a8
treebc19f2cfc0926d23c760e8635e65b1581a77b5d1
parent737be74710f30e611ee871f7b4f47975d1c6f71a
irqchip/gic-v3-its: Don't map the MSI page in its_irq_compose_msi_msg()

its_irq_compose_msi_msg() may be called from non-preemptible context.
However, on RT, iommu_dma_map_msi_msg requires to be called from a
preemptible context.

A recent change split iommu_dma_map_msi_msg() in two new functions:
one that should be called in preemptible context, the other does
not have any requirement.

The GICv3 ITS driver is reworked to avoid executing preemptible code in
non-preemptible context. This can be achieved by preparing the MSI
mapping when allocating the MSI interrupt.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-gic-v3-its.c