linux-riscv.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Documentation: admin-guide: add earlycon documentation for RISC-V
@ 2019-10-09 19:53 Paul Walmsley
  2019-10-10  7:10 ` Geert Uytterhoeven
  2019-10-17 16:10 ` Christoph Hellwig
  0 siblings, 2 replies; 7+ messages in thread
From: Paul Walmsley @ 2019-10-09 19:53 UTC (permalink / raw)
  To: Jonathan Corbet
  Cc: linux-doc, Andreas Schwab, linux-kernel, Geert Uytterhoeven,
	linux-riscv, Christoph Hellwig


Kernels booting on RISC-V can specify "earlycon" with no options on
the Linux command line, and the generic DT earlycon support will query
the "chosen/stdout-path" property (if present) to determine which
early console device to use.  Document this appropriately in the
admin-guide.

Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Andreas Schwab <schwab@suse.de>
---
 Documentation/admin-guide/kernel-parameters.txt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt
index c7ac2f3ac99f..011fee969ece 100644
--- a/Documentation/admin-guide/kernel-parameters.txt
+++ b/Documentation/admin-guide/kernel-parameters.txt
@@ -990,6 +990,10 @@
 			[X86] When used with no options the early console is
 			determined by the ACPI SPCR table.
 
+			[RISCV] When used with no options, the early
+			console is determined by the stdout-path
+			property in the device tree's chosen node.
+
 		cdns,<addr>[,options]
 			Start an early, polled-mode console on a Cadence
 			(xuartps) serial port at the specified address. Only
-- 
2.23.0


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

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

* Re: [PATCH] Documentation: admin-guide: add earlycon documentation for RISC-V
  2019-10-09 19:53 [PATCH] Documentation: admin-guide: add earlycon documentation for RISC-V Paul Walmsley
@ 2019-10-10  7:10 ` Geert Uytterhoeven
  2019-10-10 17:23   ` Jonathan Corbet
  2019-10-17 16:10 ` Christoph Hellwig
  1 sibling, 1 reply; 7+ messages in thread
From: Geert Uytterhoeven @ 2019-10-10  7:10 UTC (permalink / raw)
  To: Paul Walmsley
  Cc: open list:DOCUMENTATION, Andreas Schwab, Jonathan Corbet,
	Linux Kernel Mailing List, linux-riscv, Christoph Hellwig

On Wed, Oct 9, 2019 at 9:53 PM Paul Walmsley <paul.walmsley@sifive.com> wrote:
> Kernels booting on RISC-V can specify "earlycon" with no options on
> the Linux command line, and the generic DT earlycon support will query
> the "chosen/stdout-path" property (if present) to determine which
> early console device to use.  Document this appropriately in the
> admin-guide.
>
> Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>

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

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

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

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

* Re: [PATCH] Documentation: admin-guide: add earlycon documentation for RISC-V
  2019-10-10  7:10 ` Geert Uytterhoeven
@ 2019-10-10 17:23   ` Jonathan Corbet
  2019-11-08  6:10     ` Christoph Hellwig
  0 siblings, 1 reply; 7+ messages in thread
From: Jonathan Corbet @ 2019-10-10 17:23 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: open list:DOCUMENTATION, Andreas Schwab,
	Linux Kernel Mailing List, Paul Walmsley, linux-riscv,
	Christoph Hellwig

On Thu, 10 Oct 2019 09:10:18 +0200
Geert Uytterhoeven <geert@linux-m68k.org> wrote:

> On Wed, Oct 9, 2019 at 9:53 PM Paul Walmsley <paul.walmsley@sifive.com> wrote:
> > Kernels booting on RISC-V can specify "earlycon" with no options on
> > the Linux command line, and the generic DT earlycon support will query
> > the "chosen/stdout-path" property (if present) to determine which
> > early console device to use.  Document this appropriately in the
> > admin-guide.
> >
> > Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>  
> 
> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

Applied, thanks.

jon

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

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

* Re: [PATCH] Documentation: admin-guide: add earlycon documentation for RISC-V
  2019-10-09 19:53 [PATCH] Documentation: admin-guide: add earlycon documentation for RISC-V Paul Walmsley
  2019-10-10  7:10 ` Geert Uytterhoeven
@ 2019-10-17 16:10 ` Christoph Hellwig
  1 sibling, 0 replies; 7+ messages in thread
From: Christoph Hellwig @ 2019-10-17 16:10 UTC (permalink / raw)
  To: Paul Walmsley
  Cc: linux-doc, Andreas Schwab, Jonathan Corbet, linux-kernel,
	Geert Uytterhoeven, linux-riscv, Christoph Hellwig

