kernel-fxtec-pro1x/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 irqchip: exynos-combiner: call handle_bad_irq directly 2014-02-14 07:27:40 +09:00
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 irqchip: Remove asmlinkage from static functions 2014-03-12 13:00:41 +01:00
irq-brcmstb-l2.c irqchip: brcmstb-l2: Level-2 interrupts are edge sensitive 2014-06-21 02:08:34 +00:00
irq-clps711x.c ARM: clps711x: Add CLPS711X irqchip driver 2014-02-28 17:27:30 +01:00
irq-crossbar.c irqchip: irq-crossbar: Not allocating enough memory 2014-04-28 21:43:24 +02:00
irq-dw-apb-ictl.c irqchip: add DesignWare APB ICTL interrupt controller 2013-12-13 16:29:40 +01:00
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-imgpdc: add ImgTec PDC irqchip driver 2013-08-21 14:17:56 +01:00
irq-metag-ext.c irq-metag*: stop set_affinity vectoring to offline cpus 2014-02-25 22:35:06 +00:00
irq-metag.c irq-metag*: stop set_affinity vectoring to offline cpus 2014-02-25 22:35:06 +00:00
irq-mmp.c ARM: SoC: cleanups for 3.15 2014-04-05 13:51:19 -07:00
irq-moxart.c irqchip: Remove asmlinkage from static functions 2014-03-12 13:00:41 +01:00
irq-mxs.c irqchip: mxs: Fix function type for IRQCHIP_OF_DECLARE 2014-05-20 14:25:23 -05:00
irq-nvic.c irqchip: nvic: Fix wrong num_ct argument for irq_alloc_domain_generic_chips() 2013-07-05 11:39:24 +02:00
irq-orion.c irqchip: orion: Reverse irq handling priority 2014-05-08 14:42:09 +00:00
irq-renesas-intc-irqpin.c irqchip: renesas-intc-irqpin: Fix register bitfield shift calculation 2013-11-24 15:55:17 +09:00
irq-renesas-irqc.c irqchip: renesas-irqc: Enable mask on suspend 2014-01-22 21:48:55 +01:00
irq-s3c24xx.c irqchip: s3c24xx: Fix function type for IRQCHIP_OF_DECLARE 2014-05-20 14:25:23 -05:00
irq-sirfsoc.c irqchip: sirf: fix one minor checkpatch issue 2014-05-12 21:43:49 +08:00
irq-sun4i.c irqchip: sun4i: Simplify sun4i_irq_ack 2014-03-19 12:34:29 +01:00
irq-sunxi-nmi.c irqchip: sun7i/sun6i: Disable NMI before registering the handler 2014-03-31 11:12:57 +02:00
irq-tb10x.c irqchip: Add TB10x interrupt controller driver 2013-06-25 18:54:21 +02:00
irq-versatile-fpga.c irqchip: versatile FPGA: support cascaded interrupts from DT 2014-01-03 22:26:13 +01:00
irq-vic.c irqchip: vic: Properly chain the cascaded IRQs 2014-04-15 18:24:24 +02:00
irq-vt8500.c irqchip: Remove asmlinkage from static functions 2014-03-12 13:00:41 +01:00
irq-xtensa-mx.c irqchip: xtensa: Select only an online cpu 2014-03-04 17:37:55 +01:00
irq-xtensa-pic.c xtensa: move built-in PIC to drivers/irqchip 2014-01-14 10:19:56 -08:00
irq-zevio.c irqchip: Remove asmlinkage from static functions 2014-03-12 13:00:41 +01:00
irqchip.c irqchip: align irqchip OF match table section naming 2014-05-20 14:24:40 -05:00
irqchip.h of: consolidate linker section OF match table declarations 2014-05-20 14:25:24 -05:00
Kconfig irqchip: brcmstb-l2: Add Broadcom Set Top Box Level-2 interrupt controller 2014-05-27 14:43:06 +00:00
Makefile irqchip: brcmstb-l2: Add Broadcom Set Top Box Level-2 interrupt controller 2014-05-27 14:43:06 +00:00
spear-shirq.c irqchip: spear_shirq: Fix interrupt offset 2014-06-21 23:26:39 +00:00