Re: [PATCH v2] efi_loader: Fix memory corruption on 32bit systems

2023-07-27 Thread Heinrich Schuchardt
Am 28. Juli 2023 03:51:55 MESZ schrieb Simon Glass : >Hi, > >On Thu, 27 Jul 2023 at 08:36, Dan Carpenter wrote: >> >> On Thu, Jul 27, 2023 at 11:22:15AM +0300, Ilias Apalodimas wrote: >> > Hi Dan, >> > >> > [...] >> > >> > > @@ -313,7 +313,7 @@ static int cmp_pe_section(const void *arg1, const

Re: [PATCH 15/20] sunxi: add R528/T113-s3/D1(s) DRAM initialisation code

2023-07-27 Thread Sam Edwards
I've had countless successful boots of a T113-s3 using this DRAM controller code, so: On 7/21/23 07:46, Andre Przywara wrote: Signed-off-by: Andre Przywara Tested-by: Sam Edwards

Re: [PATCH v5 3/6] mips: add a ls1c300 based board

2023-07-27 Thread Du Huanpeng
On Thu, Jul 27, 2023 at 03:05:28PM -0400, Tom Rini wrote: > On Wed, Jul 26, 2023 at 08:30:24PM +0800, Du Huanpeng wrote: > > > - devicetree for ls1c300 SoC and board this devicetree was writen from scratch, I read the SoC's manual and devicetree-specification-v0.3.pdf, and write a Excel to

[PATCH 6/8] x86: coreboot: Add IDE and SATA

2023-07-27 Thread Simon Glass
Add these options to permit access to more disk types. Add some documentation as well. Signed-off-by: Simon Glass --- configs/coreboot64_defconfig| 1 + configs/coreboot_defconfig | 9 + doc/board/coreboot/coreboot.rst | 20 3 files changed, 30

[PATCH 8/8] x86: coreboot: Enable support for CBFS

2023-07-27 Thread Simon Glass
This is normally used with coreboot, so enable support for it in the coreboot builds. Add an example to show how it is used. Signed-off-by: Simon Glass --- configs/coreboot64_defconfig| 1 + configs/coreboot_defconfig | 1 + doc/board/coreboot/coreboot.rst | 34

[PATCH 3/8] bootstd: Rename bootdev_setup_sibling_blk()

2023-07-27 Thread Simon Glass
This name is a little confusing since it suggests that it sets up the sibling block device. In fact it sets up a bootdev for it. Rename the function to make this clearer. Signed-off-by: Simon Glass --- boot/bootdev-uclass.c | 8 +--- common/usb_storage.c | 2 +-

[PATCH 5/8] bootstd: Add some more debugging in the bootdev uclass

2023-07-27 Thread Simon Glass
Add some more output to make it easier to see what is going wrong when a bootdev hunter fails. Signed-off-by: Simon Glass --- boot/bootdev-uclass.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/boot/bootdev-uclass.c b/boot/bootdev-uclass.c index

[PATCH 4/8] bootstd: Correct creating of bootdev sibling

2023-07-27 Thread Simon Glass
Use the correct function here, since there may be multiple IDE devices available. Signed-off-by: Simon Glass --- drivers/block/ide.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/block/ide.c b/drivers/block/ide.c index 89201dd4d229..c698f9cbd558 100644 ---

[PATCH 7/8] x86: coreboot: Enable standard boot

2023-07-27 Thread Simon Glass
Enable bootstd options and provide instructions on how to boot a linux distro using coreboot. Signed-off-by: Simon Glass --- configs/coreboot64_defconfig| 14 ++ configs/coreboot_defconfig | 1 + doc/board/coreboot/coreboot.rst | 16 ++-- 3 files changed, 17

[PATCH 1/8] usb: Return -ENOENT when no devices are found

2023-07-27 Thread Simon Glass
When USB finds no devices it currently returns -EPERM which bootstd does not understand. This causes other bootdevs of the same priority to be skipped. Fix this by returning the correct error code. Signed-off-by: Simon Glass --- drivers/usb/host/usb-uclass.c | 2 +- include/usb.h

[PATCH 2/8] lib: Suppress E when writing error-string output

2023-07-27 Thread Simon Glass
When CONFIG_ERRNO_STR is not enabled this shows a spurious 'E' from the format string. Fix this. Signed-off-by: Simon Glass Fixes: 7f331941321 ("lib: Support printing an error string") --- lib/vsprintf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/vsprintf.c

[PATCH 0/8] x86: Improve bootstd support

2023-07-27 Thread Simon Glass
This series provides some bootstd fixes so that IDE can be used reliably for booting a distro. It also includes some documentation on how to boot from coreboot in various scenarios, using QEMU. With this it is possible to boot Ubuntu 2023.04 from coreboot64, for example. Simon Glass (8): usb:

Re: [PATCH RFC 2/3] WIP: getting signing nodes to work in FIT generator node

2023-07-27 Thread Simon Glass
Hi Neha, On Thu, 27 Jul 2023 at 06:12, Neha Malcom Francis wrote: > > They need to get the contents of the FIT section beforehand, process > them and prepend the signing certificate to the FIT contents > > Signed-off-by: Neha Malcom Francis > --- > tools/binman/etype/collection.py | 38

Re: [PATCH RFC 1/3] tools: binman: Enable getting file from specific directory

2023-07-27 Thread Simon Glass
Hi Neha, On Thu, 27 Jul 2023 at 06:12, Neha Malcom Francis wrote: > > While we have the option of using '-a to grab a file from a > specific directory, this is problematic when searching for a filename > shared by multiple files across directories. An example would be FDT > generated in

Re: [PATCH] efi_loader: capsule: enforce guid check in api and capsule_on_disk

2023-07-27 Thread AKASHI Takahiro
Hi Michal, On Thu, Jul 27, 2023 at 10:53:44AM +0200, Michal Simek wrote: > > > On 7/27/23 02:38, AKASHI Takahiro wrote: > > While UPDATE_CAPSULE api is not fully implemented, this interface and > > capsule-on-disk feature should behave in the same way, especially in > > handling an empty

Re: bootstd regression from distro_bootcmd for removable EFI boot and weird return codes for fs

2023-07-27 Thread Simon Glass
Hi Da, On Mon, 24 Jul 2023 at 10:49, Da Xue wrote: > > On Mon, Jul 24, 2023 at 11:48 AM Da Xue wrote: > > > > I forgot to attach some additional details: > > > > ``` > > sudo fdisk -l /dev/sda > > Disk /dev/sda: 58.24 GiB, 62534975488 bytes, 122138624 sectors > > Disk model: STORAGE DEVICE > >

Re: [PATCH 2/6] arm_ffa: introduce armffa command

2023-07-27 Thread Simon Glass
Hi Abdellatif, On Thu, 27 Jul 2023 at 03:00, Abdellatif El Khlifi wrote: > > Hi Heinrich, > > On Thu, Jul 27, 2023 at 07:51:42AM +0200, Heinrich Schuchardt wrote: > > On 3/29/22 17:16, abdellatif.elkhl...@arm.com wrote: > > > From: Abdellatif El Khlifi > > > > > > Provide armffa command

Re: [PATCH 1/1] pci: correct function name in message

2023-07-27 Thread Simon Glass
On Thu, 27 Jul 2023 at 10:50, Heinrich Schuchardt wrote: > > If an error message contains a function name, it should match the name of > the function throwing the message. > > Fixes: 7739d93d8288 ("pci: Match region flags using a mask") > Signed-off-by: Heinrich Schuchardt > --- >

Re: [PATCH v2] efi_loader: Fix memory corruption on 32bit systems

2023-07-27 Thread Simon Glass
Hi, On Thu, 27 Jul 2023 at 08:36, Dan Carpenter wrote: > > On Thu, Jul 27, 2023 at 11:22:15AM +0300, Ilias Apalodimas wrote: > > Hi Dan, > > > > [...] > > > > > @@ -313,7 +313,7 @@ static int cmp_pe_section(const void *arg1, const > > > void *arg2) > > > * > > > * Return: valid pointer to a

Re: [PATCH] cramfs: clean up some error messages

2023-07-27 Thread Simon Glass
On Thu, 27 Jul 2023 at 08:32, Dan Carpenter wrote: > > This line break is not done correctly. We don't want to have all those > tabs in the printed output. > > Signed-off-by: Dan Carpenter > --- > fs/cramfs/cramfs.c | 6 ++ > 1 file changed, 2 insertions(+), 4 deletions(-) Reviewed-by:

Re: [PATCH 1/1] i2c: designware: build PCI support only for X86

2023-07-27 Thread Simon Glass
Hi Maxim, On Thu, 27 Jul 2023 at 01:17, Maxim Kochetkov wrote: > > designware_i2c_pci.c includes which is located at > arch/x86/include/asm/lpss.h and available only for X86. > So enable CONFIG_SYS_I2C_DW only for X86. > > Fixes: 070a94600855 ("i2c: designware: Add Apollo Lake support") >

Re: [PATCH 3/5] boards: siemens: iot2050: Unify PG1 and PG2/M.2 configurations again

2023-07-27 Thread Simon Glass
On Wed, 26 Jul 2023 at 22:35, Jan Kiszka wrote: > > From: Jan Kiszka > > This avoids having to maintain to defconfigs that are 99% equivalent. > The approach is to use binman to generate two flash images, > flash-pg1.bin and flash-pg2.bin. With the help of a template dtsi, we > can avoid

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

2023-07-27 Thread Simon Glass
Hi Marek, On Thu, 27 Jul 2023 at 09:50, 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: [PATCHv4 0/5] net/lwip: add lwip library for the network stack

2023-07-27 Thread Simon Glass
Hi Maxim, On Fri, 14 Jul 2023 at 08:22, Maxim Uvarov wrote: > > changelog: > v4: - tested with tests/py/ did some minor fixes (out of tree > build, variables set after downloads). > - accounted review comments for documentation. > - implemented dns

Re: [PATCH] addrmap: Fix off by one in addrmap_set_entry()

2023-07-27 Thread Simon Glass
Hi Dan, On Thu, 27 Jul 2023 at 04:56, Dan Carpenter wrote: > > On Wed, Jul 26, 2023 at 06:49:44PM -0600, Simon Glass wrote: > > Hi Dan, > > > > On Tue, 25 Jul 2023 at 09:40, Dan Carpenter > > wrote: > > > > > > The > comparison needs to be changed to >= to prevent an out of bounds > > > write

[RFC 3/3] firmware: scmi: add a sanity check against protocol version

2023-07-27 Thread AKASHI Takahiro
SCMI_PROTOCOL_VERSION is a mandatory command for all the SCMI protocols. With this patch, this command is implemented on each protocol. Then, we can assure that the feature set implemented by SCMI Server (firmware) is compatible with U-Boot, that is, each protocol's version must be equal to or

[RFC 2/3] firmware: scmi: add PROTOCOL_VERSION support for existing protocols on sandbox

2023-07-27 Thread AKASHI Takahiro
In the next patch, SCMI_PROTOCOL_VERSION support is added on the existing SCMI protocols and the version check will be introduced. To finish "ut dm scmi_[clocks|resets|voltage_domains]" tests, sandbox SCMI agent should also implement/mimic this command. Signed-off-by: AKASHI Takahiro ---

[RFC 1/3] firmware: scmi: add a check against availability of protocols

2023-07-27 Thread AKASHI Takahiro
Now that we have Base protocol support, we will be able to check if a given protocol is really supported by the SCMI server (firmware). Signed-off-by: AKASHI Takahiro --- drivers/firmware/scmi/scmi_agent-uclass.c | 41 +-- 1 file changed, 38 insertions(+), 3 deletions(-)

[RFC 0/3] firmware: scmi: add sanity checks for protocols

2023-07-27 Thread AKASHI Takahiro
Now that we have the Base protocol support, we will be able to add a couple of checks so that we will make sure that U-Boot scmi drivers work as expected. - check if SCMI server (firmware) supports the protocol - check if SCMI server implements an expected version of protocol Although adding

Re: [PATCH v4 32/45] fs: fat: Support reading from a larger block size

2023-07-27 Thread Simon Glass
Hi Bin, On Wed, 19 Jul 2023 at 01:58, Bin Meng wrote: > > Hi Simon, > > On Wed, Jul 19, 2023 at 9:11 AM Simon Glass wrote: > > > > Hi Bin, > > > > On Sun, 16 Jul 2023 at 09:19, Bin Meng wrote: > > > > > > Hi Simon, > > > > > > On Sun, Jul 16, 2023 at 7:42 AM Simon Glass wrote: > > > > > > > >

[PATCH V2 2/5] arm: dts: Add k3-am625-beagleplay

2023-07-27 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 V2 5/5] TMP: board: ti: am62x: Switch over to config fragments

2023-07-27 Thread Nishanth Menon
Removes the largely duplicated A53 and R5 defconfigs and reuses the am62x_evm_*_defconfig with minor platform specific changes. Cc: Simon Glass Signed-off-by: Nishanth Menon --- New Patch This depends on the RFC (and hence "TMP") and debated upon patch (to introduce config fragments)

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

2023-07-27 Thread Nishanth Menon
Add base documentation for BeaglePlay Signed-off-by: Nishanth Menon --- Changes Since V1: - Dependency added on top of doc cleanup https://lore.kernel.org/all/20230727185902.3310543-1...@ti.com/ - Mostly rewrite.. hopefully for the better V1:

[PATCH V2 0/5] board: ti: Add support for BeaglePlay

2023-07-27 Thread Nishanth Menon
Add support for BeaglePlay - rev 2 Boot log: https://gist.github.com/nmenon/bee1ab7cbfd188574cfb843e336fbe40 Full series(including dependencies) can be found at: https://github.com/nmenon/fix-k3-dt-u-boot/commits/beagleplay-v2.2 Depends on: a)

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

2023-07-27 Thread Nishanth Menon
Add labels for unsigned binary to permit over-ride. Cc: Simon Glass Signed-off-by: Nishanth Menon --- I think we might also want to review Neha's approach in RFC stage if this is not acceptable, but I suspect other boards will have similar challenges:

[PATCH V2 3/5] configs: Add am62x_beagleplay_* defconfigs

2023-07-27 Thread Nishanth Menon
Add defconfigs for am625 based beagleplay Signed-off-by: Nishanth Menon --- Changes since V1: - None V1: https://lore.kernel.org/all/20230725185253.2123433-6...@ti.com/ configs/am62x_beagleplay_a53_defconfig | 90 configs/am62x_beagleplay_r5_defconfig | 110

Re: [PATCH] net: ksz9477: add support for KSZ9893 GbE switch

2023-07-27 Thread SIMON BABY
Hello, Can I know what are the changes required to integrate ksz9477 with Intel x86 based systems ? Regards Simon Sent from my iPhone > On Jul 27, 2023, at 1:47 PM, Tom Rini wrote: > > On Wed, Jun 28, 2023 at 04:54:45PM +0200, Karsten Wiese wrote: > >> Copy and tweak the required code

[RESEND PATCH v3 3/3] arm: rpi: Switch to a text environment

2023-07-27 Thread Simon Glass
Use the new environment format so we can drop most of the config.h file. Signed-off-by: Simon Glass --- (no changes since v1) board/raspberrypi/rpi/rpi.env | 77 ++ include/configs/rpi.h | 100 -- 2 files changed, 77

[RESEND PATCH v3 2/3] rpi: Disable DISTRO_DEFAULTS

2023-07-27 Thread Simon Glass
Disable this option to reclaim some space, since bootstd requires less functionality to operate (e.g. hush parser). Signed-off-by: Simon Glass --- (no changes since v2) Changes in v2: - Add new patch to disable DISTRO_DEFAULTS configs/rpi_0_w_defconfig | 1 - configs/rpi_2_defconfig

[RESEND PATCH v3 1/3] arm: rpi: Switch to standard boot

2023-07-27 Thread Simon Glass
Drop use of the distro scripts and use standard boot instead. We don't need to specify the mmc devices individually, since they are used in order from 0 to 2, and standard boot uses that order anyway. Signed-off-by: Simon Glass --- Changes in v3: - Rebase to -master Changes in v2: - Rebase to

[RESEND PATCH v3 0/3] rpi: Convert to standard boot

2023-07-27 Thread Simon Glass
This series moves Raspberry Pi boards over to use standard boot. It also moves rpi over to use a text-based environment. Unfortunately it is not possible to empty the header file due to several CFG options. Fix the repeated "and and" while we are here. Note that this reduces rodata size by

Re: [PATCH] phy: adin: add readext and writeext support for mdio cmd

2023-07-27 Thread Tom Rini
On Tue, Jul 11, 2023 at 04:59:15PM -0500, Nate Drude wrote: > The adin phy has extended registers that can be accessed using > adin_ext_read and adin_ext_write. These registers can be read directly > using the mdio command using readext and writext. For example: > > => mdio rx

Re: [PATCH] net: ksz9477: add support for KSZ9893 GbE switch

2023-07-27 Thread Tom Rini
On Wed, Jun 28, 2023 at 04:54:45PM +0200, Karsten Wiese wrote: > Copy and tweak the required code from the linux kernel. > Only the KSZ9893 has been tested. > > Signed-off-by: Karsten Wiese > Reviewed-by: Ramon Fried Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

Re: [PATCH 2/2] net: ipv6: network protocol structures should be packed

2023-07-27 Thread Tom Rini
On Thu, May 18, 2023 at 11:24:39AM -0700, emohand...@linux.microsoft.com wrote: > From: Ehsan Mohandesi > > The structure icmp6_ra_prefix_info needs to be packed because it is read > from a network stream. > > Signed-off-by: Ehsan Mohandesi > Reviewed-by: Viacheslav Mitrofanov > Reviewed-by:

Re: [PATCH 1/2] net: ipv6: router advertisement message length should be within limits

2023-07-27 Thread Tom Rini
On Thu, May 18, 2023 at 11:24:38AM -0700, emohand...@linux.microsoft.com wrote: > From: Ehsan Mohandesi > > The argument len passed to function process_ra is the length of the IPv6 > router advertisement message and needs to be between 0 and MTU because > it is assigned to remaining_option_len

Re: [PATCH v5 2/6] mips: ls1c300: add base support

2023-07-27 Thread Tom Rini
On Wed, Jul 26, 2023 at 08:30:23PM +0800, Du Huanpeng wrote: > - pinmux setup functions for debug uart > - lowlevel initialization: sdram, pll, spi, debug uart [snip] > +/* Serial SPL */ > +#if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_SERIAL) > +#define CFG_SYS_NS16550_CLK

Re: [PATCH v5 0/6] add loongson mips ls1c300 initial support

2023-07-27 Thread Tom Rini
On Wed, Jul 26, 2023 at 08:30:21PM +0800, Du Huanpeng wrote: > --- > Changelog for v5: >- add detail commit message >- small fix in watchdog driver Please run the whole series through checkpatch.pl and address the issues raised there, thanks. -- Tom signature.asc Description: PGP

Re: [PATCH] CI: Add automatic retry for test.py jobs

2023-07-27 Thread Tom Rini
On Thu, Jul 27, 2023 at 01:18:12PM -0600, Simon Glass wrote: > Hi Tom, > > On Sun, 16 Jul 2023 at 12:18, Tom Rini wrote: > > > > On Sat, Jul 15, 2023 at 05:40:25PM -0600, Simon Glass wrote: > > > Hi Tom, > > > > > > On Thu, 13 Jul 2023 at 15:57, Tom Rini wrote: > > > > > > > > On Thu, Jul 13,

Re: [PATCH] CI: Add automatic retry for test.py jobs

2023-07-27 Thread Simon Glass
Hi Tom, On Sun, 16 Jul 2023 at 12:18, Tom Rini wrote: > > On Sat, Jul 15, 2023 at 05:40:25PM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Thu, 13 Jul 2023 at 15:57, Tom Rini wrote: > > > > > > On Thu, Jul 13, 2023 at 03:03:57PM -0600, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On

Re: [PATCH v5 1/6] mips: initial build infrastructure for loongson SoCs

2023-07-27 Thread Tom Rini
On Wed, Jul 26, 2023 at 08:30:22PM +0800, Du Huanpeng wrote: > Loongson 1C is a cost-effective SOC chip for industrial control and > the Internet of Things. The Loongson 1C includes a floating-point > processing unit, supports multiple types of memory, and supports > high-capacity MLC NAND Flash.

Re: [PATCH v5 3/6] mips: add a ls1c300 based board

2023-07-27 Thread Tom Rini
On Wed, Jul 26, 2023 at 08:30:24PM +0800, Du Huanpeng wrote: > - devicetree for ls1c300 SoC and board What linux kernel release is this from? [snip] > + u-boot,dm-pre-reloc; Here and elsewhere, these are "bootph-" now and also upstreamable. [snip] > +LS1C300_EVAL BOARD >

[PATCH V2 14/19] doc: board: ti: am65/j721e: Convert OSPI memory map to svg

2023-07-27 Thread Nishanth Menon
Convert the memory map for OSPI as a common memory map Signed-off-by: Nishanth Menon --- Changes since V1 * No Change V1: https://lore.kernel.org/all/20230727080027.2817701-14...@ti.com/ doc/board/ti/am65x_evm.rst | 27 +- doc/board/ti/img/ospi_sysfw.svg | 721

[PATCH V2 02/19] doc: board: ti: am62x/j7200: Update with common boot flow diagram

2023-07-27 Thread Nishanth Menon
Update the bootflow svg diagram and reuse across the platforms as they are common. Reviewed-by: Neha Malcom Francis Signed-off-by: Nishanth Menon --- Changes since V1 * Picked up reviewed-by V1: https://lore.kernel.org/all/20230727080027.2817701-3...@ti.com/ doc/board/ti/am62x_sk.rst

[PATCH V2 15/19] doc: board: ti: am65x_evm: Convert the emmc layout to svg

2023-07-27 Thread Nishanth Menon
Convert the emmc memory layout to svg Signed-off-by: Nishanth Menon --- Changes since V1 * No Change V1: https://lore.kernel.org/all/20230727080027.2817701-15...@ti.com/ doc/board/ti/am65x_evm.rst| 17 +- doc/board/ti/img/emmc_am65x_evm_boot0.svg | 748 ++

[PATCH V2 09/19] doc: board: ti: am62x: Convert the image format to svg

2023-07-27 Thread Nishanth Menon
Convert the image format into svg that can be reused across platforms as needed. Signed-off-by: Nishanth Menon --- Changes since V1 * Dia updates V1: https://lore.kernel.org/all/20230727080027.2817701-10...@ti.com/ doc/board/ti/am62x_sk.rst | 52 +---

[PATCH V2 18/19] doc: board: ti: k3: Sort the boards in alphabetical order

2023-07-27 Thread Nishanth Menon
Keep the boards sorted in alphabetical order. Signed-off-by: Nishanth Menon --- New patch doc/board/ti/k3.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/board/ti/k3.rst b/doc/board/ti/k3.rst index 7933c955e07e..eb1896b06cd5 100644 --- a/doc/board/ti/k3.rst +++

[PATCH V2 04/19] doc: board: ti: j721e: Update with boot flow diagram

2023-07-27 Thread Nishanth Menon
Update the bootflow svg diagram instead of the ascii version Reviewed-by: Neha Malcom Francis Signed-off-by: Nishanth Menon --- Changes since V1 * Picked up reviewed by, boot dia updates V1: https://lore.kernel.org/all/20230727080027.2817701-5...@ti.com/

[PATCH V2 16/19] doc: board: ti: j7200_evm: Convert the emmc layout to svg

2023-07-27 Thread Nishanth Menon
Convert the emmc memory layout to svg Signed-off-by: Nishanth Menon --- Changes since V1 * No change V1: https://lore.kernel.org/all/20230727080027.2817701-16...@ti.com/ doc/board/ti/img/emmc_j7200_evm_boot01.svg | 662 + doc/board/ti/img/emmc_j7200_evm_udafs.svg | 505

[PATCH V2 08/19] doc: board: ti: am65x: Convert the image format to svg

2023-07-27 Thread Nishanth Menon
Convert the image format into svg that can be reused across platforms as needed. Signed-off-by: Nishanth Menon --- Changes since V1 * Dia updates V1: https://lore.kernel.org/all/20230727080027.2817701-9...@ti.com/ doc/board/ti/am65x_evm.rst | 65 +--

[PATCH V2 19/19] board: ti: k3: Convert boot flow ascii flow to svg

2023-07-27 Thread Nishanth Menon
Replace the ascii flow diagram with svg. Signed-off-by: Nishanth Menon --- New Patch from review comments doc/board/ti/img/boot_flow_01.svg | 220 +++ doc/board/ti/img/boot_flow_02.svg | 459 +++ doc/board/ti/img/boot_flow_03.svg | 583 ++

[PATCH V2 07/19] doc: board: ti: j721e: Convert the image format to svg

2023-07-27 Thread Nishanth Menon
Convert the image format into svg that can be reused across platforms as needed. Signed-off-by: Nishanth Menon --- Changes since V1 * Dia updates V1: https://lore.kernel.org/all/20230727080027.2817701-8...@ti.com/ .../ti/img/no_multi_cert_tiboot3.bin.svg | 238 +

[PATCH V2 01/19] doc: board: ti: Optimize sources references

2023-07-27 Thread Nishanth Menon
We have duplication of sources which makes it hard to sustain across the board, but at the same time, we'd like to ensure readers get specific information without having to cross refer to different documentation to get piecemeal information that they need to put together. Reviewed-by: Neha Malcom

[PATCH V2 00/19] doc: board: ti: Cleanup documentation

2023-07-27 Thread Nishanth Menon
As requested in the thread[1] and irc[2], this series cleansup board/ti documentation a bit. Highlights: * Reuse from k3.rst sources and build instructions at the same time satisfy needs of users to have a single page documentation on all the steps needed to build for a given platform. *

[PATCH V2 12/19] doc: board: ti: j7200_evm: Convert switch settings to list tables

2023-07-27 Thread Nishanth Menon
Use list tables to map up the dip switch settings Signed-off-by: Nishanth Menon --- Changes since V1 * No Change V1: https://lore.kernel.org/all/20230727080027.2817701-12...@ti.com/ doc/board/ti/j7200_evm.rst | 37 ++--- 1 file changed, 26 insertions(+), 11

[PATCH V2 17/19] doc: board: ti: *: Add platform information

2023-07-27 Thread Nishanth Menon
Add link to the actual platform for folks to find details about the board in addition to the SoC's TRM. Signed-off-by: Nishanth Menon --- Changes since V1 * No Change V1: https://lore.kernel.org/all/20230727080027.2817701-17...@ti.com/ doc/board/ti/am62x_sk.rst | 4

[PATCH V2 03/19] doc: board: ti: am65x: Update with boot flow diagram

2023-07-27 Thread Nishanth Menon
Update the bootflow svg diagram instead of the ascii version Reviewed-by: Neha Malcom Francis Signed-off-by: Nishanth Menon --- Changes since V1 * Picked up Reviewed-by, Dia updates V1: https://lore.kernel.org/all/20230727080027.2817701-4...@ti.com/ doc/board/ti/am65x_evm.rst |

[PATCH V2 06/19] doc: board: ti: j7200: Convert the image format to svg

2023-07-27 Thread Nishanth Menon
Convert the image format into svg that can be reused across platforms as needed. Signed-off-by: Nishanth Menon --- Changes since V1 * Doc updates V1: https://lore.kernel.org/all/20230727080027.2817701-7...@ti.com/ doc/board/ti/img/dm_tispl.bin.svg | 317 ++

[PATCH V2 05/19] doc: board: ti: k3: Reuse build instructions

2023-07-27 Thread Nishanth Menon
Introduce common variables to define a generic build instruction that is then used in specific board specific description. Labels are introduced in the evm.rst files to be then reused in variant board documentation as well. While at this, drop using ARCH=arm when building u-boot sources. This

[PATCH V2 13/19] doc: board: ti: am65x_evm: Convert the UART boot responsibility to list table

2023-07-27 Thread Nishanth Menon
Use list tables to map up the UART Boot responsibility table. Signed-off-by: Nishanth Menon --- Changes since V1 * No Change V1: https://lore.kernel.org/all/20230727080027.2817701-13...@ti.com/ doc/board/ti/am65x_evm.rst | 38 -- 1 file changed, 28

[PATCH V2 11/19] doc: board: ti: am62x_sk: Convert switch settings to list tables

2023-07-27 Thread Nishanth Menon
Use list tables to map up the dip switch settings Signed-off-by: Nishanth Menon --- Changes since V1 * No Change V1: https://lore.kernel.org/all/20230727080027.2817701-11...@ti.com/ doc/board/ti/am62x_sk.rst | 38 +++--- 1 file changed, 27 insertions(+), 11

[PATCH V2 10/19] doc: board: ti: am62x_sk: Add labels to reuse memory map

2023-07-27 Thread Nishanth Menon
Add labels around the A53 SPL DDR memory layout to be able to reuse the memory map. Signed-off-by: Nishanth Menon --- New patch to help keep things easy for new am62x platforms to reuse memory map doc/board/ti/am62x_sk.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git

Re: [PATCH 1/2] net: phy: Factor out PHY GPIO reset code

2023-07-27 Thread Tom Rini
On Tue, Jun 20, 2023 at 12:45:54AM +0200, Marek Vasut wrote: > Pull the PHY GPIO reset code into separate function, since > this is and will be reused multiple times. Set up default > reset assert and deassert timing to generous 20ms and 1ms > for maximum compatibility in case those DT properties

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

2023-07-27 Thread Simon Glass
Hi Nikhil, On Wed, 26 Jul 2023 at 23:22, Nikhil M Jain wrote: > > Hi Simon, > > On 27/07/23 06:23, Simon Glass wrote: > > Hi Devarsh, > > > > On Wed, 26 Jul 2023 at 05:09, Devarsh Thakkar wrote: > >> > >> Hi Simon, > >> > >> On 26/07/23 02:58, Simon Glass wrote: > >>> Hi Devarsh, > >>> > >>> On

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

2023-07-27 Thread Tom Rini
Here's the latest report. -- Forwarded message - From: Date: Tue, Jul 25, 2023 at 5:29 PM Subject: New Defects reported by Coverity Scan for Das U-Boot To: Hi, Please find the latest report on new defect(s) introduced to Das U-Boot found with Coverity Scan. 5 new defect(s)

Re: [PATCH v4 1/9] spl: Add generic spl_load function

2023-07-27 Thread Sean Anderson
On 7/27/23 02:17, Heinrich Schuchardt wrote: > On 7/24/23 19:12, Sean Anderson wrote: >> Implementers of SPL_LOAD_IMAGE_METHOD have to correctly determine what >> type of image is being loaded and then call the appropriate image load >> function correctly. This is tricky, because some image load

[PATCH 1/1] pci: correct function name in message

2023-07-27 Thread Heinrich Schuchardt
If an error message contains a function name, it should match the name of the function throwing the message. Fixes: 7739d93d8288 ("pci: Match region flags using a mask") Signed-off-by: Heinrich Schuchardt --- drivers/pci/pci-uclass.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

Re: [PULL] u-boot-usb/master

2023-07-27 Thread Tom Rini
On Thu, Jul 27, 2023 at 12:22:23PM +0200, Marek Vasut wrote: > The following changes since commit 0274eb61e1f2a8e053fb028b6c668c67c0b75b9c: > > Merge tag 'efi-2023-10-rc1-2' of > https://source.denx.de/u-boot/custodians/u-boot-efi (2023-07-20 10:19:04 > -0400) > > are available in the Git

Re: [PATCH v17 09/10] arm_ffa: efi: introduce FF-A MM communication

2023-07-27 Thread Tom Rini
On Thu, Jul 27, 2023 at 05:07:11PM +0100, Abdellatif El Khlifi wrote: > Add MM communication support using FF-A transport > > This feature allows accessing MM partitions services through > EFI MM communication protocol. MM partitions such as StandAlonneMM > or smm-gateway secure partitions which

[PATCH] configs: rock64-rk3328_defconfig: Enable ROCKCHIP_EFUSE

2023-07-27 Thread Matwey V. Kornilov
Enable missed CONFIG_ROCKCHIP_EFUSE to use fixed Ethernet MAC address. Signed-off-by: Matwey V. Kornilov --- configs/rock64-rk3328_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/rock64-rk3328_defconfig b/configs/rock64-rk3328_defconfig index 74a9cc0a7d..aba488bed0

Re: [PATCH v4.1 10/9] spl: Convert NVMe to spl_load

2023-07-27 Thread Sean Anderson
On 7/27/23 11:06, Heinrich Schuchardt wrote: > On 24.07.23 20:09, Sean Anderson wrote: >> This converts the blk load method (used exclusively by NVMe) to use >> spl_load. As a consequence, it also adds support for LOAD_FIT_FULL and >> IMX images. >> >> Signed-off-by: Sean Anderson >> --- >> As

[PATCH v17 04/10] arm_ffa: introduce Arm FF-A support

2023-07-27 Thread Abdellatif El Khlifi
Add Arm FF-A support implementing Arm Firmware Framework for Armv8-A v1.0 The Firmware Framework for Arm A-profile processors (FF-A v1.0) [1] describes interfaces (ABIs) that standardize communication between the Secure World and Normal World leveraging TrustZone technology. This driver uses

[PATCH v17 06/10] arm_ffa: introduce sandbox FF-A support

2023-07-27 Thread Abdellatif El Khlifi
Emulate Secure World's FF-A ABIs and allow testing U-Boot FF-A support Features of the sandbox FF-A support: - Introduce an FF-A emulator - Introduce an FF-A device driver for FF-A comms with emulated Secure World - Provides test methods allowing to read the status of the inspected ABIs The

[PATCH v17 09/10] arm_ffa: efi: introduce FF-A MM communication

2023-07-27 Thread Abdellatif El Khlifi
Add MM communication support using FF-A transport This feature allows accessing MM partitions services through EFI MM communication protocol. MM partitions such as StandAlonneMM or smm-gateway secure partitions which reside in secure world. An MM shared buffer and a door bell event are used to

[PATCH v17 01/10] arm64: smccc: add support for SMCCCv1.2 x0-x17 registers

2023-07-27 Thread Abdellatif El Khlifi
add support for x0-x17 registers used by the SMC calls In SMCCC v1.2 [1] arguments are passed in registers x1-x17. Results are returned in x0-x17. This work is inspired from the following kernel commit: arm64: smccc: Add support for SMCCCv1.2 extended input/output registers [1]:

[PATCH v17 10/10] arm_ffa: efi: corstone1000: enable MM communication

2023-07-27 Thread Abdellatif El Khlifi
turn on EFI MM communication On Corstone-1000 platform MM communication between u-boot and the secure world (Optee) is done using the FF-A bus. Changes made are generated using savedefconfig. Signed-off-by: Abdellatif El Khlifi Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens

[PATCH v17 05/10] arm_ffa: introduce armffa command

2023-07-27 Thread Abdellatif El Khlifi
Provide armffa command showcasing the use of the U-Boot FF-A support armffa is a command showcasing how to invoke FF-A operations. This provides a guidance to the client developers on how to call the FF-A bus interfaces. The command also allows to gather secure partitions information and ping

[PATCH v17 07/10] arm_ffa: introduce sandbox test cases for UCLASS_FFA

2023-07-27 Thread Abdellatif El Khlifi
Add functional test cases for the FF-A support These tests rely on the FF-A sandbox emulator and FF-A sandbox driver which help in inspecting the FF-A communication. Signed-off-by: Abdellatif El Khlifi Reviewed-by: Simon Glass Cc: Tom Rini Cc: Ilias Apalodimas Cc: Jens Wiklander Cc:

[PATCH v17 08/10] arm_ffa: introduce armffa command Sandbox test

2023-07-27 Thread Abdellatif El Khlifi
Add Sandbox test for the armffa command Signed-off-by: Abdellatif El Khlifi Reviewed-by: Simon Glass Cc: Tom Rini Cc: Ilias Apalodimas Cc: Jens Wiklander --- Changelog: === v12: * address nits v10: * replace CMD_RET_SUCCESS with 0 * replace CONFIG_SANDBOX_FFA with

[PATCH v17 02/10] lib: uuid: introduce uuid_str_to_le_bin function

2023-07-27 Thread Abdellatif El Khlifi
convert UUID string to little endian binary data Signed-off-by: Abdellatif El Khlifi Reviewed-by: Simon Glass Cc: Tom Rini Cc: Ilias Apalodimas Cc: Jens Wiklander --- Changelog: === v9: * add a full function prototype description in uuid.h v8: * use simple_strtoull() in

[PATCH v17 03/10] lib: uuid: introduce testcase for uuid_str_to_le_bin

2023-07-27 Thread Abdellatif El Khlifi
provide a test case Signed-off-by: Abdellatif El Khlifi Reviewed-by: Simon Glass Cc: Tom Rini --- Changelog: === v16: * MAINTAINERS: place the UUID part in an alphabetical order v11: * use ut_asserteq_mem() MAINTAINERS | 5 + test/lib/Makefile | 1 +

[PATCH v17 00/10] introduce Arm FF-A support

2023-07-27 Thread Abdellatif El Khlifi
Adding support for Arm FF-A v1.0 (Arm Firmware Framework for Armv8-A) [A]. FF-A specifies interfaces that enable a pair of software execution environments aka partitions to communicate with each other. A partition could be a VM in the Normal or Secure world, an application in S-EL0, or a

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

2023-07-27 Thread Marek Vasut
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 pins. Introduce separate bitfield array as the claim indicator. This

Re: [PATCH v16 09/10] arm_ffa: efi: introduce FF-A MM communication

2023-07-27 Thread Gowtham Suresh Kumar
Hi Ilias, On Thu, Jul 27, 2023 at 12:58:57PM +0300, Ilias Apalodimas wrote: > On Wed, Jul 26, 2023 at 10:45:02AM +0100, Abdellatif El Khlifi wrote: > > Add MM communication support using FF-A transport > > > > This feature allows accessing MM partitions services through > > EFI MM communication

Re: [PATCH v4.1 10/9] spl: Convert NVMe to spl_load

2023-07-27 Thread Heinrich Schuchardt
On 24.07.23 20:09, Sean Anderson wrote: This converts the blk load method (used exclusively by NVMe) to use spl_load. As a consequence, it also adds support for LOAD_FIT_FULL and IMX images. Signed-off-by: Sean Anderson --- As suggested by Heinrich. common/spl/spl_blk_fs.c | 62

Re: [PATCHv4 2/5] net/lwip: add lwip library for the network stack

2023-07-27 Thread Maxim Uvarov
On Thu, 27 Jul 2023 at 19:29, Ilias Apalodimas wrote: > Hi Maxim, > > > This is too much for a single patch review. Can you pleas split it in > something that's easier to review and comment. > > For example, > #1 add the lwip library only > #2-#5 add ping, wget, tcp and ping > > Some random

Re: [PATCH] addrmap: Fix off by one in addrmap_set_entry()

2023-07-27 Thread Dan Carpenter
On Wed, Jul 26, 2023 at 06:49:44PM -0600, Simon Glass wrote: > Hi Dan, > > On Tue, 25 Jul 2023 at 09:40, Dan Carpenter wrote: > > > > The > comparison needs to be changed to >= to prevent an out of bounds > > write on th next line. > > > > Signed-off-by: Dan Carpenter > > --- > >

Re: [PATCH v2] efi_loader: Fix memory corruption on 32bit systems

2023-07-27 Thread Dan Carpenter
On Thu, Jul 27, 2023 at 11:22:15AM +0300, Ilias Apalodimas wrote: > Hi Dan, > > [...] > > > @@ -313,7 +313,7 @@ static int cmp_pe_section(const void *arg1, const void > > *arg2) > > * > > * Return: valid pointer to a image, return NULL if allocation fails. > > */ > > -void

Re: Trying to boot JH7110 RISCV-V CPU from MMC

2023-07-27 Thread Roland Ruckerbauer
> Hi, > > > Did you find what's caused? It seems it's not working fine with latest yet. > It seems that your analysis is right way. > > When I have tested on v2023.07-rc1, it's booting fine. > So I did the git bisect from v2023.07-rc1 to master. I reverted the same commit, and it successfully

[PATCH 1/1] i2c: designware: build PCI support only for X86

2023-07-27 Thread Maxim Kochetkov
designware_i2c_pci.c includes which is located at arch/x86/include/asm/lpss.h and available only for X86. So enable CONFIG_SYS_I2C_DW only for X86. Fixes: 070a94600855 ("i2c: designware: Add Apollo Lake support") Signed-off-by: Maxim Kochetkov --- drivers/i2c/Makefile | 2 ++ 1 file changed, 2

[PATCH] net: ftgmac100: Add reset control

2023-07-27 Thread Dylan Hung
Add optional reset control, especially for the Aspeed SOC. For the hardware without a reset line, the reset assertion/deassertion will be skipped. Signed-off-by: Dylan Hung --- drivers/net/ftgmac100.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/net/ftgmac100.c

  1   2   >