On Wed, Oct 09, 2019 at 12:53:50PM -0700, Paul Walmsley wrote:
> 
> Kernels booting on RISC-V can specify "earlycon" with no options on
> the Linux command line, and the generic DT earlycon support will query
> the "chosen/stdout-path" property (if present) to determine which
> early console device to use.  Document this appropriately in the
> admin-guide.

Jon already applied a patch from me removing the bogus arch restrictions
on the earlycon without arguments documentation, so this should not
be required.

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

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

* Re: [PATCH] Documentation: admin-guide: add earlycon documentation for RISC-V
  2019-10-10 17:23   ` Jonathan Corbet
@ 2019-11-08  6:10     ` Christoph Hellwig
  2019-11-11 17:30       ` Paul Walmsley
  0 siblings, 1 reply; 7+ messages in thread
From: Christoph Hellwig @ 2019-11-08  6:10 UTC (permalink / raw)
  To: Jonathan Corbet
  Cc: open list:DOCUMENTATION, Andreas Schwab,
	Linux Kernel Mailing List, Geert Uytterhoeven, Paul Walmsley,
	linux-riscv, Christoph Hellwig

Jon,

can you please revert this?  The paragraph above this addition already
describes the riscv case perfecty well with my previous patch:


	earlycon=	[KNL] Output early console device and options.

			When used with no options, the early console is
			determined by stdout-path property in device tree's
			chosen node or the ACPI SPCR table if supported by
			the platform.

			[RISCV] When used with no options, the early
			console is determined by the stdout-path
			property in the device tree's chosen node.

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

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

* Re: [PATCH] Documentation: admin-guide: add earlycon documentation for RISC-V
  2019-11-08  6:10     ` Christoph Hellwig
@ 2019-11-11 17:30       ` Paul Walmsley
  2019-11-12 16:44         ` Jonathan Corbet
  0 siblings, 1 reply; 7+ messages in thread
From: Paul Walmsley @ 2019-11-11 17:30 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: open list:DOCUMENTATION, Andreas Schwab, Jonathan Corbet,
	Linux Kernel Mailing List, Geert Uytterhoeven, Paul Walmsley,
	linux-riscv

Hi Jon,

On Fri, 8 Nov 2019, Christoph Hellwig wrote:

> can you please revert this?  The paragraph above this addition already
> describes the riscv case perfecty well with my previous patch:
> 
> 	earlycon=	[KNL] Output early console device and options.
> 
> 			When used with no options, the early console is
> 			determined by stdout-path property in device tree's
> 			chosen node or the ACPI SPCR table if supported by
> 			the platform.
> 
> 			[RISCV] When used with no options, the early
> 			console is determined by the stdout-path
> 			property in the device tree's chosen node.

I support reverting the RISCV section, now that Christoph's more general 
change has gone in.



- Paul

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

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

* Re: [PATCH] Documentation: admin-guide: add earlycon documentation for RISC-V
  2019-11-11 17:30       ` Paul Walmsley
@ 2019-11-12 16:44         ` Jonathan Corbet
  0 siblings, 0 replies; 7+ messages in thread
From: Jonathan Corbet @ 2019-11-12 16:44 UTC (permalink / raw)
  To: Paul Walmsley
  Cc: open list:DOCUMENTATION, Andreas Schwab,
	Linux Kernel Mailing List, Geert Uytterhoeven, Paul Walmsley,
	linux-riscv, Christoph Hellwig

On Mon, 11 Nov 2019 17:30:13 +0000 (UTC)
Paul Walmsley <paul@pwsan.com> wrote:

> On Fri, 8 Nov 2019, Christoph Hellwig wrote:
> 
> > can you please revert this?  The paragraph above this addition already
> > describes the riscv case perfecty well with my previous patch:
> > 
> > 	earlycon=	[KNL] Output early console device and options.
> > 
> > 			When used with no options, the early console is
> > 			determined by stdout-path property in device tree's
> > 			chosen node or the ACPI SPCR table if supported by
> > 			the platform.
> > 
> > 			[RISCV] When used with no options, the early
> > 			console is determined by the stdout-path
> > 			property in the device tree's chosen node.  
> 
> I support reverting the RISCV section, now that Christoph's more general 
> change has gone in.

OK, the patch has been reverted.

Thanks,

jon

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

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

end of thread, other threads:[~2019-11-12 16:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-09 19:53 [PATCH] Documentation: admin-guide: add earlycon documentation for RISC-V Paul Walmsley
2019-10-10  7:10 ` Geert Uytterhoeven
2019-10-10 17:23   ` Jonathan Corbet
2019-11-08  6:10     ` Christoph Hellwig
2019-11-11 17:30       ` Paul Walmsley
2019-11-12 16:44         ` Jonathan Corbet
2019-10-17 16:10 ` Christoph Hellwig

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).