arm: mvebu: Improve the SMP support of the interrupt controller
Subsystems (4)
PATCH v2 1/1 arm: mvebu: Improve the SMP support of the interrupt controller
This patch makes the interrupt controller driver more SMP aware for the Armada XP SoCs. It adds the support for the per-CPU irq. It also adds the implementation for the set_affinity hook.
Patch initialy wrote by Yehuda Yitschak and reworked by Gregory CLEMENT.
--- arch/arm/boot/dts/armada-xp.dtsi | 2 +- arch/arm/mach-mvebu/irq-armada-370-xp.c | 52 +++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+), 1 deletion(-)
arch/arm/boot/dts/armada-xp.dtsi +1 -1
@@ -23,7 +23,7 @@ compatible = "marvell,armadaxp", "marvell,armada-370-xp"; mpic: interrupt-controller at d0020000 { - reg = <0xd0020a00 0x1d0>, + reg = <0xd0020a00 0x2d0>, <0xd0021070 0x58>; };
arch/arm/mach-mvebu/irq-armada-370-xp.c +52 -0
86 lines not on this page · raw message
Signature · 1 line
1.7.9.5
Jason Cooper
AppliedPATCH v2 1/1 arm: mvebu: Improve the SMP support of the interrupt controller
Quoted 7 lines · Gregory CLEMENT
This patch makes the interrupt controller driver more SMP aware for the Armada XP SoCs. It adds the support for the per-CPU irq. It also adds the implementation for the
set_affinityhook.Patch initialy wrote by Yehuda Yitschak and reworked by Gregory CLEMENT.
Quoted 6 lines
Signed-off-by Yehuda Yitschak <[email protected]>Signed-off-by Gregory CLEMENT <[email protected]>--- arch/arm/boot/dts/armada-xp.dtsi | 2 +- arch/arm/mach-mvebu/irq-armada-370-xp.c | 52 +++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+), 1 deletion(-)
Applied to mvebu/boards
thx,
Jason.
PATCH v2 1/1 arm: mvebu: Improve the SMP support of the interrupt controller
Quoted 8 lines · Jason Cooper
Quoted 7 lines · Gregory CLEMENT
This patch makes the interrupt controller driver more SMP aware for the Armada XP SoCs. It adds the support for the per-CPU irq. It also adds the implementation for the
set_affinityhook.Patch initialy wrote by Yehuda Yitschak and reworked by Gregory CLEMENT.
Quoted 8 lines
Quoted 6 lines
Signed-off-by Yehuda Yitschak <[email protected]>Signed-off-by Gregory CLEMENT <[email protected]>--- arch/arm/boot/dts/armada-xp.dtsi | 2 +- arch/arm/mach-mvebu/irq-armada-370-xp.c | 52 +++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+), 1 deletion(-)Applied to mvebu/boards
Hi Jason,
thanks for taking this patch. Unfortunately it won't be enough. Indeed after speaking with Marvell engineers we realized that the MPIC didn't work as we expected. As it is written in the following patch: the MPIC, unlike the GIC, allows several CPUs to acknowledge the same global interrupt.
I joined the patch to this email, you can apply it on top of your mvebu/boards or you can squash it with the previous patch.
Thanks,
Gregory
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-arm-mvebu-Fix-interrupt-handling-in-SMP-mode.patch
Type: text/x-diff
Size: 2305 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20130107/c54c135b/attachment.bin>
PATCH v2 1/1 arm: mvebu: Improve the SMP support of the interrupt controller
Quoted 25 lines · Gregory CLEMENT
Quoted 8 lines · Jason Cooper
Quoted 7 lines · Gregory CLEMENT
This patch makes the interrupt controller driver more SMP aware for the Armada XP SoCs. It adds the support for the per-CPU irq. It also adds the implementation for the
set_affinityhook.Patch initialy wrote by Yehuda Yitschak and reworked by Gregory CLEMENT.
Quoted 8 lines
Quoted 6 lines
Signed-off-by Yehuda Yitschak <[email protected]>Signed-off-by Gregory CLEMENT <[email protected]>--- arch/arm/boot/dts/armada-xp.dtsi | 2 +- arch/arm/mach-mvebu/irq-armada-370-xp.c | 52 +++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+), 1 deletion(-)Applied to mvebu/boards
Hi Jason,
thanks for taking this patch. Unfortunately it won't be enough. Indeed after speaking with Marvell engineers we realized that the MPIC didn't work as we expected. As it is written in the following patch: the MPIC, unlike the GIC, allows several CPUs to acknowledge the same global interrupt.
Quoted 2 lines
I joined the patch to this email, you can apply it on top of your mvebu/boards or you can squash it with the previous patch.
Ok, I'll let this sit for a few days and barring any comments, I'll squash it in with the first patch. If you could provide some Tested-by's, that would be appreciated.
thx,
Jason.
PATCH v2 1/1 arm: mvebu: Improve the SMP support of the interrupt controller
Quoted 26 lines · Jason Cooper
Quoted 25 lines · Gregory CLEMENT
Quoted 8 lines · Jason Cooper
Quoted 7 lines · Gregory CLEMENT
This patch makes the interrupt controller driver more SMP aware for the Armada XP SoCs. It adds the support for the per-CPU irq. It also adds the implementation for the
set_affinityhook.Patch initialy wrote by Yehuda Yitschak and reworked by Gregory CLEMENT.
Quoted 8 lines
Quoted 6 lines
Signed-off-by Yehuda Yitschak <[email protected]>Signed-off-by Gregory CLEMENT <[email protected]>--- arch/arm/boot/dts/armada-xp.dtsi | 2 +- arch/arm/mach-mvebu/irq-armada-370-xp.c | 52 +++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+), 1 deletion(-)Applied to mvebu/boards
Hi Jason,
thanks for taking this patch. Unfortunately it won't be enough. Indeed after speaking with Marvell engineers we realized that the MPIC didn't work as we expected. As it is written in the following patch: the MPIC, unlike the GIC, allows several CPUs to acknowledge the same global interrupt.
Quoted 6 lines
Quoted 2 lines
I joined the patch to this email, you can apply it on top of your mvebu/boards or you can squash it with the previous patch.
Ok, I'll let this sit for a few days and barring any comments, I'll squash it in with the first patch. If you could provide some Tested-by's, that would be appreciated.
I know that Thomas used it, so we can expect his official Tested-by very soon :)
Quoted 10 lines
thx,
Jason.
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Signature · 4 lines
Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH v2 1/1 arm: mvebu: Improve the SMP support of the interrupt controller
Well, I also tested this patch, so...
Quoted 68 lines
-----Original Message-----
From: Gregory CLEMENT [mailto:gregory.clement at free-electrons.com]
Sent: Monday, January 07, 2013 11:08 PM
To: Jason Cooper
Cc: Thomas Petazzoni; Andrew Lunn; Yehuda Yitschak; Jani Monoses; Ike Pan; Tawfik Bayouk; Arnd Bergmann; Nicolas Pitre; Dan Frazier; Chris Van Hoof; David Marlin; Eran Ben-Avi; Nadav Haklai; Maen Suleiman; Lior Amsalem; Shadi Ammouri; Jon Masters; Olof Johansson; Leif Lindholm; linux- arm-kernel at lists.infradead.org; Sebastian Hesselbarth
Subject: Re: [PATCH V2] arm: mvebu: Improve the SMP support of the interrupt controllerQuoted 7 lines · Jason Cooper
Quoted 6 lines · Gregory CLEMENT
Quoted 5 lines · Jason Cooper
Quoted 4 lines · Gregory CLEMENT
This patch makes the interrupt controller driver more SMP aware for the Armada XP SoCs. It adds the support for the per-CPU irq. It also adds the implementation for the
set_affinityhook.Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Patch initialy wrote by Yehuda Yitschak and reworked by Gregory CLEMENT.
Signed-off-by Yehuda Yitschak <[email protected]>Signed-off-by Gregory CLEMENT <gregory.clement@free-electrons.com>
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
--- arch/arm/boot/dts/armada-xp.dtsi | 2 +- arch/arm/mach-mvebu/irq-armada-370-xp.c | 52+++++++++++++++++++++++++++++++
Quoted 11 lines
Quoted 11 lines
Quoted 3 lines
Quoted 1 line
2 files changed, 53 insertions(+), 1 deletion(-)Applied to mvebu/boards
Hi Jason,
thanks for taking this patch. Unfortunately it won't be enough. Indeed after speaking with Marvell engineers we realized that the MPIC didn't work as we expected. As it is written in the following
patch: the MPIC, unlike the GIC, allows several CPUs to acknowledge the same global interrupt.Quoted 6 lines
Quoted 2 lines
I joined the patch to this email, you can apply it on top of your mvebu/boards or you can squash it with the previous patch.
Ok, I'll let this sit for a few days and barring any comments, I'll squash it in with the first patch. If you could provide some Tested-by's, that would be appreciated.
I know that Thomas used it, so we can expect his official Tested-by very soon :)
Quoted 10 lines
thx,
Jason.
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel--
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux development, consulting, training and support.
http://free-electrons.com
PATCH v2 1/1 arm: mvebu: Improve the SMP support of the interrupt controller
Quoted 3 lines · Yehuda Yitschak
Well, I also tested this patch, so...
Tested-by Yehuda Yitschak <[email protected]>
Thanks, Yehuda.
Jason.
Jason Cooper
AppliedPATCH v2 1/1 arm: mvebu: Improve the SMP support of the interrupt controller
In reply to Gregory CLEMENTQuoted 45 lines · Gregory CLEMENT
Quoted 8 lines · Jason Cooper
Quoted 7 lines · Gregory CLEMENT
This patch makes the interrupt controller driver more SMP aware for the Armada XP SoCs. It adds the support for the per-CPU irq. It also adds the implementation for the
set_affinityhook.Patch initialy wrote by Yehuda Yitschak and reworked by Gregory CLEMENT.
Quoted 8 lines
Quoted 6 lines
Signed-off-by Yehuda Yitschak <[email protected]>Signed-off-by Gregory CLEMENT <[email protected]>--- arch/arm/boot/dts/armada-xp.dtsi | 2 +- arch/arm/mach-mvebu/irq-armada-370-xp.c | 52 +++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+), 1 deletion(-)Applied to mvebu/boards
Hi Jason,
thanks for taking this patch. Unfortunately it won't be enough. Indeed after speaking with Marvell engineers we realized that the MPIC didn't work as we expected. As it is written in the following patch: the MPIC, unlike the GIC, allows several CPUs to acknowledge the same global interrupt.I joined the patch to this email, you can apply it on top of your mvebu/boards or you can squash it with the previous patch.
Thanks,
Gregory
From
e3d36240832be914034bb3fb55dcf65c5a9f01dfMon Sep 17 00:00:00 2001
From: Yehuda Yitschak <[email protected]>
Date: Thu, 27 Dec 2012 13:03:36 +0200
Subject: [PATCH] arm: mvebu: Fix interrupt handling in SMP modeThe Multi Processor interrupt Controller (MPIC), unlike the GIC, allows several CPUs to acknowledge the same global interrupt.
This patch introduces changes to avoid this situation by forbidding multi-CPU interrupt affinity. This is done by setting the default interrupt affinity to the boot CPU and rejecting the affinity requests to more than one CPU.
Quoted 5 lines
Signed-off-by Yehuda Yitschak <[email protected]>Acked-by Gregory CLEMENT <[email protected]>--- arch/arm/mach-mvebu/irq-armada-370-xp.c | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-)
Applied to mvebu/boards
thx,
Jason.
PATCH v2 1/1 arm: mvebu: Improve the SMP support of the interrupt controller
In reply to Gregory CLEMENTQuoted 7 lines · Gregory CLEMENT
This patch makes the interrupt controller driver more SMP aware for the Armada XP SoCs. It adds the support for the per-CPU irq. It also adds the implementation for the
set_affinityhook.Patch initialy wrote by Yehuda Yitschak and reworked by Gregory CLEMENT.
Quoted 6 lines
Signed-off-by Yehuda Yitschak <[email protected]>Signed-off-by Gregory CLEMENT <[email protected]>--- arch/arm/boot/dts/armada-xp.dtsi | 2 +- arch/arm/mach-mvebu/irq-armada-370-xp.c | 52 +++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+), 1 deletion(-)
reapplied to mvebu/boards ;-)
squashed in Yehuda's fix.
thx,
Jason.