Re: [PATCH 2/5] scripts/Makefile.lib: Embed capsule public key in platform's dtb

2023-08-15 Thread Sughosh Ganu
hi Tom, On Wed, 16 Aug 2023 at 01:54, Tom Rini wrote: > > On Tue, Aug 15, 2023 at 09:56:20PM +0530, Sughosh Ganu wrote: > > > The EFI capsule authentication logic in u-boot expects the public key > > in the form of an EFI Signature List(ESL) to be provided as part of > > the platform's dtb.

Re: [PATCH 2/5] scripts/Makefile.lib: Embed capsule public key in platform's dtb

2023-08-15 Thread Sughosh Ganu
hi Simon, On Wed, 16 Aug 2023 at 00:09, Simon Glass wrote: > > Hi Sughosh, > > On Tue, 15 Aug 2023 at 10:26, Sughosh Ganu wrote: > > > > The EFI capsule authentication logic in u-boot expects the public key > > in the form of an EFI Signature List(ESL) to be provided as part of > > the

Re: [PATCH v2 0/6] Add SGMII support for MAIN CPSW on TI's J7200 SoC

2023-08-15 Thread Tom Rini
On Wed, 02 Aug 2023 13:47:23 +0530, Siddharth Vadapalli wrote: > This series adds support for SGMII mode to the CPSW driver to enable the > functionality on TI's J7200 SoC. > > Supporting SGMII mode also requires changes to the WIZ driver which acts > as a wrapper for the SerDes used by the CPSW

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

2023-08-15 Thread Sam Edwards
On 8/15/23 15:59, Andre Przywara wrote: Hi Sam, Hi Andre, So that's a bit more nasty indeed. I don't even know if R_CPUCFG really makes sense here, as the _R_ term typically refers to the management processor, which the D1/R528 don't have. Or at least the always-on power domain, but then

Re: [PATCH] x86: Update cbmem driver

2023-08-15 Thread Nable
On 15.08.2023 01:42, Simon Glass: > I believe the original intent was to indicate that the buffer had > overflowed. But prompted by your review I took a look at the coreboot > implementation and it now has an overflow flag. > > So I will send a v2 incorporating this. Thank you for this

Booting Windows 11

2023-08-15 Thread Simon Glass
Hi Heinrich, I thought I would try booting Windows on U-Boot but it does not get very far. Have you tried that? I note a ew odd things below. Is there a validation suite for it? https://github.com/sjg20/u-boot/tree/efi2 qemu-system-x86_64 -smp 4 -m 8G -serial mon:stdio -bios

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

2023-08-15 Thread Andre Przywara
On Tue, 15 Aug 2023 13:17:33 -0600 Sam Edwards wrote: Hi Sam, > On 8/14/23 08:16, Andre Przywara wrote: > > Hi Sam, > > > >> This patch adds the necessary code to make nonsec booting and PSCI > >> secondary core management functional on the R528/T113. > > > > Unfortunately this patch

Re: [PATCH 1/6] ufs: Add UFSHCD_QUIRK_BROKEN_64BIT_ADDRESS

2023-08-15 Thread Bhupesh Sharma
On Wed, 16 Aug 2023 at 03:10, Marek Vasut wrote: > > On 8/15/23 23:08, Bhupesh Sharma wrote: > > On Wed, 16 Aug 2023 at 02:31, Marek Vasut wrote: > >> > >> On 8/15/23 22:04, Bhupesh Sharma wrote: > >>> Hi Marek, > >>> > >>> On 8/14/23 5:22 AM, Marek Vasut wrote: > Add

[PATCH 6/6] board: gateworks: venice: updates for imx8mp-venice-gw74xx revB PCB

2023-08-15 Thread Tim Harvey
Update the imx8mp-venice-gw74xx for revB: - add CAN1 - add TIS-TPM on SPI2 - add FAN controller - fix PMIC I2C bus (revA PMIC I2C was non-functional so no need for backward compatible option) - M2 socket GPIO's moved Signed-off-by: Tim Harvey ---

[PATCH 5/6] board: gateworks: venice: add imx8mm-gw7905-0x support

2023-08-15 Thread Tim Harvey
The Gateworks imx8mm-venice-gw7905-0x consists of a SOM + baseboard. The GW700x SOM contains the following: - i.MX8M Mini SoC - LPDDR4 memory - eMMC Boot device - Gateworks System Controller (GSC) with integrated EEPROM, button controller, and ADC's - RGMII PHY - PMIC - SOM connector

[PATCH 3/6] board: gateworks: venice: add imx8mp-gw72xx-2x support

2023-08-15 Thread Tim Harvey
The Gateworks imx8mp-venice-gw72xx-2x consists of a SOM + baseboard. The GW702x SOM contains the following: - i.MX8M Plus SoC - LPDDR4 memory - eMMC Boot device - Gateworks System Controller (GSC) with integrated EEPROM, button controller, and ADC's - PMIC - SOM connector providing: -

[PATCH 4/6] board: gateworks: venice: add imx8mp-gw73xx-2x support

2023-08-15 Thread Tim Harvey
The Gateworks imx8mp-venice-gw73xx-2x consists of a SOM + baseboard. The GW702x SOM contains the following: - i.MX8M Plus SoC - LPDDR4 memory - eMMC Boot device - Gateworks System Controller (GSC) with integrated EEPROM, button controller, and ADC's - PMIC - SOM connector providing: -

[PATCH 2/6] board: gateworks: venice: add imx8mp-gw71xx-2x support

