Re: [PATCH v4 05/27] lmb: make LMB memory map persistent and global

2024-10-28 Thread Sughosh Ganu
On Tue, 29 Oct 2024 at 10:02, Sughosh Ganu wrote: > > On Tue, 29 Oct 2024 at 09:19, Sughosh Ganu wrote: > > > > On Tue, 29 Oct 2024 at 02:50, Janne Grunau wrote: > > > > > > On Mon, Aug 26, 2024 at 05:29:18PM +0530, Sughosh Ganu wrote: > > > > The current LMB API's for allocating and reserving m

Re: [PATCH v4 05/27] lmb: make LMB memory map persistent and global

2024-10-28 Thread Sughosh Ganu
On Tue, 29 Oct 2024 at 02:50, Janne Grunau wrote: > > On Mon, Aug 26, 2024 at 05:29:18PM +0530, Sughosh Ganu wrote: > > The current LMB API's for allocating and reserving memory use a > > per-caller based memory view. Memory allocated by a caller can then be > > overwritten by another caller. Make

Re: [PATCH v4 05/27] lmb: make LMB memory map persistent and global

2024-10-28 Thread Sughosh Ganu
On Tue, 29 Oct 2024 at 09:19, Sughosh Ganu wrote: > > On Tue, 29 Oct 2024 at 02:50, Janne Grunau wrote: > > > > On Mon, Aug 26, 2024 at 05:29:18PM +0530, Sughosh Ganu wrote: > > > The current LMB API's for allocating and reserving memory use a > > > per-caller based memory view. Memory allocated

[RFC PATCH] apple: dart: add logic to allocate dva addresses

2024-10-28 Thread Sughosh Ganu
The Apple IOMMU driver uses LMB API's to allocate virtual addresses for IO devices. These virtual addresses fall in the first 4GB address range. Currently, the driver obtains these virtual addresses through the LMB API's. This no longer works with the global LMB map. Add a function apple_dart_dvaal

RE: [PATCH v2 09/14] riscv: dts: jh7110: Add u-boot device tree for JH7110 based boards

2024-10-28 Thread Hal Feng
> On 28.10.24 11:35, E Shattow wrote: > On Sun, Oct 27, 2024 at 6:59 PM Hal Feng > wrote: > > > > To support the other JH7110 based boards, add u-boot device tree for > > them. > > > > Cc: Heinrich Schuchardt > > Cc: H Bell > > Signed-off-by: Hal Feng > > --- > > arch/riscv/dts/jh7110-milkv-ma

Re: [PATCH v1] acpi_table: Fix coverity defect in acpi_write_spcr

2024-10-28 Thread Tom Rini
On Mon, Oct 28, 2024 at 05:27:14PM -0600, Tom Rini wrote: > On Mon, 28 Oct 2024 09:08:35 +0100, Patrick Rudolph wrote: > > > Fix "Integer handling issues (SIGN_EXTENSION)" in newly added code: > > Cast serial_info.reg_offset to u64 to prevent an integer overflow when > > shifted too many bits to

Re: [PATCH v2] mmc: renesas-sdhi: Add compatible string for rzg2l-sdhi

2024-10-28 Thread Marek Vasut
On 10/28/24 10:40 PM, Jaehoon Chung wrote: -Original Message- From: Marek Vasut Sent: Monday, October 28, 2024 1:31 AM To: Paul Barker ; Nobuhiro Iwamatsu ; Marek Vasut ; Peng Fan ; Jaehoon Chung Cc: u-boot@lists.denx.de Subject: Re: [PATCH v2] mmc: renesas-sdhi: Add compatible str

[PULL] u-boot-sh/master

2024-10-28 Thread Marek Vasut
The following changes since commit 3df6145db0ed3430a2af089db5a82372bea3f4d5: x86: Missed removal of CMD_BOOTEFI_HELLO_COMPILE (2024-10-27 20:11:36 -0600) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-sh.git master for you to fetch changes up to 400d

Re: [PATCH v2 11/13] smbios: Fill UUID from sysinfo when available

2024-10-28 Thread Tom Rini
On Mon, Oct 28, 2024 at 07:12:46AM +0100, Jan Kiszka wrote: > On 25.10.24 03:08, Tom Rini wrote: > > On Tue, Oct 22, 2024 at 08:04:28AM +0200, Jan Kiszka wrote: > > > >> From: Jan Kiszka > >> > >> Allow for the sysinfo drivers to provide a system UUID to SMBIOS. Will > >> be first used by the IOT

Re: [PATCH v1] acpi_table: Fix coverity defect in acpi_write_spcr

2024-10-28 Thread Tom Rini
On Mon, 28 Oct 2024 09:08:35 +0100, Patrick Rudolph wrote: > Fix "Integer handling issues (SIGN_EXTENSION)" in newly added code: > Cast serial_info.reg_offset to u64 to prevent an integer overflow when > shifted too many bits to the left. Currently this never happens as the > shift is supposed to

[ANN] U-Boot v2025.01-rc1 released

2024-10-28 Thread Tom Rini
Hey all, It's release day and here's v2025.01-rc1. It's full of big changes, which overall, is good. These changes have been in process for a while and are ready for wider testing. We now have MbedTLS available for a number of cryptographic routines, and lwIP is now available as an alternate netwo

Re: [PATCH 3/3] test/lib/uuid: Make lib_test_dynamic_uuid depend on SANDBOX

