Re: [PATCH v2 3/3] trace: Fix alignment logic in flyrecord header

2023-10-24 Thread Tom Rini
On Tue, Oct 24, 2023 at 02:33:26PM +0200, Michal Simek wrote: > Hi Tom, > > On 9/25/23 16:33, Tom Rini wrote: > > On Mon, Sep 25, 2023 at 04:21:17PM +0200, Michal Simek wrote: > > > > > > > > > On 9/25/23 16:19, Tom Rini wrote: > > > > On Mon, Sep 25, 2023 at 04:10:38PM +0200, Michal Simek

Re: [PATCH v3 1/1] sandbox: eliminate unused functions from binaries

2023-10-24 Thread Tom Rini
On Tue, Oct 24, 2023 at 08:30:47AM +0200, Heinrich Schuchardt wrote: > The sandbox should closely mimic other architectures. > > Place each function or data in a separate section and let the linker > eliminate unused ones. This will reduce the binary size. > > In the linker script mark that

Re: Pull request: please pull u-boot-imx-20231024

2023-10-24 Thread Tom Rini
u-boot-sh (2023-10-17 09:15:56 > -0400) > > are available in the Git repository at: > > https://gitlab.denx.de/u-boot/custodians/u-boot-imx.git > tags/u-boot-imx-20231024 > > for you to fetch changes up to 2f96064d0cf78e21a668ad907d41d63e56f9f7bb: > > arm64: dt

Re: [PATCH v4 1/1] efi_loader: expose the device-tree file name

