[PATCH 1/1] configs: sifive: enable poweroff command on Unmatched

2023-09-30 Thread Heinrich Schuchardt
Powering off the SiFive HiFive Unmatched board is supported both via the SBI and GPIO sysreset drivers. See device-tree entry compatible = "gpio-poweroff". Enable the poweroff command. Signed-off-by: Heinrich Schuchardt --- configs/sifive_unmatched_defconfig | 1 + 1 file changed, 1 insert

Re: [PATCH 0/6] cmd mac: separate implementations

2023-09-30 Thread Heinrich Schuchardt
On 9/30/23 14:01, Heinrich Schuchardt wrote: There are three implementations of the 'mac' command: * Freescale (NXP) * SiFive Unmatched * StarFive VisionFive 2 They all use different sets of sub-commands and hence should display a different long text help. This series moves the command definit

Re: [PATCH] misc: fs_loader: Fix alignment of fs_loader driver

2023-09-30 Thread Heinrich Schuchardt
On 9/30/23 22:45, Sean Anderson wrote: DM_DRIVER_GET will redeclare the fs_loader driver without the correct alignment. This causes GCC to use the default section alignment of 32 bytes. This in turn creates a gap in the linker list due to the padding required to achieve the correct alignment, cor

Re: [PATCH v2 01/17] dm: usb: udc: Factor out plain udevice handler functions

2023-09-30 Thread Marek Vasut
On 9/27/23 15:59, Miquel Raynal wrote: Hi Marek, Hi, miquel.ray...@bootlin.com wrote on Fri, 22 Sep 2023 12:00:12 +0200: Hi Marek, I'm answering here as there is no cover letter. Just to let you know I'm still concerned by the series and want to test it but did not had the time to do so re

Re: [PATCH 2/2] board: dh_stm32mp1: Only print board code with CONFIG_SPL_DISPLAY_PRINT

2023-09-30 Thread Marek Vasut
On 9/27/23 14:46, Harald Seiler wrote: Ensure that the SoM and board code information is only printed when CONFIG_SPL_DISPLAY_PRINT is set. Signed-off-by: Harald Seiler Reviewed-by: Marek Vasut

[PATCH] misc: fs_loader: Fix alignment of fs_loader driver

2023-09-30 Thread Sean Anderson
DM_DRIVER_GET will redeclare the fs_loader driver without the correct alignment. This causes GCC to use the default section alignment of 32 bytes. This in turn creates a gap in the linker list due to the padding required to achieve the correct alignment, corrupting all further entries. Use DM_DRIVE

[PATCH] Revert "fs: ext4: check the minimal partition size to mount"

2023-09-30 Thread Sean Anderson
This check breaks small partitions (under 1024 blocks) because part_length is in units of part.blksz and not bytes. Given the purpose of this function, we really want to make sure the partition is SUPERBLOCK_START + SUPERBLOCK_SIZE (2048) bytes so we can call ext4_read_superblock without error. Th

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

2023-09-30 Thread Sam Edwards
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 Tested-by: Maksim Kiselev Tested-by: Kevin Amadiva --- arch/arm/cpu/armv7/sunxi/psci.c | 47 - arch/arm/mach-sunx

[PATCH v3 3/4] sunxi: psci: stop modeling register layout with C structs

2023-09-30 Thread Sam Edwards
Since the sunxi support nowadays generally prefers #defined register offsets instead of modeling register layouts using C structs, now is a good time to do this for PSCI as well. This patch moves away from using the structs `sunxi_cpucfg_reg` and `sunxi_prcm_reg` in psci.c. The former struct and i

[PATCH v3 2/4] sunxi: psci: refactor register access to separate functions

2023-09-30 Thread Sam Edwards
This is to prepare for R528, which does not have the typical "CPUCFG" block; it has a "CPUX" block which provides these same functions but is organized differently. Moving the hardware-access bits to their own functions separates the logic from the hardware so we can reuse the same logic. Signed-

[PATCH v3 1/4] sunxi: psci: clean away preprocessor macros

