All of lore.kernel.org
 help / color / mirror / Atom feed
From: Geert Uytterhoeven <geert@linux-m68k.org>
To: Rob Herring <robherring2@gmail.com>
Cc: Rich Felker <dalias@libc.org>,
	Geert Uytterhoeven <geert+renesas@glider.be>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Simon Horman <horms@verge.net.au>,
	Magnus Damm <magnus.damm@gmail.com>,
	Yoshinori Sato <ysato@users.sourceforge.jp>,
	Jiri Slaby <jslaby@suse.com>,
	"open list:SERIAL DRIVERS" <linux-serial@vger.kernel.org>,
	Linux-Renesas <linux-renesas-soc@vger.kernel.org>,
	"moderated list:H8/300 ARCHITECTURE"
	<uclinux-h8-devel@lists.sourceforge.jp>,
	Linux-sh list <linux-sh@vger.kernel.org>,
	Jacopo Mondi <jacopo+renesas@jmondi.org>
Subject: Re: [PATCH 3/5] tty: serial: sh-sci: Hide earlycon config question
Date: Fri, 04 May 2018 07:35:39 +0000	[thread overview]
Message-ID: <CAMuHMdXbhkVEmrDn1K_nqyp4BQ28j9SFc3jy-PRUB=yrpJt5sA@mail.gmail.com> (raw)
In-Reply-To: <CAL_JsqJ0MJRpQR7ECY0bi_KJuOzD4NvL1KCzjPnjaVeifHxXVQ@mail.gmail.com>

Hi Rob,

On Wed, May 2, 2018 at 4:32 AM, Rob Herring <robherring2@gmail.com> wrote:
> On Sun, Apr 15, 2018 at 2:09 PM, Rich Felker <dalias@libc.org> wrote:
>> On Sun, Apr 15, 2018 at 08:58:42PM +0200, Geert Uytterhoeven wrote:
>>> On Sun, Apr 15, 2018 at 2:34 AM, Rich Felker <dalias@libc.org> wrote:
>>> > On Thu, Nov 30, 2017 at 02:12:00PM +0100, Geert Uytterhoeven wrote:
>>> >> Renesas H8/300 and ARM platforms use DT and support earlycon, so most
>>> >> users want earlycon support to be enabled.
>>> >>
>>> >> On SuperH platforms, earlycon is not yet supported.
>>> >>
>>> >> Hence follow the above rationale to configure the default, unless
>>> >> CONFIG_EXPERT is enabled.
>>> >>
>>> >> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
>>> >> ---
>>> >>  drivers/tty/serial/Kconfig | 3 ++-
>>> >>  1 file changed, 2 insertions(+), 1 deletion(-)
>>> >>
>>> >> diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig
>>> >> index 0c75562d620feb82..952a2c6a9da08fdd 100644
>>> >> --- a/drivers/tty/serial/Kconfig
>>> >> +++ b/drivers/tty/serial/Kconfig
>>> >> @@ -774,10 +774,11 @@ config SERIAL_SH_SCI_CONSOLE
>>> >>       default y
>>> >>
>>> >>  config SERIAL_SH_SCI_EARLYCON
>>> >> -     bool "Support for early console on SuperH SCI(F)"
>>> >> +     bool "Support for early console on SuperH SCI(F)" if EXPERT
>>> >>       depends on SERIAL_SH_SCI=y
>>> >>       select SERIAL_CORE_CONSOLE
>>> >>       select SERIAL_EARLYCON
>>> >> +     default ARCH_RENESAS || H8300
>>> >>
>>> >>  config SERIAL_SH_SCI_DMA
>>> >>       bool "DMA support"
>>> >> --
>>> >
>>> > Can you clarify what the claim that SuperH does not support earlycon
>>> > is based on? My understanding is that users were successfully using
>>> > this option on Renesas SH systems, and I'm using it on J2 with the
>>> > uartlite earlycon support which I added in 7cdcc29e49. I think if you
>>> > want to omit the question it should always default to enabled.
>>>
>>> This is a patch for a Kconfig option for the Renesas sh-sci driver, which
>>> supports the SCI, SCIF, SCIFA, SCIFB, and HSCIF uarts found on various
>>> Renesas SoCs.
>>>
>>> Earlycon is used with DT only. While you are using earlycon on J2, you do
>>> use it with a different uart (uartlite). Currently there's no upstream support
>>> for using DT on Renesas SuperH SoCs. If this changes, the default for
>>> SERIAL_SH_SCI_EARLYCON has to be changed.
>>>
>>> So none of my patch applies to the current state of SuperH Linux support.
>>
>> OK, I was under the impression (from users) that it worked on Renesas
>> SH devices without DT. If it really doesn't then it doesn't matter
>> until DT support for them is added. I've got some hardware to
>> experiment with now so I'll see what can be done.
>
> Yes, it works without DT (but maybe that is UART specific). It was
> originally an x86 8250 thing.
>
> The main thing you need is either fixmap support or ioremap has to
> work before paging_init when early_params are processed.

