mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] irqchip/ls-scfg-msi: map MSIs in the iommu
@ 2018-06-05 12:27 Laurentiu Tudor
  2018-06-06 10:10 ` [tip:irq/urgent] irqchip/ls-scfg-msi: Map " tip-bot for Laurentiu Tudor
  2018-06-06 10:23 ` [upstream-release] [PATCH] irqchip/ls-scfg-msi: map " Bharat Bhushan
  0 siblings, 2 replies; 3+ messages in thread
From: Laurentiu Tudor @ 2018-06-05 12:27 UTC (permalink / raw)
  To: tglx, jason, marc.zyngier, linux-kernel
  Cc: minghuan.lian, zhiqiang.hou, Laurentiu Tudor

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>
---
 drivers/irqchip/irq-ls-scfg-msi.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/irqchip/irq-ls-scfg-msi.c b/drivers/irqchip/irq-ls-scfg-msi.c
index 57e3d900f19e..1ec3bfe56693 100644
--- a/drivers/irqchip/irq-ls-scfg-msi.c
+++ b/drivers/irqchip/irq-ls-scfg-msi.c
@@ -21,6 +21,7 @@
 #include <linux/of_pci.h>
 #include <linux/of_platform.h>
 #include <linux/spinlock.h>
+#include <linux/dma-iommu.h>
 
 #define MSI_IRQS_PER_MSIR	32
 #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)
 		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,
-- 
2.17.0

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-06-06 10:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-05 12:27 [PATCH] irqchip/ls-scfg-msi: map MSIs in the iommu Laurentiu Tudor
2018-06-06 10:10 ` [tip:irq/urgent] irqchip/ls-scfg-msi: Map " tip-bot for Laurentiu Tudor
2018-06-06 10:23 ` [upstream-release] [PATCH] irqchip/ls-scfg-msi: map " Bharat Bhushan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®