Skip to contentSkip to conversation

arc: add AXS101 board support

PATCH In review Alexey Brodkin 3 participants 10 messages May 14, 2015 – Jun 5, 2015

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

cover arc: add AXS101 board support

AXS101 is a new generation of devlopment boards from Synopsys that houses ASIC with ARC700 and lots of DesignWare peripherals:

* DW APB UART
* DW Mobile Storage (MMC/SD)
* DW I2C
* DW GMAC

More info about DesignWare ARC Software Development Platforms (SDP) is here:
http://www.synopsys.com/dw/ipdir.php?ds=arc-software-development-platform

More info about AXS101 in particular is here (it's required to enter contact details to obtain the document):
http://www.synopsys.com/dw/doc.php/ds/cc/arc_axs101_sdp.pdf

Alexey Brodkin (2):
ARC: [axs101] Add support for AXS101 SDP (software development
platform)
ARC: [axs101] STAR 9000799830: Fix SD cards support

Vineet Gupta (2):
ARC: [axs101] support early 8250 uart
ARC: [axs101] Tweak DDR port aperture mappings for performance

 Documentation/devicetree/bindings/arc/axs10x.txt |   7 +
 MAINTAINERS                                      |   7 +
 arch/arc/Kconfig                                 |   1 +
 arch/arc/Makefile                                |   1 +
 arch/arc/boot/dts/axc001.dtsi                    |  79 ++++++
 arch/arc/boot/dts/axs101.dts                     |  21 ++
 arch/arc/boot/dts/axs10x_mb.dtsi                 | 241 ++++++++++++++++++
 arch/arc/configs/axs101_defconfig                | 112 +++++++++
 arch/arc/kernel/devtree.c                        |   2 +
 arch/arc/plat-axs10x/Kconfig                     |  35 +++
 arch/arc/plat-axs10x/Makefile                    |   9 +
 arch/arc/plat-axs10x/axs10x.c                    | 298 +++++++++++++++++++++++
 12 files changed, 813 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/arc/axs10x.txt
 create mode 100644 arch/arc/boot/dts/axc001.dtsi
 create mode 100644 arch/arc/boot/dts/axs101.dts
 create mode 100644 arch/arc/boot/dts/axs10x_mb.dtsi
 create mode 100644 arch/arc/configs/axs101_defconfig
 create mode 100644 arch/arc/plat-axs10x/Kconfig
 create mode 100644 arch/arc/plat-axs10x/Makefile
 create mode 100644 arch/arc/plat-axs10x/axs10x.c
Signature · 1 line
2.1.0
#1 lore raw

PATCH 1/4 ARC: [axs101] Add support for AXS101 SDP (software development platform)

The AXS10x platforms consist of a mainboard with peripherals, on which several daughter cards can be placed. The daughter cards typically contain a CPU and memory.

---
 Documentation/devicetree/bindings/arc/axs10x.txt |   7 +
 MAINTAINERS                                      |   7 +
 arch/arc/Kconfig                                 |   1 +
 arch/arc/Makefile                                |   1 +
 arch/arc/boot/dts/axc001.dtsi                    |  79 ++++++
 arch/arc/boot/dts/axs101.dts                     |  21 ++
 arch/arc/boot/dts/axs10x_mb.dtsi                 | 223 +++++++++++++++++
 arch/arc/configs/axs101_defconfig                | 112 +++++++++
 arch/arc/plat-axs10x/Kconfig                     |  35 +++
 arch/arc/plat-axs10x/Makefile                    |   9 +
 arch/arc/plat-axs10x/axs10x.c                    | 298 +++++++++++++++++++++++
 11 files changed, 793 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/arc/axs10x.txt
 create mode 100644 arch/arc/boot/dts/axc001.dtsi
 create mode 100644 arch/arc/boot/dts/axs101.dts
 create mode 100644 arch/arc/boot/dts/axs10x_mb.dtsi
 create mode 100644 arch/arc/configs/axs101_defconfig
 create mode 100644 arch/arc/plat-axs10x/Kconfig
 create mode 100644 arch/arc/plat-axs10x/Makefile
 create mode 100644 arch/arc/plat-axs10x/axs10x.c
Documentation/devicetree/bindings/arc/axs10x.txt new file +7 -0
new file mode 100644
index 0000000..dcbb834
@@ -0,0 +1,7 @@
+Synopsys DesignWare ARC Software Development Platforms Device Tree Bindings
+---------------------------------------------------------------------------
+
+SDP boards with Synopsys ARC700 core shall have the following properties.
+
+Required root node properties:
+    - compatible = "snps,axs101";
MAINTAINERS +7 -0
index 2e5bbc0..ed73eee 100644
@@ -9543,6 +9543,13 @@ F:	arch/arc/
 F:	Documentation/devicetree/bindings/arc/
 F:	drivers/tty/serial/arc_uart.c
 
+SYNOPSYS ARC SDP platform support
+M:	Alexey Brodkin <[email protected]>
+S:	Supported
+F:	arch/arc/plat-axs10x
+F:	arch/arc/boot/dts/ax*
+F:	Documentation/devicetree/bindings/arc/axs10x.txt
+
 SYSV FILESYSTEM
 M:	Christoph Hellwig <[email protected]>
 S:	Maintained
arch/arc/Kconfig +1 -0
index df94ac1..13d4c26 100644
@@ -83,6 +83,7 @@ menu "ARC Platform/SoC/Board"
 
 source "arch/arc/plat-arcfpga/Kconfig"
 source "arch/arc/plat-tb10x/Kconfig"
+source "arch/arc/plat-axs10x/Kconfig"
 #New platform adds here
 
 endmenu
arch/arc/Makefile +1 -0
index db72fec..562ac7d 100644
@@ -83,6 +83,7 @@ core-y		+= arch/arc/boot/dts/
 
 core-$(CONFIG_ARC_PLAT_FPGA_LEGACY)	+= arch/arc/plat-arcfpga/
 core-$(CONFIG_ARC_PLAT_TB10X)		+= arch/arc/plat-tb10x/
+core-$(CONFIG_ARC_PLAT_AXS10X)		+= arch/arc/plat-axs10x/
 
 drivers-$(CONFIG_OPROFILE)	+= arch/arc/oprofile/
 
arch/arc/boot/dts/axc001.dtsi new file +79 -0

79 lines not on this page · raw message

arch/arc/boot/dts/axs101.dts new file +21 -0
new file mode 100644
index 0000000..6c3391d
@@ -0,0 +1,21 @@
+/*
+ * Copyright (C) 2013-15 Synopsys, Inc. (www.synopsys.com)
+ *
+ * ARC AXS101 S/W development platform
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+/dts-v1/;
+
+/include/ "axc001.dtsi"
+/include/ "axs10x_mb.dtsi"
+
+/ {
+	compatible = "snps,axs101";
+
+	chosen {
+		bootargs = "console=tty0 console=ttyS3,115200n8 consoleblank=0";
+	};
+};
arch/arc/boot/dts/axs10x_mb.dtsi new file +223 -0

223 lines not on this page · raw message

arch/arc/configs/axs101_defconfig new file +112 -0

112 lines not on this page · raw message

arch/arc/plat-axs10x/Kconfig new file +35 -0
new file mode 100644
index 0000000..45641ca
@@ -0,0 +1,35 @@
+#
+# Copyright (C) 2013-15 Synopsys, Inc. (www.synopsys.com)
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License version 2 as
+# published by the Free Software Foundation.
+#
+
+config ARC_PLAT_AXS10X
+	bool "Synopsys ARC AXS10x Software Development Platforms"
+	select DW_APB_ICTL
+	select GPIO_DWAPB
+	select OF_GPIO
+	select GENERIC_IRQ_CHIP
+	select ARCH_REQUIRE_GPIOLIB
+	help
+	  Support for the ARC AXS10x Software Development Platforms.
+
+	  The AXS10x Platforms consist of a mainboard with peripherals,
+	  on which several daughter cards can be placed. The daughter cards
+	  typically contain a CPU and memory.
+
+if ARC_PLAT_AXS10X
+
+config AXS101
+	bool "AXS101 with AXC001 CPU Card (ARC 770D/EM6/AS221)"
+	help
+	  This adds support for the 770D/EM6/AS221 CPU Card. Only the ARC
+	  770D is supported in Linux.
+
+	  The AXS101 Platform consists of an AXS10x mainboard with
+	  this daughtercard. Please use the axs101.dts device tree
+	  with this configuration.
+
+endif
arch/arc/plat-axs10x/Makefile new file +9 -0
new file mode 100644
index 0000000..d4748f2
@@ -0,0 +1,9 @@
+#
+# Copyright (C) 2013-15 Synopsys, Inc. (www.synopsys.com)
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License version 2 as
+# published by the Free Software Foundation.
+#
+
+obj-$(CONFIG_ARC_PLAT_AXS10X) += axs10x.o
arch/arc/plat-axs10x/axs10x.c new file +298 -0

298 lines not on this page · raw message

Signature · 1 line
2.1.0
#2 lore raw

PATCH 2/4 ARC: [axs101] support early 8250 uart

In reply to Alexey Brodkin

From: Vineet Gupta <[email protected]>

Earlycon calculates UART clock as "BASE_BAUD * 16". In case of ARC "BASE_BAUD" is calculated dynamically in runtime, basically it is an alias to arc_early_base_baud(), which in turn just does "arc_base_baud/16".

8250 UART on AXS/SDP board uses 33.3MHz clock source which is set in "arc_base_baud" with this change.

Additional compatibility string "snps,arc-sdp" is introduced as well because there're different flavours of AXS boards but they all share the same motherboard and so it's possible to re-use the same code for motherbord even if CPU daughterboard changes.

---
 Documentation/devicetree/bindings/arc/axs10x.txt | 2 +-
 arch/arc/boot/dts/axs101.dts                     | 4 ++--
 arch/arc/kernel/devtree.c                        | 2 ++
 3 files changed, 5 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/arc/axs10x.txt +1 -1
index dcbb834..9021ab7 100644
@@ -4,4 +4,4 @@ Synopsys DesignWare ARC Software Development Platforms Device Tree Bindings
 SDP boards with Synopsys ARC700 core shall have the following properties.
 
 Required root node properties:
-    - compatible = "snps,axs101";
+    - compatible = "snps,axs101", "snps,arc-sdp";
arch/arc/boot/dts/axs101.dts +2 -2
index 6c3391d..3f9b058 100644
@@ -13,9 +13,9 @@
 /include/ "axs10x_mb.dtsi"
 
 / {
-	compatible = "snps,axs101";
+	compatible = "snps,axs101", "snps,arc-sdp";
 
 	chosen {
-		bootargs = "console=tty0 console=ttyS3,115200n8 consoleblank=0";
+		bootargs = "earlycon=uart8250,mmio32,0xe0022000,115200n8 console=tty0 console=ttyS3,115200n8 consoleblank=0";
 	};
 };
arch/arc/kernel/devtree.c +2 -0
index e32b54a..f801d46 100644
@@ -32,6 +32,8 @@ static void __init arc_set_early_base_baud(unsigned long dt_root)
 
 	if (of_flat_dt_is_compatible(dt_root, "abilis,arc-tb10x"))
 		arc_base_baud = core_clk/3;
+	else if (of_flat_dt_is_compatible(dt_root, "snps,arc-sdp"))
+		arc_base_baud = 33333333;	/* Fixed 33MHz clk */
 	else
 		arc_base_baud = core_clk;
 }