2024-10-28 Thread Tom Rini
On Mon, Oct 28, 2024 at 11:01:05PM +0100, Heinrich Schuchardt wrote: > On 10/28/24 22:34, Tom Rini wrote: > > On Mon, Oct 28, 2024 at 10:24:58PM +0100, Heinrich Schuchardt wrote: > > > On 10/28/24 17:48, Tom Rini wrote: > > > > The dynamic UUID test checks for the sandbox specific capsule UUID to b

Re: [PATCH v4 05/27] lmb: make LMB memory map persistent and global

2024-10-28 Thread Tom Rini
On Mon, Oct 28, 2024 at 10:20:38PM +0100, Janne Grunau wrote: > On Mon, Aug 26, 2024 at 05:29:18PM +0530, Sughosh Ganu wrote: > > The current LMB API's for allocating and reserving memory use a > > per-caller based memory view. Memory allocated by a caller can then be > > overwritten by another cal

Re: [PATCH 03/21] bloblist: test: doc: Move into the common suite

2024-10-28 Thread Tom Rini
On Mon, Oct 28, 2024 at 01:41:08PM +0100, Simon Glass wrote: > There is no particular need for bloblist to have its own test suite. > Move it into the common suite instead. > > Add the missing help for 'common' and update the docs. > > Signed-off-by: Simon Glass This feels both like churn and

[PATCH 2/3] net: dwc_eth_qos_imx: Add platform specific reset for i.MX93