2023-09-30 Thread Sam Edwards
This patch restructures psci.c to get away from the "many different function definitions switched by #ifdef" paradigm to the preferred style of having a single function definition with `if (IS_ENABLED(...))` to make the optimizer include only the appropriate function bodies instead. There are no f

[PATCH v3 0/4] Allwinner R528/T113s PSCI

2023-09-30 Thread Sam Edwards
Hi list, This is the third version of my patchset for supporting PSCI on R528/T113-s3. It is meant to be applied atop Andre Przywara's T113s support series (v2). For convenience, the latter exists in a Git branch at: https://source.denx.de/u-boot/custodians/u-boot-sunxi.git t113s-v2 It's looking

Re: Re: github dependabot alert on py / pytest

2023-09-30 Thread Tom Rini
On Sat, Sep 30, 2023 at 05:31:46PM +0200, Frank Wunderlich wrote: > > > Gesendet: Samstag, 30. September 2023 um 16:44 Uhr > > Von: "Tom Rini" > > An: "Frank Wunderlich" > > Cc: "u-bootlists.denx.de" > > Betreff: Re: github dependabot alert on py / pytest > > > > On Sat, Sep 30, 2023 at 03:13:3

Aw: Re: github dependabot alert on py / pytest

2023-09-30 Thread Frank Wunderlich
> Gesendet: Samstag, 30. September 2023 um 16:44 Uhr > Von: "Tom Rini" > An: "Frank Wunderlich" > Cc: "u-bootlists.denx.de" > Betreff: Re: github dependabot alert on py / pytest > > On Sat, Sep 30, 2023 at 03:13:30PM +0200, Frank Wunderlich wrote: > > Hi, > > > > dependabot reports a high secu

Re: [PATCH] linker_list: Fix ll_entry_get alignment

2023-09-30 Thread Sean Anderson
On 9/30/23 10:36, Sean Anderson wrote: When ll_entry_get is used on a list entry ll_entry_declare'd in the same file, the lack of alignment on the access will override the ll_entry_declare alignment. This causes GCC to use the default section alignment of 32 bytes. As list entries are not necessa

Re: github dependabot alert on py / pytest

2023-09-30 Thread Tom Rini
On Sat, Sep 30, 2023 at 03:13:30PM +0200, Frank Wunderlich wrote: > Hi, > > dependabot reports a high security issue > > https://github.com/frank-w/u-boot/security/dependabot/1 > > it seems it is not yet fixed in master and next as there py is still in and > pytest==6.2.5 > > I have not yet se

[PATCH] linker_list: Fix ll_entry_get alignment

2023-09-30 Thread Sean Anderson
When ll_entry_get is used on a list entry ll_entry_declare'd in the same file, the lack of alignment on the access will override the ll_entry_declare alignment. This causes GCC to use the default section alignment of 32 bytes. As list entries are not necessarily 32-byte aligned, this will cause a g

github dependabot alert on py / pytest

2023-09-30 Thread Frank Wunderlich
Hi, dependabot reports a high security issue https://github.com/frank-w/u-boot/security/dependabot/1 it seems it is not yet fixed in master and next as there py is still in and pytest==6.2.5 I have not yet seen any topics for this...are you aware of this? I know tests are run in isolated envi

[PATCH 6/6] eeprom: starfive: add 'mac raw' command

2023-09-30 Thread Heinrich Schuchardt
Add a sub-command to print a hexdump of the EEPROM content. Signed-off-by: Heinrich Schuchardt --- board/starfive/visionfive2/visionfive2-i2c-eeprom.c | 5 + 1 file changed, 5 insertions(+) diff --git a/board/starfive/visionfive2/visionfive2-i2c-eeprom.c b/board/starfive/visionfive2/vision

[PATCH 4/6] eeprom: starfive: re-implement mac command

2023-09-30 Thread Heinrich Schuchardt
The different implementations of the mac command have board or vendor specific sub-commands. Add the command definition specific to the VisionFive 2 board. Don't call cmd_usage() directly but return CMD_RET_USAGE instead. Signed-off-by: Heinrich Schuchardt --- .../visionfive2/visionfive2-i2c-e