2023-10-24 Thread Tom Rini
On Tue, Oct 24, 2023 at 08:20:32AM +0200, Heinrich Schuchardt wrote: > Forward and backward compatibility of Linux kernel device-trees is > sometimes missing. One solution approach is to load a kernel specific > device-tree. This can either be done via a U-Boot scripts (like the one > generated

Re: Pull request: u-boot-rockchip-20231024

2023-10-24 Thread Tom Rini
t/custodians/u-boot-marvell (2023-10-20 > 12:54:33 -0400) > > are available in the Git repository at: > > https://source.denx.de/u-boot/custodians/u-boot-rockchip.git > tags/u-boot-rockchip-20231024 > > for you to fetch changes up to d039b1b551e8dbb2c309d35bb19b7866caa4d

Re: [PATCH] arm: init: add an option to use FDT from previous bootloader

2023-10-24 Thread Simon Glass
Hi Caleb, On Tue, 24 Oct 2023 at 11:10, Caleb Connolly wrote: > > > > On 24/10/2023 19:03, Simon Glass wrote: > > Hi Caleb, > > > > On Tue, 24 Oct 2023 at 04:32, Caleb Connolly > > wrote: > >> > >> Add a new config option to allow u-boot to reuse the FDT provided by the > > > > U-Boot (please

Re: [PATCH v4 2/3] dt-bindings: mtd: binman-partition: Add binman compatibles

2023-10-24 Thread Simon Glass
Hi Rob, On Tue, 24 Oct 2023 at 09:16, Rob Herring wrote: > > On Mon, Oct 09, 2023 at 04:04:14PM -0600, Simon Glass wrote: > > Add two compatible for binman entries, as a starting point for the > > schema. > > > > Note that, after discussion on v2, we decided to keep the existing > > meaning of

[PATCH v5 3/3] dt-bindings: mtd: binman-partitions: Add alignment properties

2023-10-24 Thread Simon Glass
Add three properties for controlling alignment of partitions, aka 'entries' in binman. For now there is no explicit mention of hierarchy, so a 'section' is just the 'binman' node. These new properties are inputs to the packaging process, but are also needed if the firmware is repacked, to ensure

[PATCH v5 1/3] dt-bindings: mtd: partitions: Add binman compatible

2023-10-24 Thread Simon Glass
Add a compatible string for binman, so we can extend fixed-partitions in various ways. Signed-off-by: Simon Glass --- Changes in v5: - Add #address/size-cells and parternProperties - Drop $ref to fixed-partitions.yaml - Drop 'select: false' Changes in v4: - Change subject line Changes in v3:

[PATCH v5 2/3] dt-bindings: mtd: binman-partition: Add binman compatibles

2023-10-24 Thread Simon Glass
Add two compatible for binman entries, as a starting point for the schema. Note that, after discussion on v2, we decided to keep the existing meaning of label so as not to require changes to existing userspace software when moving to use binman nodes to specify the firmware layout.

Re: [v4.1 2/2] CI, pytest: Add a test for sandbox without LTO

2023-10-24 Thread Simon Glass
Hi Tom, On Tue, 24 Oct 2023 at 11:07, Tom Rini wrote: > > On Tue, Oct 24, 2023 at 11:02:06AM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Mon, 23 Oct 2023 at 10:28, Tom Rini wrote: > > > > > > On Mon, Oct 23, 2023 at 10:13:52AM -0700, Simon Glass wrote: > > > > > > [snip] > > > > BTW

Re: [v4.1 2/2] CI, pytest: Add a test for sandbox without LTO

2023-10-24 Thread Simon Glass
Hi Tom, On Mon, 23 Oct 2023 at 10:28, Tom Rini wrote: > > On Mon, Oct 23, 2023 at 10:13:52AM -0700, Simon Glass wrote: > > [snip] > > BTW buildman supports -L which disabled LTO using the NO_LTO=1 option > > I worry about putting sandbox-specific flags in buildman. Outside of > sandbox, targets

Re: [PATCH v3 22/32] efi: Update EFI_LOADER to depend on DM_ETH

2023-10-24 Thread Simon Glass
Hi Tom, On Mon, 23 Oct 2023 at 10:45, Tom Rini wrote: > > On Mon, Oct 23, 2023 at 10:13:54AM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Mon, 23 Oct 2023 at 06:16, Tom Rini wrote: > > > > > > On Mon, Oct 23, 2023 at 12:05:28AM -0700, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On

Re: [PATCH v4 1/1] efi_loader: expose the device-tree file name

2023-10-24 Thread Simon Glass
Hi Heinrich, On Mon, 23 Oct 2023 at 23:20, Heinrich Schuchardt wrote: > > Forward and backward compatibility of Linux kernel device-trees is > sometimes missing. One solution approach is to load a kernel specific > device-tree. This can either be done via a U-Boot scripts (like the one >

Re: [PATCH v3 1/1] sandbox: eliminate unused functions from binaries

2023-10-24 Thread Simon Glass
Hi Heinrich, On Mon, 23 Oct 2023 at 23:31, Heinrich Schuchardt wrote: > > The sandbox should closely mimic other architectures. > > Place each function or data in a separate section and let the linker > eliminate unused ones. This will reduce the binary size. > > In the linker script mark that

Re: [PATCH] doc: usage: fix ordering of shell commands

2023-10-24 Thread Simon Glass
On Tue, 24 Oct 2023 at 05:03, Tom Fitzhenry wrote: > > I initially didn't find the bootz docs when I went looking for them. :) > --- > doc/usage/index.rst | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > Reviewed-by: Simon Glass

[PATCH 0/2] bootstd: Fix a few minor bugs

2023-10-24 Thread Simon Glass
This series fixes a few bugs noticed recently: - handling of certain command-line updates with 'bootflow cmdline' - support for 'bootflow read' in ChromeOS Simon Glass (2): bootstd: Handle a few special cases in cmdline_set_arg() bootstd: cros: Correct condition for read method

[PATCH 1/2] bootstd: Handle a few special cases in cmdline_set_arg()

2023-10-24 Thread Simon Glass
Two bugs have appeared: - arguments can have an equals sign embedded in them, which must be considered part of the value - arguments must fully match the name; partial matches should be ignored Fix these and add a test to cover both. Signed-off-by: Simon Glass --- boot/bootflow.c |

[PATCH 2/2] bootstd: cros: Correct condition for read method

2023-10-24 Thread Simon Glass
This has a typo which makes the method inoperable. Correct it so that 'bootflow read' works correctly for ChromeOS. Signed-off-by: Simon Glass --- boot/bootmeth_cros.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/boot/bootmeth_cros.c b/boot/bootmeth_cros.c index

Re: [PATCH v8 3/8] power: pmic: add the base MAX77663 PMIC support

2023-10-24 Thread Tom Rini
On Tue, Oct 24, 2023 at 10:41:05AM +0300, Svyatoslav Ryhel wrote: > Add support to bind the regulators/child nodes with the pmic. > Also adds the pmic i2c based read/write functions to access pmic > registers. > > Signed-off-by: Svyatoslav Ryhel > Reviewed-by: Simon Glass [snip] > diff --git

Re: [PATCH v4 1/1] efi_loader: expose the device-tree file name

2023-10-24 Thread Ilias Apalodimas
On Tue, 24 Oct 2023 at 09:20, Heinrich Schuchardt wrote: > > Forward and backward compatibility of Linux kernel device-trees is > sometimes missing. One solution approach is to load a kernel specific > device-tree. This can either be done via a U-Boot scripts (like the one > generated by Debian

[PATCH 1/8] clk/qcom: move from mach-snapdragon

2023-10-24 Thread Caleb Connolly
Clock drivers don't belong here, move them to the right place and declutter mach-snapdragon a bit. Signed-off-by: Caleb Connolly --- arch/arm/mach-snapdragon/Makefile| 5 - drivers/clk/Makefile | 1 +

[PATCH 0/8] arm: mach-snapdragon: Qualcomm clock driver cleanup

2023-10-24 Thread Caleb Connolly
This series begins making some headway towards cleaning up Qualcomm platform support in u-boot. The following is a rough overview of the changes: * Move the Qualcomm clock drivers out of mach-snapdragon and into clk/qcom * Introduce per-platform clock driver configs to decouple Qualcomm platform

[PATCH 3/8] clk/qcom: move ipq4019 driver from mach-ipq40xx

2023-10-24 Thread Caleb Connolly
This driver is just a stub, but it's necessary to support the upcoming reset driver changes. Signed-off-by: Caleb Connolly --- arch/arm/Kconfig | 1 + arch/arm/mach-ipq40xx/Makefile | 1 - drivers/clk/qcom/Kconfig

Re: [PATCH v2 1/1] sandbox: eliminate unused functions from binaries

2023-10-24 Thread Simon Glass
Hi, On Mon, 23 Oct 2023 at 10:24, Tom Rini wrote: > > On Mon, Oct 23, 2023 at 10:13:55AM -0700, Simon Glass wrote: > > Hi, > > > > On Mon, 23 Oct 2023 at 10:03, Tom Rini wrote: > > > > > > On Mon, Oct 23, 2023 at 01:37:27AM +0200, Heinrich Schuchardt wrote: > > > > The sandbox should closely

Re: [PATCH v4 1/2] binman: openssl: x509: ti_secure_rom: Add support for bootcore_opts

2023-10-24 Thread Simon Glass
On Mon, 23 Oct 2023 at 01:01, Neha Malcom Francis wrote: > > According to the TRMs of K3 platform of devices, the ROM boot image > format specifies a "Core Options Field" that provides the capability to > set the boot core in lockstep when set to 0 or to split mode when set > to 2. Add support

Re: [PATCH] arm: init: add an option to use FDT from previous bootloader

2023-10-24 Thread Simon Glass
Hi Caleb, On Tue, 24 Oct 2023 at 04:32, Caleb Connolly wrote: > > Add a new config option to allow u-boot to reuse the FDT provided by the U-Boot (please fix throughout) > previous stage bootloader when available. > > On some boards the previous stage bootloader can populate >

Re: [PATCH] doc: gpt: fix example of echoing variable

2023-10-24 Thread Simon Glass
On Tue, 24 Oct 2023 at 05:00, Tom Fitzhenry wrote: > > --- > doc/usage/cmd/gpt.rst | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Simon Glass It could use 'print' instead, I suppose. > diff --git a/doc/usage/cmd/gpt.rst b/doc/usage/cmd/gpt.rst > index

Re: [PATCH 1/1] mkimage: do not write incorrect error message

2023-10-24 Thread Simon Glass
On Tue, 24 Oct 2023 at 00:19, Heinrich Schuchardt wrote: > > When running 'mkimage -l' is called for a valid StarFive file an error > message "Error: invalid marker bytes" is written by the Renesas SPKG > driver. > > mkimage -l may be invoked without specifying an image type. In this case >

Re: quick question about TPM

2023-10-24 Thread Simon Glass
Hi Niek, On Tue, 24 Oct 2023 at 04:51, niek.nooij...@omron.com wrote: > > Hi > > Just a quick question. I'm developing a platform using the > socfpga_cyclone5_defconfig > everything is working, linux boots, but we decided to add a TPM to it's SPI > bus. > For some reason the TPM support menu

[PATCH 5/8] clk/qcom: sdm845: add register map for simple gate clocks

2023-10-24 Thread Caleb Connolly
Many gate clocks can be enabled with a single register write, add support for defining these simple gate clocks and add the ones found on SDM845. While we're here, inline clk_init_uart() into msm_set_rate(). Signed-off-by: Caleb Connolly --- .../mach-snapdragon/include/mach/sysmap-sdm845.h |

[PATCH 4/8] clk/qcom: handle resets and clocks in one device

2023-10-24 Thread Caleb Connolly
From: Konrad Dybcio Qualcomm's clock controller blocks are actually do much more than it says on the tin.. They provide clocks, resets and power domains. Currently, U-Boot required one to spawn 2 separate devices for controlling clocks and resets, both spanning the same register space. Refactor

[PATCH 7/8] clk/qcom: add mnd_width to clk_rcg_set_rate_mnd()

2023-10-24 Thread Caleb Connolly
This property is needed on some platforms to ensure that only the relevant bits are set in the M/N/D registers. Signed-off-by: Caleb Connolly --- drivers/clk/qcom/clock-apq8016.c | 4 ++-- drivers/clk/qcom/clock-apq8096.c | 4 ++-- drivers/clk/qcom/clock-qcom.c| 11 +++

[PATCH 6/8] clk/qcom: use function pointers for enable and set_rate

2023-10-24 Thread Caleb Connolly
Currently, it isn't possible to build clock drivers for more than one platform due to how the msm_enable() and msm_set_rate() callbacks are implemented. Extend qcom_cc_data to include function pointers for these and convert all platforms to use them. Previously, clock drivers relied on common.h

[PATCH 2/8] clk/qcom: add per-platform configs

2023-10-24 Thread Caleb Connolly
Decouple the clock drivers from the mach-snapdragon TARGET configs by introducing CONFIG_CLK_QCOM and associated options to build each SoC. This will make future cleanup easier as we move towards a generic Qualcomm target. Signed-off-by: Caleb Connolly --- arch/arm/mach-snapdragon/Kconfig | 4

[PATCH v2] arm: init: add an option to use FDT from previous bootloader

2023-10-24 Thread Caleb Connolly
and avoid introducing board specific code where possible, but I'm happy to rework this into mach-snapdragon if that's preferred. --- Changes in v2: - Replace pre-processor conditional with runtime IS_ENABLED() - Link to v1: https://lore.kernel.org/r/20231024-b4-prevbl-fdt-v1-1-541f71dba...@linaro.org

Re: [v4.1 2/2] CI, pytest: Add a test for sandbox without LTO

2023-10-24 Thread Tom Rini
On Tue, Oct 24, 2023 at 11:02:06AM -0700, Simon Glass wrote: > Hi Tom, > > On Mon, 23 Oct 2023 at 10:28, Tom Rini wrote: > > > > On Mon, Oct 23, 2023 at 10:13:52AM -0700, Simon Glass wrote: > > > > [snip] > > > BTW buildman supports -L which disabled LTO using the NO_LTO=1 option > > > > I worry

Re: [PATCH] arm: init: add an option to use FDT from previous bootloader

2023-10-24 Thread Tom Rini
On Tue, Oct 24, 2023 at 08:52:22PM +0100, Caleb Connolly wrote: > > > On 24/10/2023 20:25, Tom Rini wrote: > > On Tue, Oct 24, 2023 at 12:32:35PM +0100, Caleb Connolly wrote: > > > >> Add a new config option to allow u-boot to reuse the FDT provided by the > >> previous stage bootloader when

[PATCH 8/8] clk/qcom: fix rcg divider value

2023-10-24 Thread Caleb Connolly
The RCG divider field takes a value of (2*h - 1) where h is the divisor. This allows fractional dividers to be supported by calculating them at compile time using a macro. However, the clk_rcg_set_rate_mnd() function was also performing the calculation. Clean this all up and consistently use the

Re: [tom.r...@gmail.com: Fwd: New Defects reported by Coverity Scan for Das U-Boot]

2023-10-24 Thread Tom Rini
On Tue, Oct 24, 2023 at 08:35:58PM +0530, Sughosh Ganu wrote: > hi Tom, > > On Tue, 24 Oct 2023 at 06:48, Tom Rini wrote: > > > > Here's the latest report > > > > -- Forwarded message - > > From: > > Date: Mon, Oct 23, 2023 at 4:40 PM > > Subject: New Defects reported by

Re: [PATCH 1/1] tools: mkimage: fix sfspl_image_extract_subimage()

2023-10-24 Thread Simon Glass
On Tue, 24 Oct 2023 at 00:26, Heinrich Schuchardt wrote: > > Do not leak file descriptor if writing fails. > Correct the error text if opening a file fails. > > Addresses-Coverity-ID: 467054 Resource leaks > Fixes: 64fd30d367a1 ("tools: mkimage: Add StarFive SPL image support") > Signed-off-by:

Re: [PATCH v4 2/2] DONOTMERGE: arm: dts: k3-j7200-binman: Enable split mode for MCU R5

2023-10-24 Thread Simon Glass
On Mon, 23 Oct 2023 at 01:01, Neha Malcom Francis wrote: > > Set boot core-opts to enable split mode for MCU R5 cluster by default. > This patch serves to demonstrate how this can be done. > > Signed-off-by: Neha Malcom Francis > --- > No change since v2 > > arch/arm/dts/k3-j7200-binman.dtsi |

Re: [PATCH] arm: init: add an option to use FDT from previous bootloader

2023-10-24 Thread Caleb Connolly
On 24/10/2023 19:03, Simon Glass wrote: > Hi Caleb, > > On Tue, 24 Oct 2023 at 04:32, Caleb Connolly > wrote: >> >> Add a new config option to allow u-boot to reuse the FDT provided by the > > U-Boot (please fix throughout) Will do! > >> previous stage bootloader when available. >> >> On

Re: [PATCH] arm: init: add an option to use FDT from previous bootloader

2023-10-24 Thread Tom Rini
On Tue, Oct 24, 2023 at 12:32:35PM +0100, Caleb Connolly wrote: > Add a new config option to allow u-boot to reuse the FDT provided by the > previous stage bootloader when available. > > On some boards the previous stage bootloader can populate > platform-specific parts of the devicetree such as

Re: [PATCH v4 1/1] efi_loader: expose the device-tree file name

2023-10-24 Thread Ilias Apalodimas
On Tue, 24 Oct 2023 at 09:20, Heinrich Schuchardt wrote: > > Forward and backward compatibility of Linux kernel device-trees is > sometimes missing. One solution approach is to load a kernel specific > device-tree. This can either be done via a U-Boot scripts (like the one > generated by Debian

Re: [PATCH v2] arm: init: add an option to use FDT from previous bootloader

2023-10-24 Thread Tom Rini
On Tue, Oct 24, 2023 at 06:38:43PM +0100, Caleb Connolly wrote: > Add a new config option to allow u-boot to reuse the FDT provided by the > previous stage bootloader when available. > > On some boards the previous stage bootloader can populate > platform-specific parts of the devicetree such as

Re: [PATCH] arm: init: add an option to use FDT from previous bootloader

2023-10-24 Thread Caleb Connolly
On 24/10/2023 20:25, Tom Rini wrote: > On Tue, Oct 24, 2023 at 12:32:35PM +0100, Caleb Connolly wrote: > >> Add a new config option to allow u-boot to reuse the FDT provided by the >> previous stage bootloader when available. >> >> On some boards the previous stage bootloader can populate >>

Re: [PATCH] smbios: arm64: Allow table to be written at a fixed addr

2023-10-24 Thread Tom Rini
On Mon, Oct 23, 2023 at 05:31:19PM +0200, Mark Kettenis wrote: > > From: Simon Glass > > Date: Mon, 23 Oct 2023 00:04:14 -0700 > > > > Hi Caleb, > > > > On Sat, 21 Oct 2023 at 01:43, Caleb Connolly > > wrote: > > > > > > Hi Simon, > > > > > > On 21/10/2023 01:45, Simon Glass wrote: > > > >

[PATCH v2 0/2] ARM: amlogic: Add A1 SPIFC support

2023-10-24 Thread Igor Prusov
A1 family boards have new version of SPIFC controller, that is incompatible with meson_spifc driver. This series ports A1 SPIFC driver from Linux and enables it for ad401 board. Changes in V2: - more details in Kconfig help message - removed unused field of struct amlogic_spifc_a1 - add missed

[PATCH v2 1/2] spi: add support for Amlogic A1 SPI Flash Controller

2023-10-24 Thread Igor Prusov
From: Igor Prusov Add A1 SPIFC driver from Linux. Slightly modified to use u-boot driver framework and accommodate to lack of ioread32_rep/iowrite32_rep. Based on Linux version 6.6-rc4 Signed-off-by: Igor Prusov Signed-off-by: Martin Kurbanov Reviewed-by: Simon Glass ---

[PATCH v2 2/2] ARM: amlogic: ad401: enable SPIFC

2023-10-24 Thread Igor Prusov
Enable Amlogic A1 SPI FLash Controller support. Signed-off-by: Igor Prusov Reviewed-by: Neil Armstrong --- configs/ad401_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/ad401_defconfig b/configs/ad401_defconfig index b9aca3ab0d..b44b9c63e8 100644 ---

Re: [PATCH v2 1/2] checkpatch.pl: Make common.h check boarder

2023-10-24 Thread Tom Rini
On Fri, Oct 13, 2023 at 09:28:32AM -0700, Simon Glass wrote: > From: Tom Rini > > At this point in time we should not add common.h to any new files, so > make checkpatch.pl complain. > > Signed-off-by: Tom Rini > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom

Re: [PATCH 7/7] riscv: Remove common.h usage

2023-10-24 Thread Tom Rini
On Thu, Oct 12, 2023 at 07:03:59PM -0400, Tom Rini wrote: > We can remove common.h from most cases of the code here, and only a few > places need an additional header instead. > > Signed-off-by: Tom Rini > Reviewed-by: Rick Chen Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [PATCH 5/7] microblaze: Remove common.h usage

2023-10-24 Thread Tom Rini
On Thu, Oct 12, 2023 at 07:03:57PM -0400, Tom Rini wrote: > We can remove common.h from most cases of the code here, and only a few > places need an additional header instead. > > Signed-off-by: Tom Rini > Acked-by: Michal Simek Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [PATCH v2 2/2] patman: Add a little documentation on the checkpatch tests

2023-10-24 Thread Tom Rini
On Fri, Oct 13, 2023 at 09:28:33AM -0700, Simon Glass wrote: > These texts lack comments. Add some so that it is clearer what is going > on. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

[PATCH v2] smbios: arm64: Allow table to be written at a fixed addr

2023-10-24 Thread Simon Glass
U-Boot typically sets up its malloc() pool near the top of memory. On ARM64 systems this can result in an SMBIOS table above 4GB which is not supported by SMBIOSv2. Work around this problem by providing a new option to choose an address below 4GB (but as high as possible), if needed.

Re: [PATCH] smbios: arm64: Allow table to be written at a fixed addr

2023-10-24 Thread Tom Rini
On Wed, Oct 25, 2023 at 02:19:59AM +0200, Heinrich Schuchardt wrote: > > > Am 25. Oktober 2023 01:28:10 MESZ schrieb Simon Glass : > >Hi Tom, > > > >On Tue, 24 Oct 2023 at 15:34, Tom Rini wrote: > >> > >> On Mon, Oct 23, 2023 at 05:31:19PM +0200, Mark Kettenis wrote: > >> > > From: Simon Glass

Re: [PATCH v2] smbios: arm64: Allow table to be written at a fixed addr

2023-10-24 Thread Heinrich Schuchardt
Am 25. Oktober 2023 01:31:19 MESZ schrieb Simon Glass : >U-Boot typically sets up its malloc() pool near the top of memory. On >ARM64 systems this can result in an SMBIOS table above 4GB which is >not supported by SMBIOSv2. > >Work around this problem by providing a new option to choose an

Re: [PATCH v5 14/16] cmd: add scmi command for SCMI firmware

2023-10-24 Thread AKASHI Takahiro
Hi Tom, Michal, On Tue, Oct 24, 2023 at 06:24:07PM -0400, Tom Rini wrote: > On Tue, Oct 24, 2023 at 10:27:44AM +0200, Michal Simek wrote: > > Hi Takahiro, > > > > ?t 26. 9. 2023 v 9:00 odes?latel AKASHI Takahiro > > napsal: > > > > > > This command, "scmi", may provide a command line interface

Pull request efi-2024-01-rc2

2023-10-24 Thread Heinrich Schuchardt
Dear Tom, The following changes since commit 5cab3515f8c9796015739c1750b8933291c816be: Merge tag 'u-boot-rockchip-20231024' of https://source.denx.de/u-boot/custodians/u-boot-rockchip (2023-10-24 09:39:52 -0400) are available in the Git repository at: https://source.denx.de/u-boot

Re: [PATCH v4 4/4] sunxi: psci: implement PSCI on R528

2023-10-24 Thread Andre Przywara
On Sun, 22 Oct 2023 01:49:49 +0100 Andre Przywara wrote: > On Wed, 11 Oct 2023 19:47:56 -0600 > Sam Edwards wrote: > > > This patch adds the necessary code to make nonsec booting and PSCI > > secondary core management functional on the R528/T113. > > > > Signed-off-by: Sam Edwards > >

Re: [PATCH 1/4] spl: atf: Improve comments and code readability

2023-10-24 Thread Tom Rini
On Sat, Sep 16, 2023 at 10:23:01AM +0200, Massimo Pegorer wrote: > Rename bl31_entry static function to avoid name clash with its first > argument. Fix spaces misuse. Describe code accurately: load address > is used if getting entry point address fails, and not if addresses > differ. Remove not

Re: [PATCH 4/7] m68k: Remove common.h usage

2023-10-24 Thread Tom Rini
On Thu, Oct 12, 2023 at 07:03:56PM -0400, Tom Rini wrote: > We can remove common.h from most cases of the code here, and only a few > places need an additional header instead. > > Signed-off-by: Tom Rini > Acked-by: Angelo Dureghello Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [PATCH] misc: i2c_eeprom: consider pagesize when writing to eeprom

2023-10-24 Thread Tom Rini
On Thu, Sep 21, 2023 at 12:29:45PM +, Michel Alex wrote: > Calculate the maximum length of the buffer when writing > accross the page boundary. If the buffer length exceeds > the page boundary, split it. Use this length instead of > comparing the length with the pagesize, because the write >

Re: [PATCH 2/7] include: Add in a few places

2023-10-24 Thread Tom Rini
On Thu, Oct 12, 2023 at 07:03:54PM -0400, Tom Rini wrote: > These files references a number of types that are defined in > (and so forth), so include it here rather than rely on > indirect inclusion. > > Signed-off-by: Tom Rini > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! --

Re: [PATCH v2 2/2] serial: introduce CONFIG_CONSOLE_FLUSH_ON_NEWLINE

2023-10-24 Thread Tom Rini
On Mon, Oct 16, 2023 at 10:35:22AM +0200, Rasmus Villemoes wrote: > When debugging, one sometimes only gets partial output lines or > nothing at all from the last printf, because the uart has a largish > buffer, and the code after the printf() may cause the CPU to hang > before the uart IP has

[PATCH] arm: kirkwood: Enable bootstd for Pogo V4 board

2023-10-24 Thread Tony Dinh
Enable bootstd for Pogo V4 board, and remove distroboot. Signed-off-by: Tony Dinh --- configs/pogo_v4_defconfig | 3 ++- include/configs/pogo_v4.h | 35 ++- 2 files changed, 4 insertions(+), 34 deletions(-) diff --git a/configs/pogo_v4_defconfig

Re: [PATCH v2 4/4] test: dm: add SCMI power domain protocol test

2023-10-24 Thread Tom Rini
On Mon, Oct 16, 2023 at 02:39:46PM +0900, AKASHI Takahiro wrote: > This ut has tests for the SCMI power domain protocol as well as DM > interfaces for power domain devices. > > Signed-off-by: AKASHI Takahiro > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [PATCH] .gitignore: ignore misc include, simple-bin, and tools/generated build artifacts

2023-10-24 Thread Tom Rini
On Fri, Oct 13, 2023 at 01:26:16PM +, John Clark wrote: > make rock5b-rk3588_defconfig > make > git status > > before > ~~~ > On branch master > Your branch is ahead of 'origin/master' by 1 commit. > (use "git push" to publish your local commits) > > Untracked files: > (use "git add

Re: [PATCH v2 2/4] power: domain: add SCMI driver

2023-10-24 Thread Tom Rini
On Mon, Oct 16, 2023 at 02:39:44PM +0900, AKASHI Takahiro wrote: > Add power domain driver based on SCMI power domain management protocol. > > Signed-off-by: AKASHI Takahiro Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] smbios: arm64: Allow table to be written at a fixed addr

2023-10-24 Thread Heinrich Schuchardt
Am 25. Oktober 2023 01:28:10 MESZ schrieb Simon Glass : >Hi Tom, > >On Tue, 24 Oct 2023 at 15:34, Tom Rini wrote: >> >> On Mon, Oct 23, 2023 at 05:31:19PM +0200, Mark Kettenis wrote: >> > > From: Simon Glass >> > > Date: Mon, 23 Oct 2023 00:04:14 -0700 >> > > >> > > Hi Caleb, >> > > >> > > On

Failedto read big file with "Invald FAT entry' from USB disk (FAT16)

2023-10-24 Thread target
I am using u-boot 2017.03 in my system and enabled the debug in fs/fat/fat.c I had a USB disk formatted in FAT16 in Linux, I put a bigfile.bin into / in the USB disk and plugged the disk into by board. Then I want to read/load the bigfile.bin into RAM with u-boot's fatload command, I did

Re: quick question about TPM

2023-10-24 Thread niek.nooij...@omron.com
Hi Simon Driver model is enabled, so it's pretty weird it doesn't show up. CONFIG_DM=y CONFIG_SPL_DM=y CONFIG_DM_WARN=y The TPM menu is there, yet somehow empty. This is just after "make socfpga_cyclone5_defconfig" and "make menuconfig" if I use "make snow_defconfig" the menu is usable like

Re: [v4.1 2/2] CI, pytest: Add a test for sandbox without LTO

2023-10-24 Thread Tom Rini
On Tue, Oct 24, 2023 at 02:39:49PM -0700, Simon Glass wrote: > Hi Tom, > > On Tue, 24 Oct 2023 at 11:07, Tom Rini wrote: > > > > On Tue, Oct 24, 2023 at 11:02:06AM -0700, Simon Glass wrote: > > > Hi Tom, > > > > > > On Mon, 23 Oct 2023 at 10:28, Tom Rini wrote: > > > > > > > > On Mon, Oct 23,

[PATCH 1/1] CI: use OpenSBI 1.3.1 for testing

2023-10-24 Thread Heinrich Schuchardt
Use the most recent upstream release of OpenSBI for CI testing. Signed-off-by: Heinrich Schuchardt --- .azure-pipelines.yml | 8 .gitlab-ci.yml | 8 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index

Re: [PATCH v5 14/16] cmd: add scmi command for SCMI firmware

2023-10-24 Thread Tom Rini
On Tue, Oct 24, 2023 at 10:27:44AM +0200, Michal Simek wrote: > Hi Takahiro, > > út 26. 9. 2023 v 9:00 odesílatel AKASHI Takahiro > napsal: > > > > This command, "scmi", may provide a command line interface to various SCMI > > protocols. It supports at least initially SCMI base protocol and is >

Re: [PATCH 6/7] mips: Remove common.h usage

2023-10-24 Thread Tom Rini
On Thu, Oct 12, 2023 at 07:03:58PM -0400, Tom Rini wrote: > We can remove common.h from most cases of the code here, and only a few > places need an additional header instead. > > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 3/7] arc: Remove common.h usage

2023-10-24 Thread Tom Rini
On Thu, Oct 12, 2023 at 07:03:55PM -0400, Tom Rini wrote: > We can remove common.h from most cases of the code here, and only a few > places need an additional header instead. > > Signed-off-by: Tom Rini > Acked-by: Alexey Brodkin Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [PATCH] smbios: arm64: Allow table to be written at a fixed addr

2023-10-24 Thread Simon Glass
Hi Tom, On Tue, 24 Oct 2023 at 15:34, Tom Rini wrote: > > On Mon, Oct 23, 2023 at 05:31:19PM +0200, Mark Kettenis wrote: > > > From: Simon Glass > > > Date: Mon, 23 Oct 2023 00:04:14 -0700 > > > > > > Hi Caleb, > > > > > > On Sat, 21 Oct 2023 at 01:43, Caleb Connolly > > > wrote: > > > > > >

Re: [PATCH v2] smbios: arm64: Allow table to be written at a fixed addr

2023-10-24 Thread Simon Glass
Hi Heinrich, On Tue, 24 Oct 2023 at 18:22, Heinrich Schuchardt wrote: > > > > Am 25. Oktober 2023 01:31:19 MESZ schrieb Simon Glass : > >U-Boot typically sets up its malloc() pool near the top of memory. On > >ARM64 systems this can result in an SMBIOS table above 4GB which is > >not supported

Re: [PATCH] mbr: Test tweaks

2023-10-24 Thread Tom Rini
On Mon, Oct 16, 2023 at 04:50:46PM -0600, Simon Glass wrote: > Rather than do another review on [1] I thought it better to add a patch > showing changes. This is intended to be squashed in, if acceptable. > > With the patch as is, various bootstd tests fail. This is because the > test adds a new

Re: [PATCH v2] cmd: mbr: Allow 4 MBR partitions without need for extended

2023-10-24 Thread Tom Rini
On Mon, Oct 09, 2023 at 01:24:36AM +, Alexander Gendin wrote: > Current code allows up to 3 MBR partitions without extended one. > If more than 3 partitions are required, then extended partition(s) > must be used. > This commit allows up to 4 primary MBR partitions without the > need for

Re: [PATCH] pstore: Use root address-cells/size-cells as defaults for reserved-memory

2023-10-24 Thread Tom Rini
On Sat, Aug 26, 2023 at 03:16:52PM +0300, Andrey Skvortsov wrote: > u-boot adds reserve-memory node, if it's missing, with following > properties: > > ``` > reserved-memory { > #address-cells = <2>; > #size-cells = <2>; > ranges; > } > ``` > > But with these

Re: [PATCH v2 1/2] serial: serial-uclass.c: move definition of _serial_flush up a bit

2023-10-24 Thread Tom Rini
On Mon, Oct 16, 2023 at 10:35:21AM +0200, Rasmus Villemoes wrote: > Preparation for next patch. > > Reviewed-by: Simon Glass > Signed-off-by: Rasmus Villemoes Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v3] cli: Consume invalid escape sequences early

2023-10-24 Thread Tom Rini
On Tue, Oct 10, 2023 at 11:16:39AM +0300, Yurii Monakov wrote: > Unexpected 'Esc' key presses are accumulated internally, even if it is > already clear that the current escape sequence is invalid. This results > in weird behaviour. For example, the next character after 'Esc' key > simply

Re: [PATCH] Makefile: remove misc include and simple-bin build artifacts on clean

2023-10-24 Thread Tom Rini
On Fri, Oct 13, 2023 at 01:23:07PM +, John Clark wrote: > make rock5b-rk3588_defconfig > make > make clean > git status > > before > ~~~ > On branch master > Your branch is up to date with 'origin/master'. > > Untracked files: > (use "git add ..." to include in what will be committed)

Re: [PATCH v2 1/4] firmware: scmi: add power domain protocol support

2023-10-24 Thread Tom Rini
On Mon, Oct 16, 2023 at 02:39:43PM +0900, AKASHI Takahiro wrote: > In this patch, added are helper functions to directly manipulate > SCMI power domain management protocol. DM compliant power domain > driver will be implemented on top of those interfaces in a succeeding > patch. > >

Re: [PATCH v2 3/4] sandbox: add SCMI power domain protocol support for testing

2023-10-24 Thread Tom Rini
On Mon, Oct 16, 2023 at 02:39:45PM +0900, AKASHI Takahiro wrote: > SCMI power domain management protocol is supported on sandbox > for test purpose. Add fake agent interfaces and associated > power domain devices. > > Signed-off-by: AKASHI Takahiro > Reviewed-by: Simon Glass Applied to

Re: [PATCH RESEND v3 1/1] arm: dts: icnova-a20-adb4006: Add board support

2023-10-24 Thread Andre Przywara
On Mon, 9 Oct 2023 13:39:16 +0200 Ludwig Kormann wrote: Hi Ludwig, > Add board support for ICnova A20 SomPi compute module on > ICnova ADB4006 development board. > > Specification: > SoM > - Processor: Allwinner A20 Cortex-A7 Dual Core at 1GHz > - 512MB DDR3 RAM > - Fast Ethernet (Phy:

Re: [PATCH] smbios: arm64: Allow table to be written at a fixed addr

2023-10-24 Thread Simon Glass
Hi Tom, On Tue, 24 Oct 2023 at 17:44, Tom Rini wrote: > > On Wed, Oct 25, 2023 at 02:19:59AM +0200, Heinrich Schuchardt wrote: > > > > > > Am 25. Oktober 2023 01:28:10 MESZ schrieb Simon Glass : > > >Hi Tom, > > > > > >On Tue, 24 Oct 2023 at 15:34, Tom Rini wrote: > > >> > > >> On Mon, Oct 23,

Re: Failedto read big file with "Invald FAT entry' from USB disk (FAT16)

2023-10-24 Thread Simon Glass
+Heinrich Schuchardt On Tue, 24 Oct 2023 at 19:34, target wrote: > > I am using u-boot 2017.03 in my system and enabled the debug in fs/fat/fat.c > I had a USB disk formatted in FAT16 in Linux, I put a bigfile.bin into / in > the USB disk and plugged the disk into by board. > Then I want to

[PATCH 3/5] cmd: add scmi command for SCMI firmware

2023-10-24 Thread AKASHI Takahiro
This command, "scmi", may provide a command line interface to various SCMI protocols. It supports at least initially SCMI base protocol and is intended mainly for debug purpose. Signed-off-by: AKASHI Takahiro Reviewed-by: Simon Glass Reviewed-by: Etienne Carriere --- v3 * describe that

[PATCH 2/5] firmware: scmi: support protocols on sandbox only if enabled

2023-10-24 Thread AKASHI Takahiro
This change will be useful when we manually test SCMI on sandbox by enabling/disabling a specific SCMI protocol. Signed-off-by: AKASHI Takahiro --- drivers/firmware/scmi/sandbox-scmi_agent.c | 27 ++- drivers/firmware/scmi/sandbox-scmi_devices.c | 78 2 files changed,

[PATCH 4/5] doc: cmd: add documentation for scmi

2023-10-24 Thread AKASHI Takahiro
This is a help text for scmi command. Signed-off-by: AKASHI Takahiro Reviewed-by: Simon Glass Reviewed-by: Etienne Carriere --- v6 * add the manual to doc/usage/index.rst v4 * s/tranport/transport/ v2 * add more descriptions about SCMI --- doc/usage/cmd/scmi.rst | 126

[PATCH 5/5] test: dm: add scmi command test

2023-10-24 Thread AKASHI Takahiro
In this test, "scmi" command is tested against different sub-commands. Please note that scmi command is for debug purpose and is not intended in production system. Signed-off-by: AKASHI Takahiro Reviewed-by: Simon Glass Reviewed-by: Etienne Carriere --- v7 * make test assertions more flexible

[PATCH 0/5] cmd: add scmi command

2023-10-24 Thread AKASHI Takahiro
"Scmi" command will be re-introduced per Michal's request. The functionality is the same as I put it in my patch set of adding SCMI base protocol support, but made some tweak to make UT, "ut dm scmi_cmd," more flexible and tolerable when enabling/disabling a specific SCMI protocol for test

[PATCH 1/5] test: dm: skip scmi tests against disabled protocols

2023-10-24 Thread AKASHI Takahiro
This is a precautious change to make scmi tests workable whether or not a specific protocol be enabled. Signed-off-by: AKASHI Takahiro --- test/dm/scmi.c | 12 1 file changed, 12 insertions(+) diff --git a/test/dm/scmi.c b/test/dm/scmi.c index da45314f2e4c..2f63f2da16fb 100644 ---

Re: [PATCH v5 14/16] cmd: add scmi command for SCMI firmware

2023-10-24 Thread Michal Simek
Hi Takahiro, út 26. 9. 2023 v 9:00 odesílatel AKASHI Takahiro napsal: > > This command, "scmi", may provide a command line interface to various SCMI > protocols. It supports at least initially SCMI base protocol and is > intended mainly for debug purpose. > > Signed-off-by: AKASHI Takahiro >

Re: [REGRESSION] imx: spl_imx_romapi: boot loops

2023-10-24 Thread Marcel Ziswiler
Hi Rasmus Thanks for your help. On Tue, 2023-10-24 at 11:18 +0200, Rasmus Villemoes wrote: [snip] > Hm. Can you show the result of 'fdtdump u-boot.itb | head' ⬢[zim@toolbox u-boot.git]$ fdtdump u-boot.itb | head fdtdump is a low-level debugging tool, not meant for general use. If

Pull request: please pull u-boot-imx-20231024

2023-10-24 Thread Stefano Babic
://gitlab.denx.de/u-boot/custodians/u-boot-imx.git tags/u-boot-imx-20231024 for you to fetch changes up to 2f96064d0cf78e21a668ad907d41d63e56f9f7bb: arm64: dts: imx8mp: Describe M24C32-D write-lockable page in DH i.MX8MP DHCOM DT (2023-10-18 21:29:59 +0200

  1   2   >