2024-10-28 Thread Erik Schumacher
The EQOS on i.MX93 fails to finish the reset procedure in RMII mode. This is described in errata ERR051683. This patch implements the provided workaround which sets the PS and FES bits after the SWR is set by using the eqos_fix_soc_reset function. Adapted from linux-kernel commit b536f32b5b03 ("ne

Re: [PATCH 3/3] test/lib/uuid: Make lib_test_dynamic_uuid depend on SANDBOX

2024-10-28 Thread Heinrich Schuchardt
On 10/28/24 22:34, Tom Rini wrote: On Mon, Oct 28, 2024 at 10:24:58PM +0100, Heinrich Schuchardt wrote: On 10/28/24 17:48, Tom Rini wrote: The dynamic UUID test checks for the sandbox specific capsule UUID to be used, so we can only perform this test on sandbox currently. The tested function

Re: [PATCH 3/3] test/lib/uuid: Make lib_test_dynamic_uuid depend on SANDBOX

2024-10-28 Thread Heinrich Schuchardt
On 10/28/24 17:48, Tom Rini wrote: The dynamic UUID test checks for the sandbox specific capsule UUID to be used, so we can only perform this test on sandbox currently. The tested function is gen_v5_guid(). This function is used to generated capsule UUIDs. It receives the test data provided in

Re: [PATCH v2] sandbox: Add a build without CMDLINE

2024-10-28 Thread Caleb Connolly
On 27/10/2024 15:52, Simon Glass wrote: > Hi Tom, > > On Sun, 27 Oct 2024 at 00:33, Tom Rini wrote: >> >> On Sat, Oct 26, 2024 at 02:02:49PM +0200, Simon Glass wrote: >> >>> Something this breaks, so add a build to keep it working. Since sandbox >>> enables a lot of options, it is a good board

[PATCH 3/3] net: dwc_eth_qos: Remove obsolete imx8 includes

2024-10-28 Thread Erik Schumacher
They were added with commit 0e9d23945ce0 ("net: eqos: implement callbaks to get interface and set txclk rate") but were not removed with commit 5fc783b5d9c9 ("net: dwc_eth_qos: move i.MX code out") when i.MX specific code was moved to a separate file. Signed-off-by: Erik Schumacher --- drivers/n

Re: [PATCH v4 05/27] lmb: make LMB memory map persistent and global

2024-10-28 Thread Janne Grunau
On Mon, Aug 26, 2024 at 05:29:18PM +0530, Sughosh Ganu wrote: > The current LMB API's for allocating and reserving memory use a > per-caller based memory view. Memory allocated by a caller can then be > overwritten by another caller. Make these allocations and reservations > persistent using the al

RE: [PATCH v2] mmc: renesas-sdhi: Add compatible string for rzg2l-sdhi

2024-10-28 Thread Jaehoon Chung
> -Original Message- > From: Marek Vasut > Sent: Monday, October 28, 2024 1:31 AM > To: Paul Barker ; Nobuhiro Iwamatsu > ; Marek Vasut > ; Peng Fan ; Jaehoon Chung > > Cc: u-boot@lists.denx.de > Subject: Re: [PATCH v2] mmc: renesas-sdhi: Add compatible string for > rzg2l-sdhi > > O

Re: [PATCH 3/3] test/lib/uuid: Make lib_test_dynamic_uuid depend on SANDBOX

2024-10-28 Thread Tom Rini
On Mon, Oct 28, 2024 at 10:24:58PM +0100, Heinrich Schuchardt wrote: > On 10/28/24 17:48, Tom Rini wrote: > > The dynamic UUID test checks for the sandbox specific capsule UUID to be > > used, so we can only perform this test on sandbox currently. > > The tested function is gen_v5_guid(). This fun

[PATCH 1/3] net: dwc_eth_qos: Add support for platform specific reset

2024-10-28 Thread Erik Schumacher
This patch adds support for optional platform specific reset logic in the dwc_eth_qos driver. This new function 'eqos_fix_soc_reset' is called after the EQOS_DMA_MODE_SWR is set and before the driver waits for this bit to clear. Signed-off-by: Erik Schumacher --- drivers/net/dwc_eth_qos.c | 3 ++

[PATCH 0/3] Fix eqos rmii reset on i.MX93

2024-10-28 Thread Erik Schumacher
This patch series implements the workaround for an errata of the i.MX93 which fails to finish the eqos reset procedure in RMII mode. Trying to use RMII on i.MX93 without these patches results in an error: u-boot=> dhcp EQOS_DMA_MODE_SWR stuckFAILED: -110u-boot=> The first patch adds general supp

Re: [GIT PULL] u-boot-riscv/master

2024-10-28 Thread Tom Rini
On Mon, Oct 28, 2024 at 08:24:07PM +0800, Leo Liang wrote: > Hi Tom, > > The following changes since commit 3df6145db0ed3430a2af089db5a82372bea3f4d5: > > x86: Missed removal of CMD_BOOTEFI_HELLO_COMPILE (2024-10-27 20:11:36 -0600) > > are available in the Git repository at: > > https://sou

Re: [PATCH 2/3] test/hush: Add CONFIG_CONSOLE_RECORD where required

2024-10-28 Thread Heinrich Schuchardt
On 10/28/24 17:48, Tom Rini wrote: The "dollar" tests require CONFIG_CONSOLE_RECORD to be enabled so guard with that. Signed-off-by: Tom Rini --- test/hush/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/hush/Makefile b/test/hush/Makefile index a2d98815e501..4c3a0be857ae

Re: [PATCH 1/3] test/cmd: Make some "ut dm" tests only available on sandbox

2024-10-28 Thread Heinrich Schuchardt
On 10/28/24 17:48, Tom Rini wrote: Currently, the "dm" suite in unit tests (ut) is only available on sandbox. Make sure that all cmd tests that are part of this suite are only available on sandbox and not attempted to be run on hardware (where it will fail to be able to be started). Signed-off-b

[PATCH v3 17/18] arm64: dts: rockchip: add product-data eeproms to QNAP TS433

2024-10-28 Thread Heiko Stuebner
The device contains two i2c-connected eeproms holding some product- specific values. One sitting on the mainboard and one on the statically connected backplane. While the eeprom chips themself have a size of 512 byte, the eeprom data only uses 256 byte each, probably to stay compatible with other

[PATCH v3 13/18] arm64: dts: rockchip: enable gpu on Qnap-TS433

2024-10-28 Thread Heiko Stuebner
The TS433 doesn't provide display output, but the gpu nevertheless can be used for compute tasks for example. So there is no reason not to enable it. Tested-by: Uwe Kleine-König Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20240723195538.1133436-14-he...@sntech.de [ upstream c

Re: [PATCH v8 7/8] test: efi: boot: Set up an image suitable for EFI testing

2024-10-28 Thread Tom Rini
On Mon, Oct 28, 2024 at 08:33:04PM +0100, Heinrich Schuchardt wrote: > On 10/28/24 18:02, Simon Glass wrote: > > Hi Heinrich, > > > > On Mon, 28 Oct 2024 at 11:25, Heinrich Schuchardt > > wrote: > > > > > > On 10/28/24 07:08, Heinrich Schuchardt wrote: > > > > On 10/

Re: [PATCH v2 7/8] cmd: update smbios cmd

2024-10-28 Thread Raymond Mao
Hi Simon, On Mon, 28 Oct 2024 at 13:05, Simon Glass wrote: > On Tue, 22 Oct 2024 at 22:07, Raymond Mao wrote: > > > > Update the cmd according to the changes of the smbios library: > > 1. Refactor smbios cmd print functions to match the content defined > >by the specification. > > 2. Add ne

Re: [PATCH v2 6/8] armv8: Add generic smbios information into the device tree

2024-10-28 Thread Raymond Mao
Hi Simon, On Mon, 28 Oct 2024 at 13:05, Simon Glass wrote: > Hi Raymond, > > On Tue, 22 Oct 2024 at 22:07, Raymond Mao wrote: > > > > Add common smbios information that can be used by all armv8 > > platforms and set it as default for qemu-arm64. > > From now smbios library can load values from

Re: [PATCH v2 5/8] armv8: Add arch-specific sysinfo platform driver

2024-10-28 Thread Raymond Mao
Hi Simon, On Mon, 28 Oct 2024 at 13:04, Simon Glass wrote: > Hi Raymond, > > On Tue, 22 Oct 2024 at 22:07, Raymond Mao wrote: > > > > Add sysinfo platform driver for all armv8 platforms to retrieve > > hardware information on processor and cache. > > > > Signed-off-by: Raymond Mao > > --- > >

[PATCH v3 16/18] arm64: dts: rockchip: actually enable pmu-io-domains on qnap-ts433

2024-10-28 Thread Heiko Stuebner
Contrary to the vendor-kernel the pmu-io-domains are not enabled by default. This resulted in the value not being set according to the regulator, which in turn made the gmac0 interface that is connected to the vccio4 supply inoperable. Fixes: 64b7f16fb394 ("arm64: dts: rockchip: add 2 pmu_io_domai

[PATCH v3 15/18] arm64: dts: rockchip: Simplify network PHY connection on qnap-ts433

2024-10-28 Thread Heiko Stuebner
From: Uwe Kleine-König While it requires to have the right phy driver loaded (i.e. motorcomm) to make the phy asserting the right delays, this is generally the preferred way to define the MAC <-> PHY connection. Signed-off-by: Uwe Kleine-König Reviewed-by: Andrew Lunn Link: https://lore.kernel

[PATCH v3 12/18] arm64: dts: rockchip: add missing pmic information on Qnap-TS433

2024-10-28 Thread Heiko Stuebner
Fill in the missing pieces for RK809 pmic used on the TS433. The regulator setup comes from the vendor-devicetree, so without proper schematics its accuracy is somewhat unclear, but it looks really similar to all the other rk3568 boards, so follows the reference design it seems. The one caveat is

[PATCH v3 10/18] arm64: dts: rockchip: add gpio-keys to Qnap-TS433

2024-10-28 Thread Heiko Stuebner
The TS433 has 3 buttons, power and copy in the front as well as a reset pinhole button on the back. The power-button is connected to the embedded controller while the other two buttons are just gpio connected. Add the gpio-keys definition for the two buttons we can handle right now. Tested-by: Uw

Re: [PATCH v2 3/8] sysinfo: Add sysinfo driver and data structure for smbios

2024-10-28 Thread Raymond Mao
Hi Simon, On Mon, 28 Oct 2024 at 13:04, Simon Glass wrote: > Hi Raymond, > > On Tue, 22 Oct 2024 at 22:06, Raymond Mao wrote: > > > > Add sysinfo driver to retrieve smbios information (Type 4 and 7). > > So that the smbios library can use it for getting values from the > > hardware platform ins

[PATCH v3 14/18] arm64: dts: rockchip: add 2 pmu_io_domain supplies for Qnap-TS433

2024-10-28 Thread Heiko Stuebner
Add the two supplies for the pmu-io-domains that are defined in the vendor devicetree for the TS433. Tested-by: Uwe Kleine-König Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20240723195538.1133436-15-he...@sntech.de [ upstream commit: 64b7f16fb3947e5d08d9e9b860ce966250e45d52 ]

Re: [PATCH v8 7/8] test: efi: boot: Set up an image suitable for EFI testing

2024-10-28 Thread Heinrich Schuchardt
On 10/28/24 18:02, Simon Glass wrote: Hi Heinrich, On Mon, 28 Oct 2024 at 11:25, Heinrich Schuchardt mailto:xypron.g...@gmx.de>> wrote: > > On 10/28/24 07:08, Heinrich Schuchardt wrote: > > On 10/22/24 14:00, Simon Glass wrote: > >> Create a new disk for use with tests, which contains the ne

[PATCH v3 18/18] board: rockchip: add support for Qnap TS433 devices

2024-10-28 Thread Heiko Stuebner
The Qnap TS433 is a 4-bay NAS based around the RK3568. Two SATA bays are connected to the RK3568's own SATA controllers while the other two are connected to a JMicron SATA controller living on the PCIe bus. It provides one 2.5Gb and one 1Gb ethernet port as well as 3 usb ports. Signed-off-by: He

[PATCH v3 11/18] arm64: dts: rockchip: define cpu-supply on the Qnap-TS433

2024-10-28 Thread Heiko Stuebner
The TS433 seems to use a silergy,syr827 regulator for the cpu supply. At least that is the compatible used in the vendor devicetree, though it could very well also be another fan53555 clone. Define the needed regulator node and hook up the cpu-supply to the cpu cores. Tested-by: Uwe Kleine-König

[PATCH v3 08/18] arm64: dts: rockchip: add hdd leds to Qnap-TS433

2024-10-28 Thread Heiko Stuebner
Add the 4 gpio-controlled LEDs to the Qnap-TS433. They are meant for individual disk activitivy, but I haven't found a way for how to connect them to their individual sata slot yet. Tested-by: Uwe Kleine-König Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20240723195538.1133436-

[PATCH v3 07/18] arm64: dts: rockchip: add board-aliases for Qnap-TS433

2024-10-28 Thread Heiko Stuebner
Add the aliases for the internal network interface as well as the emmc on the board and make sure the dedicated RTC is always the first one. The TS433 actually has two rtc devices. One coming from the rk809 pmic without added functionality and also a dedicated RTC from Mycrocrystal that is battery

Re: [PATCH v8 5/8] sandbox: Report host default-filename in native mode

2024-10-28 Thread Heinrich Schuchardt
On 10/25/24 11:56, Ilias Apalodimas wrote: Hi Simon, On Tue, 22 Oct 2024 at 15:00, Simon Glass wrote: When the --native flag is given, pretend to be running the host architecture rather than sandbox. Add an 'efidebug filename' command to report it. Heinrich does this allow you to continue

[PATCH v3 01/18] arm64: dts: rockchip: add PCIe supply regulator to Qnap-TS433

2024-10-28 Thread Heiko Stuebner
Add the vcc3v3-supply regulator and its link to the pcie controllers. Tested-by: Uwe Kleine-König Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20240723195538.1133436-2-he...@sntech.de [ upstream commit: e0ec6d48226fb3d4df18895b56f0b7a94c0fe474 ] (cherry picked from commit 5993

[PATCH v3 09/18] arm64: dts: rockchip: enable the tsadc on the Qnap-TS433

2024-10-28 Thread Heiko Stuebner
Enable the tsadc node to allow for temperature measurements of the soc. Tested-by: Uwe Kleine-König Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20240723195538.1133436-10-he...@sntech.de [ upstream commit: 2df9d20306fd0d04b88fcbbf36d76fb67f11 ] (cherry picked from commit d

[PATCH v3 06/18] arm64: dts: rockchip: enable sata1+2 on Qnap-TS433

2024-10-28 Thread Heiko Stuebner
The TS433 has 4 bays. The last two are accessed via a pci-connected sata controller, while the first two are accessed via the rk3568's sata controllers. Enable these two now. Tested-by: Uwe Kleine-König Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20240723195538.1133436-7-he...@

[PATCH v3 04/18] arm64: dts: rockchip: enable usb ports on Qnap-TS433

2024-10-28 Thread Heiko Stuebner
Enable usb controllers and phys and add regulator infrastructure for the usb ports on the TS433. Of course there are no schematics available for the device, so the regulator information comes from the vendor-devicetree with unknown accuracy. Tested-by: Uwe Kleine-König Signed-off-by: Heiko Stueb

[PATCH v3 02/18] arm64: dts: rockchip: enable second PCIe controller on the Qnap-TS433

2024-10-28 Thread Heiko Stuebner
The TS433 uses both pcie controllers for sata and the 2nd network interface. Set the needed data-lanes in the pcie3 phy and enable the second pcie controller, as well as remove the bifurcation comment. Tested-by: Uwe Kleine-König Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/2024

[PATCH v3 03/18] arm64: dts: rockchip: enable uart0 on Qnap-TS433

2024-10-28 Thread Heiko Stuebner
Uart0 is connected to an MCU on the board that handles system control like the fan-speed. So far no driver for it is available though. Tested-by: Uwe Kleine-König Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20240723195538.1133436-4-he...@sntech.de [ upstream commit: 07ef8be476

[PATCH v3 05/18] arm64: dts: rockchip: add stdout path on Qnap-TS433

2024-10-28 Thread Heiko Stuebner
As most Rockchip boards do, the TS433 also uses uart2 for its serial output. Set the correct chosen entry for it. Tested-by: Uwe Kleine-König Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20240723195538.1133436-6-he...@sntech.de [ upstream commit: e1cb5d8a92e41171bf4d5ddc459bd96

[PATCH v3 00/18] Support for rk3568 based QNAP TS433 NAS

2024-10-28 Thread Heiko Stuebner
Currently QNAP builds a series of RK3568- (and RK3588-) based NAS systems. This series provides support for the 4-bay variant called TS433. The whole series of devices is pretty similar so adding support for the other variants will be pretty easy, once device-specific devicetrees land. The cherry

[PATCH 03/21] bloblist: test: doc: Move into the common suite

2024-10-28 Thread Simon Glass
There is no particular need for bloblist to have its own test suite. Move it into the common suite instead. Add the missing help for 'common' and update the docs. Signed-off-by: Simon Glass --- doc/usage/cmd/ut.rst | 29 +--- test/cmd_ut.c | 6 +- test/c

Re: [PATCH v2 18/18] board: rockchip: add support for Qnap TS433 devices

2024-10-28 Thread Heiko Stuebner
Hi Kever, Am Montag, 28. Oktober 2024, 09:39:27 CET schrieb Kever Yang: > On 2024/10/26 10:39, Kever Yang wrote: > > Hi Heiko, > > > > I got a ci error for this patch: > > > > https://source.denx.de/u-boot/custodians/u-boot-rockchip/-/jobs/929839 > > > > +Image 'simple-bin-spi' is missing exte

Re: [PATCH v8 2/8] efi_loader: Add a test app

2024-10-28 Thread Heinrich Schuchardt
On 10/28/24 18:00, Simon Glass wrote: Hi Heinrich, On Mon, 28 Oct 2024 at 07:11, Heinrich Schuchardt mailto:xypron.g...@gmx.de>> wrote: > > On 10/22/24 14:00, Simon Glass wrote: > > Add a simple app to use for testing. This is intended to do whatever it > > needs to for testing purposes. For

Re: [PATCH v8 1/8] test: boot: Update bootflow_iter() for console checking

2024-10-28 Thread Heinrich Schuchardt
On 10/28/24 18:02, Simon Glass wrote: Hi Heinrich, On Mon, 28 Oct 2024 at 07:07, Heinrich Schuchardt mailto:xypron.g...@gmx.de>> wrote: > > On 10/22/24 14:00, Simon Glass wrote: > > This test checks console output so should have the UTF_CONSOLE flag. Add > > it. > > > > Signed-off-by: Simo

Re: [PATCH v8 2/8] efi_loader: Add a test app

2024-10-28 Thread Heinrich Schuchardt
On 10/28/24 17:52, Tom Rini wrote: On Mon, Oct 28, 2024 at 05:47:08PM +0100, Heinrich Schuchardt wrote: On 10/28/24 16:17, Tom Rini wrote: On Mon, Oct 28, 2024 at 06:59:10AM +0100, Heinrich Schuchardt wrote: On 10/22/24 14:00, Simon Glass wrote: Add a simple app to use for testing. This is in

Re: [PATCH v8 4/8] sandbox: Add a -N flag to control on-host behaviour

2024-10-28 Thread Heinrich Schuchardt
On 10/22/24 14:00, Simon Glass wrote: Sandbox is its own architecture, but sometimes we want to mimic the host architecture, e.g. when running an EFI app not built by U-Boot. Add a -N/--native flag which tells sandbox to reflect the architecture of the host. Signed-off-by: Simon Glass --- Cha

[RESEND PATCH v4 2/3] cmd: mtd: add nand_write_test command support

2024-10-28 Thread Mikhail Kshevetskiy
Some nand flashes (like spi-nand one) are registered with mtd subsystem only, thus nand command can't be used to work with such flashes. As result some functionality is missing. This patch implements 'nand torture' functionality for mtd command. Signed-off-by: Mikhail Kshevetskiy --- cmd/Kconfi

[RESEND PATCH v4 1/3] cmd: mtd: add markbad command support

2024-10-28 Thread Mikhail Kshevetskiy
Some nand flashes (like spi-nand one) are registered with mtd subsystem only, thus nand command can't be used to work with such flashes. As result some functionality is missing. This patch implements 'nand markbad' functionality for mtd command. Signed-off-by: Mikhail Kshevetskiy --- cmd/Kconfi

Re: [PATCH v2 8/8] configs: Enable sysinfo for QEMU Arm64

2024-10-28 Thread Simon Glass
On Tue, 22 Oct 2024 at 22:07, Raymond Mao wrote: > > Enable sysinfo smbios by default for arm64. > When SYSINFO_SMBIOS is enabled, disable QFW_SMBIOS. > > Signed-off-by: Raymond Mao > --- > Changes in v2 > - None. > > configs/qemu_arm64_defconfig | 2 ++ > drivers/misc/Kconfig | 2 +- >

Re: [PATCH v2 7/8] cmd: update smbios cmd

2024-10-28 Thread Simon Glass
On Tue, 22 Oct 2024 at 22:07, Raymond Mao wrote: > > Update the cmd according to the changes of the smbios library: > 1. Refactor smbios cmd print functions to match the content defined >by the specification. > 2. Add new print functions for Type 0, 3, 4 and 7. > 3. Update the expected pytest

Re: [PATCH v2 6/8] armv8: Add generic smbios information into the device tree

2024-10-28 Thread Simon Glass
Hi Raymond, On Tue, 22 Oct 2024 at 22:07, Raymond Mao wrote: > > Add common smbios information that can be used by all armv8 > platforms and set it as default for qemu-arm64. > From now smbios library can load values from here for those fields > doesn't exist in the sysinfo driver. > > To run thi

Re: [PATCH v2 5/8] armv8: Add arch-specific sysinfo platform driver

2024-10-28 Thread Simon Glass
Hi Raymond, On Tue, 22 Oct 2024 at 22:07, Raymond Mao wrote: > > Add sysinfo platform driver for all armv8 platforms to retrieve > hardware information on processor and cache. > > Signed-off-by: Raymond Mao > --- > Changes in v2 > - Combine with #8(v1) patch. > - Remove the handling of the commo

Re: [PATCH v2 2/8] sysinfo: Add sysinfo API for accessing data area

2024-10-28 Thread Simon Glass
On Tue, 22 Oct 2024 at 22:06, Raymond Mao wrote: > > Add interface for sysinfo to access a data area from the platform. > This is useful to save/read a memory region of platform-specific > data. > > Signed-off-by: Raymond Mao > --- > Changes in v2 > - None. > > drivers/sysinfo/sysinfo-uclass.c |

Re: [PATCH v2 4/8] smbios: Refactor smbios library

2024-10-28 Thread Simon Glass
Hi Raymond, On Tue, 22 Oct 2024 at 22:07, Raymond Mao wrote: > > Current smbios library does not fully match to the specification. > It hardcodes values instead of exposing values from the device. > It does not support dynamic length for contained object handles > or elements and misses the handl

Re: [PATCH v2 3/8] sysinfo: Add sysinfo driver and data structure for smbios

2024-10-28 Thread Simon Glass
Hi Raymond, On Tue, 22 Oct 2024 at 22:06, Raymond Mao wrote: > > Add sysinfo driver to retrieve smbios information (Type 4 and 7). > So that the smbios library can use it for getting values from the > hardware platform instead of device tree. > > Signed-off-by: Raymond Mao > --- > Changes in v2

Re: [PATCH v2] scsi: fix disk capacity too small by one sector

2024-10-28 Thread Simon Glass
+Heinrich Schuchardt On Sat, 26 Oct 2024 at 20:06, Julius Lehmann wrote: > > SCSI READ CAPACITY reports the address of the last block and the block > size. The total number of blocks is thus last block address plus one. > > This also fixes the corresponding test case. > > --- > This patch fixes

Re: [PATCH v2 1/8] smbios: Refactor the smbios headfile

2024-10-28 Thread Simon Glass
On Tue, 22 Oct 2024 at 22:06, Raymond Mao wrote: > > Move the smbios field definitions to a separated simple headfile, > which is a prerequisite to be included by dts files. > Add new definitions for cache information. > This patch also includes a few of code optimizations in smbios. > > Signed-of

Re: [PATCH v8 1/8] test: boot: Update bootflow_iter() for console checking

2024-10-28 Thread Simon Glass
Hi Heinrich, On Mon, 28 Oct 2024 at 07:07, Heinrich Schuchardt wrote: > > On 10/22/24 14:00, Simon Glass wrote: > > This test checks console output so should have the UTF_CONSOLE flag. Add > > it. > > > > Signed-off-by: Simon Glass > > --- > > > > (no changes since v1) > > > > test/boot/bootfl

Re: [PATCH v2 11/13] smbios: Fill UUID from sysinfo when available

2024-10-28 Thread Simon Glass
Hi Jan, On Mon, 28 Oct 2024 at 07:12, Jan Kiszka wrote: > > On 25.10.24 03:08, Tom Rini wrote: > > On Tue, Oct 22, 2024 at 08:04:28AM +0200, Jan Kiszka wrote: > > > >> From: Jan Kiszka > >> > >> Allow for the sysinfo drivers to provide a system UUID to SMBIOS. Will > >> be first used by the IOT2

Re: [PATCH v8 7/8] test: efi: boot: Set up an image suitable for EFI testing

2024-10-28 Thread Simon Glass
Hi Heinrich, On Mon, 28 Oct 2024 at 11:25, Heinrich Schuchardt wrote: > > On 10/28/24 07:08, Heinrich Schuchardt wrote: > > On 10/22/24 14:00, Simon Glass wrote: > >> Create a new disk for use with tests, which contains the new 'testapp' > >> EFI app specifically intended for testing the EFI load

Re: [PATCH 1/4] fdt: add support for adding pmem nodes

2024-10-28 Thread Simon Glass
Hi Sughosh, On Mon, 28 Oct 2024 at 12:29, Sughosh Ganu wrote: > > On Sun, 27 Oct 2024 at 20:30, Simon Glass wrote: > > > > Hi Sughosh, > > > > On Fri, 25 Oct 2024 at 13:15, Sughosh Ganu wrote: > > > > > > From: Masahisa Kojima > > > > > > One of the problems OS installers face, when running in

Re: [PATCH] menu: fix the logic checking whether ESC key is pressed

2024-10-28 Thread Simon Glass
Hi Weijie, On Mon, 28 Oct 2024 at 03:58, Weijie Gao wrote: > > On Mon, 2024-10-28 at 03:33 +0100, Marek Vasut wrote: > > External email : Please do not click links or open attachments until > > you have verified the sender or the content. > > > > > > On 10/28/24 1:25 AM, Weijie Gao wrote: > > > H

Re: [PATCH v8 2/8] efi_loader: Add a test app

2024-10-28 Thread Simon Glass
Hi Heinrich, On Mon, 28 Oct 2024 at 07:11, Heinrich Schuchardt wrote: > > On 10/22/24 14:00, Simon Glass wrote: > > Add a simple app to use for testing. This is intended to do whatever it > > needs to for testing purposes. For now it just prints a message and > > exits boot services. > > > > Ther

[PATCH] boot/image-board.c: boot_get_fpga(): pass compatible flag to fpga_load()

2024-10-28 Thread Peter Korsgaard
For E.G. signed FPGA bitstreams, similar to how it is done for the FPGA loading from SPL since commit 282eed50ecb7 ("fpga: pass compatible flags to fpga_load()"). Signed-off-by: Peter Korsgaard --- boot/image-board.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff

Re: [PATCH v8 2/8] efi_loader: Add a test app

2024-10-28 Thread Tom Rini
On Mon, Oct 28, 2024 at 05:47:08PM +0100, Heinrich Schuchardt wrote: > On 10/28/24 16:17, Tom Rini wrote: > > On Mon, Oct 28, 2024 at 06:59:10AM +0100, Heinrich Schuchardt wrote: > > > On 10/22/24 14:00, Simon Glass wrote: > > > > Add a simple app to use for testing. This is intended to do whatever

[PATCH 3/3] test/lib/uuid: Make lib_test_dynamic_uuid depend on SANDBOX

2024-10-28 Thread Tom Rini
The dynamic UUID test checks for the sandbox specific capsule UUID to be used, so we can only perform this test on sandbox currently. Signed-off-by: Tom Rini --- test/lib/uuid.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/lib/uuid.c b/test/lib/uuid.c index d00e9563a472..55ef9e7454

[PATCH 2/3] test/hush: Add CONFIG_CONSOLE_RECORD where required

2024-10-28 Thread Tom Rini
The "dollar" tests require CONFIG_CONSOLE_RECORD to be enabled so guard with that. Signed-off-by: Tom Rini --- test/hush/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/hush/Makefile b/test/hush/Makefile index a2d98815e501..4c3a0be857ae 100644 --- a/test/hush/Makefile +++ b/t

[PATCH 1/3] test/cmd: Make some "ut dm" tests only available on sandbox

2024-10-28 Thread Tom Rini
Currently, the "dm" suite in unit tests (ut) is only available on sandbox. Make sure that all cmd tests that are part of this suite are only available on sandbox and not attempted to be run on hardware (where it will fail to be able to be started). Signed-off-by: Tom Rini --- test/cmd/Makefile |

Re: [PATCH v8 2/8] efi_loader: Add a test app

2024-10-28 Thread Heinrich Schuchardt
On 10/28/24 16:17, Tom Rini wrote: On Mon, Oct 28, 2024 at 06:59:10AM +0100, Heinrich Schuchardt wrote: On 10/22/24 14:00, Simon Glass wrote: Add a simple app to use for testing. This is intended to do whatever it needs to for testing purposes. For now it just prints a message and exits boot se

[PATCH] boot/Kconfig: correct fdt_fixup_memory_banks name typo

2024-10-28 Thread Baruch Siach
Signed-off-by: Baruch Siach --- boot/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/Kconfig b/boot/Kconfig index b9287c606856..7dd30a030e39 100644 --- a/boot/Kconfig +++ b/boot/Kconfig @@ -1699,7 +1699,7 @@ config FDT_SIMPLEFB memory config ARCH_FIXU

[PATCH 01/21] bloblist: test: Move test into common

2024-10-28 Thread Simon Glass
This test doesn't belong at the top level. Move it into the common/ directory, to match its implementation. This also fixes the build rule for the bootm test, which was depending on bloblist by mistake. Signed-off-by: Simon Glass --- test/Makefile| 3 --- test/common/Makefile

Re: [PATCH v1] acpi_table: Fix coverity defect in acpi_write_spcr

2024-10-28 Thread Moritz Fischer
On Mon, Oct 28, 2024 at 1:09 AM Patrick Rudolph wrote: > > Fix "Integer handling issues (SIGN_EXTENSION)" in newly added code: > Cast serial_info.reg_offset to u64 to prevent an integer overflow when > shifted too many bits to the left. Currently this never happens as the > shift is supposed to b

[PATCH v12 11/13] net/netcat: add netcat over tcp support

2024-10-28 Thread Mikhail Kshevetskiy
This patch adds downloading/uploading of data with netcat. Client/server mode both supported. How to test: netcat-openbsd=1.219-1 from debian were used for a tests a) Load data from remote host. * U-Boot listen on tcp port 3456 * PC connects u-boot: netcat loa

[PATCH v12 07/13] test/cmd/wget: fix the test

2024-10-28 Thread Mikhail Kshevetskiy
Changes: * update to new tcp stack * fix zero values for ISS and IRS issue (see RFC 9293) Previously this patch also fix incorrect values for tcp_ack & tcp_seq, but the issue was fixed in * dbb6b5a: sandbox: fix wget test failure after fixing wget issue Signed-off-by: Mikhail Kshevetskiy Revi

[RESEND PATCH v4 0/3] cmd/mtd: add missed featuries

2024-10-28 Thread Mikhail Kshevetskiy
Some nand flashes (like spi-nand one) are registered with mtd subsystem only, thus nand command can't be used to work with such flashes. As result some functionality is missing. This patch series implements following subcommands: * markbad -- mark block as bad (clone of 'nand markbad') *

[RESEND PATCH v4 3/3] cmd: mtd: add nand_read_test command support

2024-10-28 Thread Mikhail Kshevetskiy
This patch implements read-only test of nand flash devices. Test reads blocks of NAND flash in normal and raw modes and compares results. The following statuses can be returned for a block: * non-ecc reading failed, * ecc reading failed, * block is bad, * bitflips is above maximum, * actual n

Re: [GIT PULL] u-boot-riscv/next

2024-10-28 Thread Tom Rini
On Mon, Oct 28, 2024 at 08:25:55PM +0800, Leo Liang wrote: > Hi Tom, > > The following changes since commit 28dc47038edc4e93f32d75a357131bcf01a18d85: > > Merge branch 'u-boot-nand-20241005' of > https://gitlab.denx.de/u-boot/custodians/u-boot-nand-flash into next > (2024-10-05 11:19:24 -0600)

Re: [PATCH v8 2/8] efi_loader: Add a test app

2024-10-28 Thread Tom Rini
On Mon, Oct 28, 2024 at 06:59:10AM +0100, Heinrich Schuchardt wrote: > On 10/22/24 14:00, Simon Glass wrote: > > Add a simple app to use for testing. This is intended to do whatever it > > needs to for testing purposes. For now it just prints a message and > > exits boot services. > > > > There wa

[PATCH v12 04/13] net/tcp: add connection info to tcp_stream structure

2024-10-28 Thread Mikhail Kshevetskiy
Changes: * Avoid use net_server_ip in tcp code, use tcp_stream data instead * Ignore packets from other connections if connection already created. This prevents us from connection break caused by other tcp stream. Signed-off-by: Mikhail Kshevetskiy Reviewed-by: Simon Glass --- include/net-

[PATCH v12 06/13] net/tcp: improve tcp framework, use better state machine

2024-10-28 Thread Mikhail Kshevetskiy
Changes: * Fix initial send sequence always zero issue * Use state machine close to RFC 9293. This should make TCP transfers more reliable (now we can upload a huge array of data from the board to external server) * Improve TCP framework a lot. This should make tcp client code much more

[PATCH v12 03/13] net/tcp: put connection specific data into a tcp_stream structure

2024-10-28 Thread Mikhail Kshevetskiy
no functional changes Signed-off-by: Mikhail Kshevetskiy Reviewed-by: Simon Glass --- include/net/tcp.h | 37 +++- net/net.c | 11 ++- net/tcp.c | 231 +++--- net/wget.c| 3 +- 4 files changed, 163 insertions(+), 119 deleti

[PATCH v12 09/13] net/tcp: define a fallback value for rcv_wnd size

2024-10-28 Thread Mikhail Kshevetskiy
Some driver implements it's own network packet pool, so PKTBUFSRX is zero. This results in zero-size TCP receive window, so data transfer doesn't work. Avoid it by setting a reasonable fallback value. Signed-off-by: Mikhail Kshevetskiy Reviewed-by: Simon Glass --- net/tcp.c | 6 +- 1 file c

[PATCH v12 13/13] net/httpd-upload: an example web-server implementation for file uploading

2024-10-28 Thread Mikhail Kshevetskiy
This is an example web-server implementation. It can be used for files uploading to u-boot using a web-browser. It acts much like tftpget, but no special servers needs to be installed by the user. This code can be used as a base for other implementations like firmware upgrade web-server used by so

[PATCH v12 05/13] net/tcp: rename ack_edge and seq_init to more common rcv_nxt and irs

2024-10-28 Thread Mikhail Kshevetskiy
Use the names from RFC 9293 Signed-off-by: Mikhail Kshevetskiy Reviewed-by: Simon Glass --- include/net/tcp.h | 8 net/tcp.c | 32 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/include/net/tcp.h b/include/net/tcp.h index f224

[PATCH v12 08/13] net/tcp: simplify tcp header filling code

2024-10-28 Thread Mikhail Kshevetskiy
This patch: * remove useless code, * use a special function for pretty printing of tcp flags, * simplify the code The behavior should not be changed. Signed-off-by: Mikhail Kshevetskiy Reviewed-by: Simon Glass --- net/tcp.c | 66 +++ 1 fil

[PATCH v12 01/13] net/tcp: fix TCP options processing

2024-10-28 Thread Mikhail Kshevetskiy
Current TCP code may miss an option if TCP_O_NOP option was used before it for proper aligning. Signed-off-by: Mikhail Kshevetskiy Reviewed-by: Simon Glass --- net/tcp.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/net/tcp.c b/net/tcp.c index b0cc8a1fe3e..3e3118de45

[PATCH v12 12/13] net/httpd: add httpd common code

2024-10-28 Thread Mikhail Kshevetskiy
This patch adds HTTP/1.1 compatible web-server that can be used by other. Server supports GET, POST, and HEAD requests. On client request it will call user specified GET/POST callback. Then results will be transmitted to client. The following restrictions exist on the POST request at the moment:

  1   2   >