2023-08-15 Thread Tim Harvey
The Gateworks imx8mp-venice-gw71xx-2x consists of a SOM + baseboard. The GW702x SOM contains the following: - i.MX8M Plus SoC - LPDDR4 memory - eMMC Boot device - Gateworks System Controller (GSC) with integrated EEPROM, button controller, and ADC's - PMIC - SOM connector providing: -

[PATCH 1/6] board: gateworks: venice: fix gw7904

2023-08-15 Thread Tim Harvey
Add missing imx8mm-venice-gw7904 to CONFIG_OF_LIST Fixes commit 61e7f9732565 ("board: gateworks: venice: add imx8mm-gw7904 support") Signed-off-by: Tim Harvey --- configs/imx8mm_venice_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/imx8mm_venice_defconfig

Re: [PATCH 3/6] ufs: Handle UFS 3.0 controllers

2023-08-15 Thread Marek Vasut
On 8/15/23 23:05, Bhupesh Sharma wrote: On Wed, 16 Aug 2023 at 02:31, Marek Vasut wrote: On 8/15/23 19:14, Bhupesh Sharma wrote: On Mon, 14 Aug 2023 at 05:23, Marek Vasut wrote: Extend the version check to handle UFS 3.0 controllers as well. Tested on R-Car S4 UFS 3.0 controller.

Re: [PATCH 1/6] ufs: Add UFSHCD_QUIRK_BROKEN_64BIT_ADDRESS

2023-08-15 Thread Marek Vasut
On 8/15/23 23:08, Bhupesh Sharma wrote: On Wed, 16 Aug 2023 at 02:31, Marek Vasut wrote: On 8/15/23 22:04, Bhupesh Sharma wrote: Hi Marek, On 8/14/23 5:22 AM, Marek Vasut wrote: Add UFSHCD_QUIRK_BROKEN_64BIT_ADDRESS for host controllers which do not support 64-bit addressing. Ported from

Re: [PATCH 1/6] ufs: Add UFSHCD_QUIRK_BROKEN_64BIT_ADDRESS

2023-08-15 Thread Bhupesh Sharma
On Wed, 16 Aug 2023 at 02:31, Marek Vasut wrote: > > On 8/15/23 22:04, Bhupesh Sharma wrote: > > Hi Marek, > > > > On 8/14/23 5:22 AM, Marek Vasut wrote: > >> Add UFSHCD_QUIRK_BROKEN_64BIT_ADDRESS for host controllers which do not > >> support 64-bit addressing. > >> > >> Ported from Linux kernel

Re: [PATCH 3/6] ufs: Handle UFS 3.0 controllers

2023-08-15 Thread Bhupesh Sharma
On Wed, 16 Aug 2023 at 02:31, Marek Vasut wrote: > > On 8/15/23 19:14, Bhupesh Sharma wrote: > > On Mon, 14 Aug 2023 at 05:23, Marek Vasut > > wrote: > >> > >> Extend the version check to handle UFS 3.0 controllers as well. > >> Tested on R-Car S4 UFS 3.0 controller. > >> > >> Signed-off-by:

Re: [PATCH 4/6] ufs: Pass hba pointer to ufshcd_prepare_req_desc_hdr()

2023-08-15 Thread Marek Vasut
On 8/15/23 21:57, Bhupesh Sharma wrote: On 8/14/23 5:22 AM, Marek Vasut wrote: Pass the hba pointer itself to ufshcd_prepare_req_desc_hdr() instead of duplicating utp_transfer_req_desc access at each call site. No functional change. Signed-off-by: Marek Vasut --- Cc: Faiz Abbas ---  

Re: [PATCH 3/6] ufs: Handle UFS 3.0 controllers

2023-08-15 Thread Marek Vasut
On 8/15/23 19:14, Bhupesh Sharma wrote: On Mon, 14 Aug 2023 at 05:23, Marek Vasut wrote: Extend the version check to handle UFS 3.0 controllers as well. Tested on R-Car S4 UFS 3.0 controller. Signed-off-by: Marek Vasut --- Cc: Faiz Abbas --- drivers/ufs/ufs.c | 3 ++- drivers/ufs/ufs.h

Re: [PATCH 1/6] ufs: Add UFSHCD_QUIRK_BROKEN_64BIT_ADDRESS

2023-08-15 Thread Marek Vasut
On 8/15/23 22:04, Bhupesh Sharma wrote: Hi Marek, On 8/14/23 5:22 AM, Marek Vasut wrote: Add UFSHCD_QUIRK_BROKEN_64BIT_ADDRESS for host controllers which do not support 64-bit addressing. Ported from Linux kernel commit 6554400d6f66 ("scsi: ufs: core: Add UFSHCD_QUIRK_BROKEN_64BIT_ADDRESS")

Re: [PATCH 17/17] MAINTAINERS: Update UFS maintainer

2023-08-15 Thread Marek Vasut
On 8/15/23 19:48, Bhupesh Sharma wrote: On Tue, 15 Aug 2023 at 04:01, Marek Vasut wrote: On 8/14/23 23:54, Bhupesh Sharma wrote: Since Faiz Abbas's email ID is no longer valid, drop him from UFS Maintainer list. Since I am using the UFS framework now extensively on Qualcomm Snapdragon SoCs,

Re: [PATCH] nvmxip: add sandbox support

2023-08-15 Thread Marek Vasut
On 8/15/23 18:43, Abdellatif El Khlifi wrote: enable the 32-bit version of sandbox Initially NVMXIP came with sandbox64 support. Let's enable sandbox support as well. Signed-off-by: Abdellatif El Khlifi Cc: Tom Rini Cc: Simon Glass Can you please split this into multiple patches and add

Re: [PATCH] buildman: Allow more results while building

