RE: [upstream-release] [PATCH] irqchip/ls-scfg-msi: map MSIs in the iommu
> -Original Message- > From: upstream-release-boun...@linux.freescale.net [mailto:upstream- > release-boun...@linux.freescale.net] On Behalf Of Laurentiu Tudor > Sent: Tuesday, June 5, 2018 5:57 PM > To: t...@linutronix.de; ja...@lakedaemon.net; marc.zyng...@arm.com; linux- > ker...@vger.kernel.org > Cc: M.h. Lian ; Z.q. Hou ; > Laurentiu Tudor > Subject: [upstream-release] [PATCH] 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 Reviewed-by: Bharat Bhushan Thanks -Bharat > --- > 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 > #include > #include > +#include > > #define MSI_IRQS_PER_MSIR32 > #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 > > ___ > upstream-release mailing list > upstream-rele...@linux.freescale.net > https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flinux.fr > eescale.net%2Fmailman%2Flistinfo%2Fupstream- > release=02%7C01%7Cbharat.bhushan%40nxp.com%7Cba9303002bf142d9 > b63308d5cadfc179%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C63 > 6637984747938689=3Hg2OVpp%2Bhfdj0qbCFLWLwBn0RFoNhlPPdmxGf > AspyA%3D=0
RE: [upstream-release] [PATCH] irqchip/ls-scfg-msi: map MSIs in the iommu
> -Original Message- > From: upstream-release-boun...@linux.freescale.net [mailto:upstream- > release-boun...@linux.freescale.net] On Behalf Of Laurentiu Tudor > Sent: Tuesday, June 5, 2018 5:57 PM > To: t...@linutronix.de; ja...@lakedaemon.net; marc.zyng...@arm.com; linux- > ker...@vger.kernel.org > Cc: M.h. Lian ; Z.q. Hou ; > Laurentiu Tudor > Subject: [upstream-release] [PATCH] 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 Reviewed-by: Bharat Bhushan Thanks -Bharat > --- > 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 > #include > #include > +#include > > #define MSI_IRQS_PER_MSIR32 > #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 > > ___ > upstream-release mailing list > upstream-rele...@linux.freescale.net > https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flinux.fr > eescale.net%2Fmailman%2Flistinfo%2Fupstream- > release=02%7C01%7Cbharat.bhushan%40nxp.com%7Cba9303002bf142d9 > b63308d5cadfc179%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C63 > 6637984747938689=3Hg2OVpp%2Bhfdj0qbCFLWLwBn0RFoNhlPPdmxGf > AspyA%3D=0
[PATCH] 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 --- 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 #include #include +#include #define MSI_IRQS_PER_MSIR 32 #define MSI_MSIR_OFFSET4 @@ -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
[PATCH] 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 --- 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 #include #include +#include #define MSI_IRQS_PER_MSIR 32 #define MSI_MSIR_OFFSET4 @@ -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