Signature · 1 line
2.1.0
#7 lore raw

PATCH 3/4 ARC: [axs101] Tweak DDR port aperture mappings for performance

In reply to Alexey Brodkin

From: Vineet Gupta <[email protected]>

Route all MB originated traffic to DDR Port 1 and keep Port 0 for CPU traffic only

Basic system parameters
--------------------------------------------------------------------------------------
Host OS Description Mhz tlb cache mem scal
pages line par load
bytes
----------------- ------------- --------------------------------------- ---- ----- ----- ------ ----

axs101-sd-2-new-f Linux 3.13.0+ axs101-sd-2-new-fw-old-img-rerun    	739  	8    32 1.1100    1
axs101-sd-3-arc-3 Linux 3.13.9+ axs101-sd-3-arc-3.13-tip-regression 	735  	8    32 1.1000    1
axs101-sd-9-diffe Linux 3.13.11 axs101-sd-9-different-tweak         	740  	8    32 1.0000    1

Processor, Processes - times in microseconds - smaller is better
------------------------------------------------------------------------------
Host OS Mhz null null open slct sig sig fork exec sh
call I/O stat clos TCP inst hndl proc proc proc
--------- ------------- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----

axs101-sd Linux 3.13.0+  739 0.50 0.88 5.38 14.6 34.1 0.92 5.18 2135 6555 12.K
axs101-sd Linux 3.13.9+  735 0.50 0.90 5.89 19.2 81.4 0.94 4.08 2560 8559 15.K
axs101-sd Linux 3.13.11  740 0.50 0.88 4.45 17.8 34.4 0.94 3.25 2052 6493 12.K
                                                 ^^^^                     ^^^^