2023-08-15 Thread Tom Rini
On Tue, Aug 15, 2023 at 12:39:37PM -0600, Simon Glass wrote: > Hi Tom, > > On Tue, 15 Aug 2023 at 08:42, Tom Rini wrote: > > > > On Thu, Aug 03, 2023 at 12:59:55PM -0600, Simon Glass wrote: > > > > > The -v option enables display of build results while building, instead of > > > needing to do a

Re: Pull request for efi-2023-10-rc3

2023-08-15 Thread Tom Rini
On Tue, Aug 15, 2023 at 06:31:39PM +0200, Heinrich Schuchardt wrote: > Dear Tom, > > The following changes since commit 832148f675e427060be074c276956962fa9b5cb6: > > Merge tag 'u-boot-rockchip-20230814' of > https://source.denx.de/u-boot/custodians/u-boot-rockchip (2023-08-14 > 09:11:09

Re: [PATCH 2/5] scripts/Makefile.lib: Embed capsule public key in platform's dtb

2023-08-15 Thread Tom Rini
On Tue, Aug 15, 2023 at 09:56:20PM +0530, Sughosh Ganu wrote: > The EFI capsule authentication logic in u-boot expects the public key > in the form of an EFI Signature List(ESL) to be provided as part of > the platform's dtb. Currently, the embedding of the ESL file into the > dtb needs to be

Re: [PATCH 1/5] scripts/Makefile.lib: Collate all dtsi files for inclusion

2023-08-15 Thread Tom Rini
On Tue, Aug 15, 2023 at 09:56:19PM +0530, Sughosh Ganu wrote: > At the time of building a device-tree file, all the *u-boot.dtsi files > are looked for, in a particular order, and the first file found is > included. Then, the list of files specified in the > CONFIG_DEVICE_TREE_INCLUDES symbol are

Re: [PATCH 1/1] spl: don't assume NVMe partition 1 exists

2023-08-15 Thread Tom Rini
On Tue, Aug 15, 2023 at 06:07:36PM +0200, Heinrich Schuchardt wrote: > There is no requirement that a partition 1 exists in a partition table. > We should not try to retrieve information about it. > > We should not even try reading with partition number > CONFIG_SYS_NVME_BOOT_PARTITION here as

Re: [PATCH 1/6] ufs: Add UFSHCD_QUIRK_BROKEN_64BIT_ADDRESS

2023-08-15 Thread Bhupesh Sharma
Hi Marek, On 8/14/23 5:22 AM, Marek Vasut wrote: Add UFSHCD_QUIRK_BROKEN_64BIT_ADDRESS for host controllers which do not support 64-bit addressing. Ported from Linux kernel commit 6554400d6f66 ("scsi: ufs: core: Add UFSHCD_QUIRK_BROKEN_64BIT_ADDRESS") with ufs_scsi_buffer_aligned() based on

Re: [PATCH 4/6] ufs: Pass hba pointer to ufshcd_prepare_req_desc_hdr()

2023-08-15 Thread Bhupesh Sharma
On 8/14/23 5:22 AM, Marek Vasut wrote: Pass the hba pointer itself to ufshcd_prepare_req_desc_hdr() instead of duplicating utp_transfer_req_desc access at each call site. No functional change. Signed-off-by: Marek Vasut --- Cc: Faiz Abbas --- drivers/ufs/ufs.c | 9 - 1 file

Re: [PATCH 5/6] ufs: Use utp_transfer_req_desc pointer in ufshcd_get_tr_ocs

2023-08-15 Thread Bhupesh Sharma
On 8/14/23 5:22 AM, Marek Vasut wrote: Use utp_transfer_req_desc pointer to reference to utrdl queue instead of referencing the queue directly. This makes the code more consistent. No functional change. Signed-off-by: Marek Vasut --- Cc: Faiz Abbas --- drivers/ufs/ufs.c | 4 +++- 1 file

Re: [PATCH 6/6] ufs: Implement cache management

2023-08-15 Thread Bhupesh Sharma
On 8/14/23 5:22 AM, Marek Vasut wrote: Add function to flush and invalidate cache over request and response queue entries, and perform flush and optional invalidate over block layer data that are passed into the UFS layer. This makes it possible to use UFS with caches enabled. Signed-off-by:

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

2023-08-15 Thread Sam Edwards
On 8/14/23 08:16, Andre Przywara wrote: Hi Sam, This patch adds the necessary code to make nonsec booting and PSCI secondary core management functional on the R528/T113. Unfortunately this patch breaks the build on older 32-bit SoCs, as SUNXI_CPUX_BASE is not defined there. That's a typical

Re: [PATCH] schemas: Add a schema for memory map

2023-08-15 Thread Simon Glass
+linux-a...@vger.kernel.org +lk Since there was a related discussion here: https://patches.linaro.org/project/linux-acpi/patch/20230426034001.16-1-cuiyun...@bytedance.com/ On Fri, 11 Aug 2023 at 15:57, Simon Glass wrote: > > The Devicespec specification skips over handling of a logical view of

U-Boot logging

2023-08-15 Thread Massimo Pegorer
Hi I had a trip into U-Boot logging and I am quite confused. I read the documentation at doc/develop/logging.rst and had a look at source code in log.h log.c printk.h Kconfig and other files, but the picture is still quite foggy and, let's say, 'complicated'. The documentation does not mention

Re: [PATCH 2/5] scripts/Makefile.lib: Embed capsule public key in platform's dtb

2023-08-15 Thread Simon Glass
Hi Sughosh, On Tue, 15 Aug 2023 at 10:26, Sughosh Ganu wrote: > > The EFI capsule authentication logic in u-boot expects the public key > in the form of an EFI Signature List(ESL) to be provided as part of > the platform's dtb. Currently, the embedding of the ESL file into the > dtb needs to be

