mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-07 03:18:31 +00:00
irqchip/ls-scfg-msi: Map MSIs in the iommu
Add the required iommu_dma_map_msi_msg() when composing the MSI message, otherwise the interrupts will not work. Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: jason@lakedaemon.net Cc: marc.zyngier@arm.com Cc: zhiqiang.hou@nxp.com Cc: minghuan.lian@nxp.com Link: https://lkml.kernel.org/r/20180605122727.12831-1-laurentiu.tudor@nxp.com
This commit is contained in:
parent
a84277bf3e
commit
0cdd431c33
1 changed files with 3 additions and 0 deletions
|
@ -21,6 +21,7 @@
|
||||||
#include <linux/of_pci.h>
|
#include <linux/of_pci.h>
|
||||||
#include <linux/of_platform.h>
|
#include <linux/of_platform.h>
|
||||||
#include <linux/spinlock.h>
|
#include <linux/spinlock.h>
|
||||||
|
#include <linux/dma-iommu.h>
|
||||||
|
|
||||||
#define MSI_IRQS_PER_MSIR 32
|
#define MSI_IRQS_PER_MSIR 32
|
||||||
#define MSI_MSIR_OFFSET 4
|
#define MSI_MSIR_OFFSET 4
|
||||||
|
@ -94,6 +95,8 @@ static void ls_scfg_msi_compose_msg(struct irq_data *data, struct msi_msg *msg)
|
||||||
|
|
||||||
if (msi_affinity_flag)
|
if (msi_affinity_flag)
|
||||||
msg->data |= cpumask_first(data->common->affinity);
|
msg->data |= cpumask_first(data->common->affinity);
|
||||||
|
|
||||||
|
iommu_dma_map_msi_msg(data->irq, msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ls_scfg_msi_set_affinity(struct irq_data *irq_data,
|
static int ls_scfg_msi_set_affinity(struct irq_data *irq_data,
|
||||||
|
|
Loading…
Reference in a new issue