linux/drivers/irqchip
Tomasz Figa 29e697b118 irqchip: gic: Fix core ID calculation when topology is read from DT
Certain GIC implementation, namely those found on earlier, single
cluster, Exynos SoCs, have registers mapped without per-CPU banking,
which means that the driver needs to use different offset for each CPU.

Currently the driver calculates the offset by multiplying value returned
by cpu_logical_map() by CPU offset parsed from DT. This is correct when
CPU topology is not specified in DT and aforementioned function returns
core ID alone. However when DT contains CPU topology, the function
changes to return cluster ID as well, which is non-zero on mentioned
SoCs and so breaks the calculation in GIC driver.

This patch fixes this by masking out cluster ID in CPU offset
calculation so that only core ID is considered. Multi-cluster Exynos
SoCs already have banked GIC implementations, so this simple fix should
be enough.

Reported-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reported-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Fixes: db0d4db22a ("ARM: gic: allow GIC to support non-banked setups")
Cc: <stable@vger.kernel.org> # v3.3+
Link: https://lkml.kernel.org/r/1405610624-18722-1-git-send-email-t.figa@samsung.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
2014-07-18 13:13:41 +00:00
..
exynos-combiner.c
irq-armada-370-xp.c irqchip: armada-370-xp: Mask all interrupts during initialization. 2014-06-21 00:39:04 +00:00
irq-bcm2835.c
irq-brcmstb-l2.c irqchip: brcmstb-l2: Level-2 interrupts are edge sensitive 2014-06-21 02:08:34 +00:00
irq-clps711x.c
irq-crossbar.c
irq-dw-apb-ictl.c
irq-gic.c irqchip: gic: Fix core ID calculation when topology is read from DT 2014-07-18 13:13:41 +00:00
irq-imgpdc.c
irq-metag-ext.c
irq-metag.c
irq-mmp.c
irq-moxart.c
irq-mxs.c
irq-nvic.c
irq-orion.c
irq-renesas-intc-irqpin.c
irq-renesas-irqc.c
irq-s3c24xx.c
irq-sirfsoc.c
irq-sun4i.c
irq-sunxi-nmi.c
irq-tb10x.c
irq-versatile-fpga.c
irq-vic.c
irq-vt8500.c
irq-xtensa-mx.c
irq-xtensa-pic.c
irq-zevio.c
irqchip.c
irqchip.h
Kconfig
Makefile
spear-shirq.c irqchip: spear_shirq: Fix interrupt offset 2014-06-21 23:26:39 +00:00