[PATCH 5/6] eeprom: starfive: raw dump if unsupported data version

2023-09-30 Thread Heinrich Schuchardt
If the data version field of the EEPROM is not supported, provide a hexdump of the data. Signed-off-by: Heinrich Schuchardt --- board/starfive/visionfive2/visionfive2-i2c-eeprom.c | 1 + 1 file changed, 1 insertion(+) diff --git a/board/starfive/visionfive2/visionfive2-i2c-eeprom.c b/board/sta

[PATCH 3/6] eeprom: SiFive Unmatched: re-implement mac command

2023-09-30 Thread Heinrich Schuchardt
The different implementations of the mac command have board or vendor specific sub-commands. Add the command definition specific to the SiFive HiFive Unmatched board. Don't call cmd_usage() directly but return CMD_RET_USAGE instead. Signed-off-by: Heinrich Schuchardt --- .../unmatched/hifive-p

[PATCH 2/6] freescale: fix long help handling in mac command

2023-09-30 Thread Heinrich Schuchardt
CONFIG_SYS_LONGHELP=n we want to reduce the size of the U-Boot binary. The long text should be reduced to and empty string in this case. There is not need to call cmd_usage() directly. It is sufficient to return CMD_RET_USAGE. Signed-off-by: Heinrich Schuchardt --- board/freescale/common/sys_ee

[PATCH 1/6] cmd: move mac command

2023-09-30 Thread Heinrich Schuchardt
Board specific implementations of the 'mac' command differ concerning the supported sub-commands. Move the Freescale specific mac command definition to the board code. Signed-off-by: Heinrich Schuchardt --- board/freescale/common/sys_eeprom.c | 22 +++ cmd/Makefile

[PATCH 0/6] cmd mac: separate implementations

2023-09-30 Thread Heinrich Schuchardt
There are three implementations of the 'mac' command: * Freescale (NXP) * SiFive Unmatched * StarFive VisionFive 2 They all use different sets of sub-commands and hence should display a different long text help. This series moves the command definition to the three implementations. The followin

Re: [PATCH] pinctrl: Check pinconfig nodes pre-reloc status recursively

2023-09-30 Thread Massimo Pegorer
Hi Simon, Il giorno ven 11 ago 2023 alle ore 02:29 Simon Glass ha scritto: > > Hi Jonas, > > On Sat, 5 Aug 2023 at 08:29, Jonas Karlman wrote: > > > > Hi Massimo, > > > > On 2023-08-05 16:06, Massimo Pegorer wrote: > > > Hi Jonas, > > > > > > Il giorno sab 5 ago 2023 alle ore 13:11 Jonas Karlman

Re: [RFC] mmc: Remove alignment hole for cmdidx in struct mmc_cmd

2023-09-30 Thread Ferass El Hafidi
On Sat Sep 30, 2023 at 1:06 AM CEST, Jonas Karlman wrote: > The alignment hole caused by cmdidx in struct mmc_cmd cause strange > issues together with the peephole2 optimization on Amlogic SoCs. > Following was observed while working on SPL support for Amlogic SoCs. > > sd_get_capabilities() normal

Re: [PATCH v5 39/43] command: Include a required header in command.h

2023-09-30 Thread Mattijs Korpershoek
On mer., sept. 27, 2023 at 08:22, Simon Glass wrote: > This uses ARRAY_SIZE() but does not include the header file which declares > it. Fix this, so that command.h can be included without common.h > > Signed-off-by: Simon Glass Reviewed-by: Mattijs Korpershoek > --- > > Changes in v5: > - Adj

Re: Re: [PATCH] rockchip: rk3399: nanopc-t4: use 1600MHz sdram config

2023-09-30 Thread Lu jicong
I'm not satisfied with this result. All of FriendlyARM's official system images use 800Mhz DDR binary. So they shouldn't found any problem when some boards' DRAM cannot run at 933Mhz. Although they tested them using 933Mhz DDR binary, my board will still pass the test. But now TPL initialized DRA