Skip to contentSkip to conversation

Reverts and fixes for board failures

PATCH Applied Simon Glass 7 participants 48 messages Dec 1, 2024 – Feb 10, 2025

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

cover Reverts and fixes for board failures

This series collects together a set of reverts and fixes to get most of the boards in the sjg lab running again.

Unfortunately three of them have developed a failure which requires more diagnosis, as it may just be a hardware failure.

For coral, the TPM tests fail, but the board is working, so this can be dealt with separately.

One remaining issue is that I am not sure what happens if two people try to run tests at the same time. Tests run as the same user so I need to investigate how that is handled.

Simon Glass (8):
CI: Drop extra condition for sjg lab
Revert "power: regulator: Trigger probe of regulators which are
always-on or boot-on"
Revert "fdt: Correct condition for bloblist existing" Revert "fdt: Allow the devicetree to come from a bloblist"
fdt: Allow the devicetree to come from a bloblist
binman: Avoid skipping binman_init()
Revert "global_data: Drop spl_handoff"
CI: Drop broken boards from sjg lab

 .gitlab-ci.yml                             | 41 +++++++++--------
 arch/x86/cpu/intel_common/cpu_from_spl.c   |  4 +-
 arch/x86/lib/fsp2/fsp_dram.c               |  4 +-
 cmd/sb.c                                   |  6 +--
 common/bloblist.c                          |  1 +
 common/board_f.c                           | 12 +++++
 common/init/handoff.c                      | 12 -----
 doc/develop/devicetree/control.rst         |  6 +--
 drivers/clk/rockchip/clk_rk3399.c          |  3 +-
 drivers/power/regulator/regulator-uclass.c | 22 +++------
 dts/Kconfig                                |  8 ++++
 include/asm-generic/global_data.h          |  6 +++
 include/fdtdec.h                           |  3 +-
 include/handoff.h                          |  7 ---
 lib/binman.c                               |  1 -
 lib/fdtdec.c                               | 53 ++++++++--------------
 test/dm/regulator.c                        |  6 ++-
 17 files changed, 91 insertions(+), 104 deletions(-)
Signature · 1 line
2.43.0
#1 lore raw

PATCH 1/8 CI: Drop extra condition for sjg lab

The rules part of the template makes sure that this doesn't run until specifically requested. Drop the check in the script itself, so it is possible to trigger a run manually without re-pushing the tree.

---

 .gitlab-ci.yml | 3 ---
 1 file changed, 3 deletions(-)
.gitlab-ci.yml +0 -3
index 2164ad79a72..9f0b8a1a058 100644
@@ -534,9 +534,6 @@ coreboot test.py:
       allow_failure: true
   tags: [ 'lab' ]
   script:
-    - if [[ -z "${SJG_LAB}" ]]; then
-        exit 0;
-      fi
     # Environment:
     #   SRC  - source tree
     #   OUT  - output directory for builds
Signature · 1 line
2.43.0
#2 lore raw

Re: [PATCH 1/8] CI: Drop extra condition for sjg lab

Quoted 5 lines · Simon Glass

The rules part of the template makes sure that this doesn't run until specifically requested. Drop the check in the script itself, so it is possible to trigger a run manually without re-pushing the tree.

You don't need to re-push, you can just manually re-run the pipeline and set the variable to 1 on the webpage.

Signature · 1 line
Tom
#3 lore raw

Re: [PATCH 1/8] CI: Drop extra condition for sjg lab

Hi Tom,

Quoted 11 lines · Tom Rini
Quoted 5 lines · Simon Glass

The rules part of the template makes sure that this doesn't run until specifically requested. Drop the check in the script itself, so it is possible to trigger a run manually without re-pushing the tree.

You don't need to re-push, you can just manually re-run the pipeline and set the variable to 1 on the webpage.

OK, well I don't want to have to do that :-)

Are you wanting me to change the commit message?

Regards,
Simon

#4 lore raw

Re: [PATCH 1/8] CI: Drop extra condition for sjg lab

Quoted 10 lines · Simon Glass

Hi Tom,

Quoted 7 lines · Tom Rini
Quoted 4 lines · Simon Glass

The rules part of the template makes sure that this doesn't run until specifically requested. Drop the check in the script itself, so it is possible to trigger a run manually without re-pushing the tree.

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

You don't need to re-push, you can just manually re-run the pipeline and set the variable to 1 on the webpage.

OK, well I don't want to have to do that :-)

Are you wanting me to change the commit message?

No, please drop it, it's not required.

Signature · 1 line
Tom
#5 lore raw

Re: [PATCH 1/8] CI: Drop extra condition for sjg lab

Quoted 10 lines · Simon Glass

Hi Tom,

Quoted 7 lines · Tom Rini
Quoted 4 lines · Simon Glass

The rules part of the template makes sure that this doesn't run until specifically requested. Drop the check in the script itself, so it is possible to trigger a run manually without re-pushing the tree.

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

You don't need to re-push, you can just manually re-run the pipeline and set the variable to 1 on the webpage.

OK, well I don't want to have to do that :-)

Are you wanting me to change the commit message?

No, please drop it, it's not required.

Signature · 3 lines
Tom

Applied to ci/master, thanks!
#6 lore raw

PATCH 2/8 Revert "power: regulator: Trigger probe of regulators which are always-on or boot-on"

In reply to Simon Glass

Unfortunately this commit causes a problem on nyan-big:

U-Boot SPL 2024.10-rc6-00632-g51c4679d2f84 (Nov 30 2024 - 13:28:40 -0700) Trying to boot from RAM

U-Boot 2024.10-rc6-00632-g51c4679d2f84 (Nov 30 2024 - 13:28:40 -0700)

SoC: tegra124
Reset cause: POR
Model: Acer Chromebook 13 CB5-311
Board: Google/NVIDIA Nyan-big, ID: -2
DRAM: 2 GiB
failed to read ID1 register: -121
failed to read ID: -121
failed to read ID1 register: -121
failed to read ID: -121
failed to read ID1 register: -121
failed to read ID: -121
failed to read ID1 register: -121
failed to read ID: -121
failed to read ID1 register: -121
failed to read ID: -121
failed to read ID1 register: -121
failed to read ID: -121
failed to read ID1 register: -121
failed to read ID: -121
failed to read ID1 register: -121
failed to read ID: -121
failed to read ID1 register: -121
failed to read ID: -121
Unknown PLL id 14
failed to read ID1 register: -121
failed to read ID: -121
initcall failed at call 810029c8 (err=-121: Remote I/O error) ### ERROR ### Please RESET the board ###

This reverts commit 51c4679d2f848e91b4a0cf867a426ffe5bb094b2.

Tweak a few tests also, so they continue to pass.

---

 drivers/power/regulator/regulator-uclass.c | 22 +++++++---------------
 test/dm/regulator.c                        |  6 ++++--
 2 files changed, 11 insertions(+), 17 deletions(-)
drivers/power/regulator/regulator-uclass.c +7 -15
index decd0802c84..3da7c09ef14 100644
@@ -433,8 +433,6 @@ static int regulator_post_bind(struct udevice *dev)
 	const char *property = "regulator-name";
 
 	uc_pdata = dev_get_uclass_plat(dev);
-	uc_pdata->always_on = dev_read_bool(dev, "regulator-always-on");
-	uc_pdata->boot_on = dev_read_bool(dev, "regulator-boot-on");
 
 	/* Regulator's mandatory constraint */
 	uc_pdata->name = dev_read_string(dev, property);
@@ -446,21 +444,13 @@ static int regulator_post_bind(struct udevice *dev)
 			return -EINVAL;
 	}
 
-	if (!regulator_name_is_unique(dev, uc_pdata->name)) {
-		debug("'%s' of dev: '%s', has nonunique value: '%s\n",
-		      property, dev->name, uc_pdata->name);
-		return -EINVAL;
-	}
+	if (regulator_name_is_unique(dev, uc_pdata->name))
+		return 0;
 
-	/*
-	 * In case the regulator has regulator-always-on or
-	 * regulator-boot-on DT property, trigger probe() to
-	 * configure its default state during startup.
-	 */
-	if (uc_pdata->always_on || uc_pdata->boot_on)
-		dev_or_flags(dev, DM_FLAG_PROBE_AFTER_BIND);
+	debug("'%s' of dev: '%s', has nonunique value: '%s\n",
+	      property, dev->name, uc_pdata->name);
 
-	return 0;
+	return -EINVAL;
 }
 
 static int regulator_pre_probe(struct udevice *dev)
@@ -483,6 +473,8 @@ static int regulator_pre_probe(struct udevice *dev)
 						-ENODATA);
 	uc_pdata->max_uA = dev_read_u32_default(dev, "regulator-max-microamp",
 						-ENODATA);
+	uc_pdata->always_on = dev_read_bool(dev, "regulator-always-on");
+	uc_pdata->boot_on = dev_read_bool(dev, "regulator-boot-on");
 	uc_pdata->ramp_delay = dev_read_u32_default(dev, "regulator-ramp-delay",
 						    0);
 	uc_pdata->force_off = dev_read_bool(dev, "regulator-force-boot-off");
test/dm/regulator.c +4 -2
index 449748ad52f..59cdd6a3e98 100644
@@ -186,7 +186,8 @@ int dm_test_power_regulator_set_enable_if_allowed(struct unit_test_state *uts)
 
 	/* Get BUCK1 - always on regulator */
 	platname = regulator_names[BUCK1][PLATNAME];
-	ut_asserteq(-EALREADY, regulator_autoset_by_name(platname, &dev_autoset));
+	ut_asserteq(-EALREADY,
+		    regulator_autoset_by_name(platname, &dev_autoset));
 	ut_assertok(regulator_get_by_platname(platname, &dev));
 
 	/* Try disabling always-on regulator */
@@ -288,7 +289,8 @@ static int dm_test_power_regulator_autoset(struct unit_test_state *uts)
 	 * Expected output state: uV=1200000; uA=200000; output enabled
 	 */
 	platname = regulator_names[BUCK1][PLATNAME];
