[PATCH] pci: designware: fix missing msi irqs
Marek Vasut
marex at denx.de
Thu Dec 12 17:01:01 EST 2013
On Thursday, December 12, 2013 at 07:29:03 PM, Harro Haan wrote:
> The interrupts were cleared after the irq handler was called.
> This means that new interrupts that occur after the handler handled
> the previous irq but before the interrupt is cleared will be missed.
>
> Signed-off-by: Harro Haan <hrhaan at gmail.com>
> Cc: Mohit Kumar <mohit.kumar at st.com>
> Cc: Jingoo Han <jg1.han at samsung.com>
> Cc: Bjorn Helgaas <bhelgaas at google.com>
> Cc: Marek Vasut <marex at denx.de>
> Cc: Richard Zhu <hong-xing.zhu at freescale.com>
> Cc: Shawn Guo <shawn.guo at linaro.org>
> Cc: Pratyush Anand <pratyush.anand at st.com>
> Cc: Tim Harvey <tharvey at gateworks.com>
> Cc: Juergen Beisert <jbe at pengutronix.de>
> Cc: Arnd Bergmann <arnd at arndb.de>
> Cc: Siva Reddy Kallam <siva.kallam at samsung.com>
> Cc: Srikanth T Shivanand <ts.srikanth at samsung.com>
> Cc: Sean Cross <xobs at kosagi.com>
> Cc: linux-pci at vger.kernel.org
> Cc: linux-arm-kernel at lists.infradead.org
> ---
> drivers/pci/host/pcie-designware.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/pci/host/pcie-designware.c
> b/drivers/pci/host/pcie-designware.c index 1ce0453..762f596 100644
> --- a/drivers/pci/host/pcie-designware.c
> +++ b/drivers/pci/host/pcie-designware.c
> @@ -167,11 +167,13 @@ void dw_handle_msi_irq(struct pcie_port *pp)
> while ((pos = find_next_bit(&val, 32, pos)) != 32) {
> irq = irq_find_mapping(pp->irq_domain,
> i * 32 + pos);
> + dw_pcie_wr_own_conf(pp,
> + PCIE_MSI_INTR0_STATUS + i * 12,
> + 4, 1 << pos);
> generic_handle_irq(irq);
> pos++;
> }
> }
> - dw_pcie_wr_own_conf(pp, PCIE_MSI_INTR0_STATUS + i * 12, 4, val);
> }
> }
On imx6-sabrelite:
Tested-by: Marek Vasut <marex at denx.de>
Best regards,
Marek Vasut
More information about the linux-arm-kernel
mailing list