Without DT and its chosen/stdout-path, you need a way to specify which
UART to use. That's typically done through a UART-specific earlyconextension.

The sh-sci.c driver uses:

    OF_EARLYCON_DECLARE(scif, "renesas,scif", scif_early_console_setup);
    (+ for sci, scifa, scifb, hscif)

So it may actually work with earlycon=scif,0x<addr>?

Anyone who can try on a non-DT SH system?

if it works, the default should be changed to

    default ARCH_RENESAS || H8300 || SUPERH

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@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

WARNING: multiple messages have this Message-ID (diff)
From: Geert Uytterhoeven <geert@linux-m68k.org>
To: Rob Herring <robherring2@gmail.com>
Cc: Rich Felker <dalias@libc.org>,
	Geert Uytterhoeven <geert+renesas@glider.be>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Simon Horman <horms@verge.net.au>,
	Magnus Damm <magnus.damm@gmail.com>,
	Yoshinori Sato <ysato@users.sourceforge.jp>,
	Jiri Slaby <jslaby@suse.com>,
	"open list:SERIAL DRIVERS" <linux-serial@vger.kernel.org>,
	Linux-Renesas <linux-renesas-soc@vger.kernel.org>,
	"moderated list:H8/300 ARCHITECTURE"
	<uclinux-h8-devel@lists.sourceforge.jp>,
	Linux-sh list <linux-sh@vger.kernel.org>,
	Jacopo Mondi <jacopo+renesas@jmondi.org>
Subject: Re: [PATCH 3/5] tty: serial: sh-sci: Hide earlycon config question
Date: Fri, 4 May 2018 09:35:39 +0200	[thread overview]
Message-ID: <CAMuHMdXbhkVEmrDn1K_nqyp4BQ28j9SFc3jy-PRUB=yrpJt5sA@mail.gmail.com> (raw)
In-Reply-To: <CAL_JsqJ0MJRpQR7ECY0bi_KJuOzD4NvL1KCzjPnjaVeifHxXVQ@mail.gmail.com>

Hi Rob,

On Wed, May 2, 2018 at 4:32 AM, Rob Herring <robherring2@gmail.com> wrote:
> On Sun, Apr 15, 2018 at 2:09 PM, Rich Felker <dalias@libc.org> wrote:
>> On Sun, Apr 15, 2018 at 08:58:42PM +0200, Geert Uytterhoeven wrote:
>>> On Sun, Apr 15, 2018 at 2:34 AM, Rich Felker <dalias@libc.org> wrote:
>>> > On Thu, Nov 30, 2017 at 02:12:00PM +0100, Geert Uytterhoeven wrote:
>>> >> Renesas H8/300 and ARM platforms use DT and support earlycon, so most
>>> >> users want earlycon support to be enabled.
>>> >>
>>> >> On SuperH platforms, earlycon is not yet supported.
>>> >>
>>> >> Hence follow the above rationale to configure the default, unless
>>> >> CONFIG_EXPERT is enabled.
>>> >>
>>> >> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
>>> >> ---
>>> >>  drivers/tty/serial/Kconfig | 3 ++-
>>> >>  1 file changed, 2 insertions(+), 1 deletion(-)
>>> >>
>>> >> diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig
>>> >> index 0c75562d620feb82..952a2c6a9da08fdd 100644
>>> >> --- a/drivers/tty/serial/Kconfig
>>> >> +++ b/drivers/tty/serial/Kconfig
>>> >> @@ -774,10 +774,11 @@ config SERIAL_SH_SCI_CONSOLE
>>> >>       default y
>>> >>
>>> >>  config SERIAL_SH_SCI_EARLYCON
>>> >> -     bool "Support for early console on SuperH SCI(F)"
>>> >> +     bool "Support for early console on SuperH SCI(F)" if EXPERT
>>> >>       depends on SERIAL_SH_SCI=y
>>> >>       select SERIAL_CORE_CONSOLE
>>> >>       select SERIAL_EARLYCON
>>> >> +     default ARCH_RENESAS || H8300
>>> >>
>>> >>  config SERIAL_SH_SCI_DMA
>>> >>       bool "DMA support"
>>> >> --
>>> >
>>> > Can you clarify what the claim that SuperH does not support earlycon
>>> > is based on? My understanding is that users were successfully using
>>> > this option on Renesas SH systems, and I'm using it on J2 with the
>>> > uartlite earlycon support which I added in 7cdcc29e49. I think if you
>>> > want to omit the question it should always default to enabled.
>>>
>>> This is a patch for a Kconfig option for the Renesas sh-sci driver, which
>>> supports the SCI, SCIF, SCIFA, SCIFB, and HSCIF uarts found on various
>>> Renesas SoCs.
>>>
>>> Earlycon is used with DT only. While you are using earlycon on J2, you do
>>> use it with a different uart (uartlite). Currently there's no upstream support
>>> for using DT on Renesas SuperH SoCs. If this changes, the default for
>>> SERIAL_SH_SCI_EARLYCON has to be changed.
>>>
>>> So none of my patch applies to the current state of SuperH Linux support.
>>
>> OK, I was under the impression (from users) that it worked on Renesas
>> SH devices without DT. If it really doesn't then it doesn't matter
>> until DT support for them is added. I've got some hardware to
>> experiment with now so I'll see what can be done.
>
> Yes, it works without DT (but maybe that is UART specific). It was
> originally an x86 8250 thing.
>
> The main thing you need is either fixmap support or ioremap has to
> work before paging_init when early_params are processed.

