Re: [v2] zlib: Fix big performance regression

2024-07-16 Thread Michal Simek
On 7/16/24 16:35, Tom Rini wrote: From: Christophe Leroy Commit 340fdf1303dc ("zlib: Port fix for CVE-2016-9841 to U-Boot") brings a big performance regression in inflate_fast(), which leads to watchdog timer reset on powerpc 8xx. It looks like that commit does more than what it describe, i

Re: [PATCH next 2/2] rockchip: remove support for Theobroma Systems RK3368 Lion

2024-07-16 Thread Kever Yang
Hi Quentin, On 2024/7/16 10:17, Kever Yang wrote: On 2024/6/20 18:24, Quentin Schulz wrote: From: Quentin Schulz No meaningful changes were made to this SoM since February 2021. Nobody from Theobroma has booted anything recent on that product since July 2021 at the latest. The product isn't

[PATCH v2 9/9] board: phytec: phycore_am64x: Use k3_mmc.env logic

2024-07-16 Thread Daniel Schultz
Use our common environment file to implement MMC boot. Signed-off-by: Daniel Schultz Reviewed-by: Wadim Egorov --- board/phytec/phycore_am64x/phycore_am64x.env | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/board/phytec/phycore_am64x/phycore_am64x.env b/board

[PATCH v2 8/9] board: phytec: phycore_am62x: Use k3_mmc.env logic

2024-07-16 Thread Daniel Schultz
Use our common environment file to implement MMC boot. Signed-off-by: Daniel Schultz Reviewed-by: Dhruva Gole Reviewed-by: Wadim Egorov --- board/phytec/phycore_am62x/phycore_am62x.env | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/board/phytec/phycore_am62x/ph

[PATCH v2 7/9] include: env: phytec: k3_mmc: Apply overlays during boot

2024-07-16 Thread Daniel Schultz
Include the overlays.env file and run the apply routine before booting the Kernel. Signed-off-by: Daniel Schultz Reviewed-by: Wadim Egorov --- include/env/phytec/k3_mmc.env | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/env/phytec/k3_mmc.env b/include/env/phytec/k3_mmc.env index

[PATCH v2 6/9] include: env: phytec: Add common mmc boot for K3 SoMs

2024-07-16 Thread Daniel Schultz
This environment include can be used to boot from a MMC device for PHYTEC's K3-based SoMs. Signed-off-by: Daniel Schultz Reviewed-by: Wadim Egorov --- include/env/phytec/k3_mmc.env | 18 ++ 1 file changed, 18 insertions(+) create mode 100644 include/env/phytec/k3_mmc.env diff

[PATCH v2 5/9] include: env: phytec: renaming of variables according to bootstd doc

2024-07-16 Thread Daniel Schultz
From: Benjamin Hahn Rename existing environment variables according to the bootstd doc. Renamed variables are fdto_addr, bootenv_addr, fdt_addr. Signed-off-by: Benjamin Hahn Signed-off-by: Daniel Schultz Reviewed-by: Wadim Egorov --- include/env/phytec/overlays.env | 19 ++-

[PATCH v2 4/9] board: phytec: renaming of variables according to bootstd doc

2024-07-16 Thread Daniel Schultz
From: Benjamin Hahn Rename existing environment variables according to the bootstd doc. Renamed variables are fdto_addr, bootenv_addr, fdt_addr and fdt_file. Signed-off-by: Benjamin Hahn Signed-off-by: Daniel Schultz Reviewed-by: Wadim Egorov --- .../phytec/phycore_imx8mp/phycore_imx8mp.env

[PATCH v2 3/9] phycore_imx93: include common overlays.env

2024-07-16 Thread Daniel Schultz
From: Benjamin Hahn Include the common overlays env file for phycore_imx93. The common overlays env file supports disabling loading overlays by setting the no_overlays variable. Signed-off-by: Benjamin Hahn Signed-off-by: Daniel Schultz Reviewed-by: Wadim Egorov --- board/phytec/phycore_imx9

[PATCH v2 2/9] phycore-imx8mp: Add overlay and bootenv.txt support

2024-07-16 Thread Daniel Schultz
From: Benjamin Hahn Add support for loading bootenv.txt as well as loading and applying overlays during boot from mmc and net. ${no_bootenv}: Prevent loading external bootenv.txt environment. Use ${overlays} variable directly from u-boot environment. ${no_overlay}: Do not load ove

[PATCH v2 1/9] include: env: phytec: Create env file for loading and applying overlays

2024-07-16 Thread Daniel Schultz
From: Benjamin Hahn The env scripts for loading and applying overlays are identical for many PHYTEC Boards. Create a common env that can be included. The env variables bootenv_addr and fdto_addr are board specific and need to be set in the board specific file. The env variable get_cmd also needs

[PATCH v2 0/9] Generalize PHYTEC Overlay Handling

2024-07-16 Thread Daniel Schultz
The overlays are specified in the bootenv.txt file that is loaded into the environment. Then these overlays get loaded and applied via a script. These scripts for loading and applying devicetree overlays are identical for many phytec boards. Create a common overlays.env that can be included. Add su

Re: [PATCH v3 3/3] configs: rockchip: imply OF_LIBFDT_OVERLAY for rk3308 and rk3328

2024-07-16 Thread Chen-Yu Tsai
On Wed, Jul 17, 2024 at 12:47 PM FUKAUMI Naoki wrote: > > for rk3308, all defconfigs have CONFIG_OF_LIBFDT_OVERLAY=y, so enable it > by default. > > for rk3328, any defconfig doesn't have it. but there is no strong reason > not to enable it. at least it's required for ROCK Pi E. I wonder if it ma

Re: [PATCH v2 1/3] configs: rockchip: reduce diff for rk3308, rk3328, rk3399, rk3568, and rk3588

