Re: [RFC PATCH 2/2] test/py: efi_secboot: adjust secure boot tests to code changes

2022-02-10 Thread Ilias Apalodimas
Akashi-san On Thu, 10 Feb 2022 at 09:31, AKASHI Takahiro wrote: > > On Thu, Feb 10, 2022 at 09:14:25AM +0200, Ilias Apalodimas wrote: > > Akashi-san > > > > On Thu, 10 Feb 2022 at 07:22, AKASHI Takahiro > > wrote: > > > > > > On Fri, Feb 04, 2022 at 09:32:02AM +0200, Ilias Apalodimas wrote: > >

Re: [RFC PATCH 1/2] efi_loader: fix dual signed image certification

2022-02-10 Thread AKASHI Takahiro
On Thu, Feb 10, 2022 at 09:55:20AM +0200, Ilias Apalodimas wrote: > On Thu, Feb 10, 2022 at 04:41:15PM +0900, AKASHI Takahiro wrote: > > On Thu, Feb 10, 2022 at 09:33:46AM +0200, Ilias Apalodimas wrote: > > > > > > > msg = pkcs7_parse_message(auth, auth_size); > > > > > > [...] >

[PATCH v2 00/20] efi_loader: more tightly integrate UEFI disks to driver model

2022-02-10 Thread AKASHI Takahiro
Background: === The purpose of this patch is to reignite the discussion about how UEFI subystem would best be integrated into U-Boot driver model. In the past, I proposed a couple of patch series, the latest one[1], while Heinrich revealed his idea[2], and the approach taken here is somethi

[PATCH v2 01/20] scsi: call device_probe() after scanning

2022-02-10 Thread AKASHI Takahiro
Every time a scsi bus/port is scanned and a new block device is detected, we want to call device_probe() as it will give us a chance to run additional post-processings for some purposes. In particular, support for creating partitions on a device will be added. Signed-off-by: AKASHI Takahiro Revi

[PATCH v2 02/20] usb: storage: call device_probe() after scanning

2022-02-10 Thread AKASHI Takahiro
Every time a usb bus/port is scanned and a new device is detected, we want to call device_probe() as it will give us a chance to run additional post-processings for some purposes. In particular, support for creating partitions on a device will be added. Signed-off-by: AKASHI Takahiro Reviewed-by

[PATCH v2 03/20] mmc: call device_probe() after scanning

2022-02-10 Thread AKASHI Takahiro
Every time a mmc bus/port is scanned and a new device is detected, we want to call device_probe() as it will give us a chance to run additional post-processings for some purposes. In particular, support for creating partitions on a device will be added. Signed-off-by: AKASHI Takahiro --- driver

[PATCH v2 04/20] nvme: call device_probe() after scanning

2022-02-10 Thread AKASHI Takahiro
Every time a nvme bus/port is scanned and a new device is detected, we want to call device_probe() as it will give us a chance to run additional post-processings for some purposes. In particular, support for creating partitions on a device will be added. Signed-off-by: AKASHI Takahiro Reviewed-b

[PATCH v2 05/20] sata: call device_probe() after scanning

2022-02-10 Thread AKASHI Takahiro
Every time a sata bus/port is scanned and a new device is detected, we want to call device_probe() as it will give us a chance to run additional post-processings for some purposes. In particular, support for creating partitions on a device will be added. Signed-off-by: AKASHI Takahiro Reviewed-b

[PATCH v2 06/20] block: ide: call device_probe() after scanning

2022-02-10 Thread AKASHI Takahiro
Every time an ide bus/port is scanned and a new device is detected, we want to call device_probe() as it will give us a chance to run additional post-processings for some purposes. In particular, support for creating partitions on a device will be added. Signed-off-by: AKASHI Takahiro Reviewed-b

[PATCH v2 07/20] virtio: call device_probe() in scanning

2022-02-10 Thread AKASHI Takahiro
virtio_init() enumerates all the peripherals that are to be materialised with udevices(UCLASS_VIRIO) and creates particular device instances (UCLASS_BlK or whatever else) as children. On the other hand, device_probe() won't be invoked against those resultant udevices unlike other ordinary device dr

[PATCH v2 08/20] dm: add event notification

2022-02-10 Thread AKASHI Takahiro
From: Simon Glass This is a draft implementation of event notification mechanism from Simon. Under this scheme, any U-Boot subsystem can register some kind of callback function to a particular event (more event types will be added later) and that function will be invoked once the event is fired.

[PATCH v2 09/20] dm: add tag support

2022-02-10 Thread AKASHI Takahiro
With dm-tag feature, any U-Boot subsystem is allowed to associate arbitrary number of data with a particular udevice. This can been see as expanding "struct udevice" without modifying the definition. As a first user, UEFI subsystem makes use of tags to associate an efi_disk object with a block dev

[PATCH v2 10/20] dm: tag: add some document

2022-02-10 Thread AKASHI Takahiro
Some basic stuff about tag support is explained under doc/devlop/driver-model. Signed-off-by: AKASHI Takahiro --- doc/develop/driver-model/design.rst | 20 1 file changed, 20 insertions(+) diff --git a/doc/develop/driver-model/design.rst b/doc/develop/driver-model/design.r

[PATCH v2 11/20] test: dm: add tests for tag support

2022-02-10 Thread AKASHI Takahiro
The new test covers all tag-related interfaces. Signed-off-by: AKASHI Takahiro --- test/dm/Makefile | 1 + test/dm/tag.c| 80 2 files changed, 81 insertions(+) create mode 100644 test/dm/tag.c diff --git a/test/dm/Makefile b/test/dm/Makefil

[PATCH v2 12/20] dm: disk: add UCLASS_PARTITION