-	ut_asserteq(-EALREADY, regulator_autoset_by_name(platname, &dev_autoset));
+	ut_asserteq(-EALREADY,
+		    regulator_autoset_by_name(platname, &dev_autoset));
 
 	/* Check, that the returned device is proper */
 	ut_assertok(regulator_get_by_platname(platname, &dev));
Signature · 1 line
2.43.0
#7 lore raw

Re: [PATCH 2/8] Revert "power: regulator: Trigger probe of regulators which are always-on or boot-on"

нд, 1 груд. 2024 р. о 16:42 Simon Glass <[email protected]> пише:

Quoted 122 lines

Unfortunately this commit causes a problem on nyan-big:

U-Boot SPL 2024.10-rc6-00632-g51c4679d2f84 (Nov 30 2024 - 13:28:40 -0700) Trying to boot from RAM

U-Boot 2024.10-rc6-00632-g51c4679d2f84 (Nov 30 2024 - 13:28:40 -0700)

SoC: tegra124
Reset cause: POR
Model: Acer Chromebook 13 CB5-311
Board: Google/NVIDIA Nyan-big, ID: -2
DRAM: 2 GiB
failed to read ID1 register: -121
failed to read ID: -121
failed to read ID1 register: -121
failed to read ID: -121
failed to read ID1 register: -121
failed to read ID: -121
failed to read ID1 register: -121
failed to read ID: -121
failed to read ID1 register: -121
failed to read ID: -121
failed to read ID1 register: -121
failed to read ID: -121
failed to read ID1 register: -121
failed to read ID: -121
failed to read ID1 register: -121
failed to read ID: -121
failed to read ID1 register: -121
failed to read ID: -121
Unknown PLL id 14
failed to read ID1 register: -121
failed to read ID: -121
initcall failed at call 810029c8 (err=-121: Remote I/O error) ### ERROR ### Please RESET the board ###

This reverts commit 51c4679d2f848e91b4a0cf867a426ffe5bb094b2.

Tweak a few tests also, so they continue to pass.

---

 drivers/power/regulator/regulator-uclass.c | 22 +++++++---------------
 test/dm/regulator.c                        |  6 ++++--
 2 files changed, 11 insertions(+), 17 deletions(-)
drivers/power/regulator/regulator-uclass.c +7 -15
index decd0802c84..3da7c09ef14 100644
@@ -433,8 +433,6 @@ static int regulator_post_bind(struct udevice *dev)
        const char *property = "regulator-name";
 
        uc_pdata = dev_get_uclass_plat(dev);
-       uc_pdata->always_on = dev_read_bool(dev, "regulator-always-on");
-       uc_pdata->boot_on = dev_read_bool(dev, "regulator-boot-on");
 
        /* Regulator's mandatory constraint */
        uc_pdata->name = dev_read_string(dev, property);
@@ -446,21 +444,13 @@ static int regulator_post_bind(struct udevice *dev)
                        return -EINVAL;
        }
 
-       if (!regulator_name_is_unique(dev, uc_pdata->name)) {
-               debug("'%s' of dev: '%s', has nonunique value: '%s\n",
-                     property, dev->name, uc_pdata->name);
-               return -EINVAL;
-       }
+       if (regulator_name_is_unique(dev, uc_pdata->name))
+               return 0;
 
-       /*
-        * In case the regulator has regulator-always-on or
-        * regulator-boot-on DT property, trigger probe() to
-        * configure its default state during startup.
-        */
-       if (uc_pdata->always_on || uc_pdata->boot_on)
-               dev_or_flags(dev, DM_FLAG_PROBE_AFTER_BIND);
+       debug("'%s' of dev: '%s', has nonunique value: '%s\n",
+             property, dev->name, uc_pdata->name);
 
-       return 0;
+       return -EINVAL;
 }
 
 static int regulator_pre_probe(struct udevice *dev)
@@ -483,6 +473,8 @@ static int regulator_pre_probe(struct udevice *dev)
                                                -ENODATA);
        uc_pdata->max_uA = dev_read_u32_default(dev, "regulator-max-microamp",
                                                -ENODATA);
+       uc_pdata->always_on = dev_read_bool(dev, "regulator-always-on");
+       uc_pdata->boot_on = dev_read_bool(dev, "regulator-boot-on");
        uc_pdata->ramp_delay = dev_read_u32_default(dev, "regulator-ramp-delay",
                                                    0);
        uc_pdata->force_off = dev_read_bool(dev, "regulator-force-boot-off");
test/dm/regulator.c +4 -3
index 449748ad52f..59cdd6a3e98 100644
@@ -186,7 +186,8 @@ int dm_test_power_regulator_set_enable_if_allowed(struct unit_test_state *uts)
 
        /* Get BUCK1 - always on regulator */
        platname = regulator_names[BUCK1][PLATNAME];
-       ut_asserteq(-EALREADY, regulator_autoset_by_name(platname, &dev_autoset));
+       ut_asserteq(-EALREADY,
+                   regulator_autoset_by_name(platname, &dev_autoset));
        ut_assertok(regulator_get_by_platname(platname, &dev));
 
        /* Try disabling always-on regulator */
@@ -288,7 +289,8 @@ static int dm_test_power_regulator_autoset(struct unit_test_state *uts)
         * Expected output state: uV=1200000; uA=200000; output enabled
         */
        platname = regulator_names[BUCK1][PLATNAME];
-       ut_asserteq(-EALREADY, regulator_autoset_by_name(platname, &dev_autoset));
+       ut_asserteq(-EALREADY,
+                   regulator_autoset_by_name(platname, &dev_autoset));
 
        /* Check, that the returned device is proper */
        ut_assertok(regulator_get_by_platname(platname, &dev));
--
Quoted 2 lines

2.43.0

It seems that I have found a fix for this issue. Simon, please test
this commit https://gitlab.com/clamor-s/u-boot/-/commit/6149722aa48f84d9ea037ae990141a231106244e

#8 lore raw

Re: [PATCH 2/8] Revert "power: regulator: Trigger probe of regulators which are always-on or boot-on"

On 12/1/24 4:05 PM, Svyatoslav Ryhel wrote:

[...]

Quoted 8 lines
Quoted 8 lines
test/dm/regulator.c +2 -1
@@ -288,7 +289,8 @@ static int dm_test_power_regulator_autoset(struct unit_test_state *uts)
          * Expected output state: uV=1200000; uA=200000; output enabled
          */
         platname = regulator_names[BUCK1][PLATNAME];
-       ut_asserteq(-EALREADY, regulator_autoset_by_name(platname, &dev_autoset));
+       ut_asserteq(-EALREADY,
+                   regulator_autoset_by_name(platname, &dev_autoset));
 
Quoted 8 lines
Quoted 5 lines
test/dm/regulator.c +0 -1
         /* Check, that the returned device is proper */
         ut_assertok(regulator_get_by_platname(platname, &dev));
--

2.43.0

It seems that I have found a fix for this issue. Simon, please test
this commit https://gitlab.com/clamor-s/u-boot/-/commit/6149722aa48f84d9ea037ae990141a231106244e

So this regulator problem was a tegra platform specific issue after all.

Nice find, thanks !

#9 lore raw

Re: [PATCH 2/8] Revert "power: regulator: Trigger probe of regulators which are always-on or boot-on"

Hi Svyatoslav,

Quoted 22 lines · Marek Vasut

On 12/1/24 4:05 PM, Svyatoslav Ryhel wrote:

[...]

Quoted 8 lines
Quoted 8 lines
test/dm/regulator.c +2 -1
@@ -288,7 +289,8 @@ static int dm_test_power_regulator_autoset(struct unit_test_state *uts)
          * Expected output state: uV=1200000; uA=200000; output enabled
          */
         platname = regulator_names[BUCK1][PLATNAME];
-       ut_asserteq(-EALREADY, regulator_autoset_by_name(platname, &dev_autoset));
+       ut_asserteq(-EALREADY,
+                   regulator_autoset_by_name(platname, &dev_autoset));
 
Quoted 8 lines
Quoted 5 lines
test/dm/regulator.c +0 -1
         /* Check, that the returned device is proper */
         ut_assertok(regulator_get_by_platname(platname, &dev));
--

2.43.0

It seems that I have found a fix for this issue. Simon, please test
this commit https://gitlab.com/clamor-s/u-boot/-/commit/6149722aa48f84d9ea037ae990141a231106244e

Quoted 3 lines

So this regulator problem was a tegra platform specific issue after all.

Nice find, thanks !

That's great! Are you planning to send a patch?

Regards,
Simon

#10 lore raw

Re: [PATCH 2/8] Revert "power: regulator: Trigger probe of regulators which are always-on or boot-on"

нд, 1 груд. 2024 р. о 17:23 Simon Glass <[email protected]> пише:

Quoted 26 lines

Hi Svyatoslav,

Quoted 22 lines · Marek Vasut

On 12/1/24 4:05 PM, Svyatoslav Ryhel wrote:

[...]

Quoted 16 lines
Quoted 11 lines
test/dm/regulator.c +2 -2
@@ -288,7 +289,8 @@ static int dm_test_power_regulator_autoset(struct unit_test_state *uts)
          * Expected output state: uV=1200000; uA=200000; output enabled
          */
         platname = regulator_names[BUCK1][PLATNAME];
-       ut_asserteq(-EALREADY, regulator_autoset_by_name(platname, &dev_autoset));
+       ut_asserteq(-EALREADY,
+                   regulator_autoset_by_name(platname, &dev_autoset));
 
         /* Check, that the returned device is proper */
         ut_assertok(regulator_get_by_platname(platname, &dev));
--
Quoted 2 lines

2.43.0

It seems that I have found a fix for this issue. Simon, please test
this commit https://gitlab.com/clamor-s/u-boot/-/commit/6149722aa48f84d9ea037ae990141a231106244e

Quoted 8 lines
Quoted 3 lines

So this regulator problem was a tegra platform specific issue after all.

Nice find, thanks !

That's great! Are you planning to send a patch?

Regards,
Simon

I planned pull it directly via tegra custodian tree as an important fix. Please confirm if it fixes Nyan. Thanks

#11 lore raw

Re: [PATCH 2/8] Revert "power: regulator: Trigger probe of regulators which are always-on or boot-on"

