Re: [PATCH v1 0/7] Add Starfive JH7110 Cadence USB driver

2024-06-23 Thread Minda Chen
> > Hi, > > On Sun, Jun 23, 2024 at 6:28 PM Minda Chen > wrote: > > > > > > > > > > > > Minda, can you test USB Host function on VisionFive2? I guess that > > > it is connected to the USB-C port. For the boards with JH7110 and > > > not any > > > VL805 USB controller this Cadence USB is the on

Re: [PATCH v1 0/7] Add Starfive JH7110 Cadence USB driver

2024-06-23 Thread E Shattow
Hi, On Sun, Jun 23, 2024 at 6:28 PM Minda Chen wrote: > > > > > > > Minda, can you test USB Host function on VisionFive2? I guess that it is > > connected to the USB-C port. For the boards with JH7110 and not any > > VL805 USB controller this Cadence USB is the only way to have host USB. It > >

Re: [PATCH v1 1/3] mtd: rawnand: nand_base: support for 'NAND_IS_BOOT_MEDIUM' flag

2024-06-23 Thread Arseniy Krasnov
Hi, sorry, pls ping :) Thanks On 02.06.2024 23:08, Arseniy Krasnov wrote: > Based on Linux kernel: > commit f922bd798bb9 ("mtd: rawnand: add an option to specify NAND chip as a > boot device") > > Allow to define a NAND chip as a boot device. This can be helpful > for the selection of the ECC a

Re: [RFC] rockchip: add support for Radxa ROCK Pi E v3.0 which uses DDR4 SDRAM

2024-06-23 Thread Dragan Simic
+Cc: he...@sntech.de +Cc: k...@kernel.org Hello Peter and Fukaumi, On 2024-06-23 15:08, Peter Robinson wrote: On Sun, 23 Jun 2024 at 13:21, Dragan Simic wrote: On 2024-06-23 06:15, FUKAUMI Naoki wrote: > rk3328-rock-pi-e-v3.dts is identical to rk3328-rock-pi-e.dts in > upstream. only differen

Re: [PATCH v2 8/8] tpm: allow the user to select the compiled algorithms

2024-06-23 Thread Ilias Apalodimas
On Mon, 24 Jun 2024 at 00:52, Simon Glass wrote: > > Hi Ilias, > > On Sun, 23 Jun 2024 at 05:49, Ilias Apalodimas > wrote: > > > > Simon reports that after enabling all algorithms on the TPM some boards > > fail since they don't have enough storage to accommodate the ~5KB growth. > > > > The choi

Re: [PATCH 14/14] smbios: Correct error handling when writing tables

2024-06-23 Thread Heinrich Schuchardt
Am 23. Juni 2024 22:30:33 MESZ schrieb Simon Glass : >Since write_smbios_table() returns an address, we cannot use it to >return and error number. Also, failing on sysinfo_detect() breaks IS_ERR_VALUE() could serve as template for conveying errors in addresses. >existing boards, e.g. chromeb

Re: [PATCH v2 1/8] tpm: fix the return code, if the eventlog buffer is full

2024-06-23 Thread Ilias Apalodimas
Hi Simon, On Mon, 24 Jun 2024 at 00:52, Simon Glass wrote: > > Hi Ilias, > > On Sun, 23 Jun 2024 at 05:48, Ilias Apalodimas > wrote: > > > > We currently return 'No space left on device' if the eventlong buffer > > we allocated is not enough. On a similar check later on that function > > during

[PATCH] spmi: msm: correct mac_channels for v5 controllers