2022-02-10 Thread AKASHI Takahiro
With this new function, UCLASS_PARTITION devices will be created as child nodes of UCLASS_BLK device. Signed-off-by: AKASHI Takahiro --- disk/Makefile | 3 + disk/disk-uclass.c | 153 + include/dm/uclass-id.h | 1 + include/part.h

[PATCH v2 13/20] dm: blk: add a device-probe hook for scanning disk partitions

2022-02-10 Thread AKASHI Takahiro
Now that all the block device drivers have enable a probe hook, we will call part_create_block_devices() to enumerate all the partitions and create associated udevices when a block device is detected. Signed-off-by: AKASHI Takahiro Reviewed-by: Simon Glass --- drivers/block/blk-uclass.c | 4 +++

[PATCH v2 14/20] efi_loader: split efi_init_obj_list() into two stages

2022-02-10 Thread AKASHI Takahiro
In the next commit, CONFIG_EFI_SETUP_EARLY will become mandated in order to support dynamic enumeration of efi_disk objects. This can, however, be problematic particularly in case of file-based variable storage (efi_variable.c, default). Non-volatile variables are to be restored from EFI system pa

[PATCH v2 15/20] efi_loader: disk: a helper function to create efi_disk objects from udevice

2022-02-10 Thread AKASHI Takahiro
Add efi_disk_probe() function. This function creates an efi_disk object for a raw disk device (UCLASS_BLK) and additional objects for related partitions (UCLASS_PARTITION). So this function is expected to be called through driver model's "probe" interface every time one raw disk device is detected

[PATCH v2 16/20] efi_loader: disk: a helper function to delete efi_disk objects

2022-02-10 Thread AKASHI Takahiro
This function is expected to be called, in particular from dm's pre_remove hook, when associated block devices no longer exist. Add efi_disk_remove() function. This function removes an efi_disk object for a raw disk device (UCLASS_BLK) and related objects for its partitions (UCLASS_PARTITION). So

[PATCH v2 18/20] efi_loader: disk: use udevice instead of blk_desc

2022-02-10 Thread AKASHI Takahiro
In most of all cases, we can avoid using blk_desc which is expected to be private to udevice(UCLASS_BLK), that is, the data should not be manipulated outside the device driver unless really needed. Now efi_disk's internally use dev_read/write() interfaces. Signed-off-by: AKASHI Takahiro Reviewed

[PATCH v2 17/20] dm: disk: add read/write interfaces with udevice

