linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: debug-ll: Add support for r8a7743
@ 2017-06-08  7:48 Chris Paterson
  2017-06-08  8:26 ` Geert Uytterhoeven
  2017-06-08 10:08 ` [PATCH v2] " Chris Paterson
  0 siblings, 2 replies; 6+ messages in thread
From: Chris Paterson @ 2017-06-08  7:48 UTC (permalink / raw)
  To: linux-arm-kernel

Enable low-level debugging support for RZ/G1M (r8a7743). RZ/G1M uses
SCIF0 for the debug console, like most of the R-Car Gen2 SoCs.

Signed-off-by: Chris Paterson <chris.paterson2@renesas.com>
---
 arch/arm/Kconfig.debug | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
index ba2cb63..fd5164c 100644
--- a/arch/arm/Kconfig.debug
+++ b/arch/arm/Kconfig.debug
@@ -895,12 +895,13 @@ choice
 		  via SCIF2 on Renesas R-Car H1 (R8A7779).
 
 	config DEBUG_RCAR_GEN2_SCIF0
-		bool "Kernel low-level debugging messages via SCIF0 on R8A7790/R8A7791/R8A7792/R8A7793"
-		depends on ARCH_R8A7790 || ARCH_R8A7791 || ARCH_R8A7792 || ARCH_R8A7793
+		bool "Kernel low-level debugging messages via SCIF0 on R8A7743/R8A7790/R8A7791/R8A7792/R8A7793"
+		depends on ARCH_R8A7743 || ARCH_R8A7790 || ARCH_R8A7791 || \
+			ARCH_R8A7792 || ARCH_R8A7793
 		help
 		  Say Y here if you want kernel low-level debugging support
-		  via SCIF0 on Renesas R-Car H2 (R8A7790), M2-W (R8A7791), V2H
-		  (R8A7792), or M2-N (R8A7793).
+		  via SCIF0 on Renesas RZ/G1M (R8A7743), R-Car H2 (R8A7790),
+		  M2-W (R8A7791), V2H (R8A7792), or M2-N (R8A7793).
 
 	config DEBUG_RCAR_GEN2_SCIF2
 		bool "Kernel low-level debugging messages via SCIF2 on R8A7794"
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH] ARM: debug-ll: Add support for r8a7743
  2017-06-08  7:48 [PATCH] ARM: debug-ll: Add support for r8a7743 Chris Paterson
@ 2017-06-08  8:26 ` Geert Uytterhoeven
  2017-06-08  8:50   ` Chris Paterson
  2017-06-08 10:08 ` [PATCH v2] " Chris Paterson
  1 sibling, 1 reply; 6+ messages in thread
From: Geert Uytterhoeven @ 2017-06-08  8:26 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Chris,

On Thu, Jun 8, 2017 at 9:48 AM, Chris Paterson
<chris.paterson2@renesas.com> wrote:
> Enable low-level debugging support for RZ/G1M (r8a7743). RZ/G1M uses
> SCIF0 for the debug console, like most of the R-Car Gen2 SoCs.

Thanks for your patch!

While the recommended debug method these days is "earlycon", DEBUG_LL is
indeed still useful to debug issues before earlycon is initialized.
Let's hope you will never encounter such issues on arm64, which doesn't
have DEBUG_LL per policy decision...

> Signed-off-by: Chris Paterson <chris.paterson2@renesas.com>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

> --- a/arch/arm/Kconfig.debug
> +++ b/arch/arm/Kconfig.debug
> @@ -895,12 +895,13 @@ choice
>                   via SCIF2 on Renesas R-Car H1 (R8A7779).
>
>         config DEBUG_RCAR_GEN2_SCIF0
> -               bool "Kernel low-level debugging messages via SCIF0 on R8A7790/R8A7791/R8A7792/R8A7793"
> -               depends on ARCH_R8A7790 || ARCH_R8A7791 || ARCH_R8A7792 || ARCH_R8A7793
> +               bool "Kernel low-level debugging messages via SCIF0 on R8A7743/R8A7790/R8A7791/R8A7792/R8A7793"

This line is becoming a bit long, and it'll only become worse in the future.
What about "Kernel low-level debugging messages via SCIF0 on R-Car Gen2"?
The full list of SoCs is still available in the extended help text.

> +               depends on ARCH_R8A7743 || ARCH_R8A7790 || ARCH_R8A7791 || \
> +                       ARCH_R8A7792 || ARCH_R8A7793
>                 help
>                   Say Y here if you want kernel low-level debugging support
> -                 via SCIF0 on Renesas R-Car H2 (R8A7790), M2-W (R8A7791), V2H
> -                 (R8A7792), or M2-N (R8A7793).
> +                 via SCIF0 on Renesas RZ/G1M (R8A7743), R-Car H2 (R8A7790),
> +                 M2-W (R8A7791), V2H (R8A7792), or M2-N (R8A7793).

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH] ARM: debug-ll: Add support for r8a7743
  2017-06-08  8:26 ` Geert Uytterhoeven
