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

ls_scfg_msi_compose_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 patch 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 FreeScale SCFG MSI driver is reworked to avoid executing preemptible
code in non-preemptible context. This can be achieved by preparing the
MSI maping when allocating the MSI interrupt.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-ls-scfg-msi.c