2022-02-10 Thread AKASHI Takahiro
In include/blk.h, Simon suggested: ===> /* * These functions should take struct udevice instead of struct blk_desc, * but this is convenient for migration to driver model. Add a 'd' prefix * to the function operations, so that blk_read(), etc. can be reserved for * functions with the correct ar

Re: [PATCH] arm: kirkwood: Dreamplug : Use Marvell uclass mvgbe and PHY driver for Ethernet

2022-02-10 Thread Stefan Roese
On 1/31/22 00:02, Tony Dinh wrote: The Globalscale Technologies Dreamplug board has the network chip Marvell 88E1116R. Use uclass mvgbe and the compatible driver M88E1310 driver to bring up Ethernet. - Currently, CONFIG_RESET_PHY_R symbol is used in arch/arm/mach-kirkwood/include/mach/config.h f

Re: [PATCH] arm: kirkwood: iConnect : Add Ethernet support

2022-02-10 Thread Stefan Roese
On 2/2/22 06:59, Tony Dinh wrote: - Currently, CONFIG_RESET_PHY_R symbol is used in arch/arm/mach-kirkwood/include/mach/config.h for all Kirkwood boards with mv8831116 PHY, with each board defines the function reset_phy(). Undefine it for this board. - Add board_eth_init(), CONFIG_DM_ETH, and CON

Re: [PATCH] tools: kwboot: Fix detection of quit esc sequence

2022-02-10 Thread Stefan Roese
On 2/3/22 17:45, Pali Rohár wrote: Quit esc sequence may be also in the middle of the read buffer. Fix the detection for that case. Signed-off-by: Pali Rohár Applied to u-boot-marvell/master Thanks, Stefan --- tools/kwboot.c | 19 +++ 1 file changed, 11 insertions(+), 8

Re: [PATCH] MAINTAINERS: Update list of Armada 385 and Armada 3720 drivers

2022-02-10 Thread Stefan Roese
On 2/3/22 17:57, Pali Rohár wrote: Signed-off-by: Pali Rohár Applied to u-boot-marvell/master Thanks, Stefan --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index dcdd99e368d1..7b05f8866edc 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

Re: [RESEND PATCH] arm: kirkwood: Dockstar : Add DM Ethernet

2022-02-10 Thread Stefan Roese
On 2/3/22 23:32, Tony Dinh wrote: The Dockstar board has the network chip Marvell 88E1116R. Convert to Ethernet driver model, and use uclass mvgbe and the compatible driver M88E1118R to bring up Ethernet. - Add CONFIG_DM_ETH and associated configs. - Add board_eth_init() to use uclass mvgbe to b

Re: [PATCH] tools: kwboot: Allow to use -b without image path as the last getopt() option

2022-02-10 Thread Stefan Roese
On 2/7/22 10:12, Pali Rohár wrote: Currently it is possible to call "kwboot -b -t /dev/ttyUSB0" but not to call "kwboot -b /dev/ttyUSB0". Fix it by not trying to process the last argv[], which is non-getopt() option (tty path) as the image path for -b. Fixes: c513fe47dca2 ("tools: kwboot: Allow

Re: [PATCH] arm: kirkwood: Pogoplug E02 : Convert Ethernet to Driver Model

2022-02-10 Thread Stefan Roese
On 2/9/22 03:56, Tony Dinh wrote: The Pogoplug E02 board has the network chip Marvell 88E1116R. Convert to Driver Model and use uclass mvgbe and the compatible driver M88E1118R to bring up Ethernet. - Add board_eth_init(), CONFIG_DM_ETH, and CONFIG_PHY_MARVELL to bring up Ethernet. - Currently,

Please pull u-boot-marvell/master

2022-02-10 Thread Stefan Roese
Hi Tom, please pull the next batch of mostly Marvell MVEBU / Kirkwood related patches: - kwboot: Misc improvements and fixes (Pali) - Kirkwood: Move to DM ethernet support for some boards (Tony) - Minor misc stuff -

[PATCH v2 19/20] efi_loader: disk: not create BLK device for BLK(IF_TYPE_EFI_LOADER) devices

2022-02-10 Thread AKASHI Takahiro
When we create an efi_disk device with an UEFI application using driver binding protocol, the 'efi_driver' framework tries to create a corresponding block device(UCLASS_BLK/IF_TYPE_EFI). This will lead to calling a PROBE callback, efi_disk_probe(). In this case, however, we don't need to create ano

[PATCH v2 20/20] efi_driver: align with efi_disk-dm integration

2022-02-10 Thread AKASHI Takahiro
With DM-efi_disk integration, we don't need to explicitly call efi_disk_create_partitions(). The only thing to do is to associate an efi_disk object to the corresponding udevice as we skip most of processing in efi_disk_probe() by the previous commit ("efi_loader: disk: not create BLK device for B

Re: [PATCH v4 05/11] EFI: FMP: Add provision to update image's ImageTypeId in image descriptor

2022-02-10 Thread Sughosh Ganu
On Thu, 10 Feb 2022 at 13:28, AKASHI Takahiro wrote: > > On Thu, Feb 10, 2022 at 12:48:13PM +0530, Sughosh Ganu wrote: > > hi Takahiro, > > > > On Thu, 10 Feb 2022 at 08:18, AKASHI Takahiro > > wrote: > > > > > > Hi Sughosh, > > > > > > On Mon, Feb 07, 2022 at 11:49:55PM +0530, Sughosh Ganu wrote

Re: ARM A53 and initial MMU mapping for EL0/1/2/3 ?

2022-02-10 Thread Andre Przywara
On Wed, 9 Feb 2022 18:07:24 + Joakim Tjernlund wrote: Hi, > On Wed, 2022-02-09 at 13:13 +, Andre Przywara wrote: > > On Wed, 9 Feb 2022 14:05:57 +0100 > > Michael Walle wrote: > > > > Hi, > > > > > > > The problem I have is that I boot a custom SOC into u-boot and when > > > > > u

Re: ARM A53 and initial MMU mapping for EL0/1/2/3 ?

2022-02-10 Thread Andre Przywara
On Wed, 9 Feb 2022 12:03:47 + Joakim Tjernlund wrote: Hi, > On Wed, 2022-02-09 at 10:45 +, Andre Przywara wrote: > > On Wed, 9 Feb 2022 08:35:04 + > > Joakim Tjernlund wrote: > > > > Hi, > > > > > On Wed, 2022-02-09 at 00:33 +, Andre Przywara wrote: > > > > On Tue, 8 Feb 2

Re: [PATCH v1 2/3] mach-sunxi: Add spi boot for SUNIV

2022-02-10 Thread Andre Przywara
On Wed, 9 Feb 2022 23:34:37 -0500 Jesse Taube wrote: Hi Jesse, many thanks for sending this, I guess this makes those little boards much more useful. > Add support for the spi boot in spl on suniv architecture. A more elaborate commit message would be welcomed. Please mention the F1C100s, to

Re: [PATCH v1 1/3] mach-sunxi: Add boot device detection for SUNIV

2022-02-10 Thread Andre Przywara
On Wed, 9 Feb 2022 23:34:36 -0500 Jesse Taube wrote: Hi Jesse, many thanks for sending this, much appreciated! > Use Samuel's suggestion of looking at the BootRom's stack > to determine the boot device. Can you please elaborate here what's going on, for future reference? Like: = I

Re: [PATCH v1 3/3] mach-sunxi: Enable spi boot for SUNIV

2022-02-10 Thread Andre Przywara
On Wed, 9 Feb 2022 23:34:38 -0500 Jesse Taube wrote: Hi, > Enable spi boot in spl on suniv architecture. Please mention the F1C100s for context, and also that you are enabling it for the LicheePi Nano board, which comes with SPI flash. Otherwise: > Signed-off-by: Jesse Taube Reviewed-by: A

Re: [PATCH v10 3/9] env: Allow U-Boot scripts to be placed in a .env file

2022-02-10 Thread Patrick DELAUNAY
Hi Simon, On 10/22/21 05:08, Simon Glass wrote: At present U-Boot environment variables, and thus scripts, are defined by CONFIG_EXTRA_ENV_SETTINGS. It is painful to add large amounts of text to this file and dealing with quoting and newlines is harder than it should be. It would be better if we

Re: [PATCH v4 02/11] FWU: Add FWU metadata access driver for GPT partitioned block devices

2022-02-10 Thread Sughosh Ganu
hi Masami, On Thu, 10 Feb 2022 at 08:45, Masami Hiramatsu wrote: > > 2022年2月10日(木) 10:43 Masami Hiramatsu : > > > > > > > > Of course as I said in the other thread, I would like to put the > > > > > > dfu_alt_info like information in the devicetree too. > > > > > > (But it maybe different from th

Re: [GIT PULL] Please pull u-boot-mmc master

2022-02-10 Thread Tom Rini
On Wed, Feb 09, 2022 at 10:04:35AM +0900, Jaehoon Chung wrote: > Dear Tom, > > Please pull u-boot-mmc master into u-boot master branch. > There is the fixing fsl_esdhc_imx issue. > If there is any problem, let me know, plz > > Best Regards, > Jaehoon Chung > > CI: https://source.denx.de/u-boot/

Re: [PATCH] spi: dw: Fix broken dw_spi_mem_ops()

2022-02-10 Thread Damien Le Moal
On 2/9/22 07:52, Niklas Cassel wrote: > From: Niklas Cassel > > The driver is currently using sizeof(op->cmd.opcode) in the op_len > calculation. Commit d15de623013c ("spi: spi-mem: allow specifying a > command's extension") changed op->cmd.opcode from one byte to two. > > Instead, a new struct

[PATCH] cmd/mmc: fix output of mmc info for e-MMC

2022-02-10 Thread Markus Niebel
From: Max Merchel e-MMC and SD standards differ for some CID fields: - 6 Byte Name - assigned by Manufacturer (SD 5 Byte) - 1 Byte OEM - assigned by Jedec (SD 2 Byte) See e-MMC standard (JEDEC Standard No. 84-B51), 7.2.3 (OID) and 7.2.4 (PNM) Signed-off-by: Max Merchel Signed-off-by: Markus

Re: [PATCH v3 0/5] fs/erofs: new filesystem

2022-02-10 Thread Gao Xiang
Hi Tom, Would you mind taking some time having a look at this version if it meets what's needed, so we could have a chance to be merged in the next u-boot version? It's almost in sync with the latest erofs-utils soruce code, so it can be upgraded easily in the future together with the later erofs

Re: [PATCH v3 5/5] test/py: Add tests for the erofs

2022-02-10 Thread Tom Rini
On Tue, Feb 08, 2022 at 10:05:13PM +0800, Huang Jianan wrote: > Add Python scripts to test 'ls' and 'load' commands, as well as > test related filesystem functions. > > Signed-off-by: Huang Jianan > --- > MAINTAINERS | 1 + > configs/sandbox_defconfig | 1 +

Re: [PATCH v3 0/5] fs/erofs: new filesystem

2022-02-10 Thread Tom Rini
On Thu, Feb 10, 2022 at 08:43:20PM +0800, Gao Xiang wrote: > Hi Tom, > > Would you mind taking some time having a look at this version > if it meets what's needed, so we could have a chance to be > merged in the next u-boot version? > > It's almost in sync with the latest erofs-utils soruce code

[PATCH] build: allow a downstream suffix in the version shown during boot

2022-02-10 Thread Nicolas Boulenguez
Hello. The attached patch has been applied for a while by Debian, but would most probably be useful to other downstreams. It is trivial and does not change the default settings. Please consider merging it upstream. Thanks. >From 5a08cdc84ade21b947f1de8aa95e3bbd273c4bcd Mon Sep 17 00:00:00 2001 Fr

[PATCH u-boot-marvell 1/4] arm: a37xx: pci: Use standard register macros from pci.h

2022-02-10 Thread Pali Rohár
PCI config space of the aardvark PCIe Root Port is available only in internal aardvark memory space starting at offset 0x0. PCI Express registers (PCI_EXP_*) start at offset 0xc0. And Advanced Error Reporting registers (PCI_ERR_*) start at offset 0x100. Replace custom aardvark register macros by s

[PATCH u-boot-marvell 3/4] arm: a37xx: pci: Use dev_read_addr()

2022-02-10 Thread Pali Rohár
There is only one base address, so use dev_read_addr() instead of dev_read_addr_index(). Signed-off-by: Pali Rohár --- drivers/pci/pci-aardvark.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/pci-aardvark.c b/drivers/pci/pci-aardvark.c index 8e3b13b49ea0..6e65c

[PATCH u-boot-marvell 2/4] arm: a37xx: pci: Cleanup macro names

2022-02-10 Thread Pali Rohár
Remove "PCI_" prefix from all macros which are aardvark specific to not conflict with macros defined in global include file pci.h. Instead add "ADVK_" prefix for them so it is visible that they are aardvark specific. After "ADVK_" prefix append keyword which describes register group, so it would b

[PATCH u-boot-marvell 4/4] arm: a37xx: pci: Ensure that root port is always on root zero bus

2022-02-10 Thread Pali Rohár
Writing to the PCI_PRIMARY_BUS register of the root port should not change bus number on which is root port present. This PCI_PRIMARY_BUS register is used only for correct configuration of legacy PCI stuff, like forwarding of PCI special cycles between buses. Aardvark HW does not support PCI spec

Re: [PATCH v3 07/18] pxe: Move pxe_utils files

2022-02-10 Thread Adam Ford
On Wed, Feb 9, 2022 at 11:16 AM Simon Glass wrote: > > Hi, > > On Wed, 9 Feb 2022 at 05:32, Tom Rini wrote: > > > > On Wed, Feb 09, 2022 at 05:40:03AM -0600, Adam Ford wrote: > > > On Thu, Oct 14, 2021 at 1:50 PM Simon Glass wrote: > > > > > > > > Move the header file into the main include/ dire

Re: [PATCH v3 07/18] pxe: Move pxe_utils files

2022-02-10 Thread Adam Ford
On Thu, Feb 10, 2022 at 7:56 AM Adam Ford wrote: > > On Wed, Feb 9, 2022 at 11:16 AM Simon Glass wrote: > > > > Hi, > > > > On Wed, 9 Feb 2022 at 05:32, Tom Rini wrote: > > > > > > On Wed, Feb 09, 2022 at 05:40:03AM -0600, Adam Ford wrote: > > > > On Thu, Oct 14, 2021 at 1:50 PM Simon Glass wro

Re: Please pull u-boot-marvell/master

2022-02-10 Thread Tom Rini
On Thu, Feb 10, 2022 at 09:21:03AM +0100, Stefan Roese wrote: > Hi Tom, > > please pull the next batch of mostly Marvell MVEBU / Kirkwood related > patches: > Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v3 0/5] fs/erofs: new filesystem

2022-02-10 Thread Gao Xiang
On Thu, Feb 10, 2022 at 08:34:55AM -0500, Tom Rini wrote: > On Thu, Feb 10, 2022 at 08:43:20PM +0800, Gao Xiang wrote: > > > Hi Tom, > > > > Would you mind taking some time having a look at this version > > if it meets what's needed, so we could have a chance to be > > merged in the next u-boot v

Re: [PATCH v3 07/18] pxe: Move pxe_utils files

2022-02-10 Thread Simon Glass
Hi Adam, On Thu, 10 Feb 2022 at 06:57, Adam Ford wrote: > > On Thu, Feb 10, 2022 at 7:56 AM Adam Ford wrote: > > > > On Wed, Feb 9, 2022 at 11:16 AM Simon Glass wrote: > > > > > > Hi, > > > > > > On Wed, 9 Feb 2022 at 05:32, Tom Rini wrote: > > > > > > > > On Wed, Feb 09, 2022 at 05:40:03AM -0

Re: [PATCH v3 07/18] pxe: Move pxe_utils files

2022-02-10 Thread Adam Ford
On Thu, Feb 10, 2022 at 8:32 AM Simon Glass wrote: > > Hi Adam, > > On Thu, 10 Feb 2022 at 06:57, Adam Ford wrote: > > > > On Thu, Feb 10, 2022 at 7:56 AM Adam Ford wrote: > > > > > > On Wed, Feb 9, 2022 at 11:16 AM Simon Glass wrote: > > > > > > > > Hi, > > > > > > > > On Wed, 9 Feb 2022 at 05

Re: [PATCH V4] usb: ehci-mx6: Enable OTG detection on imx8mm and imx8mn

2022-02-10 Thread Adam Ford
On Mon, Feb 7, 2022 at 6:15 AM Adam Ford wrote: > > On Mon, Feb 7, 2022 at 5:50 AM Marek Vasut wrote: > > > > On 2/7/22 12:13, Adam Ford wrote: > > > On Mon, Feb 7, 2022 at 2:47 AM Marek Vasut wrote: > > >> > > >> On 2/7/22 01:51, Adam Ford wrote: > > >>> On Sun, Feb 6, 2022 at 3:59 PM Marek Vas

Re: [PATCH v3 07/18] pxe: Move pxe_utils files

2022-02-10 Thread Tom Rini
On Thu, Feb 10, 2022 at 07:56:52AM -0600, Adam Ford wrote: > On Wed, Feb 9, 2022 at 11:16 AM Simon Glass wrote: > > > > Hi, > > > > On Wed, 9 Feb 2022 at 05:32, Tom Rini wrote: > > > > > > On Wed, Feb 09, 2022 at 05:40:03AM -0600, Adam Ford wrote: > > > > On Thu, Oct 14, 2021 at 1:50 PM Simon Gla

Re: [PATCH 22/24] rockchip: Support building the all output files in binman

2022-02-10 Thread Peter Geis
On Tue, Feb 8, 2022 at 1:54 PM Simon Glass wrote: > Good Morning, > Add the required binman images to replace the Makefile rules which are > currently used. This includes subsuming: > >- tpl/u-boot-tpl-rockchip.bin if TPL is enabled >- idbloader.img if either or both of SPL and TPL are e

[PULL] u-boot-riscv/master

2022-02-10 Thread Leo Liang
Hi Tom, The following changes since commit 531c00894577a0a852431adf61ade76925f8b162: Merge branch '2022-02-08-TI-platform-updates' (2022-02-08 12:28:04 -0500) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-riscv.git for you to fetch changes up to 7c

Re: [PATCH v2 00/20] efi_loader: more tightly integrate UEFI disks to driver model

2022-02-10 Thread Heinrich Schuchardt
On 2/10/22 09:11, AKASHI Takahiro wrote: Background: === The purpose of this patch is to reignite the discussion about how UEFI subystem would best be integrated into U-Boot driver model. In the past, I proposed a couple of patch series, the latest one[1], while Heinrich revealed his idea

[PATCH u-boot-marvell RFC] PLEASE TEST: ddr: marvell: a38x: fix BYTE_HOMOGENEOUS_SPLIT_OUT decision

2022-02-10 Thread Marek Behún
From: Marek Behún In commit 3fc92a215b69 ("ddr: marvell: a38x: fix SPLIT_OUT_MIX state decision") I ported a cleaned up and changed version of patch mv_ddr: a380: fix SPLIT_OUT_MIX state decision In the port we removed checking for BYTE_HOMOGENEOUS_SPLIT_OUT bit, because: - the fix seemed to w

Re: [PATCH] ARM: dts: stm32: Move vdd_io extras into Avenger96 extras

2022-02-10 Thread Patrick DELAUNAY
Hi, On 2/3/22 02:49, Marek Vasut wrote: The vdd_io regulator is present only on DHCOR SoM configured for 1V8 IO, as populated on Avenger96, but not present on 3V3 DHCOR SoM. Move these extras to Avenger96 u-boot DT extras. Fixes: 3919aa1722a ("ARM: dts: stm32: Add DFU support for DHCOR recovery

bind/unbind command not working for usb_ether

2022-02-10 Thread Tim Harvey
Greetings, I'm trying to understand how to use the U-Boot bind command to bind the usb_ether driver to the usb class to register a USB ethernet gadget network device as referenced in: commit 02291d83fdaaf ("doc: add bind/unbind command documentation") commit 49c752c93a78 ("cmd: Add bind/unbind com

[PATCH] drivers: watchdog: wdt-uclass.c: add a property u-boot, noautostart

2022-02-10 Thread Philippe Reynes
Since commit 492ee6b8d0e7 ("watchdog: wdt-uclass.c: handle all DM watchdogs in watchdog_reset()"), all the watchdog are started when the config WATCHDOG_AUTOSTART. To avoid a binary choice none/all, a property u-boot,noautostart may be added in the watchdog node of the u-boot device tree to not au

Re: [PATCH 22/24] rockchip: Support building the all output files in binman

2022-02-10 Thread Simon Glass
Hi Peter, On Thu, 10 Feb 2022 at 08:04, Peter Geis wrote: > > On Tue, Feb 8, 2022 at 1:54 PM Simon Glass wrote: > > > > Good Morning, > > > Add the required binman images to replace the Makefile rules which are > > currently used. This includes subsuming: > > > >- tpl/u-boot-tpl-rockchip.bin

Re: [PATCH v1 1/3] mach-sunxi: Add boot device detection for SUNIV

2022-02-10 Thread Jesse Taube
On 2/10/22 05:57, Andre Przywara wrote: On Wed, 9 Feb 2022 23:34:36 -0500 Jesse Taube wrote: Hi Jesse, many thanks for sending this, much appreciated! Use Samuel's suggestion of looking at the BootRom's stack to determine the boot device. Can you please elaborate here what's going on,

Re: [PATCH v1 1/3] mach-sunxi: Add boot device detection for SUNIV

2022-02-10 Thread Jesse Taube
On 2/10/22 05:57, Andre Przywara wrote: On Wed, 9 Feb 2022 23:34:36 -0500 Jesse Taube wrote: Hi Jesse, many thanks for sending this, much appreciated! Use Samuel's suggestion of looking at the BootRom's stack to determine the boot device. Can you please elaborate here what's going on,

Re: [PATCH] stm32mp: psci: Implement PSCI system suspend and DRAM SSR

2022-02-10 Thread Patrick DELAUNAY
Hi, On 2/2/22 12:52, Marek Vasut wrote: Implement PSCI system suspend and placement of DRAM into SSR while the CPUs are in suspend. This saves non-trivial amount of power in suspend, on 2x W632GU6NB-15 ~710mW. Signed-off-by: Marek Vasut Cc: Patrick Delaunay Cc: Patrice Chotard --- arch/arm

Re: [PATCH 22/24] rockchip: Support building the all output files in binman

2022-02-10 Thread Peter Geis
On Thu, Feb 10, 2022 at 1:58 PM Simon Glass wrote: > > Hi Peter, > > On Thu, 10 Feb 2022 at 08:04, Peter Geis wrote: > > > > On Tue, Feb 8, 2022 at 1:54 PM Simon Glass wrote: > > > > > > > Good Morning, > > > > > Add the required binman images to replace the Makefile rules which are > > > curren

Re: [PATCH v1 1/3] mach-sunxi: Add boot device detection for SUNIV

2022-02-10 Thread Jesse Taube
On 2/10/22 14:38, Siarhei Siamashka wrote: On Thu, Feb 10, 2022 at 6:35 AM Jesse Taube wrote: [...] + case SUNIV_BOOTED_FROM_NAND: + case SUNIV_BOOTED_FROM_SPI: + return BOOT_DEVICE_SPI; Is it really okay to lump SPI and NAND together and return BOOT_DEVICE_SPI fo

Re: Please pull u-boot-dm (take 3)

2022-02-10 Thread Tom Rini
On Wed, Feb 09, 2022 at 12:52:02PM -0700, Simon Glass wrote: > Hi Tom, > > This just drops off the final patch of 'take 2' since that is being reworked. > > > running here: > > https://source.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/10936 > > > The following changes since commit 85970

Re: Please pull u-boot-dm (take 3)

2022-02-10 Thread Simon Glass
Hi Tom, On Thu, 10 Feb 2022 at 13:08, Tom Rini wrote: > > On Wed, Feb 09, 2022 at 12:52:02PM -0700, Simon Glass wrote: > > > Hi Tom, > > > > This just drops off the final patch of 'take 2' since that is being > > reworked. > > > > > > running here: > > > > https://source.denx.de/u-boot/custodian

Re: Please pull u-boot-dm (take 3)

2022-02-10 Thread Tom Rini
On Thu, Feb 10, 2022 at 01:23:36PM -0700, Simon Glass wrote: > Hi Tom, > > On Thu, 10 Feb 2022 at 13:08, Tom Rini wrote: > > > > On Wed, Feb 09, 2022 at 12:52:02PM -0700, Simon Glass wrote: > > > > > Hi Tom, > > > > > > This just drops off the final patch of 'take 2' since that is being > > > re

Re: Please pull u-boot-dm (take 3)

2022-02-10 Thread Simon Glass
Hi Tom, On Thu, 10 Feb 2022 at 13:40, Tom Rini wrote: > > On Thu, Feb 10, 2022 at 01:23:36PM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Thu, 10 Feb 2022 at 13:08, Tom Rini wrote: > > > > > > On Wed, Feb 09, 2022 at 12:52:02PM -0700, Simon Glass wrote: > > > > > > > Hi Tom, > > > > > > > >

Re: [PATCH v1 1/3] mach-sunxi: Add boot device detection for SUNIV

2022-02-10 Thread Andre Przywara
On Thu, 10 Feb 2022 14:20:26 -0500 Jesse Taube wrote: Hi, > On 2/10/22 05:57, Andre Przywara wrote: > > On Wed, 9 Feb 2022 23:34:36 -0500 > > Jesse Taube wrote: > > > > Hi Jesse, > > > > many thanks for sending this, much appreciated! > > > >> Use Samuel's suggestion of looking at the Boo

Re: Please pull u-boot-dm (take 3)

2022-02-10 Thread Tom Rini
On Thu, Feb 10, 2022 at 02:01:21PM -0700, Simon Glass wrote: > Hi Tom, > > On Thu, 10 Feb 2022 at 13:40, Tom Rini wrote: > > > > On Thu, Feb 10, 2022 at 01:23:36PM -0700, Simon Glass wrote: > > > Hi Tom, > > > > > > On Thu, 10 Feb 2022 at 13:08, Tom Rini wrote: > > > > > > > > On Wed, Feb 09, 20

Re: [PATCH v1 1/3] mach-sunxi: Add boot device detection for SUNIV

2022-02-10 Thread Andre Przywara
On Thu, 10 Feb 2022 14:51:11 -0500 Jesse Taube wrote: > On 2/10/22 14:38, Siarhei Siamashka wrote: > > On Thu, Feb 10, 2022 at 6:35 AM Jesse Taube wrote: > > [...] > >> + case SUNIV_BOOTED_FROM_NAND: > >> + case SUNIV_BOOTED_FROM_SPI: > >> + return BOOT_DEVICE_SPI;

Re: [PATCH v3] console: usb: kbd: Limit poll frequency to improve performance

2022-02-10 Thread Marek Vasut
On 2/10/22 22:13, Thomas Watson wrote: Using the XHCI driver, the function `usb_kbd_poll_for_event` takes 30-40ms to run. The exact time is dependent on the polling interval the keyboard requests in its descriptor, and likely cannot be significantly reduced without major rework to the XHCI driver

Re: ARM A53 and initial MMU mapping for EL0/1/2/3 ?

2022-02-10 Thread Joakim Tjernlund
On Thu, 2022-02-10 at 10:22 +, Andre Przywara wrote: > On Wed, 9 Feb 2022 12:03:47 + > Joakim Tjernlund wrote: > > Hi, > > > On Wed, 2022-02-09 at 10:45 +, Andre Przywara wrote: > > > On Wed, 9 Feb 2022 08:35:04 + > > > Joakim Tjernlund wrote: > > > > > > Hi, > > > > > > > O

Re: [PATCH v3] console: usb: kbd: Limit poll frequency to improve performance

2022-02-10 Thread Marek Vasut
On 2/10/22 23:00, Thomas Watson wrote: On Feb 10, 2022, at 3:42 PM, Marek Vasut wrote: On 2/10/22 22:13, Thomas Watson wrote: Using the XHCI driver, the function `usb_kbd_poll_for_event` takes 30-40ms to run. The exact time is dependent on the polling interval the keyboard requests in its de

Re: [PATCH V4] usb: ehci-mx6: Enable OTG detection on imx8mm and imx8mn

2022-02-10 Thread Marek Vasut
On 2/10/22 15:49, Adam Ford wrote: On Mon, Feb 7, 2022 at 6:15 AM Adam Ford wrote: On Mon, Feb 7, 2022 at 5:50 AM Marek Vasut wrote: On 2/7/22 12:13, Adam Ford wrote: On Mon, Feb 7, 2022 at 2:47 AM Marek Vasut wrote: On 2/7/22 01:51, Adam Ford wrote: On Sun, Feb 6, 2022 at 3:59 PM Mare

[PATCH] configs: ti: use standard configuration nodes naming

2022-02-10 Thread Romain Naour
Currently, any u-boot bootloader for ti armv7 platforms using DEFAULT_FIT_TI_ARGS to boot with a fitimage (boot_fit = 1) doesn't boot when built with Yocto Poky (openembedded-core). ## Loading kernel from FIT Image at 9000 ... Could not find configuration node ERROR: can't get kernel ima

Re: [PATCH] Replace echo -n's used in environment processing with touch

2022-02-10 Thread Tom Rini
On Wed, Feb 09, 2022 at 10:16:18AM -0700, Simon Glass wrote: > Hi Qthedev, > > On Wed, 9 Feb 2022 at 08:25, qthedev wrote: > > > > On Monday, February 7th, 2022 at 11:22 PM, Simon Glass > > wrote: > > > > > Hi, > > > > > > On Sat, 5 Feb 2022 at 06:49, qthedev qthe...@protonmail.com wrote: > > >

Re: [PATCH v3] board: gateworks: venice: add imx8mn-gw7902 support

2022-02-10 Thread Tim Harvey
On Wed, Feb 2, 2022 at 2:00 PM Tim Harvey wrote: > > The GW7902 is based on the i.MX 8M Mini / Nano SoC featuring: > - LPDDR4 DRAM > - eMMC FLASH > - Gateworks System Controller > - LTE CAT M1 modem > - USB 2.0 HUB > - M.2 Socket with USB2.0, PCIe, and dual-SIM > - IMX8M FEC > - PCIe based

Re: [PATCH v2 03/20] mmc: call device_probe() after scanning

2022-02-10 Thread Jaehoon Chung
On 2/10/22 17:11, AKASHI Takahiro wrote: > Every time a mmc bus/port is scanned and a new device is detected, > we want to call device_probe() as it will give us a chance to run > additional post-processings for some purposes. > > In particular, support for creating partitions on a device will be

Re: [PATCH] cmd/mmc: fix output of mmc info for e-MMC

2022-02-10 Thread Jaehoon Chung
On 2/10/22 18:16, Markus Niebel wrote: > From: Max Merchel > > e-MMC and SD standards differ for some CID fields: > > - 6 Byte Name - assigned by Manufacturer (SD 5 Byte) > - 1 Byte OEM - assigned by Jedec (SD 2 Byte) > > See e-MMC standard (JEDEC Standard No. 84-B51), 7.2.3 (OID) and 7.2.4 (P

Re: ARM A53 and initial MMU mapping for EL0/1/2/3 ?

2022-02-10 Thread Andre Przywara
On Thu, 10 Feb 2022 21:58:30 + Joakim Tjernlund wrote: Hi, > On Thu, 2022-02-10 at 10:22 +, Andre Przywara wrote: > > On Wed, 9 Feb 2022 12:03:47 + > > Joakim Tjernlund wrote: > > > > Hi, > > > > > On Wed, 2022-02-09 at 10:45 +, Andre Przywara wrote: > > > > On Wed, 9 Feb

Re: [PATCH v3] console: usb: kbd: Limit poll frequency to improve performance

2022-02-10 Thread Simon Glass
Hi Marek, On Thu, 10 Feb 2022 at 14:42, Marek Vasut wrote: > > On 2/10/22 22:13, Thomas Watson wrote: > > Using the XHCI driver, the function `usb_kbd_poll_for_event` takes > > 30-40ms to run. The exact time is dependent on the polling interval the > > keyboard requests in its descriptor, and lik

Re: [PATCH v3] console: usb: kbd: Limit poll frequency to improve performance

2022-02-10 Thread Marek Vasut
On 2/11/22 00:02, Simon Glass wrote: Hi Marek, On Thu, 10 Feb 2022 at 14:42, Marek Vasut wrote: On 2/10/22 22:13, Thomas Watson wrote: Using the XHCI driver, the function `usb_kbd_poll_for_event` takes 30-40ms to run. The exact time is dependent on the polling interval the keyboard requests

[PATCH v3] console: usb: kbd: Limit poll frequency to improve performance

2022-02-10 Thread Thomas Watson
Using the XHCI driver, the function `usb_kbd_poll_for_event` takes 30-40ms to run. The exact time is dependent on the polling interval the keyboard requests in its descriptor, and likely cannot be significantly reduced without major rework to the XHCI driver. The U-Boot EFI console service sets a

Re: Please pull u-boot-dm (take 3)

2022-02-10 Thread Simon Glass
Hi Tom, On Thu, 10 Feb 2022 at 14:20, Tom Rini wrote: > > On Thu, Feb 10, 2022 at 02:01:21PM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Thu, 10 Feb 2022 at 13:40, Tom Rini wrote: > > > > > > On Thu, Feb 10, 2022 at 01:23:36PM -0700, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Thu

Re: ARM A53 and initial MMU mapping for EL0/1/2/3 ?

2022-02-10 Thread Joakim Tjernlund
On Thu, 2022-02-10 at 22:43 +, Andre Przywara wrote: > On Thu, 10 Feb 2022 21:58:30 + > Joakim Tjernlund wrote: > > Hi, > > > On Thu, 2022-02-10 at 10:22 +, Andre Przywara wrote: > > > On Wed, 9 Feb 2022 12:03:47 + > > > Joakim Tjernlund wrote: > > > > > > Hi, > > > > > > >

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

2022-02-10 Thread Tom Rini
On Thu, Feb 10, 2022 at 03:16:03PM +, Leo Liang wrote: > Hi Tom, > > The following changes since commit 531c00894577a0a852431adf61ade76925f8b162: > > Merge branch '2022-02-08-TI-platform-updates' (2022-02-08 12:28:04 -0500) > > are available in the Git repository at: > > https://source

Re: [PATCH] arm:dts:k3-am64-sk: EMIF tool update to 0.8.0 with 1333MTs for lpddr4

2022-02-10 Thread Tom Rini
On Mon, Nov 29, 2021 at 05:34:49PM +0530, Sinthu Raja wrote: > From: Sinthu Raja > > EMIF tool for AM64 SK is now updated to 0.8.0 that includes > * disabled Write DQ training > * improve CA ODT to 60 ohms > > The lpddr4 enabled with periodic WDQ training is causing periodic 26us > stall. This

Re: [PATCH v2 1/9] nvme: Split out PCI support

2022-02-10 Thread Tom Rini
On Sat, Jan 22, 2022 at 08:38:11PM +0100, Mark Kettenis wrote: > Apple SoCs have an integrated NVMe controller that isn't connected > over a PCIe bus. In preparation for adding support for this NVMe > controller, split out the PCI support into its own file. This file > is selected through a new CO

Re: [PATCH v2 2/9] mailbox: apple: Add driver for Apple IOP mailbox

2022-02-10 Thread Tom Rini
On Sat, Jan 22, 2022 at 08:38:12PM +0100, Mark Kettenis wrote: > This mailbox driver provides a communication channel with the > Apple IOP controllers found on Apple SoCs. These IOP controllers > are used to implement various functions such as the System > Manegement Controller (SMC) and NVMe sto

Re: [PATCH v2 3/9] arm: apple: Change SoC name from "m1" into "apple"

2022-02-10 Thread Tom Rini
On Sat, Jan 22, 2022 at 08:38:13PM +0100, Mark Kettenis wrote: > U-Boot is expected to support multiple generations of Apple SoCs > in a single binary with a single defconfig. Therefore it makes > more sense to set SYS_SOC to "apple". > > Signed-off-by: Mark Kettenis > Reviewed-by: Simon Glass

Re: [PATCH v2 4/9] arm: apple: Add RTKit support

2022-02-10 Thread Tom Rini
On Sat, Jan 22, 2022 at 08:38:14PM +0100, Mark Kettenis wrote: > Most Apple IOPs run a firmware that is based on what Apple calls > RTKit. RTKit implements a common mailbox protocol. This code > provides an implementation of the AP side of this protocol, > providing a function to initialize RTKit

Re: [PATCH v2 5/9] nvme: Introduce driver ops

2022-02-10 Thread Tom Rini
On Sat, Jan 22, 2022 at 08:38:15PM +0100, Mark Kettenis wrote: > The NVMe storage controller integrated on Apple SoCs deviates > from the NVMe standard in two aspects. It uses a "linear" > submission queue and it integrates an NVMMU that needs to be > programmed for each NVMe command. Introduce

  1   2   >