arm: mvebu: fix SerDes table alignment
Subsystems (3)
PATCH 1/10 arm: mvebu: fix SerDes table alignment
Tested on Solidrun ClearFog Base. Table alignment was:
| Lane # | Speed | Type |
--------------------------------
| 0 | 3 | SATA0 | | 1 | 0 | SGMII1 | | 2 | 3 | SATA1 | | 3 | 5 | USB3 HOST1 | | 4 | 5 | USB3 HOST0 | | 5 | 4 | SGMII2 |
--------------------------------
After the change, it's correctly aligned as:
| Lane # | Speed | Type |
--------------------------------
| 0 | 3 | SATA0 | | 1 | 0 | SGMII1 | | 2 | 5 | PCIe1 | | 3 | 5 | USB3 HOST1 | | 4 | 5 | PCIe2 | | 5 | 0 | SGMII2 |
--------------------------------
---
arch/arm/mach-mvebu/serdes/a38x/high_speed_env_spec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm/mach-mvebu/serdes/a38x/high_speed_env_spec.c +3 -3
@@ -1366,16 +1366,16 @@ static void print_topology_details(const struct serdes_map *serdes_map,DEBUG_INIT_S ("board SerDes lanes topology details:\n" ); -DEBUG_INIT_S (" | Lane # | Speed | Type |\n" ); +DEBUG_INIT_S (" | Lane # | Speed | Type |\n" );DEBUG_INIT_S (" --------------------------------\n" );for (lane_num =0 ; lane_num < count; lane_num++) {if (serdes_map[lane_num].serdes_type ==DEFAULT_SERDES )continue ;DEBUG_INIT_S (" | " );DEBUG_INIT_D (hws_get_physical_serdes_num (lane_num),1 ); -DEBUG_INIT_S (" | " ); +DEBUG_INIT_S (" | " );DEBUG_INIT_D (serdes_map[lane_num].serdes_speed,2 ); -DEBUG_INIT_S (" | " ); +DEBUG_INIT_S (" | " );DEBUG_INIT_S ((char *) serdes_type_to_string[serdes_map[lane_num]. serdes_type]);
Signature · 1 line
2.20.1
PATCH 2/10 arm: mvebu: solidrun: remove hardcoded DTS MAC address
Using a consistent hardcoded MAC address from the DTS file causes issues when using multiple devices on the same network segment. Instead rely on environment configuration or random generation.
---
arch/arm/dts/armada-38x-solidrun-microsom.dtsi | 1 - 1 file changed, 1 deletion(-)
arch/arm/dts/armada-38x-solidrun-microsom.dtsi +0 -1
@@ -39,7 +39,6 @@ ð0 { /* ethernet at 70000 */ - mac-address = [00 50 43 02 02 01]; pinctrl-0 = <&ge0_rgmii_pins>; pinctrl-names = "default"; phy = <&phy_dedicated>;
Signature · 1 line
2.20.1
PATCH 2/10 arm: mvebu: solidrun: remove hardcoded DTS MAC address
Quoted 16 lines · Joel Johnson
Using a consistent hardcoded MAC address from the DTS file causes issues when using multiple devices on the same network segment. Instead rely on environment configuration or random generation.
Signed-off-by Joel Johnson <[email protected]>---
arch/arm/dts/armada-38x-solidrun-microsom.dtsi | 1 - 1 file changed, 1 deletion(-)arch/arm/dts/armada-38x-solidrun-microsom.dtsi +0
-0
arch/arm/dts/armada-38x-solidrun-microsom.dtsi line 44
Quoted 7 lines
arch/arm/dts/armada-38x-solidrun-microsom.dtsi +0
-1@@ -39,7 +39,6 @@ ð0 { /* ethernet at 70000 */ - mac-address = [00 50 43 02 02 01]; pinctrl-0 = <&ge0_rgmii_pins>; pinctrl-names = "default"; phy = <&phy_dedicated>;
Thanks,
Stefan
PATCH 3/10 arm: mvebu: clearfog: initial ClearFog Base variant
In reply to Joel JohnsonAdd a unique entry for ClearFog Base variant, reflected in the board name and adjusted SerDes topology.
---
arch/arm/mach-mvebu/Kconfig | 2 ++ board/solidrun/clearfog/Kconfig | 10 ++++++++++ board/solidrun/clearfog/clearfog.c | 10 +++++++++- 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 board/solidrun/clearfog/Kconfig
arch/arm/mach-mvebu/Kconfig +2 -0
@@ -279,4 +279,6 @@ config SECURED_MODE_CSK_INDEX default 0 depends on SECURED_MODE_IMAGE +source "board/solidrun/clearfog/Kconfig" + endif
board/solidrun/clearfog/Kconfig new file +10 -0
@@ -0,0 +1,10 @@ +menu "ClearFog configuration" + depends on TARGET_CLEARFOG + +config TARGET_CLEARFOG_BASE + bool "Configure for the ClearFog Base variant" + help + Configure for the ClearFog Base board variant. By default the ClearFog + Pro variant will be configured. + +endmenu
board/solidrun/clearfog/clearfog.c +9 -1
@@ -33,7 +33,11 @@ static struct serdes_map board_serdes_map[] = { {SGMII1, SERDES_SPEED_1_25_GBPS, SERDES_DEFAULT_MODE, 0, 0}, {PEX1, SERDES_SPEED_5_GBPS, PEX_ROOT_COMPLEX_X1, 0, 0}, {USB3_HOST1, SERDES_SPEED_5_GBPS, SERDES_DEFAULT_MODE, 0, 0}, +#if defined (CONFIG_TARGET_CLEARFOG_BASE) + {USB3_HOST0 ,SERDES_SPEED_5_GBPS ,SERDES_DEFAULT_MODE ,0 ,0 }, +#else {PEX2, SERDES_SPEED_5_GBPS, PEX_ROOT_COMPLEX_X1, 0, 0}, +#endif {SGMII2, SERDES_SPEED_1_25_GBPS, SERDES_DEFAULT_MODE, 0, 0}, };
@@ -125,7 +129,11 @@ int board_init(void)int checkboard (void ) { -puts ("Board: SolidRun ClearFog\n" ); +#if defined (CONFIG_TARGET_CLEARFOG_BASE ) +puts ("Board: SolidRun ClearFog Base\n" ); +#else +puts ("Board: SolidRun ClearFog Pro\n" ); +#endif return 0 ; }
Signature · 1 line
2.20.1
PATCH 3/10 arm: mvebu: clearfog: initial ClearFog Base variant
Hi Joel,
Thanks for working on Clearfog hardware support improvements.
Quoted 29 lines · Joel Johnson
Add a unique entry for ClearFog Base variant, reflected in the board name and adjusted SerDes topology.
Signed-off-by Joel Johnson <[email protected]>---
arch/arm/mach-mvebu/Kconfig | 2 ++ board/solidrun/clearfog/Kconfig | 10 ++++++++++ board/solidrun/clearfog/clearfog.c | 10 +++++++++- 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 board/solidrun/clearfog/Kconfigarch/arm/mach-mvebu/Kconfig +2
-0@@ -279,4 +279,6 @@ config SECURED_MODE_CSK_INDEX default 0 depends on SECURED_MODE_IMAGE +source "board/solidrun/clearfog/Kconfig" + endifboard/solidrun/clearfog/Kconfig new file +0
-0
board/solidrun/clearfog/Kconfig line 8
Quoted 8 lines
board/solidrun/clearfog/Kconfig new file +8
-0@@ -0,0 +1,10 @@ +menu "ClearFog configuration" + depends on TARGET_CLEARFOG + +config TARGET_CLEARFOG_BASE + bool "Configure for the ClearFog Base variant" + help + Configure for the ClearFog Base board variant. By default the ClearFog + Pro variant will be configured.
This conflicts with the series I posted adding support for A388 SOM and Clearfog Base/Pro carriers EEPROM TLV:
https://patchwork.ozlabs.org/cover/1200324/
The EEPROM TLV is meant to allow run-time detection of the hardware on newer hardware revisions that populate the EEPROM. This patch is still useful for older SOM and carrier revisions but it might cause confusion for users.
Would you mind to rebase your patches on top of my code?
Nit: help text indentation should be "tab + 2 spaces".
Thanks,
baruch
Quoted 21 lines
board/solidrun/clearfog/Kconfig new file +2
-0+ +endmenuboard/solidrun/clearfog/clearfog.c +4
-0@@ -33,7 +33,11 @@ static struct serdes_map board_serdes_map[] = { {SGMII1, SERDES_SPEED_1_25_GBPS, SERDES_DEFAULT_MODE, 0, 0}, {PEX1, SERDES_SPEED_5_GBPS, PEX_ROOT_COMPLEX_X1, 0, 0}, {USB3_HOST1, SERDES_SPEED_5_GBPS, SERDES_DEFAULT_MODE, 0, 0}, +#if defined (CONFIG_TARGET_CLEARFOG_BASE) + {USB3_HOST0 ,SERDES_SPEED_5_GBPS ,SERDES_DEFAULT_MODE ,0 ,0 }, +#else {PEX2, SERDES_SPEED_5_GBPS, PEX_ROOT_COMPLEX_X1, 0, 0}, +#endif {SGMII2, SERDES_SPEED_1_25_GBPS, SERDES_DEFAULT_MODE, 0, 0}, };@@ -125,7 +129,11 @@ int board_init(void)int checkboard (void )
board/solidrun/clearfog/clearfog.c int board_init(void) · line 139
Quoted 10 lines
board/solidrun/clearfog/clearfog.c +5
-1{ -puts ("Board: SolidRun ClearFog\n" ); +#if defined (CONFIG_TARGET_CLEARFOG_BASE ) +puts ("Board: SolidRun ClearFog Base\n" ); +#else +puts ("Board: SolidRun ClearFog Pro\n" ); +#endif return 0 ; }
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
PATCH 3/10 arm: mvebu: clearfog: initial ClearFog Base variant
Quoted 3 lines · Baruch Siach
Hi Joel,
Thanks for working on Clearfog hardware support improvements.
Sure - I finally just got tired of not being able to easily use mainline builds, sat down and figured out the gaps and missing dependencies in order to support at least my use cases and flexibility in general.
Quoted 8 lines · Joel Johnson
Quoted 2 lines
Add a unique entry for ClearFog Base variant, reflected in the board name and adjusted SerDes topology.
This conflicts with the series I posted adding support for A388 SOM and Clearfog Base/Pro carriers EEPROM TLV:
Quoted 8 lines
https://patchwork.ozlabs.org/cover/1200324/
The EEPROM TLV is meant to allow run-time detection of the hardware on newer hardware revisions that populate the EEPROM. This patch is still useful for older SOM and carrier revisions but it might cause confusion for users.
Would you mind to rebase your patches on top of my code?
Sure, I hadn't seen this in flight patch series, I'll take a look and adjust/adapt/drop as needed. I believe that most of my units are older non-EEPROM variants, but will test with your patches and at least make the manual vs. dynamic detected config interoperable.
Quoted 1 line
Nit: help text indentation should be "tab + 2 spaces".
Thanks, I'll update accordingly.
Joel
PATCH 3/10 arm: mvebu: clearfog: initial ClearFog Base variant
Quoted 19 lines · Joel Johnson
Quoted 3 lines · Baruch Siach
Hi Joel,
Thanks for working on Clearfog hardware support improvements.
Sure - I finally just got tired of not being able to easily use mainline builds, sat down and figured out the gaps and missing dependencies in order to support at least my use cases and flexibility in general.
Quoted 10 lines · Joel Johnson
Quoted 2 lines
Add a unique entry for ClearFog Base variant, reflected in the board name and adjusted SerDes topology.
This conflicts with the series I posted adding support for A388 SOM and Clearfog Base/Pro carriers EEPROM TLV:
Quoted 8 lines
Quoted 6 lines
The EEPROM TLV is meant to allow run-time detection of the hardware on newer hardware revisions that populate the EEPROM. This patch is still useful for older SOM and carrier revisions but it might cause confusion for users.
Would you mind to rebase your patches on top of my code?
Sure, I hadn't seen this in flight patch series, I'll take a look and adjust/adapt/drop as needed. I believe that most of my units are older non-EEPROM variants, but will test with your patches and at least make the manual vs. dynamic detected config interoperable.
Okay, let's wait for Baruch to update his patchset and yours rebased on top of that one.
Thanks,
Stefan
PATCH 4/10 arm: mvebu: clearfog: Add SATA mode flags
In reply to Joel JohnsonThe mPCIe slots on ClearFog Pro and ClearFog Base may be alternately configured for SATA usage.
---
board/solidrun/clearfog/Kconfig | 17 +++++++++++++++++ board/solidrun/clearfog/clearfog.c | 6 ++++++ 2 files changed, 23 insertions(+)
board/solidrun/clearfog/Kconfig +17 -0
@@ -7,4 +7,21 @@ config TARGET_CLEARFOG_BASE Configure for the ClearFog Base board variant. By default the ClearFog Pro variant will be configured. +config CLEARFOG_CON3_SATA + bool "Use CON3 slot in SATA mode" + help + Use the CON3 port with SATA protocol instead of the default PCIe. + The ClearFog port allows usage of either mSATA or miniPCIe + modules, but the desired protocol must be configured at build + time since it affects the SerDes topology layout. + +config CLEARFOG_CON2_SATA + bool "Use CON2 slot in SATA mode" + depends on !TARGET_CLEARFOG_BASE + help + Use the CON2 port with SATA protocol instead of the default PCIe. + The ClearFog port allows usage of either mSATA or miniPCIe + modules, but the desired protocol must be configured at build + time since it affects the SerDes topology layout. + endmenu
board/solidrun/clearfog/clearfog.c +6 -0
@@ -31,10 +31,16 @@ DECLARE_GLOBAL_DATA_PTR;static struct serdes_map board_serdes_map[] = { {SATA0 ,SERDES_SPEED_3_GBPS ,SERDES_DEFAULT_MODE ,0 ,0 }, {SGMII1 ,SERDES_SPEED_1_25_GBPS ,SERDES_DEFAULT_MODE ,0 ,0 }, +#if defined (CONFIG_CLEARFOG_CON3_SATA) + {SATA1 ,SERDES_SPEED_3_GBPS ,SERDES_DEFAULT_MODE ,0 ,0 }, +#else {PEX1 ,SERDES_SPEED_5_GBPS ,PEX_ROOT_COMPLEX_X1 ,0 ,0 }, +#endif {USB3_HOST1 ,SERDES_SPEED_5_GBPS ,SERDES_DEFAULT_MODE ,0 ,0 }, #if defined (CONFIG_TARGET_CLEARFOG_BASE) {USB3_HOST0 ,SERDES_SPEED_5_GBPS ,SERDES_DEFAULT_MODE ,0 ,0 }, +#elif defined(CONFIG_CLEARFOG_CON2_SATA) + {SATA2 ,SERDES_SPEED_3_GBPS ,SERDES_DEFAULT_MODE ,0 ,0 }, #else {PEX2 ,SERDES_SPEED_5_GBPS ,PEX_ROOT_COMPLEX_X1 ,0 ,0 }, #endif
Signature · 1 line
2.20.1
PATCH 5/10 arm: mvebu: clearfog: Add option for 2.5 Gbps SFP
In reply to Joel Johnson---
board/solidrun/clearfog/Kconfig | 7 +++++++ board/solidrun/clearfog/clearfog.c | 4 ++++ 2 files changed, 11 insertions(+)
board/solidrun/clearfog/Kconfig +7 -0
@@ -24,4 +24,11 @@ config CLEARFOG_CON2_SATA modules, but the desired protocol must be configured at build time since it affects the SerDes topology layout. +config CLEARFOG_SFP_25GB + bool "Enable 2.5 Gbps mode for SFP" + help + Set the SFP module connection to support 2.5 Gbps transfer speed for the + SGMII connection (requires a supporting SFP). By default, transfer speed + of 1.25 Gbps is used, suitable for a more common 1 Gbps SFP module. + endmenu
board/solidrun/clearfog/clearfog.c +4 -0
@@ -44,7 +44,11 @@ static struct serdes_map board_serdes_map[] = { #else {PEX2, SERDES_SPEED_5_GBPS, PEX_ROOT_COMPLEX_X1, 0, 0}, #endif +#if defined (CONFIG_CLEARFOG_SFP_25GB) + {SGMII2, SERDES_SPEED_3_125_GBPS, SERDES_DEFAULT_MODE, 0, 0}, +#else {SGMII2, SERDES_SPEED_1_25_GBPS, SERDES_DEFAULT_MODE, 0, 0}, +#endif }; int hws_board_topology_load(struct serdes_map **serdes_map_array, u8 *count)
Signature · 1 line
2.20.1
PATCH 5/10 arm: mvebu: clearfog: Add option for 2.5 Gbps SFP
Hi Joel,
Quoted 12 lines · Joel Johnson
Signed-off-by Joel Johnson <[email protected]>---
board/solidrun/clearfog/Kconfig | 7 +++++++ board/solidrun/clearfog/clearfog.c | 4 ++++ 2 files changed, 11 insertions(+)board/solidrun/clearfog/Kconfig +0
-0
board/solidrun/clearfog/Kconfig config CLEARFOG_CON2_SATA · line 32
Quoted 9 lines
board/solidrun/clearfog/Kconfig +6
-0@@ -24,4 +24,11 @@ config CLEARFOG_CON2_SATA modules, but the desired protocol must be configured at build time since it affects the SerDes topology layout. +config CLEARFOG_SFP_25GB + bool "Enable 2.5 Gbps mode for SFP" + help + Set the SFP module connection to support 2.5 Gbps transfer speed for the + SGMII connection (requires a supporting SFP). By default, transfer speed + of 1.25 Gbps is used, suitable for a more common 1 Gbps SFP module.
Note that recent Linux kernels support run-time SFP detection and serdes speed configuration. This patch is still useful for older kernels.
baruch
Quoted 8 lines
board/solidrun/clearfog/Kconfig +1
-0+ endmenuboard/solidrun/clearfog/clearfog.c +0
-0@@ -44,7 +44,11 @@ static struct serdes_map board_serdes_map[] = {#else
board/solidrun/clearfog/clearfog.c static struct serdes_map board_serdes_map[] = { · line 54
Quoted 10 lines
board/solidrun/clearfog/clearfog.c +4
-0{PEX2, SERDES_SPEED_5_GBPS, PEX_ROOT_COMPLEX_X1, 0, 0}, #endif +#if defined (CONFIG_CLEARFOG_SFP_25GB) + {SGMII2, SERDES_SPEED_3_125_GBPS, SERDES_DEFAULT_MODE, 0, 0}, +#else {SGMII2, SERDES_SPEED_1_25_GBPS, SERDES_DEFAULT_MODE, 0, 0}, +#endif }; int hws_board_topology_load(struct serdes_map **serdes_map_array, u8 *count)
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
PATCH 5/10 arm: mvebu: clearfog: Add option for 2.5 Gbps SFP
Quoted 26 lines · Baruch Siach
Hi Joel,
Review
Quoted 8 lines · Joel Johnson
Signed-off-by Joel Johnson <[email protected]>---
board/solidrun/clearfog/Kconfig | 7 +++++++ board/solidrun/clearfog/clearfog.c | 4 ++++ 2 files changed, 11 insertions(+)(quoted diff) +0
-0b/board/solidrun/clearfog/Kconfig
board/solidrun/clearfog/Kconfig config CLEARFOG_CON2_SATA · line 30
Quoted 11 lines
index
30f53508c2..53f01daf7a100644board/solidrun/clearfog/Kconfig +4
-0@@ -24,4 +24,11 @@ config CLEARFOG_CON2_SATA modules, but the desired protocol must be configured at build time since it affects the SerDes topology layout. +config CLEARFOG_SFP_25GB + bool "Enable 2.5 Gbps mode for SFP" + help + Set the SFP module connection to support 2.5 Gbps transfer speedfor the
board/solidrun/clearfog/Kconfig config CLEARFOG_CON2_SATA · line 31
Quoted 1 line
board/solidrun/clearfog/Kconfig +1
-0+ SGMII connection (requires a supporting SFP). By default, transferspeed
Quoted 8 lines
board/solidrun/clearfog/Kconfig config CLEARFOG_CON2_SATA · line 32
Quoted 1 line
board/solidrun/clearfog/Kconfig +1
-0+ of 1.25 Gbps is used, suitable for a more common 1 Gbps SFPmodule.
Note that recent Linux kernels support run-time SFP detection and serdes
speed configuration. This patch is still useful for older kernels.baruch
Older kernels I suppose is a nice side effect also, but I was mainly targeting differentiating within U-Boot for network support options.
Joel
PATCH 6/10 arm: mvebu: clearfog: Add config for 2GB SOM
In reply to Joel JohnsonWhile 1GB SOM parts are much more common, provide a build config option for supporting parts with 2GB.
---
board/solidrun/clearfog/Kconfig | 6 ++++++ board/solidrun/clearfog/clearfog.c | 8 ++++++++ 2 files changed, 14 insertions(+)
board/solidrun/clearfog/Kconfig +6 -0
@@ -31,4 +31,10 @@ config CLEARFOG_SFP_25GB SGMII connection (requires a supporting SFP). By default, transfer speed of 1.25 Gbps is used, suitable for a more common 1 Gbps SFP module. +config CLEARFOG_2GB_SOM + bool "Configure for a SOM with 2GB RAM" + help + Enable support for the 2GB RAM SOM variant. If this option is not + enabled then the more common 1GB version will be used. + endmenu
board/solidrun/clearfog/clearfog.c +8 -0
@@ -67,11 +67,19 @@ static struct mv_ddr_topology_map board_topology_map = {DEBUG_LEVEL_ERROR ,0x1 ,/* active interfaces */ /* cs_mask, mirror, dqs_swap, ck_swap X PUPs */ +#if defined (CONFIG_CLEARFOG_2GB_SOM) + { { { {0x3 ,0 ,0 ,0 }, + {0x3 ,0 ,0 ,0 }, + {0x3 ,0 ,0 ,0 }, + {0x3 ,0 ,0 ,0 }, + {0x3 ,0 ,0 ,0 } }, +#else { { { {0x1 ,0 ,0 ,0 }, {0x1 ,0 ,0 ,0 }, {0x1 ,0 ,0 ,0 }, {0x1 ,0 ,0 ,0 }, {0x1 ,0 ,0 ,0 } }, +#endifSPEED_BIN_DDR_1600K ,/* speed_bin */ MV_DDR_DEV_WIDTH_16BIT ,/* memory_width */ MV_DDR_DIE_CAP_4GBIT ,/* mem_size */
Signature · 1 line
2.20.1
PATCH 6/10 arm: mvebu: clearfog: Add config for 2GB SOM
Hi Joel,
Quoted 30 lines · Joel Johnson
While 1GB SOM parts are much more common, provide a build config option for supporting parts with 2GB.
Signed-off-by Joel Johnson <[email protected]>---
board/solidrun/clearfog/Kconfig | 6 ++++++ board/solidrun/clearfog/clearfog.c | 8 ++++++++ 2 files changed, 14 insertions(+)board/solidrun/clearfog/Kconfig +6
-0@@ -31,4 +31,10 @@ config CLEARFOG_SFP_25GB SGMII connection (requires a supporting SFP). By default, transfer speed of 1.25 Gbps is used, suitable for a more common 1 Gbps SFP module. +config CLEARFOG_2GB_SOM + bool "Configure for a SOM with 2GB RAM" + help + Enable support for the 2GB RAM SOM variant. If this option is not + enabled then the more common 1GB version will be used. + endmenuboard/solidrun/clearfog/clearfog.c +0
-0
board/solidrun/clearfog/clearfog.c static struct mv_ddr_topology_map board_topology_map = { · line 75
Quoted 9 lines
board/solidrun/clearfog/clearfog.c +6
-0@@ -67,11 +67,19 @@ static struct mv_ddr_topology_map board_topology_map = {DEBUG_LEVEL_ERROR ,0x1 ,/* active interfaces */ /* cs_mask, mirror, dqs_swap, ck_swap X PUPs */ +#if defined (CONFIG_CLEARFOG_2GB_SOM) + { { { {0x3 ,0 ,0 ,0 }, + {0x3 ,0 ,0 ,0 }, + {0x3 ,0 ,0 ,0 }, + {0x3 ,0 ,0 ,0 }, + {0x3 ,0 ,0 ,0 } },
That can only work for 2GB SOMs with twin-die RAM configuration. SOMs with single-die RAM need MV_DDR_DIE_CAP_8GBIT in the mem_size field instead. See board/kobol/helios4/helios4.c. See also
https://patchwork.ozlabs.org/patch/1200332/
You should also adjust the ODT configuration to assert M_ODT[0] of both chip-selects, since only M_ODT[0] is connected on the A388 SOM. See the comment I added to the cherry-picked commit log in
https://github.com/SolidRun/u-boot/commit/ab15b2d5b6ee50c106628dc0aa5943747a5dd772
Wrong ODT configuration might cause memory corruption in high RAM traffic load.
I have a patch adding support for per-board ODT configuration. I have not posted it yet to the list.
baruch
board/solidrun/clearfog/clearfog.c static struct mv_ddr_topology_map board_topology_map = { · line 85
Quoted 10 lines
board/solidrun/clearfog/clearfog.c +2
-0+#else { { { {0x1, 0, 0, 0}, {0x1, 0, 0, 0}, {0x1, 0, 0, 0}, {0x1, 0, 0, 0}, {0x1, 0, 0, 0} }, +#endif SPEED_BIN_DDR_1600K, /* speed_bin */ MV_DDR_DEV_WIDTH_16BIT, /* memory_width */ MV_DDR_DIE_CAP_4GBIT, /* mem_size */
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
PATCH 6/10 arm: mvebu: clearfog: Add config for 2GB SOM
Quoted 51 lines · Baruch Siach
Hi Joel,
Quoted 33 lines · Joel Johnson
While 1GB SOM parts are much more common, provide a build config option for supporting parts with 2GB.
Signed-off-by Joel Johnson <[email protected]>---
board/solidrun/clearfog/Kconfig | 6 ++++++ board/solidrun/clearfog/clearfog.c | 8 ++++++++ 2 files changed, 14 insertions(+)board/solidrun/clearfog/Kconfig +0
-0@@ -31,4 +31,10 @@ config CLEARFOG_SFP_25GB SGMII connection (requires a supporting SFP). By default, transferspeed
board/solidrun/clearfog/Kconfig +6
-0of 1.25 Gbps is used, suitable for a more common 1 Gbps SFP module. +config CLEARFOG_2GB_SOM + bool "Configure for a SOM with 2GB RAM" + help + Enable support for the 2GB RAM SOM variant. If this option is not + enabled then the more common 1GB version will be used. + endmenuboard/solidrun/clearfog/clearfog.c +0
-0board/solidrun/clearfog/clearfog.c static struct mv_ddr_topology_map · line 76
Quoted 10 lines
board/solidrun/clearfog/clearfog.c +6
-0@@ -67,11 +67,19 @@ static struct mv_ddr_topology_map board_topology_map = {DEBUG_LEVEL_ERROR ,0x1 ,/* active interfaces */ /* cs_mask, mirror, dqs_swap, ck_swap X PUPs */ +#if defined (CONFIG_CLEARFOG_2GB_SOM) + { { { {0x3 ,0 ,0 ,0 }, + {0x3 ,0 ,0 ,0 }, + {0x3 ,0 ,0 ,0 }, + {0x3 ,0 ,0 ,0 }, + {0x3 ,0 ,0 ,0 } },That can only work for 2GB SOMs with twin-die RAM configuration. SOMs with single-die RAM need
MV_DDR_DIE_CAP_8GBITin themem_sizefield instead. Seeboard/kobol/helios4/helios4.c. See also
Quoted 1 line
That seems to only target the newer EEPROM TLV units which I don't believe I have (still pending final checking). As with the other patch, an option for manual predefinition at build time will still be needed as an alternate path.
Quoted 5 lines
You should also adjust the ODT configuration to assert M_ODT[0] of both chip-selects, since only M_ODT[0] is connected on the A388 SOM. See the comment I added to the cherry-picked commit log in
Quoted 7 lines
https://github.com/SolidRun/u-boot/commit/ab15b2d5b6ee50c106628dc0aa5943747a5dd772
Wrong ODT configuration might cause memory corruption in high RAM traffic load.
I have a patch adding support for per-board ODT configuration. I have not posted it yet to the list.
Sounds promising, any planned timeframe for readiness and posting of that patch? I may just remove this patch from this series pending the per-board ODT config ability.
Joel
PATCH 6/10 arm: mvebu: clearfog: Add config for 2GB SOM
Hi Joel,
Quoted 50 lines · Joel Johnson
Quoted 49 lines · Baruch Siach
Quoted 33 lines · Joel Johnson
While 1GB SOM parts are much more common, provide a build config option for supporting parts with 2GB.
Signed-off-by Joel Johnson <[email protected]>---
board/solidrun/clearfog/Kconfig | 6 ++++++ board/solidrun/clearfog/clearfog.c | 8 ++++++++ 2 files changed, 14 insertions(+)board/solidrun/clearfog/Kconfig +0
-0@@ -31,4 +31,10 @@ config CLEARFOG_SFP_25GB SGMII connection (requires a supporting SFP). By default, transferspeed
board/solidrun/clearfog/Kconfig +6
-0of 1.25 Gbps is used, suitable for a more common 1 Gbps SFP module. +config CLEARFOG_2GB_SOM + bool "Configure for a SOM with 2GB RAM" + help + Enable support for the 2GB RAM SOM variant. If this option is not + enabled then the more common 1GB version will be used. + endmenuboard/solidrun/clearfog/clearfog.c +0
-0board/solidrun/clearfog/clearfog.c static struct mv_ddr_topology_map board_topology_map = · line 76
Quoted 10 lines
board/solidrun/clearfog/clearfog.c +6
-0@@ -67,11 +67,19 @@ static struct mv_ddr_topology_map board_topology_map = {DEBUG_LEVEL_ERROR ,0x1 ,/* active interfaces */ /* cs_mask, mirror, dqs_swap, ck_swap X PUPs */ +#if defined (CONFIG_CLEARFOG_2GB_SOM) + { { { {0x3 ,0 ,0 ,0 }, + {0x3 ,0 ,0 ,0 }, + {0x3 ,0 ,0 ,0 }, + {0x3 ,0 ,0 ,0 }, + {0x3 ,0 ,0 ,0 } },That can only work for 2GB SOMs with twin-die RAM configuration. SOMs with single-die RAM need
MV_DDR_DIE_CAP_8GBITin themem_sizefield instead. Seeboard/kobol/helios4/helios4.c. See also
Quoted 5 lines
Quoted 1 line
That seems to only target the newer EEPROM TLV units which I don't believe I have (still pending final checking). As with the other patch, an option for manual predefinition at build time will still be needed as an alternate path.
In linking to this patch I only meant to demonstrate MV_DDR_DIE_CAP_8GBIT.
A388 SOMs of rev 2.0 have no EEPROM.
Quoted 7 lines
Quoted 7 lines
You should also adjust the ODT configuration to assert M_ODT[0] of both chip-selects, since only M_ODT[0] is connected on the A388 SOM. See the comment I added to the cherry-picked commit log in
https://github.com/SolidRun/u-boot/commit/ab15b2d5b6ee50c106628dc0aa5943747a5dd772
Quoted 8 lines
Quoted 5 lines
Wrong ODT configuration might cause memory corruption in high RAM traffic load.
I have a patch adding support for per-board ODT configuration. I have not posted it yet to the list.
Sounds promising, any planned timeframe for readiness and posting of that patch?
I plan to post patches adding support for twin-die SOMs once the previous series is merged.
Quoted 2 lines
I may just remove this patch from this series pending the per-board ODT config ability.
You need this patch (or equivalent) for twin-die SOMs regardless of per-board ODT.
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
PATCH 7/10 arm: mvebu: clearfog: add SPI offsets
In reply to Joel JohnsonAdd reasonable default SPI offsets and ENV size when configured to boot from SPI flash.
---
board/solidrun/clearfog/Kconfig | 12 ++++++++++++ 1 file changed, 12 insertions(+)
board/solidrun/clearfog/Kconfig +12 -0
@@ -37,4 +37,16 @@ config CLEARFOG_2GB_SOM Enable support for the 2GB RAM SOM variant. If this option is not enabled then the more common 1GB version will be used. +config ENV_SECT_SIZE + hex "Environment Sector-Size" + # Use SPI flash erase block size of 4 KiB + default 0x1000 if MVEBU_SPL_BOOT_DEVICE_SPI + # Use optimistic 64 KiB erase block, will vary between actual media + default 0x10000 if MVEBU_SPL_BOOT_DEVICE_MMC + +config SYS_SPI_U_BOOT_OFFS + hex "address of u-boot payload in SPI flash" + default 0x20000 + depends on MVEBU_SPL_BOOT_DEVICE_SPI + endmenu
Signature · 1 line
2.20.1
PATCH 7/10 arm: mvebu: clearfog: add SPI offsets
Hi Joel,
Quoted 14 lines · Joel Johnson
Add reasonable default SPI offsets and ENV size when configured to boot from SPI flash.
Signed-off-by Joel Johnson <[email protected]>---
board/solidrun/clearfog/Kconfig | 12 ++++++++++++ 1 file changed, 12 insertions(+)board/solidrun/clearfog/Kconfig +0
-0
board/solidrun/clearfog/Kconfig config CLEARFOG_2GB_SOM · line 45
Quoted 9 lines
board/solidrun/clearfog/Kconfig +6
-0@@ -37,4 +37,16 @@ config CLEARFOG_2GB_SOM Enable support for the 2GB RAM SOM variant. If this option is not enabled then the more common 1GB version will be used. +config ENV_SECT_SIZE + hex "Environment Sector-Size" + # Use SPI flash erase block size of 4 KiB + default 0x1000 if MVEBU_SPL_BOOT_DEVICE_SPI + # Use optimistic 64 KiB erase block, will vary between actual media + default 0x10000 if MVEBU_SPL_BOOT_DEVICE_MMC
Duplication of config symbols in platform specific Kconfig goes against common practice. Platform specific values should go in defconfig. Support for Clearfog SPI boot should be in a dedicated defconfig, I think.
Same comment on patches #9 and #10.
board/solidrun/clearfog/Kconfig config CLEARFOG_2GB_SOM · line 50
Quoted 4 lines
board/solidrun/clearfog/Kconfig +4
-0+config SYS_SPI_U_BOOT_OFFS + hex "address of u-boot payload in SPI flash" + default 0x20000 + depends on MVEBU_SPL_BOOT_DEVICE_SPI
It might be better to add u-boot,spl-payload-offset property to the U-Boot specific -u-boot.dtsi file instead.
board/solidrun/clearfog/Kconfig config CLEARFOG_2GB_SOM · line 51
Quoted 2 lines
board/solidrun/clearfog/Kconfig +1
-0+ endmenu
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
PATCH 7/10 arm: mvebu: clearfog: add SPI offsets
Quoted 34 lines · Baruch Siach
Hi Joel,
Quoted 15 lines · Joel Johnson
Add reasonable default SPI offsets and ENV size when configured to boot from SPI flash.
Signed-off-by Joel Johnson <[email protected]>---
board/solidrun/clearfog/Kconfig | 12 ++++++++++++ 1 file changed, 12 insertions(+)board/solidrun/clearfog/Kconfig +0
-0board/solidrun/clearfog/Kconfig config CLEARFOG_2GB_SOM · line 45
Quoted 9 lines
board/solidrun/clearfog/Kconfig +6
-0@@ -37,4 +37,16 @@ config CLEARFOG_2GB_SOM Enable support for the 2GB RAM SOM variant. If this option is not enabled then the more common 1GB version will be used. +config ENV_SECT_SIZE + hex "Environment Sector-Size" + # Use SPI flash erase block size of 4 KiB + default 0x1000 if MVEBU_SPL_BOOT_DEVICE_SPI + # Use optimistic 64 KiB erase block, will vary between actual media + default 0x10000 if MVEBU_SPL_BOOT_DEVICE_MMCDuplication of config symbols in platform specific
Kconfiggoes against common practice. Platform specific values should go in defconfig. Support for Clearfog SPI boot should be in a dedicated defconfig, I think.
Quoted 1 line
Same comment on patches #9 and #10.
On the config symbol duplication, that's what seemed to be advocated by the Kconfig documentation, perhaps I'm reading/interpreting it incorrectly? I found examples of doing it how I did and it seemed to match the documented inteded usage. From
https://www.kernel.org/doc/html/latest/kbuild/kconfig-language.html:
"Default values are not limited to the menu entry where they are
defined. This means the default can be defined somewhere else or be overridden by an earlier definition."
On the topic of a separate defconfig for SPI booting the same platform, I have been intentionally trying to avoid that. My use cases include SPI booting, but env in MMC, and MMC booting, but env in SPI - I don't intend to make those default mechanisms since they're admittedly a bit more esoteric, but I would still like them to be easily obtainable using a few custom config definitions at build time.
Quoted 7 lines
board/solidrun/clearfog/Kconfig config CLEARFOG_2GB_SOM · line 50
Quoted 4 lines
board/solidrun/clearfog/Kconfig +4
-0+config SYS_SPI_U_BOOT_OFFS + hex "address of u-boot payload in SPI flash" + default 0x20000 + depends on MVEBU_SPL_BOOT_DEVICE_SPIIt might be better to add u-boot,spl-payload-offset property to the U-Boot specific
-u-boot.dtsifile instead.
I hadn't considered that option and it's intriguing, but what would make it objectively better? It seems just an alternate location to put a statically defined value, having it as a custom U-Boot DTS entry doesn't allow runtime changing, does it?
Joel
PATCH 7/10 arm: mvebu: clearfog: add SPI offsets
Hi Joel,
Quoted 37 lines · Joel Johnson
Quoted 34 lines · Baruch Siach
Hi Joel,
Quoted 15 lines · Joel Johnson
Add reasonable default SPI offsets and ENV size when configured to boot from SPI flash.
Signed-off-by Joel Johnson <[email protected]>---
board/solidrun/clearfog/Kconfig | 12 ++++++++++++ 1 file changed, 12 insertions(+)board/solidrun/clearfog/Kconfig +0
-0board/solidrun/clearfog/Kconfig config CLEARFOG_2GB_SOM · line 45
Quoted 9 lines
board/solidrun/clearfog/Kconfig +6
-0@@ -37,4 +37,16 @@ config CLEARFOG_2GB_SOM Enable support for the 2GB RAM SOM variant. If this option is not enabled then the more common 1GB version will be used. +config ENV_SECT_SIZE + hex "Environment Sector-Size" + # Use SPI flash erase block size of 4 KiB + default 0x1000 if MVEBU_SPL_BOOT_DEVICE_SPI + # Use optimistic 64 KiB erase block, will vary between actual media + default 0x10000 if MVEBU_SPL_BOOT_DEVICE_MMCDuplication of config symbols in platform specific
Kconfiggoes against common practice. Platform specific values should go in defconfig. Support for Clearfog SPI boot should be in a dedicated defconfig, I think.Quoted 1 line
Same comment on patches #9 and #10.
Quoted 8 lines
On the config symbol duplication, that's what seemed to be advocated by the
Kconfigdocumentation, perhaps I'm reading/interpreting it incorrectly? I found examples of doing it how I did and it seemed to match the documented inteded usage. From
https://www.kernel.org/doc/html/latest/kbuild/kconfig-language.html:
"Default values are not limited to the menu entry where they are
defined. This means the default can be defined somewhere else or be overridden by an earlier definition."
U-Boot code has very few duplicate definitions for setting default values. I'll let the maintainers decide on that.
Quoted 15 lines
On the topic of a separate defconfig for SPI booting the same platform, I have been intentionally trying to avoid that. My use cases include SPI booting, but env in MMC, and MMC booting, but env in SPI - I don't intend to make those default mechanisms since they're admittedly a bit more esoteric, but I would still like them to be easily obtainable using a few custom config definitions at build time.
Quoted 7 lines
board/solidrun/clearfog/Kconfig config CLEARFOG_2GB_SOM · line 50
Quoted 4 lines
board/solidrun/clearfog/Kconfig +4
-0+config SYS_SPI_U_BOOT_OFFS + hex "address of u-boot payload in SPI flash" + default 0x20000 + depends on MVEBU_SPL_BOOT_DEVICE_SPIIt might be better to add u-boot,spl-payload-offset property to the U-Boot specific
-u-boot.dtsifile instead.
Quoted 4 lines
I hadn't considered that option and it's intriguing, but what would make it objectively better? It seems just an alternate location to put a statically defined value, having it as a custom U-Boot DTS entry doesn't allow runtime changing, does it?
Right. u-boot,spl-payload-offset clobbers the value from spl_spi_get_uboot_offs() in current code. It's just that I find the DT property nicer than duplicated config. But I can't think of a technical reason to prefer DT set offset.
baruch
Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -PATCH 8/10 arm: mvebu: enable working default boot support
In reply to Joel JohnsonWith the move to driver model usage, ensure that the required driver support for SPI and MMC booting is available in SPL.
Tested on SolidRun ClearFog devices.
---
arch/arm/mach-mvebu/Kconfig | 10 ++++++++++ 1 file changed, 10 insertions(+)
arch/arm/mach-mvebu/Kconfig +10 -0
@@ -234,9 +234,19 @@ choice config MVEBU_SPL_BOOT_DEVICE_SPI bool "SPI NOR flash" + select ENV_IS_IN_SPI_FLASH + select SPL_DM_SPI + select SPL_MTD_SUPPORT + select SPL_SPI_FLASH_SUPPORT + select SPL_SPI_LOAD + select SPL_SPI_SUPPORT config MVEBU_SPL_BOOT_DEVICE_MMC bool "SDIO/MMC card" + select ENV_IS_IN_MMC + # GPIO required for SD card presence detection line + select SPL_DM_GPIO + select SPL_DM_MMC select SPL_LIBDISK_SUPPORT config MVEBU_SPL_BOOT_DEVICE_SATA
Signature · 1 line
2.20.1
PATCH 8/10 arm: mvebu: enable working default boot support
I've found an issue in testing with the ENV_IS_IN_X values, they need to be changed from a "select" to an "imply" to enable disabling default values and support booting from MMC and having flash in SPI (or the other way around).
I have the change queued for either a second patch submission (pending additional review and comments), or subsequent patch.
Joel
Quoted 35 lines · Joel Johnson
With the move to driver model usage, ensure that the required driver support for SPI and MMC booting is available in SPL.
Tested on SolidRun ClearFog devices.
Signed-off-by Joel Johnson <[email protected]>---
arch/arm/mach-mvebu/Kconfig | 10 ++++++++++ 1 file changed, 10 insertions(+)arch/arm/mach-mvebu/Kconfig +10
-0@@ -234,9 +234,19 @@ choice config MVEBU_SPL_BOOT_DEVICE_SPI bool "SPI NOR flash" + select ENV_IS_IN_SPI_FLASH + select SPL_DM_SPI + select SPL_MTD_SUPPORT + select SPL_SPI_FLASH_SUPPORT + select SPL_SPI_LOAD + select SPL_SPI_SUPPORT config MVEBU_SPL_BOOT_DEVICE_MMC bool "SDIO/MMC card" + select ENV_IS_IN_MMC + # GPIO required for SD card presence detection line + select SPL_DM_GPIO + select SPL_DM_MMC select SPL_LIBDISK_SUPPORT config MVEBU_SPL_BOOT_DEVICE_SATA
PATCH 8/10 arm: mvebu: enable working default boot support
Hi Joel,
Quoted 7 lines · Joel Johnson
I've found an issue in testing with the
ENV_IS_IN_Xvalues, they need to be changed from a "select" to an "imply" to enable disabling default values and support booting from MMC and having flash in SPI (or the other way around).I have the change queued for either a second patch submission (pending additional review and comments), or subsequent patch.
As you will most likely rebase your patches on top of Baruch's patches, please change this patch to using "imply" then.
Thanks,
Stefan
Quoted 37 lines
Joel
Quoted 34 lines · Joel Johnson
With the move to driver model usage, ensure that the required driver support for SPI and MMC booting is available in SPL.
Tested on SolidRun ClearFog devices.
Signed-off-by Joel Johnson <[email protected]>---
arch/arm/mach-mvebu/Kconfig | 10 ++++++++++ 1 file changed, 10 insertions(+)arch/arm/mach-mvebu/Kconfig +10
-0@@ -234,9 +234,19 @@ choice config MVEBU_SPL_BOOT_DEVICE_SPI bool "SPI NOR flash" + select ENV_IS_IN_SPI_FLASH + select SPL_DM_SPI + select SPL_MTD_SUPPORT + select SPL_SPI_FLASH_SUPPORT + select SPL_SPI_LOAD + select SPL_SPI_SUPPORT config MVEBU_SPL_BOOT_DEVICE_MMC bool "SDIO/MMC card" + select ENV_IS_IN_MMC + # GPIO required for SD card presence detection line + select SPL_DM_GPIO + select SPL_DM_MMC select SPL_LIBDISK_SUPPORT
Quoted 1 line
arch/arm/mach-mvebu/Kconfig choice · line 252
Quoted 1 line
arch/arm/mach-mvebu/Kconfig +0
-0config MVEBU_SPL_BOOT_DEVICE_SATA
Viele Grüße,
Stefan
Signature · 3 lines
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr at denx.de
PATCH 9/10 arm: mvebu: clearfog: move ENV params to Kconfig
In reply to Joel JohnsonMigrate the values for ENV_SIZE and ENV_OFFSET into board specific Kconfig defaults so they're more accessible for configuration.
---
board/solidrun/clearfog/Kconfig | 8 ++++++++ configs/clearfog_defconfig | 2 -- 2 files changed, 8 insertions(+), 2 deletions(-)
board/solidrun/clearfog/Kconfig +8 -0
@@ -37,6 +37,14 @@ config CLEARFOG_2GB_SOM Enable support for the 2GB RAM SOM variant. If this option is not enabled then the more common 1GB version will be used. +config ENV_SIZE + hex "Environment Size" + default 0x10000 + +config ENV_OFFSET + hex "Environment offset" + default 0xF0000 + config ENV_SECT_SIZE hex "Environment Sector-Size" # Use SPI flash erase block size of 4 KiB
configs/clearfog_defconfig +0 -2
@@ -11,8 +11,6 @@ CONFIG_TARGET_CLEARFOG=y CONFIG_MVEBU_SPL_BOOT_DEVICE_MMC=y CONFIG_SPL_MMC_SUPPORT=y CONFIG_SPL_SERIAL_SUPPORT=y -CONFIG_ENV_SIZE=0x10000 -CONFIG_ENV_OFFSET=0xF0000 CONFIG_NR_DRAM_BANKS=2 CONFIG_SPL=y CONFIG_DEBUG_UART_BASE=0xd0012000
Signature · 1 line
2.20.1
PATCH 9/10 arm: mvebu: clearfog: move ENV params to Kconfig
Quoted 4 lines · Joel Johnson
Migrate the values for
ENV_SIZEandENV_OFFSETinto board specificKconfigdefaults so they're more accessible for configuration.Signed-off-by Joel Johnson <[email protected]>
The ENV macros have been moved to Kconfig in mainline. Please check and drop this patch or submit a necessary change if required.
Thanks,
Stefan
Quoted 31 lines
---
board/solidrun/clearfog/Kconfig | 8 ++++++++ configs/clearfog_defconfig | 2 -- 2 files changed, 8 insertions(+), 2 deletions(-)board/solidrun/clearfog/Kconfig +8
-0@@ -37,6 +37,14 @@ config CLEARFOG_2GB_SOM Enable support for the 2GB RAM SOM variant. If this option is not enabled then the more common 1GB version will be used. +config ENV_SIZE + hex "Environment Size" + default 0x10000 + +config ENV_OFFSET + hex "Environment offset" + default 0xF0000 + config ENV_SECT_SIZE hex "Environment Sector-Size" # Use SPI flash erase block size of 4 KiBconfigs/clearfog_defconfig +0
-0
configs/clearfog_defconfig CONFIG_TARGET_CLEARFOG=y · line 16
Quoted 8 lines
configs/clearfog_defconfig +0
-2@@ -11,8 +11,6 @@ CONFIG_TARGET_CLEARFOG=y CONFIG_MVEBU_SPL_BOOT_DEVICE_MMC=y CONFIG_SPL_MMC_SUPPORT=y CONFIG_SPL_SERIAL_SUPPORT=y -CONFIG_ENV_SIZE=0x10000 -CONFIG_ENV_OFFSET=0xF0000 CONFIG_NR_DRAM_BANKS=2 CONFIG_SPL=y CONFIG_DEBUG_UART_BASE=0xd0012000
Viele Grüße,
Stefan
Signature · 3 lines
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr at denx.de
PATCH 10/10 arm: mvebu: clearfog: don't assume MMC booting
In reply to Joel JohnsonRemove MMC booting assumptions from clearfog_defconfig. Their presence in starting config files conflicts with default ENV_IS_IN selection logic based on boot source, since the "select" option can't distinguish between user-overridden and defconfig selected.
---
The real objective is to remove CONFIG_MVEBU_SPL_BOOT_DEVICE_MMC as well but I couldn't identify an available mechanism to do so. Requiring it as enabled in the defconfig results in additional items being unneccessarily included if switching boot device after starting with the defconfig, as well as ENV_IS_IN_MMC being undesirably residually defined.
--- arch/arm/mach-mvebu/Kconfig | 1 + board/solidrun/clearfog/Kconfig | 5 +++++ configs/clearfog_defconfig | 3 --- 3 files changed, 6 insertions(+), 3 deletions(-)
arch/arm/mach-mvebu/Kconfig +1 -0
@@ -248,6 +248,7 @@ config MVEBU_SPL_BOOT_DEVICE_MMC select SPL_DM_GPIO select SPL_DM_MMC select SPL_LIBDISK_SUPPORT + select SPL_MMC_SUPPORT config MVEBU_SPL_BOOT_DEVICE_SATA bool "SATA"
board/solidrun/clearfog/Kconfig +5 -0
@@ -52,6 +52,11 @@ config ENV_SECT_SIZE # Use optimistic 64 KiB erase block, will vary between actual media default 0x10000 if MVEBU_SPL_BOOT_DEVICE_MMC +config SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR + hex "Address on the MMC to load U-Boot from" + default 0x141 + depends on MVEBU_SPL_BOOT_DEVICE_MMC + config SYS_SPI_U_BOOT_OFFS hex "address of u-boot payload in SPI flash" default 0x20000
configs/clearfog_defconfig +0 -3
@@ -9,7 +9,6 @@ CONFIG_SPL_LIBGENERIC_SUPPORT=y CONFIG_SYS_MALLOC_F_LEN=0x2000 CONFIG_TARGET_CLEARFOG=y CONFIG_MVEBU_SPL_BOOT_DEVICE_MMC=y -CONFIG_SPL_MMC_SUPPORT=y CONFIG_SPL_SERIAL_SUPPORT=y CONFIG_NR_DRAM_BANKS=2 CONFIG_SPL=y
@@ -24,7 +23,6 @@ CONFIG_USE_PREBOOT=y CONFIG_SYS_CONSOLE_INFO_QUIET=y # CONFIG_DISPLAY_BOARDINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y -CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x141 CONFIG_SPL_I2C_SUPPORT=y # CONFIG_CMD_FLASH is not set CONFIG_CMD_GPIO=y
@@ -39,7 +37,6 @@ CONFIG_CMD_CACHE=y CONFIG_CMD_TIME=y # CONFIG_SPL_PARTITION_UUIDS is not set CONFIG_DEFAULT_DEVICE_TREE="armada-388-clearfog" -CONFIG_ENV_IS_IN_MMC=y CONFIG_NET_RANDOM_ETHADDR=y CONFIG_SPL_OF_TRANSLATE=y CONFIG_AHCI_MVEBU=y
Signature · 1 line
2.20.1
PATCH 10/10 arm: mvebu: clearfog: don't assume MMC booting
Hi Joel,
Quoted 4 lines · Joel Johnson
Remove MMC booting assumptions from
clearfog_defconfig. Their presence in starting config files conflicts with defaultENV_IS_INselection logic based on boot source, since the "select" option can't distinguish between user-overridden and defconfig selected.
As I mentioned in a previous patch review, I believe that SPI boot support should be in a separate defconfig.
One more comment below.
Quoted 34 lines
Signed-off-by Joel Johnson <[email protected]>---
The real objective is to remove
CONFIG_MVEBU_SPL_BOOT_DEVICE_MMCas well but I couldn't identify an available mechanism to do so. Requiring it as enabled in the defconfig results in additional items being unneccessarily included if switching boot device after starting with the defconfig, as well asENV_IS_IN_MMCbeing undesirably residually defined.--- arch/arm/mach-mvebu/Kconfig | 1 + board/solidrun/clearfog/Kconfig | 5 +++++ configs/clearfog_defconfig | 3 --- 3 files changed, 6 insertions(+), 3 deletions(-)arch/arm/mach-mvebu/Kconfig +1
-0@@ -248,6 +248,7 @@ config MVEBU_SPL_BOOT_DEVICE_MMC select SPL_DM_GPIO select SPL_DM_MMC select SPL_LIBDISK_SUPPORT + select SPL_MMC_SUPPORT config MVEBU_SPL_BOOT_DEVICE_SATA bool "SATA"board/solidrun/clearfog/Kconfig +0
-0
board/solidrun/clearfog/Kconfig config ENV_SECT_SIZE · line 58
Quoted 7 lines
board/solidrun/clearfog/Kconfig +4
-0@@ -52,6 +52,11 @@ config ENV_SECT_SIZE # Use optimistic 64 KiB erase block, will vary between actual media default 0x10000 if MVEBU_SPL_BOOT_DEVICE_MMC +config SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR + hex "Address on the MMC to load U-Boot from" + default 0x141 + depends on MVEBU_SPL_BOOT_DEVICE_MMC
You might want to take a look at the series linked below, which conflicts with this patch:
https://patchwork.ozlabs.org/project/uboot/list/?series=121894
baruch
Quoted 25 lines
board/solidrun/clearfog/Kconfig +1
-0+ config SYS_SPI_U_BOOT_OFFS hex "address of u-boot payload in SPI flash" default 0x20000configs/clearfog_defconfig +0
-2@@ -9,7 +9,6 @@ CONFIG_SPL_LIBGENERIC_SUPPORT=y CONFIG_SYS_MALLOC_F_LEN=0x2000 CONFIG_TARGET_CLEARFOG=y CONFIG_MVEBU_SPL_BOOT_DEVICE_MMC=y -CONFIG_SPL_MMC_SUPPORT=y CONFIG_SPL_SERIAL_SUPPORT=y CONFIG_NR_DRAM_BANKS=2 CONFIG_SPL=y@@ -24,7 +23,6 @@ CONFIG_USE_PREBOOT=y CONFIG_SYS_CONSOLE_INFO_QUIET=y # CONFIG_DISPLAY_BOARDINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y -CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x141 CONFIG_SPL_I2C_SUPPORT=y # CONFIG_CMD_FLASH is not set CONFIG_CMD_GPIO=y
configs/clearfog_defconfig CONFIG_CMD_CACHE=y · line 42
Quoted 7 lines
configs/clearfog_defconfig +0
-1@@ -39,7 +37,6 @@ CONFIG_CMD_CACHE=y CONFIG_CMD_TIME=y # CONFIG_SPL_PARTITION_UUIDS is not set CONFIG_DEFAULT_DEVICE_TREE="armada-388-clearfog" -CONFIG_ENV_IS_IN_MMC=y CONFIG_NET_RANDOM_ETHADDR=y CONFIG_SPL_OF_TRANSLATE=y CONFIG_AHCI_MVEBU=y
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
PATCH 10/10 arm: mvebu: clearfog: don't assume MMC booting
Quoted 11 lines · Baruch Siach
Hi Joel,
Quoted 4 lines · Joel Johnson
Remove MMC booting assumptions from
clearfog_defconfig. Their presence in starting config files conflicts with defaultENV_IS_INselection logic based on boot source, since the "select" option can't distinguish between user-overridden and defconfig selected.As I mentioned in a previous patch review, I believe that SPI boot support should be in a separate defconfig.
As I responded in a previous patch, I like to specifically avoid that, to enable (not by default) mixed media boot and storage locations. The current set I have makes the mixed mode almost achievable, except needing to explicit set CONFIG_ENV_IS_IN_MMC=n when enabling SPI boot, otherwise it boots from SPI and tries to load env from MMC. That's a use case I'm after, but isn't what should be a reasonable default given the surprise factor if not intended.
Quoted 48 lines
One more comment below.
Quoted 35 lines
Signed-off-by Joel Johnson <[email protected]>---
The real objective is to remove
CONFIG_MVEBU_SPL_BOOT_DEVICE_MMCas well but I couldn't identify an available mechanism to do so. Requiring it as enabled in the defconfig results in additional items being unneccessarily included if switching boot device after starting with the defconfig, as well asENV_IS_IN_MMCbeing undesirably residually defined.--- arch/arm/mach-mvebu/Kconfig | 1 + board/solidrun/clearfog/Kconfig | 5 +++++ configs/clearfog_defconfig | 3 --- 3 files changed, 6 insertions(+), 3 deletions(-)arch/arm/mach-mvebu/Kconfig +1
-0@@ -248,6 +248,7 @@ config MVEBU_SPL_BOOT_DEVICE_MMC select SPL_DM_GPIO select SPL_DM_MMC select SPL_LIBDISK_SUPPORT + select SPL_MMC_SUPPORT config MVEBU_SPL_BOOT_DEVICE_SATA bool "SATA"board/solidrun/clearfog/Kconfig +0
-0board/solidrun/clearfog/Kconfig config ENV_SECT_SIZE · line 58
Quoted 7 lines
board/solidrun/clearfog/Kconfig +4
-0@@ -52,6 +52,11 @@ config ENV_SECT_SIZE # Use optimistic 64 KiB erase block, will vary between actual media default 0x10000 if MVEBU_SPL_BOOT_DEVICE_MMC +config SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR + hex "Address on the MMC to load U-Boot from" + default 0x141 + depends on MVEBU_SPL_BOOT_DEVICE_MMCYou might want to take a look at the series linked below, which conflicts with this patch:
Indeed, the dynamic runtime approach seems much nicer for handling the MMCSD offset business, including relative vs. absolute device offset. I only have non-eMMC units so can't test it, but I'm all for dropping the SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR portion of this patch in favor of that patch, in which leaving the defconfig entry does no harm. Any indication of when that patch will be included? It seems to have been stagnant for a while.
Joel
PATCH 10/10 arm: mvebu: clearfog: don't assume MMC booting
Hi Joel,
Quoted 10 lines · Joel Johnson
Quoted 9 lines · Baruch Siach
board/solidrun/clearfog/Kconfig config ENV_SECT_SIZE · line 58
Quoted 4 lines · Joel Johnson
board/solidrun/clearfog/Kconfig +4
-0+config SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR + hex "Address on the MMC to load U-Boot from" + default 0x141 + depends on MVEBU_SPL_BOOT_DEVICE_MMCYou might want to take a look at the series linked below, which conflicts with this patch:
Quoted 8 lines
Indeed, the dynamic runtime approach seems much nicer for handling the MMCSD offset business, including relative vs. absolute device offset. I only have non-eMMC units so can't test it, but I'm all for dropping the
SYS_MMCSD_RAW_MODE_U_BOOT_SECTORportion of this patch in favor of that patch, in which leaving the defconfig entry does no harm. Any indication of when that patch will be included? It seems to have been stagnant for a while.
Indeed. I'm waiting patiently.
baruch
Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -PATCH 10/10 arm: mvebu: clearfog: don't assume MMC booting
Hi Baruch,
Quoted 15 lines · Baruch Siach
Hi Joel,
Quoted 12 lines · Joel Johnson
Quoted 10 lines · Baruch Siach
board/solidrun/clearfog/Kconfig config ENV_SECT_SIZE · line 58
Quoted 4 lines · Joel Johnson
board/solidrun/clearfog/Kconfig +4
-0+config SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR + hex "Address on the MMC to load U-Boot from" + default 0x141 + depends on MVEBU_SPL_BOOT_DEVICE_MMCYou might want to take a look at the series linked below, which conflicts with this patch:
https://patchwork.ozlabs.org/project/uboot/list/?series=121894
Quoted 8 lines
Quoted 6 lines
Indeed, the dynamic runtime approach seems much nicer for handling the MMCSD offset business, including relative vs. absolute device offset. I only have non-eMMC units so can't test it, but I'm all for dropping the
SYS_MMCSD_RAW_MODE_U_BOOT_SECTORportion of this patch in favor of that patch, in which leaving the defconfig entry does no harm. Any indication of when that patch will be included? It seems to have been stagnant for a while.Indeed. I'm waiting patiently.
I have missed addressing this patch series for quite some time, sorry. Could you please rebase this patchset on top of current mainline as it doesn't apply any more. And please do a compile run for all targets as well (Travis). I'll try to push it upstream in this merge window.
Thanks,
Stefan
PATCH 10/10 arm: mvebu: clearfog: don't assume MMC booting
Hi Stefan,
Quoted 21 lines · Stefan Roese
Quoted 20 lines · Baruch Siach
Quoted 18 lines · Joel Johnson
Quoted 10 lines · Baruch Siach
board/solidrun/clearfog/Kconfig config ENV_SECT_SIZE · line 58
Quoted 4 lines · Joel Johnson
board/solidrun/clearfog/Kconfig +4
-0+config SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR + hex "Address on the MMC to load U-Boot from" + default 0x141 + depends on MVEBU_SPL_BOOT_DEVICE_MMCYou might want to take a look at the series linked below, which conflicts with this patch:
https://patchwork.ozlabs.org/project/uboot/list/?series=121894Indeed, the dynamic runtime approach seems much nicer for handling the MMCSD offset business, including relative vs. absolute device offset. I only have non-eMMC units so can't test it, but I'm all for dropping the
SYS_MMCSD_RAW_MODE_U_BOOT_SECTORportion of this patch in favor of that patch, in which leaving the defconfig entry does no harm. Any indication of when that patch will be included? It seems to have been stagnant for a while.
Quoted 6 lines
Quoted 1 line
Indeed. I'm waiting patiently.
I have missed addressing this patch series for quite some time, sorry. Could you please rebase this patchset on top of current mainline as it doesn't apply any more. And please do a compile run for all targets as well (Travis). I'll try to push it upstream in this merge window.
Thanks. I'll work on that tomorrow.
While you are at it can you also push this fix:
https://patchwork.ozlabs.org/patch/1205597/
Clearfog can't boot v2020.01 clearfog_defconfig without it :-(.
Thanks,
baruch
Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -PATCH 10/10 arm: mvebu: clearfog: don't assume MMC booting
Hi Baruch,
Quoted 24 lines · Baruch Siach
Hi Stefan,
Quoted 21 lines · Stefan Roese
Quoted 20 lines · Baruch Siach
Quoted 18 lines · Joel Johnson
Quoted 10 lines · Baruch Siach
board/solidrun/clearfog/Kconfig config ENV_SECT_SIZE · line 58
Quoted 4 lines · Joel Johnson
board/solidrun/clearfog/Kconfig +4
-0+config SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR + hex "Address on the MMC to load U-Boot from" + default 0x141 + depends on MVEBU_SPL_BOOT_DEVICE_MMCYou might want to take a look at the series linked below, which conflicts with this patch:
https://patchwork.ozlabs.org/project/uboot/list/?series=121894Indeed, the dynamic runtime approach seems much nicer for handling the MMCSD offset business, including relative vs. absolute device offset. I only have non-eMMC units so can't test it, but I'm all for dropping the
SYS_MMCSD_RAW_MODE_U_BOOT_SECTORportion of this patch in favor of that patch, in which leaving the defconfig entry does no harm. Any indication of when that patch will be included? It seems to have been stagnant for a while.
Quoted 8 lines
Quoted 6 lines
Quoted 1 line
Indeed. I'm waiting patiently.
I have missed addressing this patch series for quite some time, sorry. Could you please rebase this patchset on top of current mainline as it doesn't apply any more. And please do a compile run for all targets as well (Travis). I'll try to push it upstream in this merge window.
Thanks. I'll work on that tomorrow.
Thanks.
Quoted 5 lines
While you are at it can you also push this fix:
https://patchwork.ozlabs.org/patch/1205597/Clearfog can't boot v2020.01
clearfog_defconfigwithout it :-(.
Its on my list. I'll pull it with the other patch with my next pull request.
Thanks,
Stefan
PATCH 10/10 arm: mvebu: clearfog: don't assume MMC booting
In reply to Stefan RoeseHi Stefan,
Quoted 21 lines · Stefan Roese
Quoted 20 lines · Baruch Siach
Quoted 18 lines · Joel Johnson
Quoted 10 lines · Baruch Siach
board/solidrun/clearfog/Kconfig config ENV_SECT_SIZE · line 58
Quoted 4 lines · Joel Johnson
board/solidrun/clearfog/Kconfig +4
-0+config SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR + hex "Address on the MMC to load U-Boot from" + default 0x141 + depends on MVEBU_SPL_BOOT_DEVICE_MMCYou might want to take a look at the series linked below, which conflicts with this patch:
https://patchwork.ozlabs.org/project/uboot/list/?series=121894Indeed, the dynamic runtime approach seems much nicer for handling the MMCSD offset business, including relative vs. absolute device offset. I only have non-eMMC units so can't test it, but I'm all for dropping the
SYS_MMCSD_RAW_MODE_U_BOOT_SECTORportion of this patch in favor of that patch, in which leaving the defconfig entry does no harm. Any indication of when that patch will be included? It seems to have been stagnant for a while.
Quoted 5 lines
Quoted 1 line
Indeed. I'm waiting patiently.
I have missed addressing this patch series for quite some time, sorry. Could you please rebase this patchset on top of current mainline as it doesn't apply any more.
The original patch series applies cleanly on top of current master as of commit 88366b96ee0d86 ("travis: Switch to QEMU v4.2.0 globally"), and runs successfully. It only trivially conflicts with the clearfog_defconfig SPL_DM_GPIO fix (http://patchwork.ozlabs.org/patch/1205597/). Would you like me to rebase on to of that?
Quoted 2 lines
And please do a compile run for all targets as well (Travis). I'll try to push it upstream in this merge window.
buildman for arm and aarch64 is currently running.
baruch
Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -PATCH 10/10 arm: mvebu: clearfog: don't assume MMC booting
Hi Baruch,
Quoted 30 lines · Baruch Siach
Hi Stefan,
Quoted 21 lines · Stefan Roese
Quoted 20 lines · Baruch Siach
Quoted 18 lines · Joel Johnson
Quoted 10 lines · Baruch Siach
board/solidrun/clearfog/Kconfig config ENV_SECT_SIZE · line 58
Quoted 4 lines · Joel Johnson
board/solidrun/clearfog/Kconfig +4
-0+config SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR + hex "Address on the MMC to load U-Boot from" + default 0x141 + depends on MVEBU_SPL_BOOT_DEVICE_MMCYou might want to take a look at the series linked below, which conflicts with this patch:
https://patchwork.ozlabs.org/project/uboot/list/?series=121894Indeed, the dynamic runtime approach seems much nicer for handling the MMCSD offset business, including relative vs. absolute device offset. I only have non-eMMC units so can't test it, but I'm all for dropping the
SYS_MMCSD_RAW_MODE_U_BOOT_SECTORportion of this patch in favor of that patch, in which leaving the defconfig entry does no harm. Any indication of when that patch will be included? It seems to have been stagnant for a while.Quoted 5 lines
Quoted 1 line
Indeed. I'm waiting patiently.
I have missed addressing this patch series for quite some time, sorry. Could you please rebase this patchset on top of current mainline as it doesn't apply any more.
Quoted 5 lines
The original patch series applies cleanly on top of current master as of commit
88366b96ee0d86("travis: Switch to QEMU v4.2.0 globally"), and runs successfully. It only trivially conflicts with theclearfog_defconfigSPL_DM_GPIOfix (http://patchwork.ozlabs.org/patch/1205597/). Would you like me to rebase on to of that?
Yes, please.
Quoted 4 lines
Quoted 2 lines
And please do a compile run for all targets as well (Travis). I'll try to push it upstream in this merge window.
buildman for arm and aarch64 is currently running.
All platforms please. I suggest to use Travis for this. Be prepared that this takes a few hours though.
Thanks,
Stefan
PATCH 10/10 arm: mvebu: clearfog: don't assume MMC booting
Hi Stefan,
Quoted 9 lines · Stefan Roese
Quoted 5 lines · Baruch Siach
Quoted 2 lines · Stefan Roese
And please do a compile run for all targets as well (Travis). I'll try to push it upstream in this merge window.
buildman for arm and aarch64 is currently running.
All platforms please. I suggest to use Travis for this. Be prepared that this takes a few hours though.
Do you refer to travis-ci.org integration with github.com? Something else?
Travis CI wants access to github repos of all organizations my account is authorized to access. I can't do that.
baruch
Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -PATCH 10/10 arm: mvebu: clearfog: don't assume MMC booting
Hi Baruch,
Quoted 8 lines · Baruch Siach
Hi Stefan,
Quoted 5 lines · Stefan Roese
Quoted 4 lines · Baruch Siach
Quoted 2 lines · Stefan Roese
And please do a compile run for all targets as well (Travis). I'll try to push it upstream in this merge window.
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
buildman for arm and aarch64 is currently running.
All platforms please. I suggest to use Travis for this. Be prepared that this takes a few hours though.
Do you refer to travis-ci.org integration with github.com? Something else?
Yes, that's how I use it.
Quoted 2 lines
Travis CI wants access to github repos of all organizations my account is authorized to access. I can't do that.
Hmmm, I don't remember this Travis configuration. I do have a "private" github account with a U-Boot repository, where I push the commits to and Travis automatically starts the build after the push. Perhaps its possible for you to create a new (private?) github account for such a task?
Otherwise its of course also ok, if you build all platforms (not only ARM please if your changes touch global files) via buildman locally.
Thanks,
Stefan
PATCH 10/10 arm: mvebu: clearfog: don't assume MMC booting
Hi Stefan,
Quoted 16 lines · Stefan Roese
Quoted 6 lines · Baruch Siach
Quoted 5 lines · Stefan Roese
Quoted 4 lines · Baruch Siach
Quoted 2 lines · Stefan Roese
And please do a compile run for all targets as well (Travis). I'll try to push it upstream in this merge window.
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
buildman for arm and aarch64 is currently running.
All platforms please. I suggest to use Travis for this. Be prepared that this takes a few hours though.
Do you refer to travis-ci.org integration with github.com? Something else?
Yes, that's how I use it.
Quoted 8 lines
Quoted 2 lines
Travis CI wants access to github repos of all organizations my account is authorized to access. I can't do that.
Hmmm, I don't remember this Travis configuration. I do have a "private" github account with a U-Boot repository, where I push the commits to and Travis automatically starts the build after the push. Perhaps its possible for you to create a new (private?) github account for such a task?
OK. I created a new github account for that. Travis CI build passed:
https://travis-ci.com/baruchsiach-travis/u-boot/builds/144357746
I'll post the updated series shortly.
baruch
Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -PATCH 1/10 arm: mvebu: fix SerDes table alignment
In reply to Joel JohnsonQuoted 43 lines · Joel Johnson
Tested on Solidrun ClearFog Base. Table alignment was:
| Lane # | Speed | Type |
--------------------------------| 0 | 3 | SATA0 | | 1 | 0 | SGMII1 | | 2 | 3 | SATA1 | | 3 | 5 | USB3 HOST1 | | 4 | 5 | USB3 HOST0 | | 5 | 4 | SGMII2 |--------------------------------
After the change, it's correctly aligned as:
| Lane # | Speed | Type |
--------------------------------| 0 | 3 | SATA0 | | 1 | 0 | SGMII1 | | 2 | 5 | PCIe1 | | 3 | 5 | USB3 HOST1 | | 4 | 5 | PCIe2 | | 5 | 0 | SGMII2 |--------------------------------
Signed-off-by Joel Johnson <[email protected]>---
arch/arm/mach-mvebu/serdes/a38x/high_speed_env_spec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)arch/arm/mach-mvebu/serdes/a38x/high_speed_env_spec.c +1
-1@@ -1366,16 +1366,16 @@ static void print_topology_details(const struct serdes_map *serdes_map,DEBUG_INIT_S ("board SerDes lanes topology details:\n" ); -DEBUG_INIT_S (" | Lane # | Speed | Type |\n" ); +DEBUG_INIT_S (" | Lane # | Speed | Type |\n" );DEBUG_INIT_S (" --------------------------------\n" );for (lane_num =0 ; lane_num < count; lane_num++) {if (serdes_map[lane_num].serdes_type ==DEFAULT_SERDES )continue ;
arch/arm/mach-mvebu/serdes/a38x/high_speed_env_spec.c static void print_topology_details(const struct serdes_map *serdes_map, · line 1381
Quoted 10 lines
arch/arm/mach-mvebu/serdes/a38x/high_speed_env_spec.c +2
-2DEBUG_INIT_S (" | " );DEBUG_INIT_D (hws_get_physical_serdes_num (lane_num),1 ); -DEBUG_INIT_S (" | " ); +DEBUG_INIT_S (" | " );DEBUG_INIT_D (serdes_map[lane_num].serdes_speed,2 ); -DEBUG_INIT_S (" | " ); +DEBUG_INIT_S (" | " );DEBUG_INIT_S ((char *) serdes_type_to_string[serdes_map[lane_num]. serdes_type]);
Thanks,
Stefan