2024-06-23 Thread Caleb Connolly
Commit ee1d8aa5ecf7 ("spmi: msm: support controller version 7") broke support for channels > 128 on v5 controllers, resulting in some peripherals (like the power button / pon) working but others (like gpios) reading bogus data. Correct max_channels for v5 controllers. Fixes: ee1d8aa5ecf7 ("spmi:

Re: [PATCH v1 0/7] Add Starfive JH7110 Cadence USB driver

2024-06-23 Thread Minda Chen
> > Minda, can you test USB Host function on VisionFive2? I guess that it is > connected to the USB-C port. For the boards with JH7110 and not any > VL805 USB controller this Cadence USB is the only way to have host USB. It is > very much wanted to have host USB. Thanks! -E > In VF2, PCIe0 con

Re: [PATCH] usb: dwc3: respect role-switch-default-mode

2024-06-23 Thread Marek Vasut
On 6/21/24 4:11 AM, Caleb Connolly wrote: * Factor out the common pattern of checking the dr_mode property on the usb node and it's parent * Respect the usb-role-switch property, rather than requiring dr_mode be set * Override OTG mode with the value in role-switch-default-mode The devicet

Re: [RFC] rockchip: add support for Radxa ROCK Pi E v3.0 which uses DDR4 SDRAM

2024-06-23 Thread FUKAUMI Naoki
Hi, thank you for your comment! On 6/24/24 05:22, Dragan Simic wrote: +Cc: he...@sntech.de +Cc: k...@kernel.org Hello Peter and Fukaumi, On 2024-06-23 15:08, Peter Robinson wrote: On Sun, 23 Jun 2024 at 13:21, Dragan Simic wrote: On 2024-06-23 06:15, FUKAUMI Naoki wrote: > rk3328-rock-pi-e

Re: [PATCH v2 8/8] tpm: allow the user to select the compiled algorithms

2024-06-23 Thread Simon Glass
Hi Ilias, On Sun, 23 Jun 2024 at 05:49, Ilias Apalodimas wrote: > > Simon reports that after enabling all algorithms on the TPM some boards > fail since they don't have enough storage to accommodate the ~5KB growth. > > The choice of hash algorithms is determined by the platform and the TPM > con

Re: [PATCH v2 1/8] tpm: fix the return code, if the eventlog buffer is full

2024-06-23 Thread Simon Glass
Hi Ilias, On Sun, 23 Jun 2024 at 05:48, Ilias Apalodimas wrote: > > We currently return 'No space left on device' if the eventlong buffer > we allocated is not enough. On a similar check later on that function > during the call to tcg2_log_init() we return 'No buffer space > available'. So switch

Re: [PATCH v2 2/9] tpm: Avoid code bloat when not using EFI_TCG2_PROTOCOL

2024-06-23 Thread Simon Glass
Hi Tom, On Fri, 21 Jun 2024 at 16:12, Tom Rini wrote: > > On Fri, Jun 21, 2024 at 01:38:07PM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Fri, 21 Jun 2024 at 13:19, Tom Rini wrote: > > > > > > On Fri, Jun 21, 2024 at 11:55:42AM -0600, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Fri

[PATCH v3 19/19] CI: Allow running tests on sjg lab

2024-06-23 Thread Simon Glass
Add a way to run tests on a real hardware lab. This is in the very early experimental stages. There are only 23 boards and 3 of those are broken! (bob, ff3399, samus). A fourth fails due to problems with the TPM tests. To try this, assuming you have gitlab access, set SJG_LAB=1, e.g.: git push

[PATCH v3 18/19] test: Add a section for closing the connection

2024-06-23 Thread Simon Glass
This can take a while and involve multiple steps (e.g. turning the board back off). Add a section for it and show the output. Signed-off-by: Simon Glass --- (no changes since v1) test/py/u_boot_console_base.py | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/py/u_bo

[PATCH v3 17/19] test: Try to shut down the lab console gracefully

2024-06-23 Thread Simon Glass
Send the Labgrid quit characters to ask it to exit gracefully. This typically allows it to power off the board being used. If that doesn't work, try the less graceful approach. Signed-off-by: Simon Glass --- (no changes since v1) test/py/u_boot_spawn.py | 17 +++-- 1 file changed,

[PATCH v3 16/19] test: Avoid double echo when starting up

2024-06-23 Thread Simon Glass
There is a very annoying bug at present where the terminal echos part of the first command sent to the board. This happens because the terminal is still set to echo for a period until Labgrid starts up and can change this. Fix this by disabling echo (and other terminal features) as soon as the spa

[PATCH v3 15/19] test: Fix mulptiplex_log typo

2024-06-23 Thread Simon Glass
Fix a typo in a comment. Signed-off-by: Simon Glass --- (no changes since v1) test/py/u_boot_console_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/py/u_boot_console_base.py b/test/py/u_boot_console_base.py index e2e78179555..f610fa9a6f8 100644 --- a/test/py/u

[PATCH v3 14/19] test: Improve handling of sending commands

2024-06-23 Thread Simon Glass
We expect commands to be echoed and this should happen quite quickly, since U-Boot is sitting at the prompt waiting for a command. Reduce the timeout for this situation. Try to produce a more useful error message when something goes wrong. Also handle the case where the connection has gone away si

[PATCH v3 13/19] test: Introduce lab mode

2024-06-23 Thread Simon Glass
There is quite a bit of code in pytest to try to start up U-Boot on a board, with timeouts, expects, etc. This is tedious to maintain and is peripheral to the test system's purpose. It seems better to put this logic in the lab itself, where is can provide such support. With Labgrid we can use the

[PATCH v3 12/19] test: Tidy up remaining exceptions

2024-06-23 Thread Simon Glass
Use the new handle_exception() function from ConsoleBase also. Signed-off-by: Simon Glass --- (no changes since v1) test/py/u_boot_console_base.py | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/py/u_boot_console_base.py b/test/py/u_boot_console_base.py in

[PATCH v3 11/19] test: Detect dead connections

2024-06-23 Thread Simon Glass
When the connection to a board dies, assume it is dead forever until some user action is taken. Skip all remaining tests. This avoids CI runs taking an hour, with hundreds of 30-second timeouts all to no avail. Signed-off-by: Simon Glass --- (no changes since v1) test/py/conftest.py | 19 +

[PATCH v3 10/19] test: Separate out the exception handling

2024-06-23 Thread Simon Glass
The tests currently catch a very board Exception in each case. This is thrown even in the event of a coding error. We want to handle exceptions differently depending on their severity, so that we can avoid hour-long delays waiting for a board that is clearly broken. As a first step, create some n

[PATCH v3 09/19] test: Move the receive code into a function

2024-06-23 Thread Simon Glass
There is quite a bit of code to deal with receiving data from the target so move it into its own receive() function. Signed-off-by: Simon Glass --- (no changes since v1) test/py/u_boot_spawn.py | 39 +++ 1 file changed, 27 insertions(+), 12 deletions(-) dif

[PATCH v3 08/19] test: Introduce the concept of a role

2024-06-23 Thread Simon Glass
In Labgrid there is the concept of a 'role', which is similar to the U-Boot board ID in U-Boot's pytest subsystem. The role indicates both the target and information about the U-Boot build to use. It can also provide any amount of other configuration. The information is obtained using the 'labgrid

[PATCH v3 07/19] test: Create a common function to get the config

2024-06-23 Thread Simon Glass
The settings are decoded in two places. Combine them into a new function, before (in a future patch) expanding the number of items. Signed-off-by: Simon Glass --- (no changes since v1) test/py/conftest.py | 41 - 1 file changed, 28 insertions(+), 13 dele

[PATCH v3 06/19] test: Avoid failing skipped tests

2024-06-23 Thread Simon Glass
When a test returns -EAGAIN this should not be considered a failure. Fix what seems to be a problem case, where the pytests see a failure when a test has merely been skipped. Signed-off-by: Simon Glass --- (no changes since v1) test/test-main.c | 16 +++- 1 file changed, 11 inserti

[PATCH v3 05/19] test: Allow connecting to a running board

2024-06-23 Thread Simon Glass
Sometimes we know that the board is already running the right software, so provide an option to allow running of tests directly, without first resetting the board. This saves time when re-running a test where only the Python code is changing. Signed-off-by: Simon Glass --- (no changes since v1)

[PATCH v3 04/19] test: Release board after tests complete

2024-06-23 Thread Simon Glass
When a board is finished with, the lab may want to power it off, or perform some other function. Add a new script which is called when tests are complete. Signed-off-by: Simon Glass --- (no changes since v1) test/py/u_boot_console_exec_attach.py | 10 ++ 1 file changed, 10 insertions(+

[PATCH v3 03/19] test: Pass stderr to stdout

2024-06-23 Thread Simon Glass
Some tests may output things to stderr. Ensure that this output is not dropped, by redirecting it to stdout Signed-off-by: Simon Glass --- (no changes since v1) test/py/u_boot_spawn.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/py/u_boot_spawn.py b/test/py/u_boot_spawn.py index

[PATCH v3 02/19] test: Use a constant for the test timeout

2024-06-23 Thread Simon Glass
Declare a constant rather than open-coding the same value twice. Signed-off-by: Simon Glass --- (no changes since v1) test/py/u_boot_console_base.py | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/py/u_boot_console_base.py b/test/py/u_boot_console_base.py index

[PATCH v3 01/19] test: Allow signaling that U-Boot is ready

2024-06-23 Thread Simon Glass
When Labgrid is used, it can get U-Boot ready for running tests. It prints a message when it has done so. Add logic to detect this message and accept it. Signed-off-by: Simon Glass --- (no changes since v1) test/py/u_boot_console_base.py | 9 + 1 file changed, 5 insertions(+), 4 delet

[PATCH v3 00/19] labgrid: Provide an integration with Labgrid

2024-06-23 Thread Simon Glass
Labgrid provides access to a hardware lab in an automated way. It is possible to boot U-Boot on boards in the lab without physically touching them. It relies on relays, USB UARTs and SD muxes, among other things. By way of background, about 4 years ago I wrong a thing called Labman[1] which allowe

[PATCH 14/14] smbios: Correct error handling when writing tables

2024-06-23 Thread Simon Glass
Since write_smbios_table() returns an address, we cannot use it to return and error number. Also, failing on sysinfo_detect() breaks existing boards, e.g. chromebook_link Correct this by logging and swallowing the error. Signed-off-by: Simon Glass Fixes: a5a57562856 ("lib: smbios: Detect system

[PATCH 13/14] Update u-boot.cfg to include CFG also

2024-06-23 Thread Simon Glass
Some configuration is now in variables with a CFG_ prefix. Add these to the .cfg file so that we can see everything in one place. Sort the options so they are easier to find and compare. Signed-off-by: Simon Glass --- Changes in v2: - Add new patch to update u-boot.cfg with CFG_... options scr

[PATCH 12/14] test: Check help output

2024-06-23 Thread Simon Glass
The current test doesn't check anything about the output. If a bug results in junk before the output, this is not currently detected. Add a check for the first line being the one expected. Signed-off-by: Simon Glass --- (no changes since v1) test/py/tests/test_help.py | 6 +- 1 file chang

[PATCH 11/14] test: Decode exceptions only with sandbox

2024-06-23 Thread Simon Glass
When a real board fails we don't want to decode the exception. Reserve that behaviour for sandbox. Also avoid raising a new exception on failure - just re-raise the existing one. Signed-off-by: Simon Glass --- (no changes since v1) test/py/u_boot_console_sandbox.py | 2 +- test/py/u_boot_spaw

[PATCH 10/14] test: dm: Show failing driver name

2024-06-23 Thread Simon Glass
When a driver is not registered properly it is not clear which one it is. Adjust test_dm_compat() to show this. Signed-off-by: Simon Glass --- (no changes since v1) test/py/tests/test_dm.py | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/py/tests/test_dm.py b/test/

[PATCH 09/14] log: Allow tests to pass with CONFIG_LOGF_FUNC_PAD set

2024-06-23 Thread Simon Glass
This setting pads out the function names. Adjust the test to handle this, since some boards use it. Signed-off-by: Simon Glass --- (no changes since v1) test/py/tests/test_log.py | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/test/py/tests/test_log.py b/test/py

[PATCH 08/14] test: Make bootstd init run only on sandbox

2024-06-23 Thread Simon Glass
Tests for standard boot need disks to be set up, which can only be done on sandbox, since adjusting disks on real hardware is not currently supported. Mark the init function as sandbox-only. Signed-off-by: Simon Glass --- (no changes since v1) test/py/tests/test_ut.py | 1 + 1 file changed, 1

[PATCH 07/14] meson: Correct driver declaration for meson_axg_gpio

2024-06-23 Thread Simon Glass
This should use the driver macros so that the driver appears in the linker list. Fix this. Fixes: 8587839f19d ("pinctrl: meson: add axg support") Reviewed-by: Neil Armstrong Signed-off-by: Simon Glass --- (no changes since v1) drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c | 2 +- drivers/pin

[PATCH 06/14] google: Disable TPMv2 on most Chromebooks

2024-06-23 Thread Simon Glass
This feature is not present on older Chromebooks, so disable the setting. Signed-off-by: Simon Glass Reviewed-by: Ilias Apalodimas --- (no changes since v1) configs/chromebook_link64_defconfig| 1 + configs/chromebook_link_defconfig | 1 + configs/chromebook_samus_defconfig | 1 +

[PATCH 05/14] sunxi: Mark scp as optional

2024-06-23 Thread Simon Glass
This binary does not prevent the system from booting. Mark it optional so that U-Boot can be built without it. Signed-off-by: Simon Glass --- (no changes since v1) arch/arm/dts/sunxi-u-boot.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/sunxi-u-boot.dtsi b/arch/arm/dts/s

[PATCH 04/14] am33xx: Provide a function to set up the debug UART

2024-06-23 Thread Simon Glass
Since commit 0dba45864b2a ("arm: Init the debug UART") the debug UART is set up in _main() before early_system_init() is called. Add a suitable board_debug_uart_init() function to set up the UART in SPL. Signed-off-by: Simon Glass --- (no changes since v1) arch/arm/mach-omap2/am33xx/board.c |

[PATCH 03/14] initcall: Correct use of relocation offset

2024-06-23 Thread Simon Glass
The relocation offset can change in some initcall sequences. Handle this and make sure it is used for all debugging statements in init_run_list() Update the trace test to match. Signed-off-by: Simon Glass Reviewed-by: Caleb Connolly --- (no changes since v1) lib/initcall.c | 6 +

[PATCH 02/14] dm: core: Enhance comments on bind_drivers_pass()

2024-06-23 Thread Simon Glass
This part of driver model is a little subtle, so add some more comments to promote better understanding. Signed-off-by: Simon Glass --- (no changes since v1) drivers/core/lists.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/core/lists.c b/drivers/core/lists.c i

[PATCH 01/14] trace: Update test to tolerate different trace-cmd version

2024-06-23 Thread Simon Glass
Some versions of trace-cmd (or some machines?) show one less dot in the CPU list. Signed-off-by: Simon Glass --- (no changes since v1) test/py/tests/test_trace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/py/tests/test_trace.py b/test/py/tests/test_trace.py index

[PATCH 00/14] testb: Various tweaks and fixes for Labgrid

2024-06-23 Thread Simon Glass
This series includes a number of mostly unrelated changes which are in service of running U-Boot on a lab using Labgrid. Changes in v2: - Add new patch to update u-boot.cfg with CFG_... options Simon Glass (14): trace: Update test to tolerate different trace-cmd version dm: core: Enhance comm

Re: [RFC] rockchip: add support for Radxa ROCK Pi E v3.0 which uses DDR4 SDRAM

2024-06-23 Thread Dragan Simic
+Cc: he...@sntech.de +Cc: k...@kernel.org Hello Peter and Fukaumi, On 2024-06-23 15:08, Peter Robinson wrote: On Sun, 23 Jun 2024 at 13:21, Dragan Simic wrote: On 2024-06-23 06:15, FUKAUMI Naoki wrote: > rk3328-rock-pi-e-v3.dts is identical to rk3328-rock-pi-e.dts in > upstream. only differen

[PATCH] ARM: imx: Enable SPL DTO application support for i.MX8MP DHCOM PDK2

2024-06-23 Thread Marek Vasut
Enable SPL DTO support to apply matching SoM specific DTOs to cater for the SoM differences in DH i.MX8MP DHCOM PDK2 configuration. This is already enabled in DH i.MX8MP DHCOM PDK3 configuration so align the two configurations. Fixes: ad1158c50e0e ("arm64: dts: imx8mp: Switch to DT overlays for i.

[PATCH v3 5/6] u_boot_pylib: Use correct coverage tool within venv

2024-06-23 Thread Simon Glass
When running within a Python venv we must use the 'coverage' tool (which is within the venv) so that the venv packages are used in preference to system packages. Otherwise the coverage tests run in a different environment from the normal tests and may fail due to missing packages. Handle this by d

[PATCH v3 6/6] CI: Run code-coverage test for Binman

2024-06-23 Thread Simon Glass
Binman includes a good set of tests covering all of its functionality. This includes a code-coverage test. However to date the code-coverage test has not been checked automatically by CI, relying on people to run 'binman test -T' themselves. Plug the gap to avoid bugs creeping in future. Signed-

[PATCH v3 4/6] buildman: Always use the full path in CROSS_COMPILE

2024-06-23 Thread Simon Glass
The feature to set the toolchain path does not seem to be needed. It causes problems with venv (see [1]). Let's remove it. Add some tests while we are here. It does not look like any docs changes are needed for this. [1] https://patchwork.ozlabs.org/project/uboot/patch/20240621131423.2363294-6-

[PATCH v3 3/6] buildman: Fix a few typos in toolchain code

2024-06-23 Thread Simon Glass
Fix 'Thie' and capitalise 'unicode'. Signed-off-by: Simon Glass Suggested-by: Heinrich Schuchardt --- (no changes since v2) Changes in v2: - Add new patch to fix a few typos in toolchain code tools/buildman/toolchain.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/

[PATCH v3 2/6] buildman: Add python3-pycryptodome

2024-06-23 Thread Simon Glass
This is used by some Binman entry types, so add it to allow more tests to pass. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- (no changes since v2) Changes in v2: - Add to buildman requirements instead tools/buildman/requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a

[PATCH v3 1/6] buildman: Add python3-coverage

2024-06-23 Thread Simon Glass
Add this package so we can run code-coverage tests for Binman. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- (no changes since v2) Changes in v2: - Add to buildman requirements instead tools/buildman/requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/buildman/r

[PATCH v3 0/6] Add Binman code-coverage test to CI

2024-06-23 Thread Simon Glass
Binman has 100% code coverage to ensure that future changes and refactors do not break existing entry types. This is a critical feature, given that it is relied on to produce images for all sorts of different SoCs and vendors. With the NXP additions the 'binman test -T' step was missed, so the Bin

[PATCH v2 14/14] buildman: Add a way to limit the number of buildmans

2024-06-23 Thread Simon Glass
Buildman uses all available CPUs by default, so running more than one or two concurrent processes is not normally useful. However in some CI cases we want to be able to run several jobs at once to save time. For example, in a lab situation we may want to run a test on 20 boards at a time, since on

[PATCH v2 13/14] buildman: Retry the build for current source

2024-06-23 Thread Simon Glass
Buildman retries a failed build when processing a branch, but does not do this when building current source. It is useful to do this retry in both cases, so add the logic for it. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/builderthread.py | 8 1 file changed,

[PATCH v2 12/14] buildman: Add a flag to force mrproper on failure

2024-06-23 Thread Simon Glass
When a file is removed by a commit (e.g. include/common.h yay!) it can cause incremental build failures since one of the dependency files from a previous build may mention the file. Add an option to run 'make mrproper' automatically when a build fails. This can be used to automatically resolve the

[PATCH v2 11/14] buildman: Avoid rebuilding when --mrproper is used

2024-06-23 Thread Simon Glass
When this flag is enabled, 'make mrproper' is always used when reconfiguring, so there is no point in doing it again. Update this. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/builderthread.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/bui

[PATCH v2 10/14] buildman: Make mrproper an argument to run_commit()

2024-06-23 Thread Simon Glass
Pass this in so the caller can change it independently of the member variable. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/builderthread.py | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/tools/buildman/builderthread.py b/tools/bu

[PATCH v2 09/14] buildman: Make mrproper an argument to _config_and_build()

2024-06-23 Thread Simon Glass
Pass this in so the caller can change it independently of the member variable. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/builderthread.py | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tools/buildman/builderthread.py b/tools/buildman/bu

[PATCH v2 08/14] buildman: Make mrproper an argument to _reconfigure()

2024-06-23 Thread Simon Glass
Pass this in so the caller can change it independently of the member variable. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/builderthread.py | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/buildman/builderthread.py b/tools/buildman/build

[PATCH v2 07/14] x86: Set up some assumed sizes for binary blobs

2024-06-23 Thread Simon Glass
Add assumed sizes so that Binman can check that the U-Boot binaries do not grow too large. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/dts/u-boot.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/x86/dts/u-boot.dtsi b/arch/x86/dts/u-boot.dtsi index e0de331809

[PATCH v2 06/14] binman: Make Intel ME default to position 0x1000

2024-06-23 Thread Simon Glass
This cannot ever go at offset 0 since the descriptor is there. Use a better offset for the ME, as used by link and coral, for example. This matters when we start using assumed sizes for missing blobs. Signed-off-by: Simon Glass --- (no changes since v1) tools/binman/etype/intel_descriptor.py

[PATCH v2 05/14] binman: Support an assumed size for missing binaries

2024-06-23 Thread Simon Glass
Binman has a the useful feature of handling missing external blobs gracefully, including allowing them to be missing, deciding whether the resulting image is functional or not and faking blobs when this is necessary for particular tools (e.g. mkimage). This feature is widely used in CI. One drawba

[PATCH v2 04/14] binman: Update the entrydocs header

2024-06-23 Thread Simon Glass
Reduce the length of the underline for this header, to match the heading itself. Signed-off-by: Simon Glass --- (no changes since v1) tools/binman/entry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/binman/entry.py b/tools/binman/entry.py index 42e0b7b9145..2ed65

[PATCH v2 03/14] binman: ti: Regenerate entry docs

2024-06-23 Thread Simon Glass
Correct formatting errors in the documentation. Regenerate the entries.rst file to include this recent addition. Signed-off-by: Simon Glass --- (no changes since v1) tools/binman/entries.rst| 35 + tools/binman/etype/ti_secure.py | 45 +-

[PATCH v2 02/14] binman: Regenerate nxp docs

2024-06-23 Thread Simon Glass
Regenerate the entries.rst file to include this recent addition. Note that more docs are needed here, to actually describe the entry type. Note also that the entry type needs Binman tests added. Signed-off-by: Simon Glass --- (no changes since v1) tools/binman/entries.rst | 22 ++

[PATCH v2 01/14] binman: efi: Correct entry docs

2024-06-23 Thread Simon Glass
Somehow the class documentation has got out of sync with the generated entries.rst file. Regenerating it causes errors, so correct these and regenerate the entries.rst file. Signed-off-by: Simon Glass Fixes: 809f28e7213 ("binman: capsule: Use dumped capsule header...") --- (no changes since v1)

[PATCH v2 00/14] Tools updates for Labgrid

2024-06-23 Thread Simon Glass
This series includes patches to update buildman to support Labgrid better and some minor binman fixes and improvements. Changes in v2: - Move the binman assume-size feature into this series Simon Glass (14): binman: efi: Correct entry docs binman: Regenerate nxp docs binman: ti: Regenerate

[PATCH v4 16/16] Drop the special am335x_boneblack_vboot target

2024-06-23 Thread Simon Glass
Now that am335x_evm boots OK on the Beaglebone black, drop the latter and update the docs to cover the change. Also add a few updates about 'make fit' and drop the note about the security review, as U-Boot's verified boot has had quite extensive review now. Signed-off-by: Simon Glass Reviewed-by

[PATCH v4 15/16] rockchip: bob: kevin: Disable dcache in SPL

2024-06-23 Thread Simon Glass
This causes a hang, so disable it. Unfortunately the RAM-size fix does not resolve the problem and I am unsure what is wrong. As soon as the cache is enabled the board appears to hang. Fixes: 6d8cdfd1536 ("rockchip: spl: Enable caches to speed up checksum validation") Signed-off-by: Simon Glass

[PATCH v4 14/16] rockchip: Avoid #ifdefs in RK3399 SPL

2024-06-23 Thread Simon Glass
The code here is confusing due to large blocks which are #ifdefed out. Add a function phase_sdram_init() which returns whether SDRAM init should happen in the current phase, using that as needed to control the code flow. This increases code size by about 500 bytes in SPL when the cache is on, sinc

[PATCH v4 13/16] rockchip: Ensure memory size is available in RK3399 SPL

2024-06-23 Thread Simon Glass
At present gd->ram_size is 0 in SPL, meaning that it is not possible to enable the cache. Correct this by always populating the RAM size correctly. This increases code size by about 500 bytes in SPL, since it must call the rather large rockchip_sdram_size() function. Signed-off-by: Simon Glass -

[PATCH v4 12/16] spl: Allow ATF to work when dcache is disabled

2024-06-23 Thread Simon Glass
The dcache may not be enabled in SPL. Add a check to avoid trying to use an undefined function. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- (no changes since v1) common/spl/spl_atf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/spl/spl_atf.c b/common/s

[PATCH v4 11/16] fdt: Correct condition for bloblist existing

2024-06-23 Thread Simon Glass
On some boards, the bloblist is created in SPL once SDRAM is ready. It cannot be accessed until that point, so is not available early in SPL. Add a condition to avoid a hang in this case. This fixes a hang in chromebook_coral Fixes: 70fe2385943 ("fdt: Allow the devicetree to come from a bloblist

[PATCH v4 10/16] power: regulator: Handle autoset in regulators_enable_boot_on()

2024-06-23 Thread Simon Glass
With a recent change, regulators_enable_boot_on() returns an error if a regulator is already set. Check for and handle this situation. Fixes: d99fb64a98a power: regulator: Only run autoset once for each regulator Reviewed-by: Jonas Karlman Reviewed-by: Quentin Schulz Signed-off-by: Simon Glass

[PATCH v4 09/16] rockchip: veyron: Add logging for power init

2024-06-23 Thread Simon Glass
Add better logging for power init so that CONFIG_LOG_ERROR_RETURN can be enabled. Signed-off-by: Simon Glass Reviewed-by: Quentin Schulz --- (no changes since v2) Changes in v2: - Remove the superfluous if() and drop the debug() as well board/google/veyron/veyron.c | 30 -

[PATCH v4 08/16] x86: Set a board-size limit for chromebook_link

2024-06-23 Thread Simon Glass
Set a size limit for this board so that we get a build error if it grows too much. Note that the limit is approximately, since it does not include the FDT, microcode and fdtmap, which can change in size. However this board is fairly stable, so overflowing this limit will likely result in the image

[PATCH v4 07/16] tpm: Avoid code bloat when not using EFI_TCG2_PROTOCOL

2024-06-23 Thread Simon Glass
It does not make sense to enable all SHA algorithms unless they are needed. It bloats the code and in this case, causes chromebook_link to fail to build. That board does use the TPM, but not with measured boot, nor EFI. Since EFI_TCG2_PROTOCOL already selects these options, we just need to add the

[PATCH v4 06/16] nvidia: nyan-big: Disable debug UART

2024-06-23 Thread Simon Glass
This cannot be enabled early in boot since some other init is needed. At this point it is unclear exactly what init is needed, so disable the debug UART to avoid a hang. Signed-off-by: Simon Glass --- (no changes since v1) configs/nyan-big_defconfig | 1 - 1 file changed, 1 deletion(-) diff -

[PATCH v4 05/16] binman: Keep the efi_capsule input file

2024-06-23 Thread Simon Glass
There is no need to remove input files. It makes it harder to diagnose failures. Keep the payload file. There is no test for this condition, but one could be added. Signed-off-by: Simon Glass Acked-by: Sughosh Ganu --- Changes in v4: - Drop Fixes tag tools/binman/etype/efi_capsule.py | 1 -

[PATCH v4 04/16] binman: Return failure when a usage() message is generated

2024-06-23 Thread Simon Glass
The tool must return an error code when invalid arguments are provided, otherwise binman has no way of knowing that anything went wrong. Correct this. Signed-off-by: Simon Glass Fixes: fab430be2f4 ("tools: add mkeficapsule command for UEFI...") --- (no changes since v1) tools/mkeficapsule.c |

[PATCH v4 03/16] binman: Deal with mkeficapsule being missing

2024-06-23 Thread Simon Glass
Tools cannot be assumed to be present. Add a check for this with the mkeficpasule tool. Signed-off-by: Simon Glass Fixes: b617611b27a ("binman: capsule: Add support for generating...") --- (no changes since v1) tools/binman/etype/efi_capsule.py | 4 1 file changed, 4 insertions(+) diff -

[PATCH v4 02/16] binman: Collect the version number for mkeficapsule

2024-06-23 Thread Simon Glass
Now that this tool has a version number, collect it. Signed-off-by: Simon Glass --- (no changes since v1) tools/binman/btool/mkeficapsule.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/binman/btool/mkeficapsule.py b/tools/binman/btool/mkeficapsule.py index ef1d

[PATCH v4 01/16] mkeficapsule: Add a --version argument

2024-06-23 Thread Simon Glass
Tools should have an option to obtain the version, so add this to the mkeficapsule tool. Signed-off-by: Simon Glass --- (no changes since v1) doc/mkeficapsule.1 | 4 tools/mkeficapsule.c | 8 +++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/doc/mkeficapsule.1 b/do

[PATCH v4 00/16] Bug-fixes for a few boards

2024-06-23 Thread Simon Glass
This series includes fixes to get some rockchip and nvidia boards working again. It also drops the broken Beaglebone Black config and provides a devicetree fix for coral (x86). Note that since this series fixes bugs, it is targeted at -master Changes in v4: - Drop Fixes tag - Add new patch to set

[PATCH] Fix Kconfig coding style from spaces to tab

2024-06-23 Thread Anand Moon
Adjust indentation from spaces to tab (+optional two spaces) as in coding style with command like: $ sed -e 's/^/\t/' -i */Kconfig Signed-off-by: Anand Moon --- boot/Kconfig | 8 cmd/Kconfig | 20 ++-- disk/Kconfig | 2 +- lib/Kconfig | 2 +- net/Kco

Re: [RFC] rockchip: add support for Radxa ROCK Pi E v3.0 which uses DDR4 SDRAM

2024-06-23 Thread Jonas Karlman
On 2024-06-23 06:15, FUKAUMI Naoki wrote: > rk3328-rock-pi-e-v3.dts is identical to rk3328-rock-pi-e.dts in > upstream. only difference between v3.0 and prior ver. is, using > rk3328-sdram-ddr4-666.dtsi instead of rk3328-sdram-ddr3-666.dtsi. > > here is console output from ROCK Pi E v3.0: > > ```

Re: [RFC] rockchip: add support for Radxa ROCK Pi E v3.0 which uses DDR4 SDRAM

2024-06-23 Thread Peter Robinson
On Sun, 23 Jun 2024 at 13:21, Dragan Simic wrote: > > Hello Fukaumi, > > On 2024-06-23 06:15, FUKAUMI Naoki wrote: > > rk3328-rock-pi-e-v3.dts is identical to rk3328-rock-pi-e.dts in > > upstream. only difference between v3.0 and prior ver. is, using > > rk3328-sdram-ddr4-666.dtsi instead of rk332

Re: [RFC] rockchip: add support for Radxa ROCK Pi E v3.0 which uses DDR4 SDRAM

2024-06-23 Thread Dragan Simic
Hello Fukaumi, On 2024-06-23 06:15, FUKAUMI Naoki wrote: rk3328-rock-pi-e-v3.dts is identical to rk3328-rock-pi-e.dts in upstream. only difference between v3.0 and prior ver. is, using rk3328-sdram-ddr4-666.dtsi instead of rk3328-sdram-ddr3-666.dtsi. I think you'll need to get the device tree

[PATCH v2 8/8] tpm: allow the user to select the compiled algorithms

2024-06-23 Thread Ilias Apalodimas
Simon reports that after enabling all algorithms on the TPM some boards fail since they don't have enough storage to accommodate the ~5KB growth. The choice of hash algorithms is determined by the platform and the TPM configuration. Failing to cap a PCR in a bank which the platform left active is

[PATCH v2 7/8] tpm: Untangle tpm2_get_pcr_info()

2024-06-23 Thread Ilias Apalodimas
This function was used on measured boot to retrieve the number of active PCR banks and was designed to work with the TCG protocols. Since we now have the need to retrieve the active PCRs outside the measured boot context -- e.g use the in the command line, decouple the function. Create one that wi

[PATCH v2 6/8] efi_loader: remove unneeded header files

2024-06-23 Thread Ilias Apalodimas
efi_tcg2.h already includes tpm-v2.h. Remove it Reviewed-by: Heinrich Schuchardt Signed-off-by: Ilias Apalodimas --- lib/efi_loader/efi_tcg2.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/efi_loader/efi_tcg2.c b/lib/efi_loader/efi_tcg2.c index b4915cab6be7..19fe4720ef48 100644 --- a/l

[PATCH v2 5/8] tpm: Move TCG functions into a separate file

2024-06-23 Thread Ilias Apalodimas
The previous patch is moving the TPM TCG headers in their own file for a cleaner API. Move the functions in their own file as well. Signed-off-by: Ilias Apalodimas --- include/tpm-v2.h | 190 - include/tpm_tcg2.h | 189 lib/Makefile | 2 + lib/tpm-v2.c |

[PATCH v2 4/8] tpm: Move TCG headers into a separate file

2024-06-23 Thread Ilias Apalodimas
commit 97707f12fdab ("tpm: Support boot measurements") moved out code from the EFI subsystem into the TPM one to support measurements when booting with !EFI. Those were moved directly into the TPM subsystem and in the tpm-v2.c library. In hindsight, it would have been better to move it in new file

[PATCH v2 3/8] efi_loader: remove unused TCG algo definitions

2024-06-23 Thread Ilias Apalodimas
commit 97707f12fdab ("tpm: Support boot measurements") moved some of the EFI TCG code to the TPM subsystem. Those definitions are now in tpm-v2.h. Let's remove the stale entries Reviewed-by: Heinrich Schuchardt Signed-off-by: Ilias Apalodimas --- include/efi_tcg2.h | 8 1 file changed,

  1   2   >