* [PATCH 3/6] arm/l7200: fix debug macro compilation failure
2010-07-14 2:32 [PATCH 0/6] debug macro fixups Jeremy Kerr
@ 2010-07-14 2:32 ` Jeremy Kerr
2010-07-14 2:32 ` [PATCH 6/6] arm/shark: " Jeremy Kerr
` (7 subsequent siblings)
8 siblings, 0 replies; 19+ messages in thread
From: Jeremy Kerr @ 2010-07-14 2:32 UTC (permalink / raw)
To: linux-arm-kernel
We need mach/hardware.h for IO_BASE and IO_START.
Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
---
arch/arm/mach-l7200/include/mach/debug-macro.S | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/mach-l7200/include/mach/debug-macro.S b/arch/arm/mach-l7200/include/mach/debug-macro.S
index b0a2db7..31be104 100644
--- a/arch/arm/mach-l7200/include/mach/debug-macro.S
+++ b/arch/arm/mach-l7200/include/mach/debug-macro.S
@@ -11,6 +11,8 @@
*
*/
+#include <mach/hardware.h>
+
.equ io_virt, IO_BASE
.equ io_phys, IO_START
^ permalink raw reply related [flat|nested] 19+ messages in thread* [PATCH 6/6] arm/shark: fix debug macro compilation failure
2010-07-14 2:32 [PATCH 0/6] debug macro fixups Jeremy Kerr
2010-07-14 2:32 ` [PATCH 3/6] arm/l7200: fix debug macro compilation failure Jeremy Kerr
@ 2010-07-14 2:32 ` Jeremy Kerr
2010-07-22 10:36 ` Russell King - ARM Linux
2010-07-14 2:32 ` [PATCH 5/6] arm/ns9xxx: " Jeremy Kerr
` (6 subsequent siblings)
8 siblings, 1 reply; 19+ messages in thread
From: Jeremy Kerr @ 2010-07-14 2:32 UTC (permalink / raw)
To: linux-arm-kernel
We need a waituart macro.
Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
---
arch/arm/mach-shark/include/mach/debug-macro.S | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm/mach-shark/include/mach/debug-macro.S b/arch/arm/mach-shark/include/mach/debug-macro.S
index 269281f..3c46860 100644
--- a/arch/arm/mach-shark/include/mach/debug-macro.S
+++ b/arch/arm/mach-shark/include/mach/debug-macro.S
@@ -21,6 +21,9 @@
strb \rd, [\rx]
.endm
+ .macro waituart,rd,rx
+ .endm
+
.macro busyuart,rd,rx
mov \rd, #0
1001: add \rd, \rd, #1
@@ -28,3 +31,5 @@
bne 1001b
.endm
+
+
^ permalink raw reply related [flat|nested] 19+ messages in thread* [PATCH 6/6] arm/shark: fix debug macro compilation failure
2010-07-14 2:32 ` [PATCH 6/6] arm/shark: " Jeremy Kerr
@ 2010-07-22 10:36 ` Russell King - ARM Linux
0 siblings, 0 replies; 19+ messages in thread
From: Russell King - ARM Linux @ 2010-07-22 10:36 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Jul 14, 2010 at 10:32:39AM +0800, Jeremy Kerr wrote:
> We need a waituart macro.
>
> Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
>
> ---
> arch/arm/mach-shark/include/mach/debug-macro.S | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/arch/arm/mach-shark/include/mach/debug-macro.S b/arch/arm/mach-shark/include/mach/debug-macro.S
> index 269281f..3c46860 100644
> --- a/arch/arm/mach-shark/include/mach/debug-macro.S
> +++ b/arch/arm/mach-shark/include/mach/debug-macro.S
> @@ -21,6 +21,9 @@
> strb \rd, [\rx]
> .endm
>
> + .macro waituart,rd,rx
> + .endm
> +
> .macro busyuart,rd,rx
> mov \rd, #0
> 1001: add \rd, \rd, #1
> @@ -28,3 +31,5 @@
> bne 1001b
> .endm
>
> +
> +
This last hunk isn't required!
^ permalink raw reply [flat|nested] 19+ messages in thread
* [PATCH 5/6] arm/ns9xxx: fix debug macro compilation failure
2010-07-14 2:32 [PATCH 0/6] debug macro fixups Jeremy Kerr
2010-07-14 2:32 ` [PATCH 3/6] arm/l7200: fix debug macro compilation failure Jeremy Kerr
2010-07-14 2:32 ` [PATCH 6/6] arm/shark: " Jeremy Kerr
@ 2010-07-14 2:32 ` Jeremy Kerr
2010-07-22 10:38 ` Russell King - ARM Linux
2010-07-14 2:32 ` [PATCH 4/6] arm/plat-spear: " Jeremy Kerr
` (5 subsequent siblings)
8 siblings, 1 reply; 19+ messages in thread
From: Jeremy Kerr @ 2010-07-14 2:32 UTC (permalink / raw)
To: linux-arm-kernel
We need mach/memory.h for NS9XXX_CSxSTAT_PHYS, and mach/memory.h needs
asm/memory.h for UL().
Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
---
arch/arm/mach-ns9xxx/include/mach/debug-macro.S | 1 +
arch/arm/mach-ns9xxx/include/mach/memory.h | 2 ++
2 files changed, 3 insertions(+)
diff --git a/arch/arm/mach-ns9xxx/include/mach/debug-macro.S b/arch/arm/mach-ns9xxx/include/mach/debug-macro.S
index ae770fd..06f41f7 100644
--- a/arch/arm/mach-ns9xxx/include/mach/debug-macro.S
+++ b/arch/arm/mach-ns9xxx/include/mach/debug-macro.S
@@ -8,6 +8,7 @@
* the Free Software Foundation.
*/
#include <mach/hardware.h>
+#include <mach/memory.h>
#include <mach/regs-board-a9m9750dev.h>
diff --git a/arch/arm/mach-ns9xxx/include/mach/memory.h b/arch/arm/mach-ns9xxx/include/mach/memory.h
index 6107193..b5bbda5 100644
--- a/arch/arm/mach-ns9xxx/include/mach/memory.h
+++ b/arch/arm/mach-ns9xxx/include/mach/memory.h
@@ -11,6 +11,8 @@
#ifndef __ASM_ARCH_MEMORY_H
#define __ASM_ARCH_MEMORY_H
+#include <asm/memory.h>
+
/* x in [0..3] */
#define NS9XXX_CSxSTAT_PHYS(x) UL(((x) + 4) << 28)
^ permalink raw reply related [flat|nested] 19+ messages in thread* [PATCH 5/6] arm/ns9xxx: fix debug macro compilation failure
2010-07-14 2:32 ` [PATCH 5/6] arm/ns9xxx: " Jeremy Kerr
@ 2010-07-22 10:38 ` Russell King - ARM Linux
2010-07-22 10:50 ` Eric Miao
2010-07-22 14:05 ` [PATCH v2] " Jeremy Kerr
0 siblings, 2 replies; 19+ messages in thread
From: Russell King - ARM Linux @ 2010-07-22 10:38 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Jul 14, 2010 at 10:32:39AM +0800, Jeremy Kerr wrote:
> We need mach/memory.h for NS9XXX_CSxSTAT_PHYS, and mach/memory.h needs
> asm/memory.h for UL().
NAK. Definitely NAK. You haven't checked what includes whatelse.
asm/memory.h includes mach/memory.h to pick up the platform specific
parts, and provides mach/memory.h with its pre-requisits. Use asm/memory.h
_everywhere_ rather than mach/memory.h.
Doing otherwise will create include loops, which leads to unreliability
in defined symbols.
^ permalink raw reply [flat|nested] 19+ messages in thread
* [PATCH 5/6] arm/ns9xxx: fix debug macro compilation failure
2010-07-22 10:38 ` Russell King - ARM Linux
@ 2010-07-22 10:50 ` Eric Miao
2010-07-22 10:55 ` Russell King - ARM Linux
2010-07-22 14:05 ` [PATCH v2] " Jeremy Kerr
1 sibling, 1 reply; 19+ messages in thread
From: Eric Miao @ 2010-07-22 10:50 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Jul 22, 2010 at 12:38 PM, Russell King - ARM Linux
<linux@arm.linux.org.uk> wrote:
> On Wed, Jul 14, 2010 at 10:32:39AM +0800, Jeremy Kerr wrote:
>> We need mach/memory.h for NS9XXX_CSxSTAT_PHYS, and mach/memory.h needs
>> asm/memory.h for UL().
>
> NAK. ?Definitely NAK. ?You haven't checked what includes whatelse.
>
> asm/memory.h includes mach/memory.h to pick up the platform specific
> parts, and provides mach/memory.h with its pre-requisits. ?Use asm/memory.h
> _everywhere_ rather than mach/memory.h.
>
I think it would be just fine to encode PHYS_OFFSET as 0xNNNNNNNNUL
instead of using UL() if there is no specific reason. So we don't need
to include
asm/memory.h any more in machine specific code.
> Doing otherwise will create include loops, which leads to unreliability
> in defined symbols.
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
>
^ permalink raw reply [flat|nested] 19+ messages in thread
* [PATCH 5/6] arm/ns9xxx: fix debug macro compilation failure
2010-07-22 10:50 ` Eric Miao
@ 2010-07-22 10:55 ` Russell King - ARM Linux
0 siblings, 0 replies; 19+ messages in thread
From: Russell King - ARM Linux @ 2010-07-22 10:55 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Jul 22, 2010 at 12:50:28PM +0200, Eric Miao wrote:
> On Thu, Jul 22, 2010 at 12:38 PM, Russell King - ARM Linux
> <linux@arm.linux.org.uk> wrote:
> > On Wed, Jul 14, 2010 at 10:32:39AM +0800, Jeremy Kerr wrote:
> >> We need mach/memory.h for NS9XXX_CSxSTAT_PHYS, and mach/memory.h needs
> >> asm/memory.h for UL().
> >
> > NAK. ?Definitely NAK. ?You haven't checked what includes whatelse.
> >
> > asm/memory.h includes mach/memory.h to pick up the platform specific
> > parts, and provides mach/memory.h with its pre-requisits. ?Use asm/memory.h
> > _everywhere_ rather than mach/memory.h.
> >
>
> I think it would be just fine to encode PHYS_OFFSET as 0xNNNNNNNNUL
> instead of using UL() if there is no specific reason. So we don't need
> to include asm/memory.h any more in machine specific code.
No it's not. 0xNNNNNNNNUL isn't able to be parsed by the assembler.
That's the whole reason for UL() existing.
^ permalink raw reply [flat|nested] 19+ messages in thread
* [PATCH v2] arm/ns9xxx: fix debug macro compilation failure
2010-07-22 10:38 ` Russell King - ARM Linux
2010-07-22 10:50 ` Eric Miao
@ 2010-07-22 14:05 ` Jeremy Kerr
2010-07-22 14:10 ` Russell King - ARM Linux
1 sibling, 1 reply; 19+ messages in thread
From: Jeremy Kerr @ 2010-07-22 14:05 UTC (permalink / raw)
To: linux-arm-kernel
We need asm/memory.h for NS9XXX_CSxSTAT_PHYS (via mach/memory.h).
Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
---
v2: use asm/memory.h directly
---
arch/arm/mach-ns9xxx/include/mach/debug-macro.S | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/mach-ns9xxx/include/mach/debug-macro.S b/arch/arm/mach-ns9xxx/include/mach/debug-macro.S
index 0859336..5c934bd 100644
--- a/arch/arm/mach-ns9xxx/include/mach/debug-macro.S
+++ b/arch/arm/mach-ns9xxx/include/mach/debug-macro.S
@@ -8,6 +8,7 @@
* the Free Software Foundation.
*/
#include <mach/hardware.h>
+#include <asm/memory.h>
#include <mach/regs-board-a9m9750dev.h>
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [PATCH 4/6] arm/plat-spear: fix debug macro compilation failure
2010-07-14 2:32 [PATCH 0/6] debug macro fixups Jeremy Kerr
` (2 preceding siblings ...)
2010-07-14 2:32 ` [PATCH 5/6] arm/ns9xxx: " Jeremy Kerr
@ 2010-07-14 2:32 ` Jeremy Kerr
2010-07-14 2:32 ` [PATCH 1/6] arm/clps711x: " Jeremy Kerr
` (4 subsequent siblings)
8 siblings, 0 replies; 19+ messages in thread
From: Jeremy Kerr @ 2010-07-14 2:32 UTC (permalink / raw)
To: linux-arm-kernel
mov rx, =<immediate> isn't valid, use #<immediate> instead.
Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
---
arch/arm/plat-spear/include/plat/debug-macro.S | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/plat-spear/include/plat/debug-macro.S b/arch/arm/plat-spear/include/plat/debug-macro.S
index d922310..e91270e 100644
--- a/arch/arm/plat-spear/include/plat/debug-macro.S
+++ b/arch/arm/plat-spear/include/plat/debug-macro.S
@@ -15,8 +15,8 @@
#include <mach/spear.h>
.macro addruart, rp, rv
- mov \rp, =SPEAR_DBG_UART_BASE @ Physical base
- mov \rv, =VA_SPEAR_DBG_UART_BASE @ Virtual base
+ mov \rp, #SPEAR_DBG_UART_BASE @ Physical base
+ mov \rv, #VA_SPEAR_DBG_UART_BASE @ Virtual base
.endm
.macro senduart, rd, rx
^ permalink raw reply related [flat|nested] 19+ messages in thread* [PATCH 1/6] arm/clps711x: fix debug macro compilation failure
2010-07-14 2:32 [PATCH 0/6] debug macro fixups Jeremy Kerr
` (3 preceding siblings ...)
2010-07-14 2:32 ` [PATCH 4/6] arm/plat-spear: " Jeremy Kerr
@ 2010-07-14 2:32 ` Jeremy Kerr
2010-07-14 2:32 ` [PATCH 2/6] arm/h720x: " Jeremy Kerr
` (3 subsequent siblings)
8 siblings, 0 replies; 19+ messages in thread
From: Jeremy Kerr @ 2010-07-14 2:32 UTC (permalink / raw)
To: linux-arm-kernel
We need mach/hardware.h for CLPS7111_VIRT_BASE.
Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
---
arch/arm/mach-clps711x/include/mach/debug-macro.S | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/mach-clps711x/include/mach/debug-macro.S b/arch/arm/mach-clps711x/include/mach/debug-macro.S
index 2d61679..507c687 100644
--- a/arch/arm/mach-clps711x/include/mach/debug-macro.S
+++ b/arch/arm/mach-clps711x/include/mach/debug-macro.S
@@ -11,6 +11,7 @@
*
*/
+#include <mach/hardware.h>
#include <asm/hardware/clps7111.h>
.macro addruart, rp, rv
^ permalink raw reply related [flat|nested] 19+ messages in thread* [PATCH 2/6] arm/h720x: fix debug macro compilation failure
2010-07-14 2:32 [PATCH 0/6] debug macro fixups Jeremy Kerr
` (4 preceding siblings ...)
2010-07-14 2:32 ` [PATCH 1/6] arm/clps711x: " Jeremy Kerr
@ 2010-07-14 2:32 ` Jeremy Kerr
2010-07-14 2:39 ` [PATCH 0/6] debug macro fixups Jeremy Kerr
` (2 subsequent siblings)
8 siblings, 0 replies; 19+ messages in thread
From: Jeremy Kerr @ 2010-07-14 2:32 UTC (permalink / raw)
To: linux-arm-kernel
IO_BASE shoule be IO_VIRT, and IO_START should be IO_PHYS. We also need
mach/hardware.h for these definitions.
Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
---
arch/arm/mach-h720x/include/mach/debug-macro.S | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-h720x/include/mach/debug-macro.S b/arch/arm/mach-h720x/include/mach/debug-macro.S
index 60c0c43..c2093e8 100644
--- a/arch/arm/mach-h720x/include/mach/debug-macro.S
+++ b/arch/arm/mach-h720x/include/mach/debug-macro.S
@@ -11,8 +11,10 @@
*
*/
- .equ io_virt, IO_BASE
- .equ io_phys, IO_START
+#include <mach/hardware.h>
+
+ .equ io_virt, IO_VIRT
+ .equ io_phys, IO_PHYS
.macro addruart, rp, rv
mov \rp, #0x00020000 @ UART1
^ permalink raw reply related [flat|nested] 19+ messages in thread* [PATCH 0/6] debug macro fixups
2010-07-14 2:32 [PATCH 0/6] debug macro fixups Jeremy Kerr
` (5 preceding siblings ...)
2010-07-14 2:32 ` [PATCH 2/6] arm/h720x: " Jeremy Kerr
@ 2010-07-14 2:39 ` Jeremy Kerr
2010-07-14 3:40 ` Nicolas Pitre
2010-07-14 5:31 ` Baruch Siach
2010-07-22 10:39 ` Russell King - ARM Linux
8 siblings, 1 reply; 19+ messages in thread
From: Jeremy Kerr @ 2010-07-14 2:39 UTC (permalink / raw)
To: linux-arm-kernel
Hi all,
> These changes are on top of the DEBUG_LL mapping changes.
Let me know if these would be better off the other way around - fixes
first, then the mapping changes on top of that.
Cheers,
Jeremy
^ permalink raw reply [flat|nested] 19+ messages in thread* [PATCH 0/6] debug macro fixups
2010-07-14 2:39 ` [PATCH 0/6] debug macro fixups Jeremy Kerr
@ 2010-07-14 3:40 ` Nicolas Pitre
2010-07-14 7:31 ` Jeremy Kerr
0 siblings, 1 reply; 19+ messages in thread
From: Nicolas Pitre @ 2010-07-14 3:40 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, 14 Jul 2010, Jeremy Kerr wrote:
> Hi all,
>
> > These changes are on top of the DEBUG_LL mapping changes.
>
> Let me know if these would be better off the other way around - fixes
> first, then the mapping changes on top of that.
Having fixes first would be preferable indeed.
Nicolas
^ permalink raw reply [flat|nested] 19+ messages in thread
* [PATCH 0/6] debug macro fixups
2010-07-14 3:40 ` Nicolas Pitre
@ 2010-07-14 7:31 ` Jeremy Kerr
0 siblings, 0 replies; 19+ messages in thread
From: Jeremy Kerr @ 2010-07-14 7:31 UTC (permalink / raw)
To: linux-arm-kernel
Hi Nicolas,
> > Let me know if these would be better off the other way around - fixes
> > first, then the mapping changes on top of that.
>
> Having fixes first would be preferable indeed.
OK, done & sent. I'll hold off on re-sending the (rebased) addruart
changes, as I expect there'll be more feedback on those that I can roll
into one update.
Cheers,
Jeremy
^ permalink raw reply [flat|nested] 19+ messages in thread
* [PATCH 0/6] debug macro fixups
2010-07-14 2:32 [PATCH 0/6] debug macro fixups Jeremy Kerr
` (6 preceding siblings ...)
2010-07-14 2:39 ` [PATCH 0/6] debug macro fixups Jeremy Kerr
@ 2010-07-14 5:31 ` Baruch Siach
2010-07-22 10:39 ` Russell King - ARM Linux
8 siblings, 0 replies; 19+ messages in thread
From: Baruch Siach @ 2010-07-14 5:31 UTC (permalink / raw)
To: linux-arm-kernel
Hi Jeremy,
On Wed, Jul 14, 2010 at 10:32:39AM +0800, Jeremy Kerr wrote:
> As part of the DEBUG_LL mapping changes, I ran all of the defconfigs
> with DEBUG_LL=y. Some of the configs are broken, so I'm posting the
> fixups.
>
> mx1 is still broken, as IMX_IO_ADDRESS() (used by the mx1 debug macros)
> uses C syntax, and so it not suitable for asm.
You can use the patches from
http://thread.gmane.org/gmane.linux.ports.arm.kernel/75691 to make mx1 (and
mx25) pass your tests.
baruch
> These changes are on top of the DEBUG_LL mapping changes.
>
> Cheers,
>
>
> Jeremy
>
> ---
> Jeremy Kerr (6):
> arm/clps711x: fix debug macro compilation failure
> arm/h720x: fix debug macro compilation failure
> arm/l7200: fix debug macro compilation failure
> arm/plat-spear: fix debug macro compilation failure
> arm/ns9xxx: fix debug macro compilation failure
> arm/shark: fix debug macro compilation failure
--
~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 19+ messages in thread* [PATCH 0/6] debug macro fixups
2010-07-14 2:32 [PATCH 0/6] debug macro fixups Jeremy Kerr
` (7 preceding siblings ...)
2010-07-14 5:31 ` Baruch Siach
@ 2010-07-22 10:39 ` Russell King - ARM Linux
2010-07-22 15:36 ` Jeremy Kerr
8 siblings, 1 reply; 19+ messages in thread
From: Russell King - ARM Linux @ 2010-07-22 10:39 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Jul 14, 2010 at 10:32:39AM +0800, Jeremy Kerr wrote:
> As part of the DEBUG_LL mapping changes, I ran all of the defconfigs
> with DEBUG_LL=y. Some of the configs are broken, so I'm posting the
> fixups.
Apart from the two comments, the rest is fine, and should be merged
in -rc. Please send the fixed patches to the patch system.
^ permalink raw reply [flat|nested] 19+ messages in thread