Re: [PATCH] nvmxip: add sandbox support

2023-08-15 Thread Simon Glass
On Tue, 15 Aug 2023 at 10:43, Abdellatif El Khlifi wrote: > > enable the 32-bit version of sandbox > > Initially NVMXIP came with sandbox64 support. > Let's enable sandbox support as well. > > Signed-off-by: Abdellatif El Khlifi > Cc: Tom Rini > Cc: Simon Glass > --- >

Re: [PATCH 2/6] cmd: gpt: Add command to set bootable flags

2023-08-15 Thread Simon Glass
Hi Joshua, On Tue, 15 Aug 2023 at 10:28, Joshua Watt wrote: > > Adds a command that can be used to modify the GPT partition table to > indicate which partitions should have the bootable flag set > > Signed-off-by: Joshua Watt > --- > cmd/gpt.c | 80

Re: [PATCH] buildman: Allow more results while building

2023-08-15 Thread Simon Glass
Hi Tom, On Tue, 15 Aug 2023 at 08:42, Tom Rini wrote: > > On Thu, Aug 03, 2023 at 12:59:55PM -0600, Simon Glass wrote: > > > The -v option enables display of build results while building, instead of > > needing to do a separate summary step later (or in another terminal). But > > this resets the

Re: [PATCH 17/17] MAINTAINERS: Update UFS maintainer

2023-08-15 Thread Bhupesh Sharma
On Tue, 15 Aug 2023 at 04:01, Marek Vasut wrote: > > On 8/14/23 23:54, Bhupesh Sharma wrote: > > Since Faiz Abbas's email ID is no longer valid, > > drop him from UFS Maintainer list. > > > > Since I am using the UFS framework now extensively > > on Qualcomm Snapdragon SoCs, so proposing myself

Re: [PATCH 1/3] fdt: common API to populate kaslr seed

2023-08-15 Thread Sean Edmond
On 2023-08-15 7:44 a.m., Simon Glass wrote: Hi Sean, On Mon, 14 Aug 2023 at 13:12, Sean Edmond wrote: On 2023-08-12 6:09 a.m., Simon Glass wrote: Hi Sean, On Fri, 11 Aug 2023 at 11:14, Sean Edmond wrote: On 2023-08-09 6:49 p.m., Simon Glass wrote: Hi Sean, On Wed, 9 Aug 2023 at

Re: [PATCH 00/17] Enable UFS on DragonBoard845c

2023-08-15 Thread Bhupesh Sharma
On Tue, 15 Aug 2023 at 04:03, Marek Vasut wrote: > > On 8/14/23 23:54, Bhupesh Sharma wrote: > > This patchset enables the UFS controller on DragonBoard845c > > board which houses Qualcomm SDM845 Snapdragon SoC. > > > > In addition to enabling the UFS HC and UFS QMP PHY found > > on this SoC this

Re: [PATCH 3/6] ufs: Handle UFS 3.0 controllers

2023-08-15 Thread Bhupesh Sharma
On Mon, 14 Aug 2023 at 05:23, Marek Vasut wrote: > > Extend the version check to handle UFS 3.0 controllers as well. > Tested on R-Car S4 UFS 3.0 controller. > > Signed-off-by: Marek Vasut > --- > Cc: Faiz Abbas > --- > drivers/ufs/ufs.c | 3 ++- > drivers/ufs/ufs.h | 1 + > 2 files changed, 3

Re: [PATCH 2/2] configs: sandbox: test: dm: blk: Enable NVMXIP QSPI and update test

2023-08-15 Thread Abdellatif El Khlifi
Hi, On Tue, Aug 15, 2023 at 12:45:57AM +0200, Marek Vasut wrote: > On 8/15/23 00:42, Simon Glass wrote: > > On Sun, 13 Aug 2023 at 15:47, Marek Vasut > > wrote: > > > > > > Enable NVMXIP QSPI driver on sandbox, since it is already enabled > > > on sandbox64. Update blk tests to match. > > > >

Re: Please pull u-boot-ubi

2023-08-15 Thread Tom Rini
On Tue, Aug 15, 2023 at 02:26:06PM +0200, Heiko Schocher wrote: > Hello Tom, > > please pull from u-boot-ubi.git master > > The following changes since commit 832148f675e427060be074c276956962fa9b5cb6: > > Merge tag 'u-boot-rockchip-20230814' of >

Re: Please pull u-boot-i2c

2023-08-15 Thread Tom Rini
On Tue, Aug 15, 2023 at 09:53:55AM +0200, Heiko Schocher wrote: > Hello Tom, > > please pull from u-boot-i2c: > > The following changes since commit 832148f675e427060be074c276956962fa9b5cb6: > > Merge tag 'u-boot-rockchip-20230814' of >

[PATCH V3 2/4] arm: dts: Add k3-am625-beagleplay

2023-08-15 Thread Nishanth Menon
From: Robert Nelson BeagleBoard.org BeaglePlay is an easy to use, affordable open source hardware single board computer based on the Texas Instruments AM625 SoC that allows you to create connected devices that work even at long distances using IEEE 802.15.4g LR-WPAN and IEEE 802.3cg 10Base-T1L.

[PATCH V3 4/4] doc: board: ti: Add BeaglePlay documentation

2023-08-15 Thread Nishanth Menon
Add base documentation for BeaglePlay Signed-off-by: Nishanth Menon --- Changes since V2: * Update build instructions for config fragments * Minor link look and feel fixups. V2: https://lore.kernel.org/u-boot/20230727234446.3651836-5...@ti.com/ V1:

[PATCH V3 1/4] arm: dts: k3-am625-sk-binman: Add labels for unsigned binary

