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

gicv2m_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 GICv2m 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-v2m.c