Thread (17 messages) 17 messages, 3 authors, 2012-10-23

Re: [PATCH 3/5] arm: mvebu: Added IPI support via doorbells

From: Gregory CLEMENT <hidden>
Date: 2012-10-22 21:11:02
Also in: linux-arm-kernel

On 10/22/2012 10:07 PM, Andrew Lunn wrote:
On Mon, Oct 22, 2012 at 09:07:34PM +0200, Gregory CLEMENT wrote:
quoted
On 10/22/2012 07:30 PM, Andrew Lunn wrote:
quoted
On Mon, Oct 22, 2012 at 07:02:45PM +0200, Gregory CLEMENT wrote:
quoted
From: Yehuda Yitschak <redacted>

Signed-off-by: Yehuda Yitschak <redacted>
Signed-off-by: Gregory CLEMENT <redacted>
---
 arch/arm/boot/dts/armada-xp.dtsi        |    2 +-
 arch/arm/mach-mvebu/armada-370-xp.h     |   10 ++++
 arch/arm/mach-mvebu/irq-armada-370-xp.c |   92 +++++++++++++++++++++++++++++--
 3 files changed, 97 insertions(+), 7 deletions(-)
diff --git a/arch/arm/boot/dts/armada-xp.dtsi b/arch/arm/boot/dts/armada-xp.dtsi
index f521ed8..531619f 100644
--- a/arch/arm/boot/dts/armada-xp.dtsi
+++ b/arch/arm/boot/dts/armada-xp.dtsi
@@ -24,7 +24,7 @@
 
 	mpic: interrupt-controller@d0020000 {
 	      reg = <0xd0020a00 0x1d0>,
-		    <0xd0021870 0x58>;
+		    <0xd0021070 0x58>;
 	};
Hi Gregory

Is this a bug fix needed for 3.7?

   Andrew
I don't think so.
We extended the reg map to be able to use registers only used for SMP.
When we didn't have SMP support the mapping was correct, and now by
introducing SMP we extend it.
The length has stayed the same, so its not extended. Its now 0x800
bytes earlier in the address space.
Right!
I didn't check it, sorry.

The correct explanation is that the offset +21070 is a CPU virtual offset.
That means that depending of the CPU core which will access to this register,
the controller will internally change the offset automagically to point the
correct offset.

I should have added an explanation in the commit log. I will do it for V2.
      Andrew

-- 
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help