2023-08-15 Thread Nishanth Menon
Add labels for unsigned binary to permit over-ride. Cc: Simon Glass Signed-off-by: Nishanth Menon --- NOTE: We can refactor this once the template solution comes online later on Changes since V2: None V2: https://lore.kernel.org/u-boot/20230727234446.3651836-2...@ti.com/ V1:

[PATCH V3 0/4] board: ti: Add support for BeaglePlay

2023-08-15 Thread Nishanth Menon
Add support for BeaglePlay - rev 3 Boot log: https://gist.github.com/nmenon/3e99b44380873263e39ba4d84788db89 Full series(including dependencies) can be found at: https://github.com/nmenon/fix-k3-dt-u-boot/commits/beagleplay-v3 Caveats: * I have kept networking out of picture for now as it is

[PATCH V3 3/4] board: ti: am62x: Add am62x_beagleplay_* defconfigs

2023-08-15 Thread Nishanth Menon
Add defconfig fragments for am625 based beagleplay Signed-off-by: Nishanth Menon --- Changes since V2: * Switch entirely to config fragments. V2: https://lore.kernel.org/u-boot/20230727234446.3651836-4...@ti.com/ V1: https://lore.kernel.org/all/20230725185253.2123433-6...@ti.com/

[PATCH] nvmxip: add sandbox support

2023-08-15 Thread Abdellatif El Khlifi
enable the 32-bit version of sandbox Initially NVMXIP came with sandbox64 support. Let's enable sandbox support as well. Signed-off-by: Abdellatif El Khlifi Cc: Tom Rini Cc: Simon Glass --- arch/sandbox/dts/sandbox.dts | 14 ++ configs/sandbox_defconfig | 4 ++--

Pull request for efi-2023-10-rc3

2023-08-15 Thread Heinrich Schuchardt
Dear Tom, The following changes since commit 832148f675e427060be074c276956962fa9b5cb6: Merge tag 'u-boot-rockchip-20230814' of https://source.denx.de/u-boot/custodians/u-boot-rockchip (2023-08-14 09:11:09 -0400) are available in the Git repository at:

[PATCH 5/6] cmd: gpt: Preserve bootable flag

2023-08-15 Thread Joshua Watt
Sets the bootable flag when constructing the partition string from the current partition configuration. This ensures that when the partitions are written back (for example, when renaming a partition), the flag is preserved. Signed-off-by: Joshua Watt --- cmd/gpt.c | 3 +++ 1 file changed, 3

[PATCH 6/6] cmd: gpt: Add command to swap partition order

2023-08-15 Thread Joshua Watt
Adds a command called "gpt swap-postition" which will swap the order two partitions are listed in the GPT partition table (but leaves them pointing to the same locations on disk). Signed-off-by: Joshua Watt --- cmd/gpt.c | 50 -- 1 file changed,

[PATCH 4/6] cmd: gpt: Preserve type GUID if enabled

2023-08-15 Thread Joshua Watt
If CONFIG_PARTITION_TYPE_GUID is enabled, the type GUID will be preserved when writing out the partition string. It was already respected when writing out partitions; this ensures that if you capture the current partition layout and write it back (such as when renaming), the type GUIDs are

[PATCH 3/6] cmd: gpt: Add gpt_partition_bootable variable

2023-08-15 Thread Joshua Watt
Adds an additional variable called gpt_partition_bootable that indicates if the given partition is bootable or not. Signed-off-by: Joshua Watt --- cmd/gpt.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/cmd/gpt.c b/cmd/gpt.c index a4b8b2b286..bc08799512 100644 ---

[PATCH 2/6] cmd: gpt: Add command to set bootable flags

2023-08-15 Thread Joshua Watt
Adds a command that can be used to modify the GPT partition table to indicate which partitions should have the bootable flag set Signed-off-by: Joshua Watt --- cmd/gpt.c | 80 +++ 1 file changed, 80 insertions(+) diff --git a/cmd/gpt.c

[PATCH 1/6] cmd: gpt: Remove confusing help text

2023-08-15 Thread Joshua Watt
This help text appears to be a fragment of the text shown when CONFIG_CMD_GPT_RENAME is enabled, but is confusing so remove it. Signed-off-by: Joshua Watt --- cmd/gpt.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/cmd/gpt.c b/cmd/gpt.c index 007a68eaa7..e6f7b0319a 100644 --- a/cmd/gpt.c

[PATCH 0/6] cmd: gpt: GPT manipulation improvements

2023-08-15 Thread Joshua Watt
Adds several improvements and additions to the gpt command processing, specifically (although not exclusively) for the purpose of supporting "ping-pong" booting when doing A/B boot partitions with u-boot itself. In this mechanism, u-boot must boot up, and then check if the correct boot partition

[PATCH 5/5] test: capsule: Remove logic to add public key ESL

2023-08-15 Thread Sughosh Ganu
The public key EFI Signature List(ESL) needed for capsule authentication is now embedded into the platform's DTB as part of the build. Remove the superfluous logic from the test setup. Signed-off-by: Sughosh Ganu --- Changes since RFC series: * New patch

[PATCH 4/5] doc: capsule: Document the new mechanism to embed ESL file into dtb

2023-08-15 Thread Sughosh Ganu
Update the document to specify how the EFI Signature List(ESL) file can be embedded into the platform's dtb as part of the U-Boot build. Signed-off-by: Sughosh Ganu --- Changes since RFC series: * s/u-boot/U-Boot in the commit message. doc/develop/uefi/uefi.rst | 19 +-- 1 file

[PATCH 3/5] sandbox: capsule: Add path to the public key ESL file