Hi Svyatoslav,

Quoted 32 lines · Svyatoslav Ryhel

нд, 1 груд. 2024 р. о 17:23 Simon Glass <[email protected]> пише:

Quoted 30 lines

Hi Svyatoslav,

Quoted 25 lines · Marek Vasut

On 12/1/24 4:05 PM, Svyatoslav Ryhel wrote:

[...]

Quoted 8 lines
Quoted 8 lines
test/dm/regulator.c +2 -1
@@ -288,7 +289,8 @@ static int dm_test_power_regulator_autoset(struct unit_test_state *uts)
          * Expected output state: uV=1200000; uA=200000; output enabled
          */
         platname = regulator_names[BUCK1][PLATNAME];
-       ut_asserteq(-EALREADY, regulator_autoset_by_name(platname, &dev_autoset));
+       ut_asserteq(-EALREADY,
+                   regulator_autoset_by_name(platname, &dev_autoset));
 
Quoted 8 lines
Quoted 5 lines
test/dm/regulator.c +0 -1
         /* Check, that the returned device is proper */
         ut_assertok(regulator_get_by_platname(platname, &dev));
--

2.43.0

It seems that I have found a fix for this issue. Simon, please test
this commit https://gitlab.com/clamor-s/u-boot/-/commit/6149722aa48f84d9ea037ae990141a231106244e

So this regulator problem was a tegra platform specific issue after all.

Nice find, thanks !

Quoted 7 lines
Quoted 4 lines

That's great! Are you planning to send a patch?

Regards,
Simon

I planned pull it directly via tegra custodian tree as an important fix. Please confirm if it fixes Nyan. Thanks

You should send a patch since pull requests cannot contain patches that have not been posted :-)

If it has been posted, please can you send the link and I will test it.

Regards,
Simon

#12 lore raw

Re: [PATCH 2/8] Revert "power: regulator: Trigger probe of regulators which are always-on or boot-on"

нд, 1 груд. 2024 р. о 17:49 Simon Glass <[email protected]> пише:

Quoted 44 lines

Hi Svyatoslav,

Quoted 32 lines · Svyatoslav Ryhel

нд, 1 груд. 2024 р. о 17:23 Simon Glass <[email protected]> пише:

Quoted 30 lines

Hi Svyatoslav,

Quoted 25 lines · Marek Vasut

On 12/1/24 4:05 PM, Svyatoslav Ryhel wrote:

[...]

Quoted 8 lines
Quoted 8 lines
test/dm/regulator.c +2 -1
@@ -288,7 +289,8 @@ static int dm_test_power_regulator_autoset(struct unit_test_state *uts)
          * Expected output state: uV=1200000; uA=200000; output enabled
          */
         platname = regulator_names[BUCK1][PLATNAME];
-       ut_asserteq(-EALREADY, regulator_autoset_by_name(platname, &dev_autoset));
+       ut_asserteq(-EALREADY,
+                   regulator_autoset_by_name(platname, &dev_autoset));
 
Quoted 8 lines
Quoted 5 lines
test/dm/regulator.c +0 -1
         /* Check, that the returned device is proper */
         ut_assertok(regulator_get_by_platname(platname, &dev));
--

2.43.0

It seems that I have found a fix for this issue. Simon, please test
this commit https://gitlab.com/clamor-s/u-boot/-/commit/6149722aa48f84d9ea037ae990141a231106244e

So this regulator problem was a tegra platform specific issue after all.

Nice find, thanks !

Quoted 7 lines
Quoted 4 lines

That's great! Are you planning to send a patch?

Regards,
Simon

I planned pull it directly via tegra custodian tree as an important fix. Please confirm if it fixes Nyan. Thanks

Quoted 7 lines

You should send a patch since pull requests cannot contain patches that have not been posted :-)

If it has been posted, please can you send the link and I will test it.

Regards,
Simon

Alright

author Applied
#13 lore raw

Re: [PATCH 2/8] Revert "power: regulator: Trigger probe of regulators which are always-on or boot-on"

нд, 1 груд. 2024 р. о 17:49 Simon Glass <[email protected]> пише:

Quoted 44 lines

Hi Svyatoslav,

Quoted 32 lines · Svyatoslav Ryhel

нд, 1 груд. 2024 р. о 17:23 Simon Glass <[email protected]> пише:

Quoted 30 lines

Hi Svyatoslav,

Quoted 25 lines · Marek Vasut

On 12/1/24 4:05 PM, Svyatoslav Ryhel wrote:

[...]

Quoted 8 lines
Quoted 8 lines
(quoted diff) +2 -1
@@ -288,7 +289,8 @@ static int dm_test_power_regulator_autoset(struct unit_test_state *uts)
          * Expected output state: uV=1200000; uA=200000; output enabled
          */
         platname = regulator_names[BUCK1][PLATNAME];
-       ut_asserteq(-EALREADY, regulator_autoset_by_name(platname, &dev_autoset));
+       ut_asserteq(-EALREADY,
+                   regulator_autoset_by_name(platname, &dev_autoset));
 
Quoted 8 lines
Quoted 5 lines
(quoted diff) +0 -1
         /* Check, that the returned device is proper */
         ut_assertok(regulator_get_by_platname(platname, &dev));
--

2.43.0

It seems that I have found a fix for this issue. Simon, please test
this commit https://gitlab.com/clamor-s/u-boot/-/commit/6149722aa48f84d9ea037ae990141a231106244e

So this regulator problem was a tegra platform specific issue after all.

Nice find, thanks !

Quoted 7 lines
Quoted 4 lines

That's great! Are you planning to send a patch?

Regards,
Simon

I planned pull it directly via tegra custodian tree as an important fix. Please confirm if it fixes Nyan. Thanks

Quoted 7 lines

You should send a patch since pull requests cannot contain patches that have not been posted :-)

If it has been posted, please can you send the link and I will test it.

Regards,
Simon

Alright

Applied to ci/master, thanks!

#14 lore raw

Re: [PATCH 2/8] Revert "power: regulator: Trigger probe of regulators which are always-on or boot-on"

In reply to Marek Vasut

нд, 1 груд. 2024 р. о 17:20 Marek Vasut <[email protected]> пише:

Quoted 22 lines · Svyatoslav Ryhel

[...]

Quoted 8 lines
Quoted 8 lines
test/dm/regulator.c +2 -1
@@ -288,7 +289,8 @@ static int dm_test_power_regulator_autoset(struct unit_test_state *uts)
          * Expected output state: uV=1200000; uA=200000; output enabled
          */
         platname = regulator_names[BUCK1][PLATNAME];
-       ut_asserteq(-EALREADY, regulator_autoset_by_name(platname, &dev_autoset));
+       ut_asserteq(-EALREADY,
+                   regulator_autoset_by_name(platname, &dev_autoset));
 
Quoted 8 lines
Quoted 5 lines
test/dm/regulator.c +0 -1
         /* Check, that the returned device is proper */
         ut_assertok(regulator_get_by_platname(platname, &dev));
--

2.43.0

It seems that I have found a fix for this issue. Simon, please test
this commit https://gitlab.com/clamor-s/u-boot/-/commit/6149722aa48f84d9ea037ae990141a231106244e

Quoted 3 lines

So this regulator problem was a tegra platform specific issue after all.

Nice find, thanks !

Not a tegra specific but rather timing of calls. Regulator autoprobe was called from board after clock setup but with your change regulator probe now is much much earlier. This may cause disruptions on other platforms as well.

#15 lore raw

PATCH 3/8 Revert "fdt: Correct condition for bloblist existing"

In reply to Simon Glass

This was a work-around and it isn't effective, since bob and kevin are still broken. Drop it.

This reverts commit cafde93ec02d654a092ee5b3fd0ed706347a9744.

---

 lib/fdtdec.c | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)