@ 2017-06-08  8:50   ` Chris Paterson
  2017-06-08  9:26     ` Geert Uytterhoeven
  0 siblings, 1 reply; 6+ messages in thread
From: Chris Paterson @ 2017-06-08  8:50 UTC (permalink / raw)
  To: linux-arm-kernel

Hello Geert,

> From: geert.uytterhoeven at gmail.com
> [mailto:geert.uytterhoeven at gmail.com] On Behalf Of Geert Uytterhoeven
> Sent: 08 June 2017 09:27
> 
> Hi Chris,
> 
> On Thu, Jun 8, 2017 at 9:48 AM, Chris Paterson
> <chris.paterson2@renesas.com> wrote:
> > Enable low-level debugging support for RZ/G1M (r8a7743). RZ/G1M uses
> > SCIF0 for the debug console, like most of the R-Car Gen2 SoCs.
> 
> Thanks for your patch!

Thank you for your review!

> 
> While the recommended debug method these days is "earlycon", DEBUG_LL
> is indeed still useful to debug issues before earlycon is initialized.
> Let's hope you will never encounter such issues on arm64, which doesn't
> have DEBUG_LL per policy decision...

Thank you for the information. It's hard to keep up with these decisions!

> 
> > Signed-off-by: Chris Paterson <chris.paterson2@renesas.com>
> 
> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
> 
> > --- a/arch/arm/Kconfig.debug
> > +++ b/arch/arm/Kconfig.debug
> > @@ -895,12 +895,13 @@ choice
> >                   via SCIF2 on Renesas R-Car H1 (R8A7779).
> >
> >         config DEBUG_RCAR_GEN2_SCIF0
> > -               bool "Kernel low-level debugging messages via SCIF0 on
> R8A7790/R8A7791/R8A7792/R8A7793"
> > -               depends on ARCH_R8A7790 || ARCH_R8A7791 || ARCH_R8A7792
> || ARCH_R8A7793
> > +               bool "Kernel low-level debugging messages via SCIF0 on
> R8A7743/R8A7790/R8A7791/R8A7792/R8A7793"
> 
> This line is becoming a bit long, and it'll only become worse in the future.
> What about "Kernel low-level debugging messages via SCIF0 on R-Car Gen2"?

What about "Kernel low-level debugging messages via SCIF0 on R-Car Gen2 and RZ/G1"?

I'd like to try and keep some sort of split between the two product lines if possible.

Kind regards, Chris

> The full list of SoCs is still available in the extended help text.
> 
> > +               depends on ARCH_R8A7743 || ARCH_R8A7790 || ARCH_R8A7791
> || \
> > +                       ARCH_R8A7792 || ARCH_R8A7793
> >                 help
> >                   Say Y here if you want kernel low-level debugging support
> > -                 via SCIF0 on Renesas R-Car H2 (R8A7790), M2-W (R8A7791), V2H
> > -                 (R8A7792), or M2-N (R8A7793).
> > +                 via SCIF0 on Renesas RZ/G1M (R8A7743), R-Car H2 (R8A7790),
> > +                 M2-W (R8A7791), V2H (R8A7792), or M2-N (R8A7793).
> 
> Gr{oetje,eeting}s,
> 
>                         Geert
> 
> --
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-
> m68k.org
> 
> In personal conversations with technical people, I call myself a hacker. But
> when I'm talking to journalists I just say "programmer" or something like that.
>                                 -- Linus Torvalds

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH] ARM: debug-ll: Add support for r8a7743
  2017-06-08  8:50   ` Chris Paterson
@ 2017-06-08  9:26     ` Geert Uytterhoeven
  0 siblings, 0 replies; 6+ messages in thread
From: Geert Uytterhoeven @ 2017-06-08  9:26 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Chris,