---
 arch/arc/plat-axs10x/axs10x.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
arch/arc/plat-axs10x/axs10x.c +4 -4
index 2e7686d..759a7a1 100644
@@ -173,8 +173,8 @@ static const struct aperture axc001_memmap[16] = {
 	{AXC001_SLV_NONE,		0x0},
 	{AXC001_SLV_DDR_PORT0,		0x0}, /* 0x8000_0000: DDR   0..256M */
 	{AXC001_SLV_DDR_PORT0,		0x1}, /* 0x9000_0000: DDR 256..512M */
-	{AXC001_SLV_DDR_PORT1,		0x0},
-	{AXC001_SLV_DDR_PORT1,		0x1},
+	{AXC001_SLV_DDR_PORT0,		0x2},
+	{AXC001_SLV_DDR_PORT0,		0x3},
 	{AXC001_SLV_NONE,		0x0},
 	{AXC001_SLV_AXI_TUNNEL,		0xD},
 	{AXC001_SLV_AXI_TUNNEL,		0xE}, /* MB: CREG, CGU... */
@@ -194,10 +194,10 @@ static const struct aperture axc001_axi_tunnel_memmap[16] = {
 	{AXC001_SLV_NONE,		0x0},
 	{AXC001_SLV_NONE,		0x0},
 	{AXC001_SLV_NONE,		0x0},
-	{AXC001_SLV_DDR_PORT0,		0x0},
-	{AXC001_SLV_DDR_PORT0,		0x1},
 	{AXC001_SLV_DDR_PORT1,		0x0},
 	{AXC001_SLV_DDR_PORT1,		0x1},
+	{AXC001_SLV_DDR_PORT1,		0x2},
+	{AXC001_SLV_DDR_PORT1,		0x3},
 	{AXC001_SLV_NONE,		0x0},
 	{AXC001_SLV_AXI_TUNNEL,		0xD},
 	{AXC001_SLV_AXI_TUNNEL,		0xE},
Signature · 1 line
2.1.0
#8 lore raw

PATCH 4/4 ARC: [axs101] STAR 9000799830: Fix SD cards support

In reply to Alexey Brodkin

As DW Mobile Storage databook says it's required to use "Hold Register" if card is enumerated in SDR12 or SDR25 modes.
It means we need to act in the same way as in Altera's Socfpga implementation - set "use hold reg" bit in commad.

Note that for upstream proper solution would be to remove dw_mci_pltfm_prepare_command() at all and set the bit right in dw_mci_prepare_command() for all platforms.

---
 arch/arc/boot/dts/axs10x_mb.dtsi | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)
arch/arc/boot/dts/axs10x_mb.dtsi +19 -1
index 255c712..5d06f1f 100644
@@ -77,8 +77,26 @@
 			interrupts = < 8 >;
 		};
 