2023-08-15 Thread Sughosh Ganu
Add the path to the public key EFI Signature List(ESL) file for the sandbox variants which enable capsule authentication. This ESL file gets embedded into the platform's device-tree as part of the build. Signed-off-by: Sughosh Ganu --- Changes since RFC series: None configs/sandbox_defconfig

[PATCH 2/5] scripts/Makefile.lib: Embed capsule public key in platform's dtb

2023-08-15 Thread Sughosh Ganu
The EFI capsule authentication logic in u-boot expects the public key in the form of an EFI Signature List(ESL) to be provided as part of the platform's dtb. Currently, the embedding of the ESL file into the dtb needs to be done manually. Add a target for generating a dtsi file which contains the

[PATCH 1/5] scripts/Makefile.lib: Collate all dtsi files for inclusion

2023-08-15 Thread Sughosh Ganu
At the time of building a device-tree file, all the *u-boot.dtsi files are looked for, in a particular order, and the first file found is included. Then, the list of files specified in the CONFIG_DEVICE_TREE_INCLUDES symbol are included. Combine these files that are to be included into a

[PATCH 0/5] capsule: Embed the public key ESL as part of build

2023-08-15 Thread Sughosh Ganu
This series takes a different approach to embedding the public key EFI Signature List(ESL) needed for capsule authentication into the platform's DTB. The earlier approach [1] was using a u-boot.dtsi file to embed the key. But this approach has a few issues. 1) The path of the incbin file is not

[PATCH 1/1] spl: don't assume NVMe partition 1 exists

2023-08-15 Thread Heinrich Schuchardt
There is no requirement that a partition 1 exists in a partition table. We should not try to retrieve information about it. We should not even try reading with partition number CONFIG_SYS_NVME_BOOT_PARTITION here as this is done in the fs_set_blk_dev() call anyway. Fixes: 8ce6a2e17577 ("spl:

Re: [PATCH 1/1] lib/vsprintf.c: fix integer overflow in vsprintf

2023-08-15 Thread Paul Liu
Hi Tom, Yes, I think Rasmus is correct. I didn't have any real cases that can trigger the bug. So let's don't include this patch. I'll see if I can revert this in AOSP's branch. Yours, Paul Y On Tue, 15 Aug 2023 at 22:42, Tom Rini wrote: > On Thu, Mar 09, 2023 at 10:12:21AM +0800,

Re: [PATCH 1/1] doc: add partition API to HTML documentation

2023-08-15 Thread Heinrich Schuchardt
On 8/15/23 16:44, Simon Glass wrote: Hi Heinrich, On Tue, 15 Aug 2023 at 04:32, Heinrich Schuchardt wrote: * Convert comments in part.h to Sphinx style. * Create documentation page for the partition API. * Add the partition API page to the API index page. Signed-off-by: Heinrich

Re: Strange gitlab idea

2023-08-15 Thread Tom Rini
On Tue, Aug 15, 2023 at 08:44:20AM -0600, Simon Glass wrote: > Hi Tom, > > On Sun, 13 Aug 2023 at 09:52, Tom Rini wrote: > > > > On Sat, Aug 12, 2023 at 09:14:45PM -0600, Simon Glass wrote: > > > > > Hi Tom, > > > > > > I notice that the runners are not utilised much by the QEMU jobs, > > >

Re: [PATCH v8 4/9] sandbox: Build the mkeficapsule tool for the sandbox variants

2023-08-15 Thread Simon Glass
Hi Tom, On Tue, 15 Aug 2023 at 08:46, Tom Rini wrote: > > On Tue, Aug 15, 2023 at 08:44:18AM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Sun, 13 Aug 2023 at 08:43, Tom Rini wrote: > > > > > > On Sun, Aug 13, 2023 at 07:36:45AM -0600, Simon Glass wrote: > [snip] > > > > I see what you are

Re: [PATCH v8 4/9] sandbox: Build the mkeficapsule tool for the sandbox variants

2023-08-15 Thread Tom Rini
On Tue, Aug 15, 2023 at 08:44:18AM -0600, Simon Glass wrote: > Hi Tom, > > On Sun, 13 Aug 2023 at 08:43, Tom Rini wrote: > > > > On Sun, Aug 13, 2023 at 07:36:45AM -0600, Simon Glass wrote: [snip] > > > I see what you are saying, but from my side I am trying to enumerate > > > the boards, since

Re: [PATCH v3 5/9] board_f: Fix corruption of relocaddr

2023-08-15 Thread Simon Glass
Hi Devarsh, On Tue, 15 Aug 2023 at 03:23, Devarsh Thakkar wrote: > > Hi Simon, Tom, > > On 15/08/23 04:13, Simon Glass wrote: > > Hi Devarsh, Nikhil, Tom, > > > > On Wed, 9 Aug 2023 at 09:29, Bin Meng wrote: > >> > >> On Thu, Aug 3, 2023 at 7:03 PM Bin Meng wrote: > >>> > >>> On Thu, Aug 3,

Re: [PATCH 1/1] doc: add partition API to HTML documentation

2023-08-15 Thread Simon Glass
Hi Heinrich, On Tue, 15 Aug 2023 at 04:32, Heinrich Schuchardt wrote: > > * Convert comments in part.h to Sphinx style. > * Create documentation page for the partition API. > * Add the partition API page to the API index page. > > Signed-off-by: Heinrich Schuchardt > --- > doc/api/index.rst |

Re: [PATCH 1/3] fdt: common API to populate kaslr seed

2023-08-15 Thread Simon Glass
Hi Sean, On Mon, 14 Aug 2023 at 13:12, Sean Edmond wrote: > > > On 2023-08-12 6:09 a.m., Simon Glass wrote: > > Hi Sean, > > > > On Fri, 11 Aug 2023 at 11:14, Sean Edmond > > wrote: > >> > >> On 2023-08-09 6:49 p.m., Simon Glass wrote: > >>> Hi Sean, > >>> > >>> On Wed, 9 Aug 2023 at 16:35,

Re: Strange gitlab idea

2023-08-15 Thread Simon Glass
Hi Tom, On Sun, 13 Aug 2023 at 09:52, Tom Rini wrote: > > On Sat, Aug 12, 2023 at 09:14:45PM -0600, Simon Glass wrote: > > > Hi Tom, > > > > I notice that the runners are not utilised much by the QEMU jobs, > > since we only run one at a time. > > > > I wonder if we could improve this, perhaps

Re: [PATCH v8 4/9] sandbox: Build the mkeficapsule tool for the sandbox variants

2023-08-15 Thread Simon Glass
Hi Tom, On Sun, 13 Aug 2023 at 08:43, Tom Rini wrote: > > On Sun, Aug 13, 2023 at 07:36:45AM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Sun, 13 Aug 2023 at 06:40, Tom Rini wrote: > > > > > > On Sat, Aug 12, 2023 at 06:14:45PM -0600, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On

Re: [PATCH v3] gpio: Use separate bitfield array to indicate GPIO is claimed

2023-08-15 Thread Tom Rini
On Wed, Aug 02, 2023 at 01:26:02AM +0200, Marek Vasut wrote: > The current gpio-uclass design uses name field in struct gpio_dev_priv as > an indicator that GPIO is claimed by consumer. This overloads the function > of name field and does not work well for named pins not configured as GPIO >

Re: [PATCH] cmd: pxe: Update the command help

2023-08-15 Thread Tom Rini
On Mon, Jul 31, 2023 at 04:33:23PM +0800, Bin Meng wrote: > Currently the "help" displays pxe command help text like this: > > => help > ... > printenv - print environment variables > pxe - commands to get and boot from pxe files > To use IPv6 add -ipv6 parameter > qfw -

Re: [PATCH 1/1] fs: fat: avoid multiplication overflow

2023-08-15 Thread Tom Rini
On Sun, Jul 30, 2023 at 04:44:04PM +0200, Heinrich Schuchardt wrote: > The product of two 32 bit integers is a 32 bit integer. Hence > clustcount * bytesperclust may overflow on > 4 GiB devices. > > Change the type of clustcount. > > Fixes: cb8af8af5ba0 ("fs: fat: support write with non-zero

Re: [PATCH 2/2] test: unit test for semihosting

2023-08-15 Thread Tom Rini
On Mon, Jul 31, 2023 at 10:01:21PM +0200, Heinrich Schuchardt wrote: > Provide a unit test for semihosting testing reading and writing a file. > > Signed-off-by: Heinrich Schuchardt > Reviewed-by: Sean Anderson Applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP

Re: [PATCH 1/2] configs: enable SEMIHOSTING on qemu_arm64_defconfig

2023-08-15 Thread Tom Rini
On Mon, Jul 31, 2023 at 10:01:20PM +0200, Heinrich Schuchardt wrote: > We need a platform on which we can test our semihosting code. > > Signed-off-by: Heinrich Schuchardt > Reviewed-by: Sean Anderson Applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/1] spl: add FIT support to semihosting boot method

2023-08-15 Thread Tom Rini
On Sat, Jul 22, 2023 at 09:27:48PM +0200, Heinrich Schuchardt wrote: > Allow loading a FIT image via semihosting in SPL. > > Signed-off-by: Heinrich Schuchardt Applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] phy: Add support for the Apple Type-C PHY