On Thu, Jun 8, 2017 at 10:50 AM, Chris Paterson
<Chris.Paterson2@renesas.com> wrote:
>> > --- a/arch/arm/Kconfig.debug
>> > +++ b/arch/arm/Kconfig.debug
>> > @@ -895,12 +895,13 @@ choice
>> >                   via SCIF2 on Renesas R-Car H1 (R8A7779).
>> >
>> >         config DEBUG_RCAR_GEN2_SCIF0
>> > -               bool "Kernel low-level debugging messages via SCIF0 on
>> R8A7790/R8A7791/R8A7792/R8A7793"
>> > -               depends on ARCH_R8A7790 || ARCH_R8A7791 || ARCH_R8A7792
>> || ARCH_R8A7793
>> > +               bool "Kernel low-level debugging messages via SCIF0 on
>> R8A7743/R8A7790/R8A7791/R8A7792/R8A7793"
>>
>> This line is becoming a bit long, and it'll only become worse in the future.
>> What about "Kernel low-level debugging messages via SCIF0 on R-Car Gen2"?
>
> What about "Kernel low-level debugging messages via SCIF0 on R-Car Gen2 and RZ/G1"?

Oops, of course. That's what I intended to type ;-)

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH v2] ARM: debug-ll: Add support for r8a7743
  2017-06-08  7:48 [PATCH] ARM: debug-ll: Add support for r8a7743 Chris Paterson
  2017-06-08  8:26 ` Geert Uytterhoeven
@ 2017-06-08 10:08 ` Chris Paterson
  2017-07-05 10:24   ` Simon Horman
  1 sibling, 1 reply; 6+ messages in thread
From: Chris Paterson @ 2017-06-08 10:08 UTC (permalink / raw)
  To: linux-arm-kernel

Enable low-level debugging support for RZ/G1M (r8a7743). RZ/G1M uses
SCIF0 for the debug console, like most of the R-Car Gen2 SoCs.

Signed-off-by: Chris Paterson <chris.paterson2@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
v2:
- Added Geert reviewed-by
- Shortened config description

 arch/arm/Kconfig.debug | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
index ba2cb63..1b2c4c4 100644
--- a/arch/arm/Kconfig.debug
+++ b/arch/arm/Kconfig.debug
@@ -895,12 +895,13 @@ choice
 		  via SCIF2 on Renesas R-Car H1 (R8A7779).
 
 	config DEBUG_RCAR_GEN2_SCIF0
-		bool "Kernel low-level debugging messages via SCIF0 on R8A7790/R8A7791/R8A7792/R8A7793"
-		depends on ARCH_R8A7790 || ARCH_R8A7791 || ARCH_R8A7792 || ARCH_R8A7793
+		bool "Kernel low-level debugging messages via SCIF0 on R-Car Gen2 and RZ/G1"
+		depends on ARCH_R8A7743 || ARCH_R8A7790 || ARCH_R8A7791 || \
+			ARCH_R8A7792 || ARCH_R8A7793
 		help
 		  Say Y here if you want kernel low-level debugging support
-		  via SCIF0 on Renesas R-Car H2 (R8A7790), M2-W (R8A7791), V2H
-		  (R8A7792), or M2-N (R8A7793).
+		  via SCIF0 on Renesas RZ/G1M (R8A7743), R-Car H2 (R8A7790),
+		  M2-W (R8A7791), V2H (R8A7792), or M2-N (R8A7793).
 
 	config DEBUG_RCAR_GEN2_SCIF2
 		bool "Kernel low-level debugging messages via SCIF2 on R8A7794"
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH v2] ARM: debug-ll: Add support for r8a7743
  2017-06-08 10:08 ` [PATCH v2] " Chris Paterson
@ 2017-07-05 10:24   ` Simon Horman
  0 siblings, 0 replies; 6+ messages in thread
From: Simon Horman @ 2017-07-05 10:24 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Jun 08, 2017 at 11:08:14AM +0100, Chris Paterson wrote:
> Enable low-level debugging support for RZ/G1M (r8a7743). RZ/G1M uses
> SCIF0 for the debug console, like most of the R-Car Gen2 SoCs.
> 
> Signed-off-by: Chris Paterson <chris.paterson2@renesas.com>
> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

Thanks, applied for v4.14.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-07-05 10:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-08  7:48 [PATCH] ARM: debug-ll: Add support for r8a7743 Chris Paterson
2017-06-08  8:26 ` Geert Uytterhoeven
2017-06-08  8:50   ` Chris Paterson
2017-06-08  9:26     ` Geert Uytterhoeven
2017-06-08 10:08 ` [PATCH v2] " Chris Paterson
2017-07-05 10:24   ` Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).