+		/*
+		 * According to DW Mobile Storage databook it is required
+		 * to use  "Hold Register" if card is enumerated in SDR12 or
+		 * SDR25 modes.
+		 *
+		 * Utilization of "Hold Register" is already implemented via
+		 * dw_mci_pltfm_prepare_command() which in its turn gets
+		 * used through dw_mci_drv_data->prepare_command call-back.
+		 * This call-back is used in Altera Socfpga platform and so
+		 * we may reuse it saying that we're compatible with their
+		 * "altr,socfpga-dw-mshc".
+		 *
+		 * Most probably "Hold Register" utilization is platform-
+		 * independent requirement which means that single unified
+		 * "snps,dw-mshc" should be enough for all users of DW MMC once
+		 * dw_mci_pltfm_prepare_command() is used in generic platform
+		 * code.
+		 */
 		mmc@0x15000 {
-			compatible = "snps,dw-mshc";
+			compatible = "altr,socfpga-dw-mshc";
 			reg = < 0x15000 0x400 >;
 			num-slots = < 1 >;
 			fifo-depth = < 16 >;
Signature · 1 line
2.1.0
maintainer
#3 lore raw

Re: [PATCH 2/4] ARC: [axs101] support early 8250 uart

In reply to Alexey Brodkin

arch/arc/boot/dts/axs101.dts line 21

Quoted 7 lines · On Thursday 14 May 2015 15:48:42 Alexey Brodkin wrote:
        chosen {
arch/arc/boot/dts/axs101.dts +1 -1
-               bootargs = "console=tty0 console=ttyS3,115200n8 consoleblank=0";
+               bootargs = "earlycon=uart8250,mmio32,0xe0022000,115200n8 console=tty0 console=ttyS3,115200n8 consoleblank=0";
        };
 };