2023-08-15 Thread Tom Rini
On Fri, Jul 14, 2023 at 10:21:42PM +0200, Mark Kettenis wrote: > This is merely a dummy driver that makes sure the DWC3 XHCI driver > finds its reset and PHY controllers. We rely on iBoot to set up > the PHY for us. > > Signed-off-by: Mark Kettenis Applied to u-boot/next, thanks! -- Tom

Re: [PATCH] pci: ftpci100: add new driver implementation

2023-08-15 Thread Tom Rini
On Sun, Jul 30, 2023 at 09:17:09PM +0300, Sergei Antonov wrote: > Add a new DM driver supporting FTPCI100 IP used in SoC designs. > This implementation is not based on the old non-DM ftpci100 code > dropped from U-Boot. > > Enable the driver in sandbox_defconfig to test compilability. > >

Re: [PATCH] pci: Fix device_find_first_child() return value handling

2023-08-15 Thread Tom Rini
On Sun, Jul 16, 2023 at 05:53:24PM +0200, Marek Vasut wrote: > This function only ever returns 0, but may not assign the second > parameter. Same thing for device_find_next_child(). Do not assign > ret to stop proliferation of this misuse. > > Reported-by: Jonas Karlman > Signed-off-by: Marek

Re: [PATCH] pci: apple: Enable CONFIG_SYS_PCI_64BIT

2023-08-15 Thread Tom Rini
On Fri, Jul 14, 2023 at 09:15:16PM +0200, Mark Kettenis wrote: > The Apple hardware supports 64-bit prefetchable memory windows so > enable CONFIG_SYS_PCI_64BIT. This fixes BAR assignments for the > Broadcom Ethernet controller used in some of the desktop machines. > > Signed-off-by: Mark

Re: [PATCHv6 03/14] net/lwip: implement dns cmd