2024-07-16 Thread FUKAUMI Naoki
Hi On 7/17/24 13:31, Kever Yang wrote: Hi Naoki, On 2024/6/18 17:53, FUKAUMI Naoki wrote: this is cosmetic change. no functional change is intended. - remove redundant white spaces - replace white spaces with tab - align position of last letter/word - sort lines in CFG_EXTRA_ENV_SETTINGS - ad

[PATCH v3 1/3] configs: rockchip: reduce diff for rk3308, rk3328, rk3399, rk3568, and rk3588

2024-07-16 Thread FUKAUMI Naoki
this is cosmetic change. no functional change is intended. - remove redundant white spaces - replace white spaces with tab - align position of last letter/word - sort lines in CFG_EXTRA_ENV_SETTINGS - add comment after #endif Signed-off-by: FUKAUMI Naoki Reviewed-by: Kever Yang --- Changes in v

[PATCH v3 2/3] configs: rockchip: sync ENV_MEM_LAYOUT_SETTINGS for rk3308, rk3328, and rk3399

2024-07-16 Thread FUKAUMI Naoki
- add support for compressed kernel for rk3308 - prepare support for fdtoverlay for rk3328 tested on ROCK Pi S 256MB, ROCK Pi E 2GB, and ROCK Pi 4A 4GB with linux-next-20240613 defconfig kernel. Signed-off-by: FUKAUMI Naoki Reviewed-by: Kever Yang --- Changes in v3: - add missing separator in c

[PATCH v3 3/3] configs: rockchip: imply OF_LIBFDT_OVERLAY for rk3308 and rk3328

2024-07-16 Thread FUKAUMI Naoki
for rk3308, all defconfigs have CONFIG_OF_LIBFDT_OVERLAY=y, so enable it by default. for rk3328, any defconfig doesn't have it. but there is no strong reason not to enable it. at least it's required for ROCK Pi E. Signed-off-by: FUKAUMI Naoki --- Changes in v3: - add missing separator in commit

Re: [PATCH v2 1/3] configs: rockchip: reduce diff for rk3308, rk3328, rk3399, rk3568, and rk3588

2024-07-16 Thread Kever Yang
Hi Naoki, On 2024/6/18 17:53, FUKAUMI Naoki wrote: this is cosmetic change. no functional change is intended. - remove redundant white spaces - replace white spaces with tab - align position of last letter/word - sort lines in CFG_EXTRA_ENV_SETTINGS - add comment after #endif Signed-off-by: FU

Re: [PATCH] configs: j784s4_evm : Increase Dynamic memory allocation size

2024-07-16 Thread Kumar, Udit
Hi Francesco On 7/17/2024 1:35 AM, Francesco Dolcini wrote: Hello, On Mon, Jul 15, 2024 at 11:13:01PM +0530, Udit Kumar wrote: Increase malloc size to 32 MB to align with other J7 family devices. Is this needed for any specific reason? I am asking to understand if other boards using the same

Re: [PATCH COVER] rockchip: rk3399: fix SPI-NOR flash not found in U-Boot pre-reloc

2024-07-16 Thread Kever Yang
On 2024/6/17 21:10, Quentin Schulz wrote: From: Quentin Schulz In commit 100f489f58a6 ("rockchip: rk3399: Fix loading FIT from SD-card when booting from eMMC"), the spi1 bootph properties were mistakenly removed meaning, so re-add them back to fix SPI-NOR flash not being found in U-Boot pre-r

Re: [PATCH 2/2] nvmem: layouts: add U-Boot env layout

2024-07-16 Thread Jeff Johnson
On 7/15/24 06:54, Rafał Miłecki wrote: From: Rafał Miłecki U-Boot environment variables are stored in a specific format. Actual data can be placed in various storage sources (MTD, UBI volume, EEPROM, NVRAM, etc.). Move all generic (NVMEM device independent) code from NVMEM device driver to an

Re: [PATCH v1 2/2] odroid: Fix target platform compilation issue on Odroid-XU3

2024-07-16 Thread Minkyu Kang
Hi, 2024년 6월 27일 (목) 00:41, Anand Moon 님이 작성: > Resolved a compilation issue where the build system attempted > to compile for the Odroid-XU3 platform instead of the specified > Exynos4412 platform due to an incorrect CONFIG_SYS_BOARD setting. > Updated the Makefile to ensure that compilation on

Re: [PATCH v1 1/2] dm: exynos: Correct CONFIG_SYS_BOARD setting for Odroid XU3 boards

2024-07-16 Thread Minkyu Kang
Hi, 2024년 7월 13일 (토) 16:51, Anand Moon 님이 작성: > Hi All, > > On Wed, 26 Jun 2024 at 21:07, Sam Protsenko > wrote: > > > > On Wed, Jun 26, 2024 at 10:15 AM Anand Moon > wrote: > > > > > > Fix the issue where CONFIG_SYS_BOARD was incorrectly set on > > > Odroid XU3 boards, causing boot failure. T

Re: [PATCH v2 1/5] usb: tcpm: add core framework

2024-07-16 Thread Tim Harvey
On Fri, Jul 12, 2024 at 5:23 PM Tim Harvey wrote: > > On Tue, Jun 4, 2024 at 9:36 AM Sebastian Reichel > wrote: > > > > This adds TCPM framework in preparation for fusb302 support, which can > > handle USB power delivery messages. This is needed to solve issues with > > devices, that are running

Re: [PATCH] arm: rockchip: using generic capsule update mechanism

2024-07-16 Thread Kever Yang
Hi WeiZhao, On 2024/5/8 19:16, Weizhao Ouyang wrote: Currently Rockchip's capsule update mechanism only accepts capsules in form of a mmc partition, but a generic capsule update mechanism should be used to satisfy the universal requirements. First of all, the capsule update source code can stay

Re: [PATCH v2 2/5] phy: rockchip: naneng-combphy: Introduce PHY-IDs to fix RK3588 muxing