When you do earlycon with DT, better use a 'stdout-path' property that points to the device, and just put 'earlycon' without arguments on the command line.

Arnd

#4 lore raw

Re: [PATCH 2/4] ARC: [axs101] support early 8250 uart

On Thursday 14 May 2015 06:23 PM, Arnd Bergmann wrote:

arch/arc/boot/dts/axs101.dts line 21

Quoted 7 lines · On Thursday 14 May 2015 15:48:42 Alexey Brodkin wrote:
        chosen {
arch/arc/boot/dts/axs101.dts +1 -1
-               bootargs = "console=tty0 console=ttyS3,115200n8 consoleblank=0";
+               bootargs = "earlycon=uart8250,mmio32,0xe0022000,115200n8 console=tty0 console=ttyS3,115200n8 consoleblank=0";
        };
 };

When you do earlycon with DT, better use a 'stdout-path' property that points to the device, and just put 'earlycon' without arguments on the command line.

Arnd

Sure ! I tried that once (3.16) and even the dts patch got merged but had to be reverted out !

2014-07-27 22524b02b17b Revert "ARC: [arcfpga] stdout-path now suffices for earlycon/console"

Let me see if that works again since serial land has seen some significant churn in recent times

Thx for pointing this out !

-Vineet

#5 lore raw

Re: [PATCH 2/4] ARC: [axs101] support early 8250 uart

+CC linux-serial

Quoted 19 lines · Vineet Gupta

On Thursday 14 May 2015 06:23 PM, Arnd Bergmann wrote:

Quoted 7 lines · On Thursday 14 May 2015 15:48:42 Alexey Brodkin wrote:

arch/arc/boot/dts/axs101.dts line 21

Quoted 7 lines
        chosen {
arch/arc/boot/dts/axs101.dts +1 -1
-               bootargs = "console=tty0 console=ttyS3,115200n8 consoleblank=0";
+               bootargs = "earlycon=uart8250,mmio32,0xe0022000,115200n8 console=tty0 console=ttyS3,115200n8 consoleblank=0";
        };
 };

When you do earlycon with DT, better use a 'stdout-path' property that points to the device, and just put 'earlycon' without arguments on the command line.

