android_kernel_oneplus_msm8998/drivers/irqchip
Marc Zyngier 1b284d7846 irqchip/gic-v3-its: Align PCI Multi-MSI allocation on their size
commit 8208d1708b88b412ca97f50a6d951242c88cbbac upstream.

The way we allocate events works fine in most cases, except
when multiple PCI devices share an ITS-visible DevID, and that
one of them is trying to use MultiMSI allocation.

In that case, our allocation is not guaranteed to be zero-based
anymore, and we have to make sure we allocate it on a boundary
that is compatible with the PCI Multi-MSI constraints.

Fix this by allocating the full region upfront instead of iterating
over the number of MSIs. MSI-X are always allocated one by one,
so this shouldn't change anything on that front.

Fixes: b48ac83d6b ("irqchip: GICv3: ITS: MSI support")
Cc: stable@vger.kernel.org
Reported-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
[ardb: rebased onto v4.9.153, should apply cleanly onto v4.4.y as well]
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
2019-02-06 19:43:05 +01:00
..
alphascale_asm9260-icoll.h
exynos-combiner.c
irq-armada-370-xp.c
irq-atmel-aic-common.c irqchip/atmel-aic: Fix unbalanced refcount in aic_common_rtc_irq_fixup() 2017-08-24 17:02:36 -07:00
irq-atmel-aic-common.h
irq-atmel-aic.c
irq-atmel-aic5.c
irq-bcm2835.c
irq-bcm2836.c
irq-bcm7038-l1.c irqchip/bcm7038-l1: Hide cpu offline callback when building for !SMP 2018-09-15 09:40:38 +02:00
irq-bcm7120-l2.c
irq-brcmstb-l2.c
irq-clps711x.c
irq-crossbar.c irqchip/crossbar: Fix incorrect type of register size 2017-12-16 10:33:52 +01:00
irq-digicolor.c
irq-dw-apb-ictl.c
irq-gic-common.c
irq-gic-common.h
irq-gic-v2m.c
irq-gic-v3-its-pci-msi.c
irq-gic-v3-its-platform-msi.c
irq-gic-v3-its.c irqchip/gic-v3-its: Align PCI Multi-MSI allocation on their size 2019-02-06 19:43:05 +01:00
irq-gic-v3.c irqchip/gic-v3: Change pr_debug message to pr_devel 2018-05-30 07:48:57 +02:00
irq-gic.c irqchip/gic: Make interrupt ID 1020 invalid 2018-09-15 09:40:41 +02:00
irq-hip04.c
irq-i8259.c
irq-imgpdc.c
irq-imx-gpcv2.c
irq-ingenic.c
irq-keystone.c
irq-metag-ext.c
irq-metag.c
irq-mips-cpu.c
irq-mips-gic.c irqchip: mips-gic: SYNC after enabling GIC region 2017-09-07 08:34:08 +02:00
irq-mmp.c
irq-moxart.c
irq-mtk-sysirq.c
irq-mxs.c
irq-nvic.c
irq-omap-intc.c
irq-or1k-pic.c
irq-orion.c
irq-renesas-h8s.c
irq-renesas-h8300h.c
irq-renesas-intc-irqpin.c
irq-renesas-irqc.c
irq-s3c24xx.c
irq-sa11x0.c
irq-sirfsoc.c
irq-st.c
irq-sun4i.c
irq-sunxi-nmi.c
irq-tb10x.c
irq-tegra.c
irq-versatile-fpga.c
irq-vf610-mscm-ir.c
irq-vic.c
irq-vt8500.c
irq-xtensa-mx.c
irq-xtensa-pic.c
irq-zevio.c
irqchip.c
Kconfig
Makefile
spear-shirq.c