lib/fdtdec.c +2 -10
index b0655988029..1842da62f37 100644
@@ -1668,16 +1668,8 @@ int fdtdec_setup(void)
 {
 	int ret = -ENOENT;
 
-	/*
-	 * If allowing a bloblist, check that first. There was discussion about
-	 * adding an OF_BLOBLIST Kconfig, but this was rejected.
-	 *
-	 * The necessary test is whether the previous phase passed a bloblist,
-	 * not whether this phase creates one.
-	 */
-	if (CONFIG_IS_ENABLED(BLOBLIST) &&
-	    (xpl_prev_phase() != PHASE_TPL ||
-	     !IS_ENABLED(CONFIG_TPL_BLOBLIST))) {
+	/* If allowing a bloblist, check that first */
+	if (CONFIG_IS_ENABLED(BLOBLIST)) {
 		ret = bloblist_maybe_init();
 		if (!ret) {
 			gd->fdt_blob = bloblist_find(BLOBLISTT_CONTROL_FDT, 0);
Signature · 1 line
2.43.0
author Applied
#16 lore raw

Re: [PATCH 3/8] Revert "fdt: Correct condition for bloblist existing"

This was a work-around and it isn't effective, since bob and kevin are still broken. Drop it.

This reverts commit cafde93ec02d654a092ee5b3fd0ed706347a9744.

---

 lib/fdtdec.c | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

Applied to ci/master, thanks!

#17 lore raw

PATCH 4/8 Revert "fdt: Allow the devicetree to come from a bloblist"

In reply to Simon Glass

This stops coral, bob and kevin from booting.

The correct way to do this was always to use a Kconfig option, so let's first revert this broken idea.

This reverts commit 70fe23859437ffe4efe0793423937d8b78ebf9d6.

---

 doc/develop/devicetree/control.rst |  5 +---
 include/fdtdec.h                   |  6 ++--
 lib/fdtdec.c                       | 45 +++++++-----------------------
 3 files changed, 13 insertions(+), 43 deletions(-)
doc/develop/devicetree/control.rst +1 -4
index 0233945f8b6..2a3b48fa6c7 100644
@@ -137,10 +137,7 @@ If `OF_BOARD` is selected by Kconfig, a board-specific routine will provide the
 devicetree at runtime, for example if an earlier bootloader stage creates
 it and passes it to U-Boot.
 
-If `BLOBLIST` is selected by Kconfig, the devicetree may come from a bloblist
-passed from a previous stage, if present.
-
-If `SANDBOX` is selected by Kconfig, then it will be read from a file on
+If CONFIG_SANDBOX is defined, then it will be read from a file on
 startup. Use the -d flag to U-Boot to specify the file to read, -D for the
 default and -T for the test devicetree, used to run sandbox unit tests.
 
include/fdtdec.h +2 -4
index 555c9520379..8f25e1b7e92 100644
@@ -72,7 +72,7 @@ struct bd_info;
  *	U-Boot is packaged as an ELF file, e.g. for debugging purposes
  * @FDTSRC_ENV: Provided by the fdtcontroladdr environment variable. This should
  *	be used for debugging/development only
- * @FDTSRC_BLOBLIST: Provided by a bloblist from an earlier phase
+ * @FDTSRC_NONE: No devicetree at all
  */
 enum fdt_source_t {
 	FDTSRC_SEPARATE,
@@ -80,7 +80,6 @@ enum fdt_source_t {
 	FDTSRC_BOARD,
 	FDTSRC_EMBED,
 	FDTSRC_ENV,
-	FDTSRC_BLOBLIST,
 };
 
 /*
@@ -1191,8 +1190,7 @@ int fdtdec_resetup(int *rescan);
  *
  * The existing devicetree is available at gd->fdt_blob
  *
- * @err: 0 on success, -EEXIST if the devicetree is already correct, or other
- * internal error code if we fail to setup a DTB
+ * @err internal error code if we fail to setup a DTB
  * @returns new devicetree blob pointer
  */
 void *board_fdt_blob_setup(int *err);
lib/fdtdec.c +10 -35

70 lines not on this page · raw message

Signature · 1 line
2.43.0
#18 lore raw

Re: [PATCH 4/8] Revert "fdt: Allow the devicetree to come from a bloblist"

Hi Simon,

Quoted 6 lines · Simon Glass

This stops coral, bob and kevin from booting.

The correct way to do this was always to use a Kconfig option, so let's first revert this broken idea.

OF_BOARD and BLOBLIST should be general and hardware agnostic,

do you have more information on why they don't work for a few boards? Maybe the way to handle these logic within certain boards should be changed other than to revert this?

[snip]

Regards,
Raymond

#19 lore raw

Re: [PATCH 4/8] Revert "fdt: Allow the devicetree to come from a bloblist"

Quoted 6 lines · Raymond Mao

Hi Simon,

Quoted 2 lines · Simon Glass

This stops coral, bob and kevin from booting.

Quoted 7 lines
Quoted 4 lines

The correct way to do this was always to use a Kconfig option, so let's first revert this broken idea.

OF_BOARD and BLOBLIST should be general and hardware agnostic,

do you have more information on why they don't work for a few boards? Maybe the way to handle these logic within certain boards should be changed other than to revert this?

Yes, I'd like to understand the whole problem better since we had a forever-and-ever thread, compromised to what's in tree now and now you want to revert the compromise and bring is back to what was argued against for forever-and-ever, at least from a very quick read.

Signature · 1 line
Tom
#20 lore raw

Re: [PATCH 4/8] Revert "fdt: Allow the devicetree to come from a bloblist"

Hi Tom,

Quoted 12 lines · Tom Rini
Quoted 10 lines · Raymond Mao

Hi Simon,

Quoted 6 lines · Simon Glass

This stops coral, bob and kevin from booting.

The correct way to do this was always to use a Kconfig option, so let's first revert this broken idea.

OF_BOARD and BLOBLIST should be general and hardware agnostic,

Quoted 8 lines
Quoted 3 lines

do you have more information on why they don't work for a few boards? Maybe the way to handle these logic within certain boards should be changed other than to revert this?

Yes, I'd like to understand the whole problem better since we had a forever-and-ever thread, compromised to what's in tree now and now you want to revert the compromise and bring is back to what was argued against for forever-and-ever, at least from a very quick read.

I'm sorry but I believe I have explained the problem in that forever and-ever thread, so I don't really want to re-run it. It may be that I was right all along?

Raymond, I cannot pass the DT in the bloblist from TPL to SPL on x86. There is not enough cache-as-RAM, for a start. Plus the DT is in the memory-mapped SPI flash, so it makes no sense...

The primary issue here (I believe) is the Linaro idea that U-Boot should not have its own devicetree, because there is always a prior stage of closed-source firmware (e.g. TF-A*). Perhaps I am wrong about that, but that is the way I understand it now, as it explains why OF_BLOBLIST caused such friction.

Regards,
Simon

* I've seen quite a few vendor-specific source trees and none has been upstreamed

#21 lore raw

Re: [PATCH 4/8] Revert "fdt: Allow the devicetree to come from a bloblist"

Quoted 19 lines · Simon Glass

Hi Tom,

Quoted 16 lines · Tom Rini
Quoted 13 lines · Raymond Mao

Hi Simon,

Quoted 6 lines · Simon Glass

This stops coral, bob and kevin from booting.

The correct way to do this was always to use a Kconfig option, so let's first revert this broken idea.

OF_BOARD and BLOBLIST should be general and hardware agnostic,

do you have more information on why they don't work for a few boards? Maybe the way to handle these logic within certain boards should be changed other than to revert this?

Quoted 8 lines
Quoted 4 lines

Yes, I'd like to understand the whole problem better since we had a forever-and-ever thread, compromised to what's in tree now and now you want to revert the compromise and bring is back to what was argued against for forever-and-ever, at least from a very quick read.

I'm sorry but I believe I have explained the problem in that forever and-ever thread, so I don't really want to re-run it. It may be that I was right all along?

Or maybe your use case is still badly explained, and your changes will instead break other platforms.

Quoted 3 lines

Raymond, I cannot pass the DT in the bloblist from TPL to SPL on x86. There is not enough cache-as-RAM, for a start. Plus the DT is in the memory-mapped SPI flash, so it makes no sense...

DT using x86 is a pretty odd case. I don't recall if you mentioned that before, and it's likely everyone else assumed you were talking about something more standard. Of course, you're listing one x86 platform and two ARM platforms as needing this change. Non-chromebook Rockchip isn't generally broken (or several other people would be complaining).

So something that may or may not be explained in the longer older threads is how the firmware in these platforms are doing anything with the device tree?

But, the biggest problem I see with this portion of the series is that patch #4 is 'Revert "fdt: Allow the devicetree to come from a bloblist"' and patch #5 is "fdt: Allow the devicetree to come from a bloblist". What you need to do instead is squash all 3 of these in to one commit and then write a new message that explains what exactly you are changing, and why, instead of making someone else do that in order to review your changes here.

Signature · 1 line
Tom
#22 lore raw

Re: [PATCH 4/8] Revert "fdt: Allow the devicetree to come from a bloblist"

Hi Tom,

Quoted 47 lines · Tom Rini
Quoted 19 lines · Simon Glass

Hi Tom,

Quoted 16 lines · Tom Rini
Quoted 13 lines · Raymond Mao

Hi Simon,

Quoted 6 lines · Simon Glass

This stops coral, bob and kevin from booting.

The correct way to do this was always to use a Kconfig option, so let's first revert this broken idea.

OF_BOARD and BLOBLIST should be general and hardware agnostic,

do you have more information on why they don't work for a few boards? Maybe the way to handle these logic within certain boards should be changed other than to revert this?

Quoted 8 lines
Quoted 4 lines

Yes, I'd like to understand the whole problem better since we had a forever-and-ever thread, compromised to what's in tree now and now you want to revert the compromise and bring is back to what was argued against for forever-and-ever, at least from a very quick read.

I'm sorry but I believe I have explained the problem in that forever and-ever thread, so I don't really want to re-run it. It may be that I was right all along?

Or maybe your use case is still badly explained, and your changes will instead break other platforms.

Quoted 3 lines

Raymond, I cannot pass the DT in the bloblist from TPL to SPL on x86. There is not enough cache-as-RAM, for a start. Plus the DT is in the memory-mapped SPI flash, so it makes no sense...

DT using x86 is a pretty odd case. I don't recall if you mentioned that before, and it's likely everyone else assumed you were talking about something more standard. Of course, you're listing one x86 platform and two ARM platforms as needing this change. Non-chromebook Rockchip isn't generally broken (or several other people would be complaining).

So something that may or may not be explained in the longer older threads is how the firmware in these platforms are doing anything with the device tree?

Quoted 7 lines

But, the biggest problem I see with this portion of the series is that patch #4 is 'Revert "fdt: Allow the devicetree to come from a bloblist"' and patch #5 is "fdt: Allow the devicetree to come from a bloblist". What you need to do instead is squash all 3 of these in to one commit and then write a new message that explains what exactly you are changing, and why, instead of making someone else do that in order to review your changes here.

As I said, I do not wish to go through all of that again. It is still a bad memory every though it was a year ago. I would like to build on what I have here, to resolve any future breakages.

Regards,
SImon

#23 lore raw

Re: [PATCH 4/8] Revert "fdt: Allow the devicetree to come from a bloblist"

Quoted 58 lines · Simon Glass

Hi Tom,

Quoted 47 lines · Tom Rini
Quoted 19 lines · Simon Glass

Hi Tom,

Quoted 16 lines · Tom Rini
Quoted 13 lines · Raymond Mao

Hi Simon,

Quoted 6 lines · Simon Glass

This stops coral, bob and kevin from booting.

The correct way to do this was always to use a Kconfig option, so let's first revert this broken idea.

OF_BOARD and BLOBLIST should be general and hardware agnostic,

do you have more information on why they don't work for a few boards? Maybe the way to handle these logic within certain boards should be changed other than to revert this?

Quoted 8 lines
Quoted 4 lines

Yes, I'd like to understand the whole problem better since we had a forever-and-ever thread, compromised to what's in tree now and now you want to revert the compromise and bring is back to what was argued against for forever-and-ever, at least from a very quick read.

I'm sorry but I believe I have explained the problem in that forever and-ever thread, so I don't really want to re-run it. It may be that I was right all along?

Or maybe your use case is still badly explained, and your changes will instead break other platforms.

Quoted 3 lines

Raymond, I cannot pass the DT in the bloblist from TPL to SPL on x86. There is not enough cache-as-RAM, for a start. Plus the DT is in the memory-mapped SPI flash, so it makes no sense...

DT using x86 is a pretty odd case. I don't recall if you mentioned that before, and it's likely everyone else assumed you were talking about something more standard. Of course, you're listing one x86 platform and two ARM platforms as needing this change. Non-chromebook Rockchip isn't generally broken (or several other people would be complaining).

So something that may or may not be explained in the longer older threads is how the firmware in these platforms are doing anything with the device tree?

Quoted 7 lines

But, the biggest problem I see with this portion of the series is that patch #4 is 'Revert "fdt: Allow the devicetree to come from a bloblist"' and patch #5 is "fdt: Allow the devicetree to come from a bloblist". What you need to do instead is squash all 3 of these in to one commit and then write a new message that explains what exactly you are changing, and why, instead of making someone else do that in order to review your changes here.

Quoted 3 lines

As I said, I do not wish to go through all of that again. It is still a bad memory every though it was a year ago. I would like to build on what I have here, to resolve any future breakages.

Sure, then you need to post something that's reviewable, like I suggested.

Signature · 1 line
Tom
#24 lore raw

Re: [PATCH 4/8] Revert "fdt: Allow the devicetree to come from a bloblist"

Hi Tom,

Quoted 60 lines · Tom Rini
Quoted 58 lines · Simon Glass

Hi Tom,

Quoted 54 lines · Tom Rini
Quoted 19 lines · Simon Glass

Hi Tom,

Quoted 16 lines · Tom Rini
Quoted 13 lines · Raymond Mao

Hi Simon,

Quoted 6 lines · Simon Glass

This stops coral, bob and kevin from booting.

The correct way to do this was always to use a Kconfig option, so let's first revert this broken idea.

OF_BOARD and BLOBLIST should be general and hardware agnostic,

do you have more information on why they don't work for a few boards? Maybe the way to handle these logic within certain boards should be changed other than to revert this?

Quoted 8 lines
Quoted 4 lines

Yes, I'd like to understand the whole problem better since we had a forever-and-ever thread, compromised to what's in tree now and now you want to revert the compromise and bring is back to what was argued against for forever-and-ever, at least from a very quick read.

I'm sorry but I believe I have explained the problem in that forever and-ever thread, so I don't really want to re-run it. It may be that I was right all along?

Or maybe your use case is still badly explained, and your changes will instead break other platforms.

Quoted 3 lines

Raymond, I cannot pass the DT in the bloblist from TPL to SPL on x86. There is not enough cache-as-RAM, for a start. Plus the DT is in the memory-mapped SPI flash, so it makes no sense...

DT using x86 is a pretty odd case. I don't recall if you mentioned that before, and it's likely everyone else assumed you were talking about something more standard. Of course, you're listing one x86 platform and two ARM platforms as needing this change. Non-chromebook Rockchip isn't generally broken (or several other people would be complaining).

So something that may or may not be explained in the longer older threads is how the firmware in these platforms are doing anything with the device tree?

But, the biggest problem I see with this portion of the series is that patch #4 is 'Revert "fdt: Allow the devicetree to come from a bloblist"' and patch #5 is "fdt: Allow the devicetree to come from a bloblist". What you need to do instead is squash all 3 of these in to one commit and then write a new message that explains what exactly you are changing, and why, instead of making someone else do that in order to review your changes here.

Quoted 6 lines
Quoted 3 lines

As I said, I do not wish to go through all of that again. It is still a bad memory every though it was a year ago. I would like to build on what I have here, to resolve any future breakages.

Sure, then you need to post something that's reviewable, like I suggested.

It is quite reviewable. It is just a revert. I am not expecting you or Linaro to agree with it, but I am confident it is correct.

Regards,
Simon

#25 lore raw

Re: [PATCH 4/8] Revert "fdt: Allow the devicetree to come from a bloblist"

Quoted 67 lines · Simon Glass

Hi Tom,

Quoted 64 lines · Tom Rini
Quoted 61 lines · Simon Glass

Hi Tom,

Quoted 47 lines · Tom Rini
Quoted 19 lines · Simon Glass

Hi Tom,

Quoted 16 lines · Tom Rini
Quoted 13 lines · Raymond Mao

Hi Simon,

Quoted 6 lines · Simon Glass

This stops coral, bob and kevin from booting.

The correct way to do this was always to use a Kconfig option, so let's first revert this broken idea.

OF_BOARD and BLOBLIST should be general and hardware agnostic,

do you have more information on why they don't work for a few boards? Maybe the way to handle these logic within certain boards should be changed other than to revert this?

Quoted 8 lines
Quoted 4 lines

Yes, I'd like to understand the whole problem better since we had a forever-and-ever thread, compromised to what's in tree now and now you want to revert the compromise and bring is back to what was argued against for forever-and-ever, at least from a very quick read.

I'm sorry but I believe I have explained the problem in that forever and-ever thread, so I don't really want to re-run it. It may be that I was right all along?

Or maybe your use case is still badly explained, and your changes will instead break other platforms.

Quoted 3 lines

Raymond, I cannot pass the DT in the bloblist from TPL to SPL on x86. There is not enough cache-as-RAM, for a start. Plus the DT is in the memory-mapped SPI flash, so it makes no sense...

DT using x86 is a pretty odd case. I don't recall if you mentioned that before, and it's likely everyone else assumed you were talking about something more standard. Of course, you're listing one x86 platform and two ARM platforms as needing this change. Non-chromebook Rockchip isn't generally broken (or several other people would be complaining).

So something that may or may not be explained in the longer older threads is how the firmware in these platforms are doing anything with the device tree?

Quoted 7 lines

But, the biggest problem I see with this portion of the series is that patch #4 is 'Revert "fdt: Allow the devicetree to come from a bloblist"' and patch #5 is "fdt: Allow the devicetree to come from a bloblist". What you need to do instead is squash all 3 of these in to one commit and then write a new message that explains what exactly you are changing, and why, instead of making someone else do that in order to review your changes here.

As I said, I do not wish to go through all of that again. It is still a bad memory every though it was a year ago. I would like to build on what I have here, to resolve any future breakages.

Quoted 5 lines
Quoted 2 lines

Sure, then you need to post something that's reviewable, like I suggested.

It is quite reviewable. It is just a revert. I am not expecting you or Linaro to agree with it, but I am confident it is correct.

It's _not_ at all reviewable. Again, you're reverting two commits, and then introducing a new commit with the same title as the previous revert. I'm not even sure there's a difference in the commit messages.

Signature · 1 line
Tom
#26 lore raw

Re: [PATCH 4/8] Revert "fdt: Allow the devicetree to come from a bloblist"

Hi Tom,

If you like, you can apply the reverts first, since they break boards. That should not be controversial, particularly as I explained at the time that this was likely to cause problems.

Then you can leave the discussion on OF_BLOBLIST open.

Just a thought.

Regards,
Simon

Quoted 81 lines · Tom Rini
Quoted 67 lines · Simon Glass

Hi Tom,

Quoted 64 lines · Tom Rini
Quoted 61 lines · Simon Glass

Hi Tom,

Quoted 47 lines · Tom Rini
Quoted 19 lines · Simon Glass

Hi Tom,

Quoted 16 lines · Tom Rini
Quoted 13 lines · Raymond Mao

Hi Simon,

Quoted 6 lines · Simon Glass

This stops coral, bob and kevin from booting.

The correct way to do this was always to use a Kconfig option, so let's first revert this broken idea.

OF_BOARD and BLOBLIST should be general and hardware agnostic,

do you have more information on why they don't work for a few boards? Maybe the way to handle these logic within certain boards should be changed other than to revert this?

Quoted 8 lines
Quoted 4 lines

Yes, I'd like to understand the whole problem better since we had a forever-and-ever thread, compromised to what's in tree now and now you want to revert the compromise and bring is back to what was argued against for forever-and-ever, at least from a very quick read.

I'm sorry but I believe I have explained the problem in that forever and-ever thread, so I don't really want to re-run it. It may be that I was right all along?

Or maybe your use case is still badly explained, and your changes will instead break other platforms.

Quoted 3 lines

Raymond, I cannot pass the DT in the bloblist from TPL to SPL on x86. There is not enough cache-as-RAM, for a start. Plus the DT is in the memory-mapped SPI flash, so it makes no sense...

DT using x86 is a pretty odd case. I don't recall if you mentioned that before, and it's likely everyone else assumed you were talking about something more standard. Of course, you're listing one x86 platform and two ARM platforms as needing this change. Non-chromebook Rockchip isn't generally broken (or several other people would be complaining).

So something that may or may not be explained in the longer older threads is how the firmware in these platforms are doing anything with the device tree?

Quoted 7 lines

But, the biggest problem I see with this portion of the series is that patch #4 is 'Revert "fdt: Allow the devicetree to come from a bloblist"' and patch #5 is "fdt: Allow the devicetree to come from a bloblist". What you need to do instead is squash all 3 of these in to one commit and then write a new message that explains what exactly you are changing, and why, instead of making someone else do that in order to review your changes here.

As I said, I do not wish to go through all of that again. It is still a bad memory every though it was a year ago. I would like to build on what I have here, to resolve any future breakages.

Quoted 5 lines
Quoted 2 lines

Sure, then you need to post something that's reviewable, like I suggested.

It is quite reviewable. It is just a revert. I am not expecting you or Linaro to agree with it, but I am confident it is correct.

It's _not_ at all reviewable. Again, you're reverting two commits, and then introducing a new commit with the same title as the previous revert. I'm not even sure there's a difference in the commit messages.

--
Tom

#27 lore raw

Re: [PATCH 4/8] Revert "fdt: Allow the devicetree to come from a bloblist"

Quoted 9 lines · Simon Glass

Hi Tom,

If you like, you can apply the reverts first, since they break boards. That should not be controversial, particularly as I explained at the time that this was likely to cause problems.

Then you can leave the discussion on OF_BLOBLIST open.

Just a thought.

Absolutely not. Again, 70fe23859437ffe4efe0793423937d8b78ebf9d6 says:
"Standard passage provides for a bloblist to be passed from one firmware phase to the next. That can be used to pass the devicetree along as well. Add an option to support this.

Tests for this will be added as part of the Universal Payload work."

And your new patch says exactly the same thing, but then:
"Note: This is the correct way to deal with bloblist, since it allows boards to choose whether they want to use the devicetree from there, or not." and a large number of patchwork links. And after squashing the three commits together to see what's being changed, yes, you're rewriting a whole bunch of the logic without any explanation of why. It seems to fix 3 Chromebooks and isn't tested on anything else. This is why I'm saying it's unreviewable.

So no, at the moment I'm inclined to wait for further reports of problems, and we're coming up on a year since 70fe23859437 was merged, before making any sort of last-minute change here.

Signature · 1 line
Tom
#28 lore raw

Re: [PATCH 4/8] Revert "fdt: Allow the devicetree to come from a bloblist"

Hi Tom,

Quoted 29 lines · Tom Rini
Quoted 9 lines · Simon Glass

Hi Tom,

If you like, you can apply the reverts first, since they break boards. That should not be controversial, particularly as I explained at the time that this was likely to cause problems.

Then you can leave the discussion on OF_BLOBLIST open.

Just a thought.

Absolutely not. Again, 70fe23859437ffe4efe0793423937d8b78ebf9d6 says:
"Standard passage provides for a bloblist to be passed from one firmware phase to the next. That can be used to pass the devicetree along as well. Add an option to support this.

Tests for this will be added as part of the Universal Payload work."

And your new patch says exactly the same thing, but then:
"Note: This is the correct way to deal with bloblist, since it allows boards to choose whether they want to use the devicetree from there, or not." and a large number of patchwork links. And after squashing the three commits together to see what's being changed, yes, you're rewriting a whole bunch of the logic without any explanation of why. It seems to fix 3 Chromebooks and isn't tested on anything else. This is why I'm saying it's unreviewable.

Quoted 3 lines

So no, at the moment I'm inclined to wait for further reports of problems, and we're coming up on a year since 70fe23859437 was merged, before making any sort of last-minute change here.

OK, thanks for confirming that.

Regards,
Simon

#29 lore raw

Re: [PATCH 4/8] Revert "fdt: Allow the devicetree to come from a bloblist"

Hi Tom,

Quoted 33 lines · Simon Glass

Hi Tom,

Quoted 29 lines · Tom Rini
Quoted 9 lines · Simon Glass

Hi Tom,

If you like, you can apply the reverts first, since they break boards. That should not be controversial, particularly as I explained at the time that this was likely to cause problems.

Then you can leave the discussion on OF_BLOBLIST open.

Just a thought.

Absolutely not. Again, 70fe23859437ffe4efe0793423937d8b78ebf9d6 says:
"Standard passage provides for a bloblist to be passed from one firmware phase to the next. That can be used to pass the devicetree along as well. Add an option to support this.

Tests for this will be added as part of the Universal Payload work."

And your new patch says exactly the same thing, but then:
"Note: This is the correct way to deal with bloblist, since it allows boards to choose whether they want to use the devicetree from there, or not." and a large number of patchwork links. And after squashing the three commits together to see what's being changed, yes, you're rewriting a whole bunch of the logic without any explanation of why. It seems to fix 3 Chromebooks and isn't tested on anything else. This is why I'm saying it's unreviewable.

Quoted 5 lines
Quoted 3 lines

So no, at the moment I'm inclined to wait for further reports of problems, and we're coming up on a year since 70fe23859437 was merged, before making any sort of last-minute change here.

OK, thanks for confirming that.

We could of course imply OF_BLOBLIST which would still allow my boards to work, by disabling it.

The opposition to this patch is mystifying to me, particularly as it seems like a clear mess-up.

I'll apply this to my tree for now. It is certainly correct.

Regards,
Simon

author Applied
#30 lore raw

Re: [PATCH 4/8] Revert "fdt: Allow the devicetree to come from a bloblist"

Hi Tom,

Quoted 33 lines · Simon Glass

Hi Tom,

Quoted 29 lines · Tom Rini
Quoted 9 lines · Simon Glass

Hi Tom,

If you like, you can apply the reverts first, since they break boards. That should not be controversial, particularly as I explained at the time that this was likely to cause problems.

Then you can leave the discussion on OF_BLOBLIST open.

Just a thought.

Absolutely not. Again, 70fe23859437ffe4efe0793423937d8b78ebf9d6 says:
"Standard passage provides for a bloblist to be passed from one firmware phase to the next. That can be used to pass the devicetree along as well. Add an option to support this.

Tests for this will be added as part of the Universal Payload work."

And your new patch says exactly the same thing, but then:
"Note: This is the correct way to deal with bloblist, since it allows boards to choose whether they want to use the devicetree from there, or not." and a large number of patchwork links. And after squashing the three commits together to see what's being changed, yes, you're rewriting a whole bunch of the logic without any explanation of why. It seems to fix 3 Chromebooks and isn't tested on anything else. This is why I'm saying it's unreviewable.

Quoted 5 lines
Quoted 3 lines

So no, at the moment I'm inclined to wait for further reports of problems, and we're coming up on a year since 70fe23859437 was merged, before making any sort of last-minute change here.

OK, thanks for confirming that.

We could of course imply OF_BLOBLIST which would still allow my boards to work, by disabling it.

The opposition to this patch is mystifying to me, particularly as it seems like a clear mess-up.

I'll apply this to my tree for now. It is certainly correct.

Regards,
Simon

Applied to ci/master, thanks!

#31 lore raw

PATCH 5/8 fdt: Allow the devicetree to come from a bloblist

In reply to Simon Glass

Standard passage provides for a bloblist to be passed from one firmware phase to the next. That can be used to pass the devicetree along as well. Add an option to support this.

Tests for this will be added as part of the Universal Payload work.

Note: This is the correct way to deal with bloblist, since it allows boards to choose whether they want to use the devicetree from there, or not.

---

 common/bloblist.c                  |  1 +
 doc/develop/devicetree/control.rst |  3 ++
 dts/Kconfig                        |  8 ++++++
 include/fdtdec.h                   |  3 +-
 lib/fdtdec.c                       | 44 ++++++++++++++++++++++--------
 5 files changed, 46 insertions(+), 13 deletions(-)
common/bloblist.c +1 -0
index ec6ff7a5a93..e8acfc74331 100644
@@ -56,6 +56,7 @@ static struct tag_name {
 	{ BLOBLISTT_INTEL_VBT, "Intel Video-BIOS table" },
 	{ BLOBLISTT_SMBIOS_TABLES, "SMBIOS tables for x86" },
 	{ BLOBLISTT_VBOOT_CTX, "Chrome OS vboot context" },
+	{ BLOBLISTT_CONTROL_FDT, "Control FDT" },
 
 	/* BLOBLISTT_PROJECT_AREA */
 	{ BLOBLISTT_U_BOOT_SPL_HANDOFF, "SPL hand-off" },
doc/develop/devicetree/control.rst +3 -0
index 2a3b48fa6c7..4180eeb5629 100644
@@ -137,6 +137,9 @@ If `OF_BOARD` is selected by Kconfig, a board-specific routine will provide the
 devicetree at runtime, for example if an earlier bootloader stage creates
 it and passes it to U-Boot.
 
+If CONFIG_OF_BLOBLIST is defined, the devicetree comes from a bloblist passed
+from a previous stage.
+
 If CONFIG_SANDBOX is defined, then it will be read from a file on
 startup. Use the -d flag to U-Boot to specify the file to read, -D for the
 default and -T for the test devicetree, used to run sandbox unit tests.
dts/Kconfig +8 -0
index ffd50c04846..41a758e83a6 100644
@@ -167,6 +167,14 @@ config OF_INITIAL_DTB_READONLY
 	  If initial DTB for DT control is read-only (e.g. points to
 	  memory-mapped flash memory), then set this option.
 
+config OF_BLOBLIST
+	bool "DTB is provided by a bloblist"
+	help
+	  Select this to read the devicetree from the bloblist. This allows
+	  using a bloblist to transfer the devicetree between  U-Boot phases.
+	  The devicetree is stored in the bloblist by an early phase so that
+	  U-Boot can read it.
+
 config OF_BOARD
 	bool "Provided by the board (e.g a previous loader) at runtime"
 	default y if SANDBOX || OF_HAS_PRIOR_STAGE
include/fdtdec.h +2 -1
index 8f25e1b7e92..aa7e4b62dbf 100644
@@ -72,7 +72,7 @@ struct bd_info;
  *	U-Boot is packaged as an ELF file, e.g. for debugging purposes
  * @FDTSRC_ENV: Provided by the fdtcontroladdr environment variable. This should
  *	be used for debugging/development only
- * @FDTSRC_NONE: No devicetree at all
+ * @FDTSRC_BLOBLIST: Provided by a bloblist from an earlier phase
  */
 enum fdt_source_t {
 	FDTSRC_SEPARATE,
@@ -80,6 +80,7 @@ enum fdt_source_t {
 	FDTSRC_BOARD,
 	FDTSRC_EMBED,
 	FDTSRC_ENV,
+	FDTSRC_BLOBLIST,
 };
 
 /*
lib/fdtdec.c +32 -12

64 lines not on this page · raw message

Signature · 1 line
2.43.0
#32 lore raw

Re: [PATCH 5/8] fdt: Allow the devicetree to come from a bloblist

Quoted 10 lines · Simon Glass

Standard passage provides for a bloblist to be passed from one firmware phase to the next. That can be used to pass the devicetree along as well. Add an option to support this.

Tests for this will be added as part of the Universal Payload work.

Note: This is the correct way to deal with bloblist, since it allows boards to choose whether they want to use the devicetree from there, or not.

Quoted 6 lines

You should %s#https://patchwork.ozlabs.org/project/uboot/patch#https://lore.kernel.org/u-boot all of these Links, aside from shorter, it's on much more broadly distributed infrastructure. And this is a general comment as well.

Quoted 9 lines

---

 common/bloblist.c                  |  1 +
 doc/develop/devicetree/control.rst |  3 ++
 dts/Kconfig                        |  8 ++++++
 include/fdtdec.h                   |  3 +-
 lib/fdtdec.c                       | 44 ++++++++++++++++++++++--------
 5 files changed, 46 insertions(+), 13 deletions(-)

The rest of this, I need to think on.

Signature · 1 line
Tom
#33 lore raw

Re: [PATCH 5/8] fdt: Allow the devicetree to come from a bloblist

Hi Tom,

Quoted 27 lines · Tom Rini
Quoted 10 lines · Simon Glass

Standard passage provides for a bloblist to be passed from one firmware phase to the next. That can be used to pass the devicetree along as well. Add an option to support this.

Tests for this will be added as part of the Universal Payload work.

Note: This is the correct way to deal with bloblist, since it allows boards to choose whether they want to use the devicetree from there, or not.

Quoted 6 lines

You should %s#https://patchwork.ozlabs.org/project/uboot/patch#https://lore.kernel.org/u-boot all of these Links, aside from shorter, it's on much more broadly distributed infrastructure. And this is a general comment as well.

Quoted 3 lines

---

Quoted 8 lines
Quoted 6 lines
 common/bloblist.c                  |  1 +
 doc/develop/devicetree/control.rst |  3 ++
 dts/Kconfig                        |  8 ++++++
 include/fdtdec.h                   |  3 +-
 lib/fdtdec.c                       | 44 ++++++++++++++++++++++--------
 5 files changed, 46 insertions(+), 13 deletions(-)

The rest of this, I need to think on.

It sounds like you have thought about this, and come to the conclusion that the reverts are not going in. So, for simplicity I'll leave this patch as is and make a note to use 'lore' in future. I wonder if there is an easy way to convert between lore and patchwork?

Regards,
Simon

#34 lore raw

Re: [PATCH 5/8] fdt: Allow the devicetree to come from a bloblist

Quoted 37 lines · Simon Glass

Hi Tom,

Quoted 34 lines · Tom Rini
Quoted 10 lines · Simon Glass

Standard passage provides for a bloblist to be passed from one firmware phase to the next. That can be used to pass the devicetree along as well. Add an option to support this.

Tests for this will be added as part of the Universal Payload work.

Note: This is the correct way to deal with bloblist, since it allows boards to choose whether they want to use the devicetree from there, or not.

Quoted 6 lines

You should %s#https://patchwork.ozlabs.org/project/uboot/patch#https://lore.kernel.org/u-boot all of these Links, aside from shorter, it's on much more broadly distributed infrastructure. And this is a general comment as well.

Quoted 9 lines

---

 common/bloblist.c                  |  1 +
 doc/develop/devicetree/control.rst |  3 ++
 dts/Kconfig                        |  8 ++++++
 include/fdtdec.h                   |  3 +-
 lib/fdtdec.c                       | 44 ++++++++++++++++++++++--------
 5 files changed, 46 insertions(+), 13 deletions(-)
Quoted 6 lines
Quoted 1 line

The rest of this, I need to think on.

It sounds like you have thought about this, and come to the conclusion that the reverts are not going in. So, for simplicity I'll leave this patch as is and make a note to use 'lore' in future. I wonder if there is an easy way to convert between lore and patchwork?

Both lore (always) and patchwork (for a while, maybe a year or more now?) use the message-id in the URL, at the end even.

Signature · 1 line
Tom
#35 lore raw

Re: [PATCH 5/8] fdt: Allow the devicetree to come from a bloblist

Quoted 37 lines · Simon Glass

Hi Tom,

Quoted 34 lines · Tom Rini
Quoted 10 lines · Simon Glass

Standard passage provides for a bloblist to be passed from one firmware phase to the next. That can be used to pass the devicetree along as well. Add an option to support this.

Tests for this will be added as part of the Universal Payload work.

Note: This is the correct way to deal with bloblist, since it allows boards to choose whether they want to use the devicetree from there, or not.

Quoted 6 lines

You should %s#https://patchwork.ozlabs.org/project/uboot/patch#https://lore.kernel.org/u-boot all of these Links, aside from shorter, it's on much more broadly distributed infrastructure. And this is a general comment as well.

Quoted 9 lines

---

 common/bloblist.c                  |  1 +
 doc/develop/devicetree/control.rst |  3 ++
 dts/Kconfig                        |  8 ++++++
 include/fdtdec.h                   |  3 +-
 lib/fdtdec.c                       | 44 ++++++++++++++++++++++--------
 5 files changed, 46 insertions(+), 13 deletions(-)
Quoted 6 lines
Quoted 1 line

The rest of this, I need to think on.

It sounds like you have thought about this, and come to the conclusion that the reverts are not going in. So, for simplicity I'll leave this patch as is and make a note to use 'lore' in future. I wonder if there is an easy way to convert between lore and patchwork?

Both lore (always) and patchwork (for a while, maybe a year or more now?) use the message-id in the URL, at the end even.

Signature · 3 lines
Tom

Applied to ci/master, thanks!
#36 lore raw

PATCH 6/8 binman: Avoid skipping binman_init()

In reply to Simon Glass

A recent lwip change stopped binman's init from working, so it is not possible to read nodes from the image description anymore.

Correct this by dropping the offending line.

Fixes 4d4d7838127 net: lwip: add TFTP support and tftpboot command

---

 lib/binman.c | 1 -
 1 file changed, 1 deletion(-)
lib/binman.c +0 -1
index 93d85548116..9047f5275f3 100644
@@ -137,7 +137,6 @@ int binman_init(void)
 {
 	int ret;
 
-	return 0;
 	binman = malloc(sizeof(struct binman_info));
 	if (!binman)
 		return log_msg_ret("space for binman", -ENOMEM);
Signature · 1 line
2.43.0
#37 lore raw

Re: [PATCH 6/8] binman: Avoid skipping binman_init()

Quoted 17 lines · Simon Glass

A recent lwip change stopped binman's init from working, so it is not possible to read nodes from the image description anymore.

Correct this by dropping the offending line.

Fixes 4d4d7838127 net: lwip: add TFTP support and tftpboot command

---

 lib/binman.c | 1 -
 1 file changed, 1 deletion(-)
lib/binman.c +0 -0
index 93d85548116..9047f5275f3 100644

lib/binman.c int binman_init(void) · line 142

Quoted 7 lines
lib/binman.c +0 -1
@@ -137,7 +137,6 @@ int binman_init(void)
 {
 	int ret;
 
-	return 0;
 	binman = malloc(sizeof(struct binman_info));
 	if (!binman)
 		return log_msg_ret("space for binman", -ENOMEM);

Erm, Jerome, do you recall why you were doing that at all to start with? Or some sort of mis-merge locally that was (sadly) missed on review.

Signature · 1 line
Tom
#38 lore raw

Re: [PATCH 6/8] binman: Avoid skipping binman_init()

Quoted 21 lines · Tom Rini
Quoted 20 lines · Simon Glass

A recent lwip change stopped binman's init from working, so it is not possible to read nodes from the image description anymore.

Correct this by dropping the offending line.

Fixes 4d4d7838127 net: lwip: add TFTP support and tftpboot command

---

 lib/binman.c | 1 -
 1 file changed, 1 deletion(-)
lib/binman.c +0 -0
index 93d85548116..9047f5275f3 100644
@@ -137,7 +137,6 @@ int binman_init(void)
 {
 	int ret;
 
Quoted 7 lines

lib/binman.c int binman_init(void) · line 142

Quoted 4 lines
lib/binman.c +0 -1
-	return 0;
 	binman = malloc(sizeof(struct binman_info));
 	if (!binman)
 		return log_msg_ret("space for binman", -ENOMEM);

Erm, Jerome, do you recall why you were doing that at all to start with? Or some sort of mis-merge locally that was (sadly) missed on review.

Oops! It is a local hack I had in my branch to run tests on the i.MX8MPlus EVK with NET_LWIP enabled. On that board I would keep getting errors like:

initcall failed at call 0000000040222de0 (err=-11) ### ERROR ### Please RESET the board ###

...and the "return 0'; was a quick way to work around to proceed with testing.

Sorry for inadvertently leaving it in :-/ Now I suppose I should try again the imx8mp_evk_defconfig build and see if the issue is still there and needs investigating.

Regards,

Signature · 1 line
Jerome
#39 lore raw

Re: [PATCH 6/8] binman: Avoid skipping binman_init()

In reply to Simon Glass
Quoted 6 lines · Simon Glass

A recent lwip change stopped binman's init from working, so it is not possible to read nodes from the image description anymore.

Correct this by dropping the offending line.

Applied to u-boot/master, thanks!

Signature · 1 line
Tom
#40 lore raw

PATCH 7/8 Revert "global_data: Drop spl_handoff"

In reply to Simon Glass

This breaks chromebook_coral which says:

Video: No video mode configured in FSP!

This reverts commit 2e9313179a846b581c0fc3f6a49e19f3d343efa8.

---

 arch/x86/cpu/intel_common/cpu_from_spl.c |  4 +++-
 arch/x86/lib/fsp2/fsp_dram.c             |  4 ++--
 cmd/sb.c                                 |  6 ++----
 common/board_f.c                         | 12 ++++++++++++
 common/init/handoff.c                    | 12 ------------
 drivers/clk/rockchip/clk_rk3399.c        |  3 +--
 include/asm-generic/global_data.h        |  6 ++++++
 include/handoff.h                        |  7 -------
 8 files changed, 26 insertions(+), 28 deletions(-)
arch/x86/cpu/intel_common/cpu_from_spl.c +3 -1
index 5aad2ae7309..48b2ef253cb 100644
@@ -24,7 +24,9 @@ int arch_cpu_init(void)
 	int ret;
 
 #if CONFIG_IS_ENABLED(HANDOFF) && IS_ENABLED(CONFIG_USE_HOB)
-	gd->arch.hob_list = handoff_get();
+	struct spl_handoff *ho = gd->spl_handoff;
+
+	gd->arch.hob_list = ho->arch.hob_list;
 #endif
 	ret = x86_cpu_reinit_f();
 
arch/x86/lib/fsp2/fsp_dram.c +2 -2
index 4c4c8334bdb..75fa8f9de7a 100644
@@ -59,7 +59,7 @@ int dram_init(void)
 #endif
 	} else {
 #if CONFIG_IS_ENABLED(HANDOFF)
-		struct spl_handoff *ho = handoff_get();
+		struct spl_handoff *ho = gd->spl_handoff;
 
 		if (!ho) {
 			log_debug("No SPL handoff found\n");
@@ -82,7 +82,7 @@ phys_addr_t board_get_usable_ram_top(phys_size_t total_size)
 		return gd->ram_size;
 
 #if CONFIG_IS_ENABLED(HANDOFF)
-	struct spl_handoff *ho = handoff_get();
+	struct spl_handoff *ho = gd->spl_handoff;
 
 	log_debug("usable_ram_top = %lx\n", ho->arch.usable_ram_top);
 
cmd/sb.c +2 -4
index 9245052492e..79f3fb0aacd 100644
@@ -15,10 +15,8 @@ static int do_sb_handoff(struct cmd_tbl *cmdtp, int flag, int argc,
 			 char *const argv[])
 {
 #if CONFIG_IS_ENABLED(HANDOFF)
-	struct spl_handoff *handoff = handoff_get();
-
-	if (handoff)
-		printf("SPL handoff magic %lx\n", handoff->arch.magic);
+	if (gd->spl_handoff)
+		printf("SPL handoff magic %lx\n", gd->spl_handoff->arch.magic);
 	else
 		printf("SPL handoff info not received\n");
 
common/board_f.c +12 -0
index 98dc2591e1d..939697d13d8 100644
@@ -305,6 +305,17 @@ static int setup_mon_len(void)
 	return 0;
 }
 
+static int setup_spl_handoff(void)
+{
+#if CONFIG_IS_ENABLED(HANDOFF)
+	gd->spl_handoff = bloblist_find(BLOBLISTT_U_BOOT_SPL_HANDOFF,
+					sizeof(struct spl_handoff));
+	debug("Found SPL hand-off info %p\n", gd->spl_handoff);
+#endif
+
+	return 0;
+}
+
 __weak int arch_cpu_init(void)
 {
 	return 0;
@@ -880,6 +891,7 @@ static const init_fnc_t init_sequence_f[] = {
 	initf_bootstage,	/* uses its own timer, so does not need DM */
 	event_init,
 	bloblist_maybe_init,
+	setup_spl_handoff,
 #if defined(CONFIG_CONSOLE_RECORD_INIT_F)
 	console_record_init,
 #endif
common/init/handoff.c +0 -12
index 86c020ee0b9..a7cd065fb38 100644
@@ -5,7 +5,6 @@
  * Copyright 2018 Google, Inc
  */
 
-#include <bloblist.h>
 #include <handoff.h>
 #include <asm/global_data.h>
 
@@ -39,14 +38,3 @@ void handoff_load_dram_banks(struct spl_handoff *ho)
 		bd->bi_dram[i].size = ho->ram_bank[i].size;
 	}
 }
-
-struct spl_handoff *handoff_get(void)
-{
-	struct spl_handoff *handoff;
-
-	handoff = bloblist_find(BLOBLISTT_U_BOOT_SPL_HANDOFF,
-				sizeof(struct spl_handoff));
-	debug("Found SPL hand-off info %p\n", handoff);
-
-	return handoff;
-}
drivers/clk/rockchip/clk_rk3399.c +1 -2
index 155ea8d6353..6e87db18be0 100644
@@ -8,7 +8,6 @@
 #include <dm.h>
 #include <dt-structs.h>
 #include <errno.h>
-#include <handoff.h>
 #include <log.h>
 #include <malloc.h>
 #include <mapmem.h>
@@ -1468,7 +1467,7 @@ static int rk3399_clk_probe(struct udevice *dev)
 	init_clocks = true;
 #elif CONFIG_IS_ENABLED(HANDOFF)
 	if (!(gd->flags & GD_FLG_RELOC)) {
-		if (!handoff_get())
+		if (!(gd->spl_handoff))
 			init_clocks = true;
 	}
 #endif
include/asm-generic/global_data.h +6 -0
index 26277b93976..789adf2c3f9 100644
@@ -400,6 +400,12 @@ struct global_data {
 	 */
 	struct bloblist_hdr *bloblist;
 #endif
+#if CONFIG_IS_ENABLED(HANDOFF)
+	/**
+	 * @spl_handoff: SPL hand-off information
+	 */
+	struct spl_handoff *spl_handoff;
+#endif
 #if defined(CONFIG_TRANSLATION_OFFSET)
 	/**
 	 * @translation_offset: optional translation offset
include/handoff.h +0 -7
index 0072ea832f8..c0ae7b19a75 100644
@@ -31,13 +31,6 @@ void handoff_save_dram(struct spl_handoff *ho);
 void handoff_load_dram_size(struct spl_handoff *ho);
 void handoff_load_dram_banks(struct spl_handoff *ho);
 
-/**
- * handoff_get() - Get the SPL handoff information
- *
- * Return: Pointer to SPL handoff if received, else NULL
- */
-struct spl_handoff *handoff_get(void);
-
 /**
  * handoff_arch_save() - Save arch-specific info into the handoff area
  *
Signature · 1 line
2.43.0
#41 lore raw

Re: [PATCH 7/8] Revert "global_data: Drop spl_handoff"

Quoted 8 lines · Simon Glass

This breaks chromebook_coral which says:

Video: No video mode configured in FSP!

This reverts commit 2e9313179a846b581c0fc3f6a49e19f3d343efa8.

[...]

Applied to u-boot/master, thanks!

Signature · 1 line
Tom
#42 lore raw

PATCH 8/8 CI: Drop broken boards from sjg lab

In reply to Simon Glass

Some of the boards have developed problems since the last passing run.

Disable these while diagnosis is ongoing.

---

 .gitlab-ci.yml | 38 +++++++++++++++++++++-----------------
 1 file changed, 21 insertions(+), 17 deletions(-)
.gitlab-ci.yml +21 -17
index 9f0b8a1a058..1a5c4f1fd89 100644
@@ -576,10 +576,11 @@ pcduino3_nano:
     ROLE: pcduino3_nano
   <<: *lab_dfn
 
-samus:
-  variables:
-    ROLE: samus
-  <<: *lab_dfn
+# samus has a hardware failure 30-Nov-24
+#samus:
+#  variables:
+#    ROLE: samus
+#  <<: *lab_dfn
 
 link:
   variables:
@@ -631,25 +632,28 @@ rpi3z:
     ROLE: rpi3z
   <<: *lab_dfn
 
-bbb:
-  variables:
-    ROLE: bbb
-  <<: *lab_dfn
+# bbb has a hardware failure 30-Nov-24
+#bbb:
+#  variables:
+#    ROLE: bbb
+#  <<: *lab_dfn
 
 kevin:
   variables:
     ROLE: kevin
   <<: *lab_dfn
 
-pine64:
-  variables:
-    ROLE: pine64
-  <<: *lab_dfn
-
-c4:
-  variables:
-    ROLE: c4
-  <<: *lab_dfn
+# pine64 has a hardware failure 30-Nov-24
+#pine64:
+#  variables:
+#    ROLE: pine64
+#  <<: *lab_dfn
+
+# c4 needs binman supported added, so signing works
+#c4:
+#  variables:
+#    ROLE: c4
+#  <<: *lab_dfn
 
 rpi4:
   variables:
Signature · 1 line
2.43.0
#43 lore raw

Re: [PATCH 8/8] CI: Drop broken boards from sjg lab

Quoted 5 lines · Simon Glass

Some of the boards have developed problems since the last passing run.

Disable these while diagnosis is ongoing.

I'd rather not merge this since we don't need to pass or run this stage by default.

Signature · 1 line
Tom
#44 lore raw

Re: [PATCH 8/8] CI: Drop broken boards from sjg lab

Quoted 5 lines · Simon Glass

Some of the boards have developed problems since the last passing run.

Disable these while diagnosis is ongoing.

I'd rather not merge this since we don't need to pass or run this stage by default.

Signature · 3 lines
Tom

Applied to ci/master, thanks!
#45 lore raw

Re: (subset) [PATCH 0/8] Reverts and fixes for board failures

In reply to Simon Glass
Quoted 10 lines · Simon Glass

This series collects together a set of reverts and fixes to get most of the boards in the sjg lab running again.

Unfortunately three of them have developed a failure which requires more diagnosis, as it may just be a hardware failure.

For coral, the TPM tests fail, but the board is working, so this can be dealt with separately.

[...]

Applied to u-boot/master, thanks!

Signature · 1 line
Tom
#46 lore raw

Re: (subset) [PATCH 0/8] Reverts and fixes for board failures

Quoted 11 lines · Tom Rini
Quoted 8 lines · Simon Glass

This series collects together a set of reverts and fixes to get most of the boards in the sjg lab running again.

Unfortunately three of them have developed a failure which requires more diagnosis, as it may just be a hardware failure.

For coral, the TPM tests fail, but the board is working, so this can be dealt with separately.

Which TPM tests fail? Can you point me to them? Any idea if they are related to drivers or the APIs?

Thanks
/Ilias

Quoted 9 lines
Quoted 2 lines

[...]

Applied to u-boot/master, thanks!

--
Tom

#47 lore raw

Re: (subset) [PATCH 0/8] Reverts and fixes for board failures

Quoted 7 lines · Ilias Apalodimas
Quoted 6 lines · Tom Rini
Quoted 3 lines · Simon Glass

This series collects together a set of reverts and fixes to get most of the boards in the sjg lab running again.

Quoted 8 lines
Quoted 5 lines
Quoted 5 lines

Unfortunately three of them have developed a failure which requires more diagnosis, as it may just be a hardware failure.

For coral, the TPM tests fail, but the board is working, so this can be dealt with separately.

Which TPM tests fail? Can you point me to them? Any idea if they are related to drivers or the APIs?

With what I just now pushed, you can click on the coral board in the gitlab UI on a pipeline for it to run and you can see the results yourself. As a for reference:
https://source.denx.de/u-boot/u-boot/-/jobs/1018091

Signature · 1 line
Tom