Arnd

Quoted 7 lines

Sure ! I tried that once (3.16) and even the dts patch got merged but had to be reverted out !

2014-07-27 22524b02b17b Revert "ARC: [arcfpga] stdout-path now suffices for earlycon/console"

Let me see if that works again since serial land has seen some significant churn in recent times

Thx for pointing this out !

so specifying console with stdout-path works for me,

- bootargs = "earlycon=uart8250,mmio32,0xf0000000,115200n8 console=tty0 console=ttyS0,115200n8 consoleblank=0 debug";
+ bootargs = "earlycon=uart8250,mmio32,0xf0000000,115200n8";
+ stdout-path = &uart0;
..

But I don't see earlycon working with paramless earlycon

- bootargs = "earlycon=uart8250,mmio32,0xf0000000,115200n8";
+ bootargs = "earlycon";
stdout-path = &uart0;

And I don't see how it would work for others as of 4.1-rc6 Relevant config items I have are:

CONFIG_SERIAL_EARLYCON=y
CONFIG_SERIAL_8250=y
CONFIG_SERIAL_8250_CONSOLE=y
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y
CONFIG_SERIAL_OF_PLATFORM=y
...

There are 2 earlyparam handlers for earlcon,
(1) param_setup_earlycon() -> setup_earlycon() -> register_console()
(2) setup_of_earlycon() -> early_init_dt_scan_chosen_serial -> of_setup_earlycon()

#1 only works when arg to earlycon is *not NULL*
#2 only works when arg is *NULL*.

For my case, #2 bails out early as __earlycon_of_table happens to be empty.

8071d8a0 T __earlycon_of_table
8071d8a0 000000c4 t __earlycon_of_table_sentinel

This make sense since I don't see any OF_EARLYCON_DECLARE() in 8250 driver. As a quick hack I added one in 8250/8250_early.c

@@ -152,3 +154,4 @@ static int __init early_serial8250_setup(struct earlycon_device *device,
}
EARLYCON_DECLARE(uart8250, early_serial8250_setup); EARLYCON_DECLARE(uart, early_serial8250_setup);
+OF_EARLYCON_DECLARE(uart8250, "ns8250", early_serial8250_setup);

I needed another fine adjustment as of_setup_earlycon() assumes mmio, while it needs to be memio32 for my case.

@@ -199,7 +199,7 @@ int __init of_setup_earlycon(unsigned long addr,

        int err;
        struct uart_port *port = &early_console_dev.port;

- port->iotype = UPIO_MEM;
+ port->iotype = UPIO_MEM32;

With this paramless earlycon works.

Now both the above are hacks, but I want to understand if I'm missing something in ARC port or does core need some adjustments along the lines of above, since presumably others have it working !

P.S. with respect to the original patch, I would fold it into for-next with change to stdout-path and keep earlycon as before - we can fix it up later.

Thx,
-vineet

#6 lore raw

console setting via stdout-path vs console=xxx (was Re: [PATCH 2/4] ARC: [axs101] support early 8250 uart)

Quoted 31 lines · Vineet Gupta
Quoted 19 lines · Vineet Gupta
Quoted 19 lines · Arnd Bergmann
Quoted 7 lines · On Thursday 14 May 2015 15:48:42 Alexey Brodkin wrote:
Quoted 7 lines
Quoted 7 lines

arch/arc/boot/dts/axs101.dts line 21

Quoted 7 lines
        chosen {
arch/arc/boot/dts/axs101.dts +1 -1
-               bootargs = "console=tty0 console=ttyS3,115200n8 consoleblank=0";
+               bootargs = "earlycon=uart8250,mmio32,0xe0022000,115200n8 console=tty0 console=ttyS3,115200n8 consoleblank=0";
        };
 };

When you do earlycon with DT, better use a 'stdout-path' property that points to the device, and just put 'earlycon' without arguments on the command line.

Arnd

Quoted 7 lines
Quoted 7 lines

Sure ! I tried that once (3.16) and even the dts patch got merged but had to be reverted out !