2024-07-16 Thread Kever Yang
On 2024/7/17 04:42, Sebastian Kropatsch wrote: Fix multiplex configuration for PCIe1L0 and PCIe1L1 in PCIESEL_CON for RK3588 to correctly select between Combo PHYs and PCIe3 PHY. Currently, the code incorrectly muxes both ports to Combo PHYs, interfering with PCIe3 PHY settings. Introduce PHY i

Re: [PATCH v3 0/4] Fix fdtfile for j722s and am62p

2024-07-16 Thread Tom Rini
On Tue, 02 Jul 2024 10:50:00 +0530, Manorit Chawdhry wrote: > fdtfile wasn't being populated in these boards in legacy boot using > bootcmd_ti_mmc, migrate these platforms to ti_set_fdt_env. > > Applied to u-boot/master, thanks! -- Tom

Re: [PATCH 1/4] configs: phycore_am62x_a53: Add more commands

2024-07-16 Thread Tom Rini
On Sun, 30 Jun 2024 23:20:47 -0700, Daniel Schultz wrote: > Add i2c and rtc commands with all dependencies which are > required for testing. > > Additionally, add smc and cache commands to boot Zephyr on the A53. > > Applied to u-boot/master, thanks! -- Tom

Re: [PATCH v4 0/3] drivers: bootcount: Add support for ANY filesystem

2024-07-16 Thread Tom Rini
On Fri, 28 Jun 2024 19:35:40 +0200, Vasileios Amoiridis wrote: > Changes in v4: > - Add bootcount.rst in doc/api/index.rst > - Fix typo in documentation > > Changes in v3: > - Remove specific CONFIGs for filesystems > - Add message to prompt user to enable required write f

Re: [PATCH] firmware: psci: register PSCI power domains to stub driver

2024-07-16 Thread Tom Rini
On Fri, 28 Jun 2024 11:54:47 +0200, Neil Armstrong wrote: > On some SoCs, like Qualcomm SoCs, the PSCI cluster power domain > is used by system-wide firmware interfaces to make sure none > of the CPUs are suspended before submitting requests. > > While on U-boot we only use the first core and we

Re: [PATCH 2/2] nvmem: layouts: add U-Boot env layout

2024-07-16 Thread John Thomson
On Mon, 15 Jul 2024, at 13:54, Rafał Miłecki wrote: > From: Rafał Miłecki > > diff --git a/drivers/nvmem/layouts/u-boot-env.c > b/drivers/nvmem/layouts/u-boot-env.c > new file mode 100644 > index ..5217dc4a52f8 > --- /dev/null > +++ b/drivers/nvmem/layouts/u-boot-env.c > @@ -0,0 +1,20

Re: [PATCH v2 00/21] Universal Payload initial series

2024-07-16 Thread Tom Rini
On Sat, Jul 13, 2024 at 09:40:17PM +0200, Heinrich Schuchardt wrote: > > > Am 13. Juli 2024 10:12:50 MESZ schrieb Mark Kettenis > : > >> From: Simon Glass > >> Date: Sat, 13 Jul 2024 08:00:34 +0100 > >> > >> Universal Payload (UPL) is an Industry Standard for firmware > >> components[1]. > > >

Re: Request for hosting a boot-firmware repository in u-boot git (denx and GitHub)

2024-07-16 Thread Tom Rini
On Tue, Jul 16, 2024 at 10:14:26PM +0200, Heinrich Schuchardt wrote: > On 7/16/24 22:01, Tom Rini wrote: > > On Tue, Jul 16, 2024 at 09:35:18PM +0200, Heinrich Schuchardt wrote: > > > On 7/16/24 21:13, Tom Rini wrote: > > > > On Thu, Jun 20, 2024 at 04:35:39PM -0500, Nishanth Menon wrote: > > > > >

[PATCH v2 5/5] phy: rockchip: snps-pcie3: Fix clearing PHP_GRF_PCIESEL_CON bits

2024-07-16 Thread Sebastian Kropatsch
The pcie1ln_sel bits for the RK3588 are getting set but not cleared due to an incorrect write mask. Use a newly introduced constant for the write mask to fix this. Also introduce a GENMASK-based constant for PCIE30_PHY_MODE. This fix is adapted from the upstream Linux commit by Sebastian Reichel:

[PATCH v2 4/5] phy: rockchip: snps-pcie3: Fix bifurcation for RK3588