2023-08-15 Thread Tom Rini
On Tue, Aug 15, 2023 at 06:42:14PM +0600, Maxim Uvarov wrote: > On Mon, 14 Aug 2023 at 20:19, Ilias Apalodimas > wrote: > > [...] > > > > > +/* > > > +* This function creates the DNS request to resolve a domain host name. > > Function > > > > You need the name of the function as well. Please

Re: [PATCH v9 08/10] sandbox: capsule: Generate capsule related files through binman

2023-08-15 Thread Tom Rini
On Mon, Aug 14, 2023 at 04:51:13PM -0600, Simon Glass wrote: > Hi Sughosh, > > On Mon, 14 Aug 2023 at 02:17, Sughosh Ganu wrote: > > > > hi Simon, > > > > On Sat, 12 Aug 2023 at 22:33, Simon Glass wrote: > > > > > > Hi Sughosh, > > > > > > On Sat, 12 Aug 2023 at 09:40, Sughosh Ganu > > >

Re: Please pull u-boot-dm/next

2023-08-15 Thread Tom Rini
On Mon, Aug 14, 2023 at 04:48:28PM -0600, Simon Glass wrote: > Hi Tom, > > This is for the -next branch > > > The following changes since commit 321d7b4d875a77552a969dd6ea5bbed2644fcb0c: > > Merge branch '2023-08-09-misc-cleanups' into next (2023-08-09 13:15:51 > -0400) > > are available

Re: [PATCH] buildman: Allow more results while building

2023-08-15 Thread Tom Rini
On Thu, Aug 03, 2023 at 12:59:55PM -0600, Simon Glass wrote: > The -v option enables display of build results while building, instead of > needing to do a separate summary step later (or in another terminal). But > this resets the build results after each commit, so that all errors are > reported

Re: [PATCH 1/1] lib/vsprintf.c: fix integer overflow in vsprintf

2023-08-15 Thread Tom Rini
On Thu, Mar 09, 2023 at 10:12:21AM +0800, Ying-Chun Liu (PaulLiu) wrote: > From: Tom Cherry > > vsnprintf_internal() adds 'size' to 'buf' and vsprintf() sets 'size' > to 'INT_MAX' which can overflow. This causes sprintf() to fail when > initializing the environment on 8GB. > > Instead of

[PATCH] doc: csf_examples: csf.sh: Remove unneeded export ATF_LOAD_ADDR line

2023-08-15 Thread Fabio Estevam
From: Fabio Estevam Originally, exporting the ATF_LOAD_ADDR was required, but since binman has been used to generate the flash.bin, it is no longer needed to do such manual export. The ATF address is now passed via binman. Remove the unneeded export ATF_LOAD_ADDR line. Signed-off-by:

Re: [PATCH 4/7] net: dwc_eth_qos: Add glue driver for GMAC on Rockchip RK3568

2023-08-15 Thread David Wu
Hi Jonas, Thank you for your help. 在 2023/8/7 08:08, Jonas Karlman 写道: Add a new glue driver for Rockchip SoCs, i.e RK3568, with a GMAC based on Synopsys DWC Ethernet QoS IP. rk_gmac_ops was ported from linux commit: 3bb3d6b1c195 ("net: stmmac: Add RK3566/RK3568 SoC support") Signed-off-by:

Re: [PATCHv6 03/14] net/lwip: implement dns cmd

2023-08-15 Thread Maxim Uvarov
On Mon, 14 Aug 2023 at 20:19, Ilias Apalodimas wrote: [...] > > +/* > > +* This function creates the DNS request to resolve a domain host name. > Function > > You need the name of the function as well. Please have a look at how the > rest of the code is documented. > > > +* can return

Please pull u-boot-ubi

2023-08-15 Thread Heiko Schocher
Hello Tom, please pull from u-boot-ubi.git master The following changes since commit 832148f675e427060be074c276956962fa9b5cb6: Merge tag 'u-boot-rockchip-20230814' of https://source.denx.de/u-boot/custodians/u-boot-rockchip (2023-08-14 09:11:09 -0400) are available in the Git repository at:

Re: [PATCH] cmd: ubi: Fix 'ubi list' command arguments parsing

2023-08-15 Thread Heiko Schocher
Hello Dmitry, On 12.07.23 14:58, Dmitry Dunaev wrote: > This fixes allowed argc variable value for arguments parsing > > Fixes: 6de1daf64b1 ("cmd: ubi: Add 'ubi list' command") > Signed-off-by: Dmitry Dunaev > --- > cmd/ubi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied to

Re: Problem upon startup with halted USB device on RaspberryPi 4

2023-08-15 Thread Massimo Pegorer
Il giorno lun 14 ago 2023 alle ore 11:11 Harry Waschkeit < harry.waschk...@conplement.de> ha scritto: > Am 13.08.23 um 19:37 schrieb Michal Suchánek: > > Hello, > > Hi again, > > thanks for your answers! > > > On Sat, Aug 12, 2023 at 08:31:56PM +0200, Massimo Pegorer wrote: > >> Hi Harry, > >> >

Re: [PATCH] sunxi: psci: remove redundant initialization from psci_arch_init

2023-08-15 Thread Marc Zyngier
On Mon, 14 Aug 2023 21:39:10 +0100, Andre Przywara wrote: > > On Wed, 31 May 2023 14:15:20 -0600 > Sam Edwards wrote: > > Hi, > > (CC:ing Marc and Chen-Yu as the original authors) > > sorry for the delay, found that mouldering in my Drafts folder. > > > The nonsec code overrides/handles

[PATCH 1/1] doc: add partition API to HTML documentation

2023-08-15 Thread Heinrich Schuchardt
* Convert comments in part.h to Sphinx style. * Create documentation page for the partition API. * Add the partition API page to the API index page. Signed-off-by: Heinrich Schuchardt --- doc/api/index.rst | 1 + doc/api/part.rst | 6 ++ include/part.h| 210

  1   2   >