2014-07-27 22524b02b17b Revert "ARC: [arcfpga] stdout-path now suffices for earlycon/console"

Let me see if that works again since serial land has seen some significant churn in recent times

Thx for pointing this out !

so specifying console with stdout-path works for me,

- bootargs = "earlycon=uart8250,mmio32,0xf0000000,115200n8 console=tty0 console=ttyS0,115200n8 consoleblank=0 debug";

Review

Quoted 3 lines
(quoted diff) +2 -0
+  bootargs = "earlycon=uart8250,mmio32,0xf0000000,115200n8";
+  stdout-path = &uart0;
..

Also interestingly, specifying console with stdout-path vs. console=xyz leads to a subtle behaviour change of boot printing.

With console=xyz, console_setup() -> __add_preferred_console() sets preferred_console = 0, which doesn't happen with stdout-path.

ARC defconfigs have CONFIG_VT_CONSOLE, so tty0 gets registered. For stdout-path case it becomes default (deregistering the earlycon), but not in case of cconsole=xyz.

This manifests as a "pause" in boot logging (perceivable if u have linux running in simulation on a slow host or a large initramfs loading etc). printing is restored when the real 8250 console registers towards end of boot.

One workaround to this seems to be using @keep_bootcon cmdline option. Asking for all the bells and whistles to be implemented with paramless earlycon is perhaps not fair :-)

But this is something developers in this area need to be aware of nevertheless.

Thx,
-Vineet

#9 lore raw
In reply to Alexey Brodkin
Quoted 15 lines · Alexey Brodkin

AXS101 is a new generation of devlopment boards from Synopsys that houses ASIC with ARC700 and lots of DesignWare peripherals:

* DW APB UART
* DW Mobile Storage (MMC/SD)
* DW I2C
* DW GMAC

More info about DesignWare ARC Software Development Platforms (SDP) is here:
http://www.synopsys.com/dw/ipdir.php?ds=arc-software-development-platform

More info about AXS101 in particular is here (it's required to enter contact details to obtain the document):
http://www.synopsys.com/dw/doc.php/ds/cc/arc_axs101_sdp.pdf

Quoted 8 lines

Alexey Brodkin (2):
ARC: [axs101] Add support for AXS101 SDP (software development
platform)
ARC: [axs101] STAR 9000799830: Fix SD cards support

Vineet Gupta (2):
ARC: [axs101] support early 8250 uart
ARC: [axs101] Tweak DDR port aperture mappings for performance

Added to ARC for-next - finally !

Thx Alexey - good stuff.
-Vineet

Quoted 23 lines
 Documentation/devicetree/bindings/arc/axs10x.txt |   7 +
 MAINTAINERS                                      |   7 +
 arch/arc/Kconfig                                 |   1 +
 arch/arc/Makefile                                |   1 +
 arch/arc/boot/dts/axc001.dtsi                    |  79 ++++++
 arch/arc/boot/dts/axs101.dts                     |  21 ++
 arch/arc/boot/dts/axs10x_mb.dtsi                 | 241 ++++++++++++++++++
 arch/arc/configs/axs101_defconfig                | 112 +++++++++
 arch/arc/kernel/devtree.c                        |   2 +
 arch/arc/plat-axs10x/Kconfig                     |  35 +++
 arch/arc/plat-axs10x/Makefile                    |   9 +
 arch/arc/plat-axs10x/axs10x.c                    | 298 +++++++++++++++++++++++
 12 files changed, 813 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/arc/axs10x.txt
 create mode 100644 arch/arc/boot/dts/axc001.dtsi
 create mode 100644 arch/arc/boot/dts/axs101.dts
 create mode 100644 arch/arc/boot/dts/axs10x_mb.dtsi
 create mode 100644 arch/arc/configs/axs101_defconfig
 create mode 100644 arch/arc/plat-axs10x/Kconfig
 create mode 100644 arch/arc/plat-axs10x/Makefile
 create mode 100644 arch/arc/plat-axs10x/axs10x.c