2024-07-16 Thread Sebastian Kropatsch
Misconfigured `PHP_GRF_PCIESEL` values are causing bifurcation issues, for example on the FriendlyElec CM3588 NAS board which uses bifurcation on both PCIe PCIe ports (all four lanes) to enable four M.2 NVMe sockets. Without this fix, NVMe devices do not get recognized. Correct the `PHP_GRF_PCIESE

[PATCH v2 1/5] phy: rockchip: naneng-combphy: Fix "rockchip" spelling

2024-07-16 Thread Sebastian Kropatsch
Replace "rochchip" by "rockchip" in two instances. Reviewed-by: Kever Yang Signed-off-by: Sebastian Kropatsch --- drivers/phy/rockchip/phy-rockchip-naneng-combphy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/phy/rockchip/phy-rockchip-naneng-combphy.c b/driv

[PATCH v2 3/5] phy: rockchip: snps-pcie3: Fix "rockchip" spelling

2024-07-16 Thread Sebastian Kropatsch
Several identifiers use "rochchip" instead of "rockchip". Fix this by replacing every instance of "rochchip" with "rockchip". Reviewed-by: Kever Yang Signed-off-by: Sebastian Kropatsch --- drivers/phy/rockchip/phy-rockchip-snps-pcie3.c | 12 ++-- 1 file changed, 6 insertions(+), 6 delet

[PATCH v2 2/5] phy: rockchip: naneng-combphy: Introduce PHY-IDs to fix RK3588 muxing

2024-07-16 Thread Sebastian Kropatsch
Fix multiplex configuration for PCIe1L0 and PCIe1L1 in PCIESEL_CON for RK3588 to correctly select between Combo PHYs and PCIe3 PHY. Currently, the code incorrectly muxes both ports to Combo PHYs, interfering with PCIe3 PHY settings. Introduce PHY identifiers to identify the correct Combo PHY and se

[PATCH v2 0/5] phy: rockchip: snps-pcie3: Fix bifurcation and spelling

2024-07-16 Thread Sebastian Kropatsch
Several fixes for RK3588's PCIe PHY from upstream Linux [1][2], which uses a very similar driver. Tested on a FriendlyElec CM3588 NAS which uses PCIe bifurcation in 1x1x1x1 mode to enable four M.2 NVMe sockets. With these fixes applied, NVMe SSDs get properly recognized in U-Boot. In addition, v2

Re: Request for hosting a boot-firmware repository in u-boot git (denx and GitHub)

2024-07-16 Thread Heinrich Schuchardt
On 7/16/24 22:01, Tom Rini wrote: On Tue, Jul 16, 2024 at 09:35:18PM +0200, Heinrich Schuchardt wrote: On 7/16/24 21:13, Tom Rini wrote: On Thu, Jun 20, 2024 at 04:35:39PM -0500, Nishanth Menon wrote: Hi Team, We have briefly discussed this topic on IRC[1]. I would like to propose a new boot-

Re: [PATCH] configs: j784s4_evm : Increase Dynamic memory allocation size

2024-07-16 Thread Francesco Dolcini
Hello, On Mon, Jul 15, 2024 at 11:13:01PM +0530, Udit Kumar wrote: > Increase malloc size to 32 MB to align with other J7 > family devices. Is this needed for any specific reason? I am asking to understand if other boards using the same SOC should be updated to prevent $random_issue. Francesco

Re: Request for hosting a boot-firmware repository in u-boot git (denx and GitHub)

2024-07-16 Thread Tom Rini
On Tue, Jul 16, 2024 at 09:35:18PM +0200, Heinrich Schuchardt wrote: > On 7/16/24 21:13, Tom Rini wrote: > > On Thu, Jun 20, 2024 at 04:35:39PM -0500, Nishanth Menon wrote: > > > Hi Team, > > > > > > We have briefly discussed this topic on IRC[1]. I would like to > > > propose a new boot-firmware

Re: Request for hosting a boot-firmware repository in u-boot git (denx and GitHub)

2024-07-16 Thread Heinrich Schuchardt
On 7/16/24 21:13, Tom Rini wrote: On Thu, Jun 20, 2024 at 04:35:39PM -0500, Nishanth Menon wrote: Hi Team, We have briefly discussed this topic on IRC[1]. I would like to propose a new boot-firmware repository similar to the Linux-firmware repository under the aegis of u-boot hosting. In addit

Re: Request for hosting a boot-firmware repository in u-boot git (denx and GitHub)

2024-07-16 Thread Tom Rini
On Thu, Jun 20, 2024 at 04:35:39PM -0500, Nishanth Menon wrote: > Hi Team, > > We have briefly discussed this topic on IRC[1]. I would like to > propose a new boot-firmware repository similar to the Linux-firmware > repository under the aegis of u-boot hosting. > > In addition to TI, it looks lik

Re: [PATCH 0/9] Generalize PHYTEC Overlay Handling

2024-07-16 Thread Tom Rini
On Tue, Jul 02, 2024 at 10:41:53PM -0700, Daniel Schultz wrote: > The overlays are specified in the bootenv.txt file that is loaded into > the environment. Then these overlays get loaded and applied via a script. > These scripts for loading and applying devicetree overlays are identical > for many

Re: [PATCH 1/1] doc: enable ReadTheDocs addon management

2024-07-16 Thread Tom Rini
On Tue, Jul 16, 2024 at 09:04:23PM +0200, Heinrich Schuchardt wrote: > Up to now ReadTheDocs has been injecting code when building on their > platform. This includes for instance improvements for the search function. > > To maintain the current output ReadTheDocs requires setting html_baseurl > a

[PATCH 1/1] doc: enable ReadTheDocs addon management

2024-07-16 Thread Heinrich Schuchardt
Up to now ReadTheDocs has been injecting code when building on their platform. This includes for instance improvements for the search function. To maintain the current output ReadTheDocs requires setting html_baseurl and html_context in conf.py. See: https://about.readthedocs.com/blog/2024/07/add

Re: Pull request: u-boot-sunxi/master for v2024.10

2024-07-16 Thread Tom Rini
On Tue, Jul 16, 2024 at 01:24:05PM +0100, Andre Przywara wrote: > Hi Tom, > > please pull the sunxi/master branch, containing the first part of the > 2024.10 changes. > Nothing really major here, some rework of the SPL PMIC drivers, adding > support for the AXP717 on the way, which is showing up

Re: Various Integer Overflows in dlmalloc

2024-07-16 Thread Tom Rini
On Tue, Jul 16, 2024 at 11:16:27AM +0200, Richard Weinberger wrote: > Hi! > > While inspecting various security aspects of U-Boot I noticed some > issues around dlmalloc and asking for your feedback, especially for the > first issue. > I'm CC'ing Barebox folks since Barebox seems to be based on th

Re: [PATCH] board: rpi: Update memory layout for Aarch64

2024-07-16 Thread Tom Rini
On Tue, Jul 16, 2024 at 02:16:02PM -0300, Walter Lozano wrote: > ARM and Aarch64 have different restrictions and trying to accommodate > larger kernels like the ones used in distros can be challenging. For this > reason, separate the layout and rearrange the map for Aarch64 to support > kernels la

[PATCH] board: rpi: Update memory layout for Aarch64

2024-07-16 Thread Walter Lozano
ARM and Aarch64 have different restrictions and trying to accommodate larger kernels like the ones used in distros can be challenging. For this reason, separate the layout and rearrange the map for Aarch64 to support kernels larger than 36 MB. Signed-off-by: Walter Lozano --- board/raspberrypi/

Re: [RFC PATCH v2 41/48] efi_memory: add an event handler to update memory map

2024-07-16 Thread Tom Rini
On Tue, Jul 16, 2024 at 11:55:10AM +0530, Sughosh Ganu wrote: > On Tue, 16 Jul 2024 at 00:35, Tom Rini wrote: > > > > On Mon, Jul 15, 2024 at 12:39:32PM +0100, Simon Glass wrote: > > > Hi Sughosh, > > > > > > On Mon, 15 Jul 2024 at 10:39, Sughosh Ganu > > > wrote: > > > > > > > > hi Simon, > > >

Re: [PATCH 1/4] lib: sha256: add feature sha256_hmac

2024-07-16 Thread Peter Robinson
Hi Philippe, It might be useful to have a cover letter explaining what the plans for this code are, great that there are tests but adding code in without it being used isn't always a feature so a cover letter with some details often helps with the context. Also if you're not aware there's work to

Re: [PATCH 02/13] doc: Move bootstd into its own directory

2024-07-16 Thread Tom Rini
On Tue, Jul 16, 2024 at 08:04:38AM +0100, Simon Glass wrote: > Hi Heinrich, > > On Mon, 15 Jul 2024 at 22:58, Heinrich Schuchardt wrote: > > > > On 7/15/24 12:13, Simon Glass wrote: > > > Before adding more files, move the bootstd docs into a new directory, > > > with an index. > > > > > > Signed

[PATCH 4/4] test: lib: add test for key derivation

2024-07-16 Thread Philippe Reynes
Adds a test for the function sha256_hkdf. Signed-off-by: Philippe Reynes --- test/lib/Makefile | 2 +- test/lib/test_sha256_hkdf.c | 104 2 files changed, 105 insertions(+), 1 deletion(-) create mode 100644 test/lib/test_sha256_hkdf.c diff --git

[PATCH 1/4] lib: sha256: add feature sha256_hmac

2024-07-16 Thread Philippe Reynes
Adds the support of the hmac based on sha256. This implementation is based on rfc2104. Signed-off-by: Philippe Reynes --- include/u-boot/sha256.h | 4 lib/sha256.c| 40 2 files changed, 44 insertions(+) diff --git a/include/u-boot/sha25

[PATCH 2/4] test: lib: add test for sha256_hamc

2024-07-16 Thread Philippe Reynes
Adds a test for the function sha256_hmac Signed-off-by: Philippe Reynes --- test/lib/Makefile | 1 + test/lib/test_sha256_hmac.c | 108 2 files changed, 109 insertions(+) create mode 100644 test/lib/test_sha256_hmac.c diff --git a/test/lib/Makef

[PATCH 3/4] lib: sha256: add support of key derivation

2024-07-16 Thread Philippe Reynes
Adds the support of key derivation using the scheme hkdf. This scheme is defined in rfc5869. Signed-off-by: Philippe Reynes --- include/u-boot/sha256.h | 8 lib/sha256.c| 42 + 2 files changed, 50 insertions(+) diff --git a/include/u

[v2] zlib: Fix big performance regression

2024-07-16 Thread Tom Rini
From: Christophe Leroy Commit 340fdf1303dc ("zlib: Port fix for CVE-2016-9841 to U-Boot") brings a big performance regression in inflate_fast(), which leads to watchdog timer reset on powerpc 8xx. It looks like that commit does more than what it describe, it especially removed an important optim

Re: [PATCH 1/5] arm: Remove omap4_panda board

2024-07-16 Thread Robert Nelson
On Mon, Jul 15, 2024 at 2:36 PM Tom Rini wrote: > > This board has not been converted to CONFIG_DM_I2C by the deadline. > Remove it. > > Signed-off-by: Tom Rini Acked-by: Robert Nelson It has to be done, has not been converted, if any active real users want to bring this back, it can be revert

Re: [PATCH 1/2] spi: sunxi: drop max_hz handling

2024-07-16 Thread Andre Przywara
On Tue, 16 Jul 2024 08:58:14 +0200 "Michael Walle" wrote: > Hi, > > > > The driver is trying to read the "spi-max-frequency" property of the > > > *controller* driver node. There is no such property. The > > > "spi-max-frequency" property belongs to the SPI devices on the bus. > > > > Ah, inde

Re: [PATCH 5/5] arm: Remove omap3_beagle board

2024-07-16 Thread Robert Nelson
On Mon, Jul 15, 2024 at 2:36 PM Tom Rini wrote: > > This board has not been converted to CONFIG_DM_I2C by the deadline. > Remove it. > > Signed-off-by: Tom Rini Acked-by: Robert Nelson It has to be done, has not been converted, if any active real users want to bring this back, it can be revert

[PATCH] efi_loader: Fix typo in EFI_RT_VOLATILE_STORE description

2024-07-16 Thread Michal Simek
Fix typo in EFI_RT_VOLATILE_STORE description. Fixes: c28d32f946f0 ("efi_loader: conditionally enable SetvariableRT") Signed-off-by: Michal Simek --- lib/efi_loader/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/efi_loader/Kconfig b/lib/efi_loader/Kconfig index

[PATCH] arm64: xilinx: Describe TPM reset for Kria CCs

2024-07-16 Thread Michal Simek
Describe carrier card TPM reset behavior and show message about it on boot console to let users know what to expect from it. Signed-off-by: Michal Simek --- board/xilinx/zynqmp/zynqmp_kria.env | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/board/xilinx/zynqmp/zynqm

Pull request: u-boot-sunxi/master for v2024.10

2024-07-16 Thread Andre Przywara
Hi Tom, please pull the sunxi/master branch, containing the first part of the 2024.10 changes. Nothing really major here, some rework of the SPL PMIC drivers, adding support for the AXP717 on the way, which is showing up on newer boards now, most prominently some Anbernic handheld gaming devices.

Re: [PATCH] riscv: dts: jh7110: Enable PLL node in SPL

2024-07-16 Thread Leo Liang
On Thu, Jul 11, 2024 at 12:55:05PM -0700, E Shattow wrote: > [EXTERNAL MAIL] > > Ping. This regression still exists and is now in stable release. > Should we revert this change or how must it be fixed? > > -E > Hi all, I think I could revert this commit for now if we cannot find the root caus

Re: [PATCH 9/9] rockchip: gpio: Add gpio-ranges props

2024-07-16 Thread Kever Yang
On 2024/5/12 20:16, Jonas Karlman wrote: Add gpio-ranges props to supported SoCs based on the following Linux patches: ARM: dts: rockchip: add gpio-ranges property to gpio nodes https://lore.kernel.org/all/26007385-81dc-9961-05d5-8b9a0969d...@gmail.com/ arm64: dts: rockchip: add gpio-ranges p

Re: [PATCH 8/9] pinctrl: rockchip: Add pinmux status related ops

2024-07-16 Thread Kever Yang
On 2024/5/12 20:16, Jonas Karlman wrote: Add get_pins_count(), get_pin_name() and get_pin_muxing() ops to support the pinmux status cmd. => pinmux dev pinctrl dev: pinctrl => pinmux status GPIO0_A0 : gpio GPIO0_A1 : func-1 GPIO0_A2 : gpio GPIO0_A3 : gpio GPIO0_A4 :

Re: [PATCH 7/9] gpio: rockchip: Use pinctrl pin offset to get_gpio_mux()

2024-07-16 Thread Kever Yang
On 2024/5/12 20:16, Jonas Karlman wrote: Use the pinctrl pin offset to get_gpio_mux() to remove the bank num dependency and instead only use the bank num to assign a bank name. Most Rockchip SoCs use all 32 pins of each gpio controller, meaning the pinctrl pin offset typically is aligned to 32

Re: [PATCH 6/9] gpio: rockchip: Get pinctrl device from gpio-ranges prop

2024-07-16 Thread Kever Yang
On 2024/5/12 20:16, Jonas Karlman wrote: Get pinctrl device from gpio-ranges phandle when the property exists, fallback to get the first pinctrl device. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever --- drivers/gpio/rk_gpio.c | 27 +++ 1 f

Re: [PATCH 5/9] pinctrl: rockchip: Update get_gpio_mux() ops

2024-07-16 Thread Kever Yang
On 2024/5/12 20:16, Jonas Karlman wrote: Add a way to get_gpio_mux() based on the pinctrl pin offset, use -1 as banknum to use the pinctrl pin offset mode instead of bank pin offset. This mode will be used by the gpio driver to ensure a pin used by gpio request() and get_function() ops always

Re: [PATCH 0/4] rockchip: Add gpio request() ops and drop PCIe reset-gpios workaround

2024-07-16 Thread Kever Yang
Hi Alex, Jonas, On 2024/5/23 03:46, Alex Bee wrote: Am 22.05.24 um 18:20 schrieb Jonas Karlman: On 2024-05-22 16:18, Alex Bee wrote: Am 13.05.24 um 01:22 schrieb Jonas Karlman: On 2024-05-13 00:34, Alex Bee wrote: Am 12.05.24 um 23:37 schrieb Jonas Karlman: Hi Alex, On 2024-05-12 21:49, A

Various Integer Overflows in dlmalloc

2024-07-16 Thread Richard Weinberger
Hi! While inspecting various security aspects of U-Boot I noticed some issues around dlmalloc and asking for your feedback, especially for the first issue. I'm CC'ing Barebox folks since Barebox seems to be based on the same dlmalloc-implementation as U-Boot does. 1. Integer Overflow While Comput

Re: [RFC PATCH v2 41/48] efi_memory: add an event handler to update memory map

2024-07-16 Thread Sughosh Ganu
hi Simon, On Tue, 16 Jul 2024 at 12:40, Simon Glass wrote: > > Hi Sughosh, > > On Tue, 16 Jul 2024 at 07:25, Sughosh Ganu wrote: > > > > On Tue, 16 Jul 2024 at 00:35, Tom Rini wrote: > > > > > > On Mon, Jul 15, 2024 at 12:39:32PM +0100, Simon Glass wrote: > > > > Hi Sughosh, > > > > > > > > On

[PATCH v2 1/1] boot: provide CONFIG_BOOTMETH_QFW Kconfig parameter

2024-07-16 Thread Heinrich Schuchardt
U-Boot is often used conjunction with QEMU to boot via EFI or syslinux. Here the QFW boot method is not needed. At least for qemu-riscv64_smode_defconfig the kernel parameter is used to specify the U-Boot binary. Trying to run U-Boot as a kernel makes no sense. Provide Kconfig parameter CONFIG_BO

Re: [PATCH 1/1] boot: provide CONFIG_BOOTMETH_QFW Kconfig parameter

2024-07-16 Thread Heinrich Schuchardt
On 7/16/24 09:04, Simon Glass wrote: Hi Heinrich, On Tue, 16 Jul 2024 at 03:40, Heinrich Schuchardt wrote: U-Boot is often used conjunction with QEMU to boot via EFI or syslinux. Here the QFW boot method is not needed. At least for qemu-riscv64_smode_defconfig the kernel parameter is used to

Re: [PATCH v2 14/14] doc: Describe the bootstd settings

2024-07-16 Thread Mattijs Korpershoek
Hi Simon, Thank you for the patch. On mar., juil. 16, 2024 at 08:04, Simon Glass wrote: > The bootstd node provides some configuration properties. Add these to > the documentation. > > Signed-off-by: Simon Glass > Reviewed-by: Quentin Schulz Reviewed-by: Mattijs Korpershoek > --- > > (no c

Re: [PATCH v2 13/14] boot: Correct indentation in efi bootmeth

2024-07-16 Thread Mattijs Korpershoek
Hi Simon, Thank you for the patch. On mar., juil. 16, 2024 at 08:04, Simon Glass wrote: > Fix a minor indentation / whitespace problem in a comment. > > Signed-off-by: Simon Glass > Reviewed-by: Heinrich Schuchardt > Reviewed-by: Quentin Schulz Reviewed-by: Mattijs Korpershoek > --- > > (

Re: [PATCH v2 12/14] doc: Add a link to VBE from the bootstd docs

2024-07-16 Thread Mattijs Korpershoek
Hi Simon, Thank you for the patch. On mar., juil. 16, 2024 at 08:04, Simon Glass wrote: > Link to this page to make it easier to find the VBE docs. > > Signed-off-by: Simon Glass > Reviewed-by: Heinrich Schuchardt > Reviewed-by: Quentin Schulz Reviewed-by: Mattijs Korpershoek > --- > > (n

Re: [PATCH v2 11/14] doc: Add a description for bootmeth_script

2024-07-16 Thread Mattijs Korpershoek
Hi Simon, Thank you for the patch. On mar., juil. 16, 2024 at 08:04, Simon Glass wrote: > Add documentation for the script bootmeth. > > Signed-off-by: Simon Glass > Reviewed-by: Quentin Schulz Reviewed-by: Mattijs Korpershoek > --- > > Changes in v2: > - Adjustments from Heinrich's commen

Re: [PATCH v2 10/14] bootstd: Correct handling of script from network

2024-07-16 Thread Mattijs Korpershoek
Hi Simon, Thank you for the patch. On mar., juil. 16, 2024 at 08:04, Simon Glass wrote: > When reading a script from a network, no block device is available. > Update the implementation to support this correctly, avoiding setting > environment variables which relate only to block devices. > > S

Re: [PATCH v2 09/14] bootstd: Tidy up comments on the boothmeth drivers

2024-07-16 Thread Mattijs Korpershoek
Hi Simon, Thank you for the patch. On mar., juil. 16, 2024 at 08:04, Simon Glass wrote: > Fix a typo in the comment and add one to the EFI driver too. > > Signed-off-by: Simon Glass > Reviewed-by: Heinrich Schuchardt > Reviewed-by: Quentin Schulz Reviewed-by: Mattijs Korpershoek > --- > >

Re: [PATCH v2 08/14] doc: Add a description for bootmeth_sandbox

2024-07-16 Thread Mattijs Korpershoek
Hi Simon, Thank you for the patch. On mar., juil. 16, 2024 at 08:04, Simon Glass wrote: > Add documentation for the sandbox bootmeth. > > Fix up the compatible string to drop the 'extlinux' part, which is not > relevant to this bootmeth. > > Signed-off-by: Simon Glass > Reviewed-by: Quentin Sc

Re: [PATCH v2 07/14] doc: Add a description for bootmeth_cros

2024-07-16 Thread Mattijs Korpershoek
Hi Simon, Thank you for the patch. On mar., juil. 16, 2024 at 08:04, Simon Glass wrote: > Add documentation for the cros bootmeth. > > Signed-off-by: Simon Glass > Reviewed-by: Quentin Schulz Reviewed-by: Mattijs Korpershoek > --- > > Changes in v2: > - Adjustments from Heinrich's comments

Re: [PATCH v2 06/14] doc: Add a description for bootmeth_qfw

2024-07-16 Thread Mattijs Korpershoek
Hi Simon, Thank you for the patch. On mar., juil. 16, 2024 at 08:04, Simon Glass wrote: > Add documentation for the qfw bootmeth. > > Fix up the compatible string to drop the 'extlinux' part, which is not > relevant to this bootmeth. > > Signed-off-by: Simon Glass > Reviewed-by: Quentin Schulz

Re: [PATCH v2 05/14] doc: Add a description for bootmeth_pxe

2024-07-16 Thread Mattijs Korpershoek
Hi Simon, Thank you for the patch. On mar., juil. 16, 2024 at 08:04, Simon Glass wrote: > Add documentation for the pxe bootmeth. > > Signed-off-by: Simon Glass > Reviewed-by: Quentin Schulz Reviewed-by: Mattijs Korpershoek Nitpick: now that pxelinux.rst exist, can we link to this file in

Re: [PATCH v2 04/14] doc: Add a description for bootmeth_extlinux

2024-07-16 Thread Mattijs Korpershoek
Hi Simon, Thank you for the patch. On mar., juil. 16, 2024 at 08:04, Simon Glass wrote: > Add documentation for the extlinux bootmeth. > > Signed-off-by: Simon Glass > Reviewed-by: Quentin Schulz Reviewed-by: Mattijs Korpershoek Minor nitpicks below, feel free to ignore or apply. > --- >

Re: [PATCH next 1/4] rockchip: ringneck-px30: disable broken USB gadget

2024-07-16 Thread Quentin Schulz
Hi Kever, On 7/16/24 4:04 AM, Kever Yang wrote: Hi Quentin, On 2024/6/14 19:04, Quentin Schulz wrote: From: Quentin Schulz USB gadget simply doesn't work right now on PX30. Tested on PX30 EVB and PX30 Ringneck with Linux mainline and Rockchip 5.10 Linux as well as U-Boot. Do you mean for bot

Re: [PATCH v2 03/14] doc: Mention automatic binding of bootmeths

2024-07-16 Thread Mattijs Korpershoek
Hi Simon, Thank you for the patch. On mar., juil. 16, 2024 at 08:04, Simon Glass wrote: > Add a note about how bootmeth drivers are instantiated. > > Signed-off-by: Simon Glass > Suggested-by: Heinrich Schuchardt Reviewed-by: Mattijs Korpershoek > --- > > Changes in v2: > - Add new patch t

Re: [PATCH v2 02/14] doc: Move bootstd into its own directory

2024-07-16 Thread Mattijs Korpershoek
Hi Simon, Thank you for the patch. On mar., juil. 16, 2024 at 08:04, Simon Glass wrote: > Before adding more files, move the bootstd docs into a new directory, > with an index. > > Signed-off-by: Simon Glass > Reviewed-by: Quentin Schulz Reviewed-by: Mattijs Korpershoek > --- > > (no chang

Re: [PATCH v2 01/14] MAINTAINERS: Rename BOOTDEVICE

2024-07-16 Thread Mattijs Korpershoek
Hi Simon, Thank you for the patch. On mar., juil. 16, 2024 at 08:04, Simon Glass wrote: > Rename this to BOOTSTD which is the normal name for the feature. > > Signed-off-by: Simon Glass > Reviewed-by: Quentin Schulz Reviewed-by: Mattijs Korpershoek > --- > > (no changes since v1) > > MAIN

Re: [PATCH 07/13] doc: Add a description for bootmeth_sandbox

2024-07-16 Thread Mattijs Korpershoek
Hi Simon, Thank you for the patch. On lun., juil. 15, 2024 at 11:13, Simon Glass wrote: > Add documentation for the sandbox bootmeth. > > Fix up the compatible string to drop the 'extlinux' part, which is not > relevant to this bootmeth. > > Signed-off-by: Simon Glass Reviewed-by: Mattijs Kor

Re: [PATCH 06/13] doc: Add a description for bootmeth_cros

2024-07-16 Thread Mattijs Korpershoek
Hi Simon, Thank you for the patch. On lun., juil. 15, 2024 at 11:13, Simon Glass wrote: > Add documentation for the cros bootmeth. > > Signed-off-by: Simon Glass Reviewed-by: Mattijs Korpershoek > --- > > doc/develop/bootstd/cros.rst | 33 > doc/develop

Re: [PATCH 05/13] doc: Add a description for bootmeth_qfw

2024-07-16 Thread Mattijs Korpershoek
Hi Simon, Thank you for the patch. On lun., juil. 15, 2024 at 11:13, Simon Glass wrote: > Add documentation for the qfw bootmeth. > > Fix up the compatible string to drop the 'extlinux' part, which is not > relevant to this bootmeth. > > Signed-off-by: Simon Glass > --- > > boot/bootmeth_qfw.

Re: [PATCH 04/13] doc: Add a description for bootmeth_pxe

2024-07-16 Thread Mattijs Korpershoek
Hi Simon, Thank you for the patch. On lun., juil. 15, 2024 at 11:13, Simon Glass wrote: > Add documentation for the pxe bootmeth. > > Signed-off-by: Simon Glass Reviewed-by: Mattijs Korpershoek Nitpick: now that pxelinux.rst exist, can we link to this file in extlinux.rst ? > --- > > doc/

Re: [PATCH 2/2] spi: sunxi: fix clock divider calculation for max frequency setting

2024-07-16 Thread Michael Walle
> > - if ((div / 2) <= (SUN4I_CLK_CTL_CDR2_MASK + 1)) { > > + if (div != 1 && ((div / 2) <= (SUN4I_CLK_CTL_CDR2_MASK + 1))) { > > div /= 2; > > This is still not fully correct, is it? If I ask for 10 MHz, the > algorithm should select 8 MHz (24/3) or actually 6 MHz (24/4), but it >

Re: [PATCH 03/13] doc: Add a description for bootmeth_extlinux

2024-07-16 Thread Mattijs Korpershoek
Hi Simon, Thank you for the patch. On lun., juil. 15, 2024 at 11:13, Simon Glass wrote: > Add documentation for the extlinux bootmeth. > > Signed-off-by: Simon Glass Reviewed-by: Mattijs Korpershoek Minor nitpicks below, feel free to ignore or apply. > --- > > doc/develop/bootstd/extlinux

Re: [PATCH v6 06/24] soc: qcom: cmd-db: adjust probe for U-Boot

2024-07-16 Thread Caleb Connolly
On 16/07/2024 09:04, Simon Glass wrote: Hi Caleb, On Mon, 15 Jul 2024 at 22:42, Caleb Connolly wrote: On 15/07/2024 13:39, Simon Glass wrote: On Mon, 15 Jul 2024 at 11:08, Caleb Connolly wrote: Integrate cmd-db into the U-Boot driver model. This is just a wrapper around an in-memory

Re: [PATCH 33/45] microblaze: Remove duplicate newlines

2024-07-16 Thread Michal Simek
so 13. 7. 2024 v 15:26 odesílatel Marek Vasut napsal: > > Drop all duplicate newlines. No functional change. > > Signed-off-by: Marek Vasut > --- > Cc: Francesco Dolcini > Cc: Sean Anderson > Cc: Simon Glass > Cc: Tom Rini > Cc: u-boot@lists.denx.de > --- > arch/microblaze/include/asm/bitops

Re: [RFC PATCH v2 41/48] efi_memory: add an event handler to update memory map

2024-07-16 Thread Simon Glass
Hi Sughosh, On Tue, 16 Jul 2024 at 07:25, Sughosh Ganu wrote: > > On Tue, 16 Jul 2024 at 00:35, Tom Rini wrote: > > > > On Mon, Jul 15, 2024 at 12:39:32PM +0100, Simon Glass wrote: > > > Hi Sughosh, > > > > > > On Mon, 15 Jul 2024 at 10:39, Sughosh Ganu > > > wrote: > > > > > > > > hi Simon, >

  1   2   >