Without DT and its chosen/stdout-path, you need a way to specify which
UART to use. That's typically done through a UART-specific earlycon=
extension.

The sh-sci.c driver uses:

    OF_EARLYCON_DECLARE(scif, "renesas,scif", scif_early_console_setup);
    (+ for sci, scifa, scifb, hscif)

So it may actually work with earlycon=scif,0x<addr>?

Anyone who can try on a non-DT SH system?

if it works, the default should be changed to

    default ARCH_RENESAS || H8300 || SUPERH

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@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

  reply	other threads:[~2018-05-04  7:35 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-30 13:11 [PATCH 0/5] tty: serial: sh-sci: Hide driver specific config questions Geert Uytterhoeven
2017-11-30 13:11 ` Geert Uytterhoeven
2017-11-30 13:11 ` [PATCH 1/5] tty: serial: sh-sci: Hide number of ports config question Geert Uytterhoeven
2017-11-30 13:11   ` Geert Uytterhoeven
2017-11-30 13:11 ` [PATCH 2/5] tty: serial: sh-sci: Hide serial console " Geert Uytterhoeven
2017-11-30 13:11   ` Geert Uytterhoeven
2017-11-30 13:12 ` [PATCH 3/5] tty: serial: sh-sci: Hide earlycon " Geert Uytterhoeven
2017-11-30 13:12   ` Geert Uytterhoeven
2018-04-15  0:34   ` Rich Felker
2018-04-15  0:34     ` Rich Felker
2018-04-15 18:58     ` Geert Uytterhoeven
2018-04-15 18:58       ` Geert Uytterhoeven
2018-04-15 19:09       ` Rich Felker
2018-04-15 19:09         ` Rich Felker
2018-05-02  2:32         ` Rob Herring
2018-05-02  2:32           ` Rob Herring
2018-05-04  7:35           ` Geert Uytterhoeven [this message]
2018-05-04  7:35             ` Geert Uytterhoeven
2017-11-30 13:12 ` [PATCH 4/5] tty: serial: sh-sci: Hide DMA " Geert Uytterhoeven
2017-11-30 13:12   ` Geert Uytterhoeven
2017-11-30 13:12 ` [PATCH/RFC 5/5] ARM: shmobile: defconfig: Disable CONFIG_EMBEDDED Geert Uytterhoeven
2017-11-30 13:12   ` Geert Uytterhoeven
2017-12-01  8:33   ` Simon Horman
2017-12-01  8:33     ` Simon Horman
2017-12-04  9:46     ` Geert Uytterhoeven
2017-12-04  9:46       ` Geert Uytterhoeven
2017-12-05  8:28       ` Simon Horman
2017-12-05  8:28         ` Simon Horman
2017-12-09  2:18         ` Rob Landley
2017-12-09  2:18           ` Rob Landley
2017-12-09  8:54           ` Geert Uytterhoeven
2017-12-09  8:54             ` Geert Uytterhoeven

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAMuHMdXbhkVEmrDn1K_nqyp4BQ28j9SFc3jy-PRUB=yrpJt5sA@mail.gmail.com' \
    --to=geert@linux-m68k.org \
    --cc=dalias@libc.org \
    --cc=geert+renesas@glider.be \
    --cc=gregkh@linuxfoundation.org \
    --cc=horms@verge.net.au \
    --cc=jacopo+renesas@jmondi.org \
    --cc=jslaby@suse.com \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=linux-sh@vger.kernel.org \
    --cc=magnus.damm@gmail.com \
    --cc=robherring2@gmail.com \
    --cc=uclinux-h8-devel@lists.sourceforge.jp \
    --cc=ysato@users.sourceforge.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.