Re: [PATCH 1/6] cmd: tpm-v1: fix compile error in TPMv1 list resources command

2021-11-04 Thread Ilias Apalodimas
Hi Mathew, On Thu, 4 Nov 2021 at 03:14, Mathew McBride wrote: > > This command is not compiled by default and was not > updated to pass the udevice to tpm_get_capability. > > Signed-off-by: Mathew McBride > --- > cmd/tpm-v1.c | 7 ++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > dif

Re: [PATCH 2/6] cmd: tpm-v1: fix load_key_by_sha1 compile errors

2021-11-04 Thread Ilias Apalodimas
On Thu, 4 Nov 2021 at 03:14, Mathew McBride wrote: > > This command is not compiled by default and has not been updated alongside > changes to the tpmv1 API, such as passing the TPM udevice to the relevant > functions. > > Signed-off-by: Mathew McBride > --- > cmd/tpm-v1.c | 10 +- > lib

Re: [PATCH 3/6] drivers: tpm: atmel_twi: drop non-DM_I2C compatibility

2021-11-04 Thread Ilias Apalodimas
On Thu, 4 Nov 2021 at 03:14, Mathew McBride wrote: > > There are no users of this driver without DM_I2C > > Signed-off-by: Mathew McBride > --- > drivers/tpm/tpm_atmel_twi.c | 14 +- > 1 file changed, 1 insertion(+), 13 deletions(-) > > diff --git a/drivers/tpm/tpm_atmel_twi.c b/driv

Re: [PATCH 4/6] drivers: tpm: atmel_twi: do not use an offset byte

2021-11-04 Thread Ilias Apalodimas
On Thu, 4 Nov 2021 at 03:14, Mathew McBride wrote: > > This driver was broken due to an empty offset byte being prepended > at the start of every transmission. > > The hardware does not mimic an EEPROM device with registers so > an offset byte is not required. > > Signed-off-by: Mathew McBride >

[PATCH 2/2] exynos: mmu: use CONFIG_IS_ENABLED

2021-11-04 Thread Minkyu Kang
to fix following checkpatch warnings. Use 'if (IS_ENABLED(CONFIG...))' instead of '#if or #ifdef' where possible Signed-off-by: Minkyu Kang Cc: Dzmitry Sankouski --- arch/arm/mach-exynos/mmu-arm64.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-ex

[PATCH 1/2] exynos78x0: pinctrl: set const to structs

2021-11-04 Thread Minkyu Kang
to fix following checkpatch warings. WARNING: struct should normally be const Signed-off-by: Minkyu Kang Cc: Dzmitry Sankouski --- drivers/pinctrl/exynos/pinctrl-exynos78x0.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/pinctrl/exynos/pinctrl-exyno

Re: [PATCH 5/6] drivers: tpm: atmel_twi: implement get_desc operation

2021-11-04 Thread Ilias Apalodimas
Hi Matthew, On Thu, 4 Nov 2021 at 03:14, Mathew McBride wrote: > > Without get_desc, the tpm command will not provide a > description of the device in 'tpm device' or 'tpm info'. > > Due to the characteristics of the Atmel TPM it isn't > possible to determine certain attributes (e.g open/close >

Re: [PATCH 6/6] drivers: tpm: atmel_twi: fix printf specifier compile warning

2021-11-04 Thread Ilias Apalodimas
On Thu, 4 Nov 2021 at 03:14, Mathew McBride wrote: > > %d was being used as the specifier for size_t, leading to a > compiler warning > > Signed-off-by: Mathew McBride > --- > drivers/tpm/tpm_atmel_twi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/tpm/tpm_atm

Re: [PATCH v3 1/6] sysreset: Add uclass Kconfig dependency to drivers

2021-11-04 Thread Stefan Roese
On 04.11.21 04:55, Samuel Holland wrote: None of the sysreset drivers do anything beyond providing sysreset uclass ops. They should depend on the sysreset uclass. Reviewed-by: Heinrich Schuchardt Signed-off-by: Samuel Holland Reviewed-by: Stefan Roese Thanks, Stefan --- (no changes sinc

Re: [PATCH v3 2/6] sysreset: Mark driver probe functions as static

2021-11-04 Thread Stefan Roese
On 04.11.21 04:55, Samuel Holland wrote: These driver probe functions are not (and should not be) called from outside the respective driver source files. Therefore, the functions should be marked static. Reviewed-by: Heinrich Schuchardt Signed-off-by: Samuel Holland Reviewed-by: Stefan Roese

Re: [PATCH v3 3/6] sysreset: watchdog: Move watchdog reference to plat data

2021-11-04 Thread Stefan Roese
On 04.11.21 04:55, Samuel Holland wrote: Currently, the wdt_reboot driver always gets its watchdog device reference from an OF node. This prevents selecting a watchdog at runtime. Move the watchdog device reference to the plat data, so the driver can be bound with the reference pre-provided. The

Re: [PATCH v3 4/6] watchdog: Automatically register device with sysreset

2021-11-04 Thread Stefan Roese
On 04.11.21 04:55, Samuel Holland wrote: Add an option to automatically register watchdog devices with the wdt_reboot driver for use with sysreset. This allows sysreset to be a drop-in replacement for platform-specific watchdog reset code, without needing any device tree changes. Signed-off-by:

Re: [PATCH v3 5/6] sunxi: Avoid duplicate reset_cpu with SYSRESET enabled

2021-11-04 Thread Stefan Roese
On 04.11.21 04:55, Samuel Holland wrote: The sysreset uclass unconditionally provides a definition of the reset_cpu() function. So does the sunxi board code. Fix the build with SYSRESET enabled by omitting the function from the board code in that case. The code still needs to be kept around for u

Re: [PATCH v3 6/6] sunxi: Use sysreset framework for poweroff/reset

2021-11-04 Thread Stefan Roese
On 04.11.21 04:55, Samuel Holland wrote: Instead of hardcoding the watchdog for reset, and the PMIC for poweroff, use the sysreset framework to manage the available poweroff/reset backends. This allows (as examples) using the PMIC to do a cold reset, and using a GPIO to power off H3/H5 boards lac

[PATCH 1/1] sysreset: watchdog: watchdog cannot power off

2021-11-04 Thread Heinrich Schuchardt
The watchdog system reset driver can reboot the device but it cannot power it off. If power off is requested, the driver should not reset the system but leave powering off to one of the other system reset drivers. As power cycling is typically not a feature of a watchdog driver the reset types SYS

Re: [PATCH v3 4/6] watchdog: Automatically register device with sysreset

2021-11-04 Thread Heinrich Schuchardt
On 11/4/21 08:48, Stefan Roese wrote: On 04.11.21 04:55, Samuel Holland wrote: Add an option to automatically register watchdog devices with the wdt_reboot driver for use with sysreset. This allows sysreset to be a drop-in replacement for platform-specific watchdog reset code, without needing an

[PATCH 00/14] Add support for MediaTek MT7621 SoC

2021-11-04 Thread Weijie Gao
This series will add support for MediaTek MT7621 SoC with two reference boards and related drivers. The MediaTek MT7621 is a network processor integrating a dual-core dual-threaded MIPS 1004Kc processor running at a normal frequency of 880MHz. This chip can be found in many wireless routers. This

[PATCH 01/14] mips: mtmips: add support for MediaTek MT7621 SoC

2021-11-04 Thread Weijie Gao
This patch adds support for MediaTek MT7621 SoC. All files are dedicated for u-boot. Currently only ramboot is supported. The default build target is u-boot-lzma.img. This file can be booted using bootm command, or be used as a payload of the SDK preloader of MT7621. The specification of this chi

[PATCH 02/14] mips: mtmips: add two reference boards for mt7621

2021-11-04 Thread Weijie Gao
The mt7621_rfb board supports integrated giga PHYs plus one external giga PHYs. It also has up to 512MiB DDR3, 16MB SPI-NOR, 3 mini PCI-e x1 slots, SDXC and USB. The mt7621_nand_rfb board is almost the same as mt7621_rfb board, but it uses NAND flash and SDXC is not available. Signed-off-by: Weij

[PATCH 03/14] clk: mtmips: add clock driver for MediaTek MT7621 SoC

2021-11-04 Thread Weijie Gao
This patch adds a clock driver for MediaTek MT7621 SoC. This driver provides clock gate control as well as getting clock frequency for CPU/SYS/XTAL and some peripherals. Signed-off-by: Weijie Gao --- drivers/clk/mtmips/Makefile| 1 + drivers/clk/mtmips/clk-mt7621.c| 260 +++

[PATCH 04/14] reset: mtmips: add reset controller support for MediaTek MT7621 SoC

2021-11-04 Thread Weijie Gao
This patch adds reset controller bits definition header file for MediaTek MT7621 SoC Signed-off-by: Weijie Gao --- include/dt-bindings/reset/mt7621-reset.h | 38 1 file changed, 38 insertions(+) create mode 100644 include/dt-bindings/reset/mt7621-reset.h diff --git a/i

[PATCH 05/14] pinctrl: mtmips: add support for MediaTek MT7621 SoC

2021-11-04 Thread Weijie Gao
This patch adds pinctrl support for MediaTek MT7621 SoC. The MT7621 SoC supports pinconf, but it is not the same as mt7628. Signed-off-by: Weijie Gao --- drivers/pinctrl/mtmips/Kconfig| 9 + drivers/pinctrl/mtmips/Makefile | 1 + drivers/pinctrl/mtmips/pinctrl-m

[PATCH 06/14] nand: raw: add support for MediaTek MT7621 SoC

2021-11-04 Thread Weijie Gao
This patch adds NAND flash controller driver for MediaTek MT7621 SoC. The NAND flash controller of MT7621 supports only SLC NAND flashes. It supports 4~12 bits correction with maximum 4KB page size. Signed-off-by: Weijie Gao --- drivers/mtd/nand/raw/Kconfig | 11 + drivers/mtd/nand/raw/M

[PATCH 07/14] usb: xhci-mtk: add support for MediaTek MT7621 SoC

2021-11-04 Thread Weijie Gao
This patch makes xhci-mtk driver available for MediaTek MT7621 SoC Signed-off-by: Weijie Gao --- drivers/usb/host/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig index ccecb5a3b0..f2c060e692 100644 --- a/drivers/usb/

[PATCH 08/14] phy: mtk-tphy: add support for MediaTek MT7621 SoC

2021-11-04 Thread Weijie Gao
This patch makes mtk-tphy driver available for MediaTek MT7621 SoC Signed-off-by: Weijie Gao --- drivers/phy/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig index 4767d215f3..6ab99d2643 100644 --- a/drivers/phy/Kconfig +++ b/d

[PATCH 09/14] spi: add support for MediaTek MT7621 SoC

2021-11-04 Thread Weijie Gao
This patch makes mt7621_spi driver available for MediaTek MT7621 SoC Signed-off-by: Weijie Gao --- drivers/spi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index d07e9a28af..a43e652231 100644 --- a/drivers/spi/Kconfig +++ b

[PATCH 10/14] gpio: add support for MediaTek MT7621 SoC

2021-11-04 Thread Weijie Gao
This patch makes mt7621_gpio driver available for MediaTek MT7621 SoC Signed-off-by: Weijie Gao --- drivers/gpio/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 40abc33772..8c49ca3f50 100644 --- a/drivers/gpio/Kconfig

[PATCH 11/14] watchdog: add support for MediaTek MT7621 SoC

2021-11-04 Thread Weijie Gao
This patch makes mt7621_wdt driver available for MediaTek MT7621 SoC Signed-off-by: Weijie Gao --- drivers/watchdog/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index d306054a8c..cf383de973 100644 --- a/drivers/wa

[PATCH 12/14] mmc: mediatek: add support for MediaTek MT7621 SoC

2021-11-04 Thread Weijie Gao
This patch adds SDXC support for MediaTek MT7621 SoC Signed-off-by: Weijie Gao --- drivers/mmc/mtk-sd.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/mmc/mtk-sd.c b/drivers/mmc/mtk-sd.c index 8599f095bc..1199052a89 100644 --- a/drivers/mmc/mtk-sd.c +++ b/drivers/mmc/

[PATCH 13/14] net: mediatek: add support for MediaTek MT7621 SoC

2021-11-04 Thread Weijie Gao
This patch adds GMAC support for MediaTek MT7621 SoC. MT7621 has the same GMAC/Switch configuration as MT7623. Signed-off-by: Weijie Gao --- drivers/net/mtk_eth.c | 27 +-- drivers/net/mtk_eth.h | 8 2 files changed, 29 insertions(+), 6 deletions(-) diff --git

[PATCH 14/14] MAINTAINERS: update maintainer for MediaTek MIPS platform

2021-11-04 Thread Weijie Gao
Update maintainer for MediaTek MIPS platform Signed-off-by: Weijie Gao --- MAINTAINERS | 5 + 1 file changed, 5 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 5069f18806..7d65856743 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -855,15 +855,20 @@ R:GSS_MTK_Uboot_upstream

Re: [PATCH 1/1] sysreset: watchdog: watchdog cannot power off

2021-11-04 Thread François Ozog
Hi Heinrich, On Thu, 4 Nov 2021 at 10:31, Heinrich Schuchardt < heinrich.schucha...@canonical.com> wrote: > The watchdog system reset driver can reboot the device but it cannot power > it off. If power off is requested, the driver should not reset the system > but leave powering off to one of the

Re: [PATCH v3 0/6] Improved sysreset/watchdog uclass integration

2021-11-04 Thread Stefan Roese
On 04.11.21 04:55, Samuel Holland wrote: This series hooks up the watchdog uclass to automatically register watchdog devices for use with sysreset, doing a bit of minor cleanup along the way. The goal is for this to replace the sunxi board-level non-DM reset_cpu() function. I was surprised to fi

Please pull u-boot-marvell (watchdog related)

2021-11-04 Thread Stefan Roese
Hi Tom, please pull the following watchdog related patches: - Improved sysreset/watchdog uclass integration (Samuel) Here the Azure build, without any issues: https

[PATCH v2 0/1] add selftest for EFI_TCG2_PROTOCOL and Measured Boot

2021-11-04 Thread Masahisa Kojima
This patch adds the selftest for the EFI_TCG2_PROTOCOL and Measured Boot flow. This selftest is verified on qemu with swtpm on both 32-bit arm and arm64. This commit adds the pre-build binary for the PE/COFF image measurement test for each architecture. I have tested only on 32-bit arm and arm64.

Re: [PATCH v2] efi_loader: add EFI_TCG2_PROTOCOL.SubmitCommand

2021-11-04 Thread Ilias Apalodimas
On Tue, Nov 02, 2021 at 02:48:52PM +0900, Masahisa Kojima wrote: > This commit adds the EFI_TCG2_PROTOCOL.SubmitCommand > required in the TCG PC Client PFP spec. > SubmitCommand enables to send the raw command to the TPM device. > > To implement this api, tpm2_submit_command() is added > into tpm-

Re: [PATCH v5 06/26] arm: qemu: Add a devicetree file for qemu_arm64

2021-11-04 Thread Peter Maydell
On Wed, 3 Nov 2021 at 14:41, Tom Rini wrote: > > On Wed, Nov 03, 2021 at 06:29:20AM +0100, François Ozog wrote: > [snip] > > > 3. Anything else? > > > > > > For qemu_arm_spl, it *does not boot* unless the U-Boot SPL properties > > > are present. There is no easy way to fix this. > > > > one clean

Re: [PATCH] net: uclass: Save ethernet MAC address when generated

2021-11-04 Thread Michal Simek
On 11/4/21 03:09, Grygorii Strashko wrote: On 02/11/2021 12:27, Michal Simek wrote: On 11/2/21 10:00, Michael Walle wrote: On Fri, Oct 29, 2021 at 2:14 PM Michal Simek wrote: When MAC address is randomly generated it should be also saved to variables. This step is there when MAC addre

Re: [PATCH] net: uclass: Save ethernet MAC address when generated

2021-11-04 Thread Michal Simek
On 11/3/21 17:57, Tom Rini wrote: On Tue, Nov 02, 2021 at 11:27:22AM +0100, Michal Simek wrote: On 11/2/21 10:00, Michael Walle wrote: On Fri, Oct 29, 2021 at 2:14 PM Michal Simek wrote: When MAC address is randomly generated it should be also saved to variables. This step is there when

Re: [PATCH v5 06/26] arm: qemu: Add a devicetree file for qemu_arm64

2021-11-04 Thread François Ozog
hi Peter Le jeu. 4 nov. 2021 à 12:09, Peter Maydell a écrit : > On Wed, 3 Nov 2021 at 14:41, Tom Rini wrote: > > > > On Wed, Nov 03, 2021 at 06:29:20AM +0100, François Ozog wrote: > > [snip] > > > > 3. Anything else? > > > > > > > > For qemu_arm_spl, it *does not boot* unless the U-Boot SPL pro

Re: [PATCH] boot: don't enable booti/bootz by default if FIT_SIGNATURE is set

2021-11-04 Thread Heinrich Schuchardt
On 11/4/21 04:11, Rover Mo wrote: Dear Heinrich, Thank for your comments. >How about CONFIG_EFI_SECURE_BOOT? Should this also disable the default? I think yes. I will update the relation to "default y if !FIT_SIGNATURE && !EFI_SECURE_BOOT", and add "!EFI_SECURE_BOOT" into LEGACY_IMAGE_FO

[PATCH v2 1/1] efi_selftest: add selftest for EFI_TCG2_PROTOCOL and Measured Boot

2021-11-04 Thread Masahisa Kojima
This commit adds the missing EFI_TCG2_PROTOCOL selftest and Measured Boot selftest in lib/efi_selftest. This selftest includes PE/COFF image measurement test, some PCR values are different in each architecture. With that, this commit also adds the pre-build efi application for PE/COFF image measur

Re: [PATCH v2 2/5] ARM: dts: rockchip: update rk3xxx.dtsi

2021-11-04 Thread Alex Bee
Hi all, I understand that copying dts'es from upstream kernel seems an easy thing to do, but we should be careful: Now that mmc-indexes are defined in board level device trees in kernel , mmc boot order (which I just fixed some month ago [1]) is different per board. This is now broken again - at

Re: [PATCH] net: uclass: Save ethernet MAC address when generated

2021-11-04 Thread Tom Rini
On Thu, Nov 04, 2021 at 12:18:46PM +0100, Michal Simek wrote: > > > On 11/3/21 17:57, Tom Rini wrote: > > On Tue, Nov 02, 2021 at 11:27:22AM +0100, Michal Simek wrote: > > > > > > > > > On 11/2/21 10:00, Michael Walle wrote: > > > > > On Fri, Oct 29, 2021 at 2:14 PM Michal Simek > > > > > wro

Re: [PATCH v5 06/26] arm: qemu: Add a devicetree file for qemu_arm64

2021-11-04 Thread Peter Maydell
On Thu, 4 Nov 2021 at 11:22, François Ozog wrote: > Le jeu. 4 nov. 2021 à 12:09, Peter Maydell a écrit > : >> >> Well, our recommendation really was that the ideal thing would >> be "you take the dtb that QEMU passes you at runtime, and at >> runtime combine that with whatever extra information

Re: [PATCH] net: uclass: Save ethernet MAC address when generated

2021-11-04 Thread Michal Simek
On 11/4/21 12:37, Tom Rini wrote: On Thu, Nov 04, 2021 at 12:18:46PM +0100, Michal Simek wrote: On 11/3/21 17:57, Tom Rini wrote: On Tue, Nov 02, 2021 at 11:27:22AM +0100, Michal Simek wrote: On 11/2/21 10:00, Michael Walle wrote: On Fri, Oct 29, 2021 at 2:14 PM Michal Simek wrote:

Re: [PATCH 1/1] sysreset: watchdog: watchdog cannot power off

2021-11-04 Thread Heinrich Schuchardt
On 11/4/21 10:55, François Ozog wrote: Hi Heinrich, On Thu, 4 Nov 2021 at 10:31, Heinrich Schuchardt > wrote: The watchdog system reset driver can reboot the device but it cannot power it off. If power off is requested, the driver should n

Re: [PATCH v5 06/26] arm: qemu: Add a devicetree file for qemu_arm64

2021-11-04 Thread François Ozog
Hi Peter Le jeu. 4 nov. 2021 à 12:41, Peter Maydell a écrit : > On Thu, 4 Nov 2021 at 11:22, François Ozog > wrote: > > Le jeu. 4 nov. 2021 à 12:09, Peter Maydell a > écrit : > >> > >> Well, our recommendation really was that the ideal thing would > >> be "you take the dtb that QEMU passes you

Re: [PATCH 1/1] sysreset: watchdog: watchdog cannot power off

2021-11-04 Thread François Ozog
Hi Heinrich, Le jeu. 4 nov. 2021 à 12:45, Heinrich Schuchardt < heinrich.schucha...@canonical.com> a écrit : > On 11/4/21 10:55, François Ozog wrote: > > Hi Heinrich, > > > > On Thu, 4 Nov 2021 at 10:31, Heinrich Schuchardt > > > > wrote: > > > > The

Re: [PATCH] net: uclass: Save ethernet MAC address when generated

2021-11-04 Thread Michael Walle
Am 2021-11-04 12:16, schrieb Michal Simek: On 11/4/21 03:09, Grygorii Strashko wrote: On 02/11/2021 12:27, Michal Simek wrote: On 11/2/21 10:00, Michael Walle wrote: On Fri, Oct 29, 2021 at 2:14 PM Michal Simek wrote: When MAC address is randomly generated it should be also saved to var

Re: [PATCH] net: uclass: Save ethernet MAC address when generated

2021-11-04 Thread Tom Rini
On Thu, Nov 04, 2021 at 12:43:11PM +0100, Michal Simek wrote: > > > On 11/4/21 12:37, Tom Rini wrote: > > On Thu, Nov 04, 2021 at 12:18:46PM +0100, Michal Simek wrote: > > > > > > > > > On 11/3/21 17:57, Tom Rini wrote: > > > > On Tue, Nov 02, 2021 at 11:27:22AM +0100, Michal Simek wrote: > > >

Re: [PATCH] net: uclass: Save ethernet MAC address when generated

2021-11-04 Thread Michal Simek
On 11/4/21 13:59, Tom Rini wrote: On Thu, Nov 04, 2021 at 12:43:11PM +0100, Michal Simek wrote: On 11/4/21 12:37, Tom Rini wrote: On Thu, Nov 04, 2021 at 12:18:46PM +0100, Michal Simek wrote: On 11/3/21 17:57, Tom Rini wrote: On Tue, Nov 02, 2021 at 11:27:22AM +0100, Michal Simek wrote

Re: [PATCH] net: phy: realtek: Add tx/rx delay config for 8211e

2021-11-04 Thread Tom Rini
On Tue, Oct 12, 2021 at 09:07:32PM -0500, Samuel Holland wrote: > Some boards need to change the tx/rx delay config in order for > gigabit Ethernet to work. > > In Linux commit bbc4d71d6354 ("net: phy: realtek: fix rtl8211e rx/tx > delay config"), Realtek documented the bits for overriding the de

Re: [PATCH] net: uclass: Save ethernet MAC address when generated

2021-11-04 Thread Michal Simek
On 11/4/21 13:27, Michael Walle wrote: Am 2021-11-04 12:16, schrieb Michal Simek: On 11/4/21 03:09, Grygorii Strashko wrote: On 02/11/2021 12:27, Michal Simek wrote: On 11/2/21 10:00, Michael Walle wrote: On Fri, Oct 29, 2021 at 2:14 PM Michal Simek wrote: When MAC address is random

Re: [PATCH] net: uclass: Save ethernet MAC address when generated

2021-11-04 Thread Michael Walle
Am 2021-11-04 14:15, schrieb Michal Simek: On 11/4/21 13:27, Michael Walle wrote: Am 2021-11-04 12:16, schrieb Michal Simek: On 11/4/21 03:09, Grygorii Strashko wrote: On 02/11/2021 12:27, Michal Simek wrote: On 11/2/21 10:00, Michael Walle wrote: On Fri, Oct 29, 2021 at 2:14 PM Michal Si

Re: [PATCH] net: phy: realtek: Add tx/rx delay config for 8211e

2021-11-04 Thread Andre Przywara
On Thu, 4 Nov 2021 09:13:49 -0400 Tom Rini wrote: Hi Tom, > On Tue, Oct 12, 2021 at 09:07:32PM -0500, Samuel Holland wrote: > > > Some boards need to change the tx/rx delay config in order for > > gigabit Ethernet to work. > > > > In Linux commit bbc4d71d6354 ("net: phy: realtek: fix rtl8211e

Re: [PATCH] net: phy: realtek: Add tx/rx delay config for 8211e

2021-11-04 Thread Tom Rini
On Thu, Nov 04, 2021 at 01:40:42PM +, Andre Przywara wrote: > On Thu, 4 Nov 2021 09:13:49 -0400 > Tom Rini wrote: > > Hi Tom, > > > On Tue, Oct 12, 2021 at 09:07:32PM -0500, Samuel Holland wrote: > > > > > Some boards need to change the tx/rx delay config in order for > > > gigabit Ethernet

[PATCH v3] efi_loader: add EFI_TCG2_PROTOCOL.SubmitCommand

2021-11-04 Thread Masahisa Kojima
This commit adds the EFI_TCG2_PROTOCOL.SubmitCommand required in the TCG PC Client PFP spec. SubmitCommand enables to send the raw command to the TPM device. To implement this api, tpm2_submit_command() is added into tpm-v2.c. Signed-off-by: Masahisa Kojima --- Changes in v3: - use ternary opera

[PATCH 1/5] tee: define session login identifiers

2021-11-04 Thread Etienne Carriere
Define identifiers for clnt_login field in struct tee_open_session_arg based in GlobalPlatform Device TEE IDs and on the REE_KERNEL identifier extension from OP-TEE OS. Cc: Jens Wiklander Signed-off-by: Etienne Carriere --- This change was previously discussed in the U-Boot ML, see v2 at: https:

[PATCH 2/5] tee: optee: remove unused duplicated login Id macros

2021-11-04 Thread Etienne Carriere
Remove unused OPTEE_MSG_LOGIN_* ID macros as suitable TEE_LOGIN_* ID macros are already defined tee.h. Cc: Jens Wiklander Signed-off-by: Etienne Carriere --- This change was previously discussed in the U-Boot ML, latest is "[PATCH v2 2/2] tee: optee: support session login as REE kernel", at: htt

[PATCH 4/5] dt-bindings: arm: scmi: OP-TEE as transport channel for SCMI messages

2021-11-04 Thread Etienne Carriere
Introduce compatible "linaro,scmi-optee" for SCMI transport channel based on an OP-TEE service invocation. Define "linaro,optee-channel-id" property to identify the OP-TEE SCMI channel used by the protocol(s). OP-TEE SCMI transport can either use shared memory or a static shared memory buffer iden

[PATCH 3/5] tee: optee: define TEE error code TEE_ERROR_SHORT_BUFFER

2021-11-04 Thread Etienne Carriere
Adds TEE_ERROR_SHORT_BUFFER as TEE error code. This error code is commonly used by TEEs to inform caller that the buffer(s) it provided is too small for the desired operation. Cc: Jens Wiklander Signed-off-by: Etienne Carriere --- include/tee.h | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 5/5] firmware: scmi: Add OP-TEE transport

2021-11-04 Thread Etienne Carriere
This change implements an SCMI transport for agent interfacing the OP-TEE SCMI service. OP-TEE provides an SCMI PTA (Pseudo-TA) for non-secure world to send SCMI messages over an identified channel. The driver implemented here uses a SMT shared memory for passing messages between client and server.

[PATCH 02/14] firmware: scmi: mailbox transport: fix probe failure implementation

2021-11-04 Thread Etienne Carriere
Correct scmi mailbox probe function that can't free the scmi channel instance since its auto-allocated by the device model framework. Signed-off-by: Etienne Carriere --- drivers/firmware/scmi/mailbox_agent.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/firmwar

[PATCH 01/14] firmware: scmi: fix description of an API function

2021-11-04 Thread Etienne Carriere
Correct inline comment describing API function devm_scmi_process_msg(). Signed-off-by: Etienne Carriere --- include/scmi_agent.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/scmi_agent.h b/include/scmi_agent.h index f1be9ff209..ed40c7360a 100644 --- a/include/s

[PATCH 06/14] configs: stm32mp15_trusted: increase heap for OP-TEE

2021-11-04 Thread Etienne Carriere
Increase malloc heap needed before relocation to invoke OP-TEE and eventually print some early debug traces. Change-Id: I23837c8c879ce5a080b23cb3ac5033d5ba73fb0d Signed-off-by: Etienne Carriere --- configs/stm32mp15_trusted_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

[PATCH 03/14] firmware: scmi: mailbox transport: use plat data, not priv data

2021-11-04 Thread Etienne Carriere
Change SCMI mailbox transport drivers to use platform data rather than private data for channel reference since it only stores platform data retrieved from the DT. Consequently the probe handler is replaced with a of_to_plat handler. Signed-off-by: Etienne Carriere --- drivers/firmware/scmi/mail

[PATCH 05/14] firmware: scmi: smccc transport: simplify probe sequence

2021-11-04 Thread Etienne Carriere
Minor simplification in scmi_smccc_probe() exit sequence. Signed-off-by: Etienne Carriere --- drivers/firmware/scmi/smccc_agent.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/firmware/scmi/smccc_agent.c b/drivers/firmware/scmi/smccc_agent.c index f0477b91dc.

[PATCH 07/14] configs: stm32mp15_trusted: enable SCMI voltage domains

2021-11-04 Thread Etienne Carriere
Enable CONFIG_DM_REGULATOR_SCMI for stm32mp15_trusted_defconfig to access voltage regulators exposed by SCMI server. Signed-off-by: Etienne Carriere --- configs/stm32mp15_trusted_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/stm32mp15_trusted_defconfig b/configs/stm32mp1

[PATCH 04/14] firmware: scmi: smccc transport: use plat data, not priv data

2021-11-04 Thread Etienne Carriere
Change SCMI smccc transport drivers to use platform data rather than private data for channel reference since it only stores platform data retrieved from the DT. Consequently the probe handler is replaced with a of_to_plat handler. Signed-off-by: Etienne Carriere --- drivers/firmware/scmi/smccc_

[PATCH 08/14] dt-bindings: add stm32mp15 regulators binding IDs

2021-11-04 Thread Etienne Carriere
Define stm32mp15 voltage domain DT bindings IDs. Signed-off-by: Etienne Carriere --- .../regulator/st,stm32mp15-regulator.h| 29 +++ 1 file changed, 29 insertions(+) create mode 100644 include/dt-bindings/regulator/st,stm32mp15-regulator.h diff --git a/include/dt-bindin

[PATCH 11/14] [TEST] dts: stm32mp1: use scmi smccc transport

2021-11-04 Thread Etienne Carriere
Requires OP-TEE OS to be built with CFG_STM32MP1_SCMI_SIP=y. Signed-off-by: Etienne Carriere --- arch/arm/dts/stm32mp151.dtsi | 5 +++-- arch/arm/dts/stm32mp157c-dk2.dts | 1 - arch/arm/dts/stm32mp157c-ed1.dts | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/arm/dts

[PATCH 14/14] [HACK] configs: stm32mp15: enable earlyprintk

2021-11-04 Thread Etienne Carriere
Increase CONFIG_SYS_MALLOC_F_LEN for pre-reloc trace buffers and enable earlyprintk config for STM32. Change-Id: Ibcfcff1f0e6af7eb73b5c53c717bfc6ea20881af Signed-off-by: Etienne Carriere --- configs/stm32mp15_trusted_defconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH 09/14] [WIP] arm: dts: stm32mp15: enable OP-TEE and SCMI on EV1/DK2

2021-11-04 Thread Etienne Carriere
Enable OP-TEE resources and SMCI over OP-TEE on STM32MP15xx-EV1/DK2 boards. Signed-off-by: Etienne Carriere --- arch/arm/dts/stm32mp15-u-boot.dtsi | 81 +-- arch/arm/dts/stm32mp151.dtsi| 145 arch/arm/dts/stm32mp153.dtsi| 6

[PATCH 13/14] [TEST] dts: stm32mp15: scmi mailbox transport

2021-11-04 Thread Etienne Carriere
Signed-off-by: Etienne Carriere --- arch/arm/dts/stm32mp15-u-boot.dtsi | 4 arch/arm/dts/stm32mp151.dtsi | 21 - 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/arch/arm/dts/stm32mp15-u-boot.dtsi b/arch/arm/dts/stm32mp15-u-boot.dtsi index 6fd204c63

[PATCH 12/14] [HACK] mailbox: add new arm smc/hvc mailbox

2021-11-04 Thread Etienne Carriere
From: Etienne Carriere Basic mailbox inspired from https://patchwork.kernel.org/patch/11166071/. When sending a message, the mailbox invokes the Cortex-A Arm Trustzone secure monitor with an SMC or HVC instruction providing a function identifier in register R0/X0 defined by the DTB. Signed-off-

[PATCH 10/14] [WIP] dts: arm: stm32mp15: enable SCMI regulators (PWR & PMIC) on MP15-DK*

2021-11-04 Thread Etienne Carriere
Signed-off-by: Etienne Carriere --- arch/arm/dts/stm32mp151.dtsi | 40 +- arch/arm/dts/stm32mp15xx-dkx.dtsi | 122 +- 2 files changed, 138 insertions(+), 24 deletions(-) diff --git a/arch/arm/dts/stm32mp151.dtsi b/arch/arm/dts/stm32mp151.dtsi index db480

Re: [PATCH v3] efi_loader: add EFI_TCG2_PROTOCOL.SubmitCommand

2021-11-04 Thread Ilias Apalodimas
On Thu, 4 Nov 2021 at 15:56, Masahisa Kojima wrote: > > This commit adds the EFI_TCG2_PROTOCOL.SubmitCommand > required in the TCG PC Client PFP spec. > SubmitCommand enables to send the raw command to the TPM device. > > To implement this api, tpm2_submit_command() is added > into tpm-v2.c. > > S

Re: [PATCH v5 02/11] tools: mkeficapsule: add firmwware image signing

2021-11-04 Thread Mark Kettenis
> From: Simon Glass > Date: Wed, 3 Nov 2021 20:51:25 -0600 > > Hi Mark, > > On Tue, 2 Nov 2021 at 09:13, Mark Kettenis wrote: > > > > > From: Simon Glass > > > Date: Tue, 2 Nov 2021 08:56:50 -0600 > > > > > > Hi Takahiro, > > > > > > > > - can we just build the tool always? > > > > > > > > Thi

Re: [PATCH v2 02/41] Makefile: Allow LTO to be disabled for a build

2021-11-04 Thread Tom Rini
On Wed, Nov 03, 2021 at 08:49:01PM -0600, Simon Glass wrote: > Hi Tom, > > On Mon, 1 Nov 2021 at 15:58, Tom Rini wrote: > > > > On Sun, Oct 31, 2021 at 05:46:43PM -0600, Simon Glass wrote: > > > Hi Tom, > > > > > > On Wed, 27 Oct 2021 at 07:13, Tom Rini wrote: > > > > > > > > On Wed, Oct 27, 202

Re: [PATCH v5 04/11] doc: update UEFI document for usage of mkeficapsule

2021-11-04 Thread Simon Glass
Hi Takahiro, On Wed, 3 Nov 2021 at 19:49, AKASHI Takahiro wrote: > > On Tue, Nov 02, 2021 at 08:57:48AM -0600, Simon Glass wrote: > > Hi Takahiro, > > > > On Thu, 28 Oct 2021 at 23:20, AKASHI Takahiro > > wrote: > > > > > > On Thu, Oct 28, 2021 at 09:17:48PM -0600, Simon Glass wrote: > > > > Hi

Re: [PATCH] boot: don't enable booti/bootz by default if FIT_SIGNATURE is set

2021-11-04 Thread Simon Glass
Hi, On Thu, 4 Nov 2021 at 05:23, Heinrich Schuchardt wrote: > > > > On 11/4/21 04:11, Rover Mo wrote: > > Dear Heinrich, > > > > > > Thank for your comments. > > > > > > >How about CONFIG_EFI_SECURE_BOOT? Should this also disable the default? > > > > I think yes. > > I will update the relation t

Re: [PATCH 4/4] watchdog: Automatically register device with sysreset

2021-11-04 Thread Simon Glass
Hi Samuel, On Wed, 3 Nov 2021 at 21:49, Samuel Holland wrote: > > On 10/31/21 6:46 PM, Simon Glass wrote: > > Hi Samuel, > > > > On Sun, 22 Aug 2021 at 14:41, Samuel Holland wrote: > >> > >> Add an option to automatically register the first watchdog device with > >> the wdt_reboot driver for use

Re: [PATCH v5 02/11] tools: mkeficapsule: add firmwware image signing

2021-11-04 Thread Simon Glass
Hi Mark, On Thu, 4 Nov 2021 at 08:31, Mark Kettenis wrote: > > > From: Simon Glass > > Date: Wed, 3 Nov 2021 20:51:25 -0600 > > > > Hi Mark, > > > > On Tue, 2 Nov 2021 at 09:13, Mark Kettenis wrote: > > > > > > > From: Simon Glass > > > > Date: Tue, 2 Nov 2021 08:56:50 -0600 > > > > > > > > Hi

Re: [PATCH v2 02/41] Makefile: Allow LTO to be disabled for a build

2021-11-04 Thread Simon Glass
Hi Tom, On Thu, 4 Nov 2021 at 08:55, Tom Rini wrote: > > On Wed, Nov 03, 2021 at 08:49:01PM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Mon, 1 Nov 2021 at 15:58, Tom Rini wrote: > > > > > > On Sun, Oct 31, 2021 at 05:46:43PM -0600, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Wed,

Re: [External] - Slow MMC IO with Raspberry CM3+ Module

2021-11-04 Thread Mario Lombardo
Vincent, thank you very much. Applying the two patches mentioned in the series resolve the issues immediately. Is it expected to have this enhancement in the upcoming u-boot release? Cheers, Mario > On 3. Nov 2021, at 21:57, Vincent Fazio wrote: > > Mario, > >> -Original Message- >>

Testing PCIe on Armada 370 (or older) in U-Boot

2021-11-04 Thread Pali Rohár
Hello! Recently I have sent more PCIe related patches for mvebu/armada SoCs into U-Boot. Now all were merged into U-Boot git master branch. I have tested everything on Armada 38x. I would like to ask if you have some Armada 370 board (or older, e.g. Dove, Kirwood, Discovery, Orion) and if you coul

Re: [PATCH] sf: Querying write-protect status before operating the flash

2021-11-04 Thread Tom Rini
On Wed, Nov 03, 2021 at 01:18:42PM +0100, Jan Kiszka wrote: > On 04.10.21 15:36, Jan Kiszka wrote: > > On 13.09.21 09:48, Jan Kiszka wrote: > >> Hi all, > >> > >> Chao, please no top-post on mailing list. Also check your mail client, > >> it seems to inject a lot of bogus newlines. > >> > >> On 08.

Re: [PATCH v2 02/41] Makefile: Allow LTO to be disabled for a build

2021-11-04 Thread Tom Rini
On Thu, Nov 04, 2021 at 09:12:02AM -0600, Simon Glass wrote: > Hi Tom, > > On Thu, 4 Nov 2021 at 08:55, Tom Rini wrote: > > > > On Wed, Nov 03, 2021 at 08:49:01PM -0600, Simon Glass wrote: > > > Hi Tom, > > > > > > On Mon, 1 Nov 2021 at 15:58, Tom Rini wrote: > > > > > > > > On Sun, Oct 31, 2021

Re: [PATCH v5 02/11] tools: mkeficapsule: add firmwware image signing

2021-11-04 Thread Mark Kettenis
> From: Simon Glass > Date: Thu, 4 Nov 2021 09:11:59 -0600 > > Hi Mark, > > On Thu, 4 Nov 2021 at 08:31, Mark Kettenis wrote: > > > > > From: Simon Glass > > > Date: Wed, 3 Nov 2021 20:51:25 -0600 > > > > > > Hi Mark, > > > > > > On Tue, 2 Nov 2021 at 09:13, Mark Kettenis > > > wrote: > > >

[PATCH 0/5] VExpress64 board family improvements

2021-11-04 Thread Peter Hoyes
From: Peter Hoyes These patches add the follow improvements to the VExpress64 board family (BASE_FVP and Juno): * Add documentation * Allow use of OF_BOARD for BASE_FVP (off by default) * Allow use of the virtio-net driver (off by default) * Refactor header file to make it easier to add new

[PATCH 1/5] doc: Add documentation for the Arm VExpress64 board configs

2021-11-04 Thread Peter Hoyes
From: Peter Hoyes Create a new documentation section for Arm Ltd boards with a sub-page for the VExpress64 boards (FVP-A and Juno). Signed-off-by: Peter Hoyes --- doc/board/armltd/index.rst | 9 ++ doc/board/armltd/vexpress64.rst | 49 + doc/board/inde

[PATCH 3/5] vexpress64: Clean up BASE_FVP boot configuration

2021-11-04 Thread Peter Hoyes
From: Peter Hoyes Move env var address values to #defines so they can be reused elsewhere. Rename env var names to those recommended in the README. Fix issue where fdt is called with invalid arguments when booting without a ramdisk. Signed-off-by: Peter Hoyes --- include/configs/vexpress_aem

[PATCH 2/5] vexpress64: Refactor header file to make it easier to add new FVPs

2021-11-04 Thread Peter Hoyes
From: Peter Hoyes Rename from vexpress_aemv8a.h -> vepxress_aemv8.h as new FVPs may not be v8-A. No change in behavior. This is towards future work to enable support for the FVP_BaseR. Signed-off-by: Peter Hoyes --- board/armltd/vexpress64/Kconfig | 2 +- doc/README.semihosting

[PATCH 4/5] vexpress64: Enable OF_CONTROL and OF_BOARD for VExpress64

2021-11-04 Thread Peter Hoyes
From: Peter Hoyes Capture x0 in lowlevel_init.S as potential fdt address. Modify board_fdt_blob_setup to use fdt address from either vexpress_aemv8.h or lowlevel_init.S. Signed-off-by: Peter Hoyes --- board/armltd/vexpress64/Makefile| 5 + board/armltd/vexpress64/lowlevel_init.S |

[PATCH 5/5] vexpress64: Enable VIRTIO_NET network driver

2021-11-04 Thread Peter Hoyes
From: Peter Hoyes The SMSC driver is using the old driver model. Init the virtio system in vexpress64.c so that the network device is discovered. Signed-off-by: Peter Hoyes --- board/armltd/vexpress64/vexpress64.c | 7 +++ include/configs/vexpress_aemv8.h | 4 ++-- 2 files changed, 9

[RFC 0/2] Do not stop with an error when mkimage fails

2021-11-04 Thread Heiko Thiery
While converting to binman for an imx8mq board, it has been found that building in the u-boot CI fails. This is because an imx8mq requires an external binary (signed_hdmi_imx8m.bin). If this file cannot be found mkimage fails. To work around the problem the exception is caught, an error message is

[RFC 1/2] patman: introduce RunException

2021-11-04 Thread Heiko Thiery
The RunException will be throws when the a command's return_code is not equal zero. With this an external caller can catch that and has access to the command/args, the result code, the stdout and stderr output. Signed-off-by: Heiko Thiery --- tools/patman/tools.py | 16 +--- 1 file c

[RFC 2/2] binman: catch RunException for mkimage runtime failure

2021-11-04 Thread Heiko Thiery
In case mkimage exits with a return code other than zero do not stop. Print an error message and go on. Signed-off-by: Heiko Thiery --- tools/binman/etype/mkimage.py | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/binman/etype/mkimage.py b/tools/binman/etype/mkim

Re: [RFC 0/2] Do not stop with an error when mkimage fails

2021-11-04 Thread Wolfgang Denk
Dear Heiko, In message <20211104185231.2927-1-heiko.thi...@gmail.com> you wrote: > While converting to binman for an imx8mq board, it has been found that > building in the u-boot CI fails. This is because an imx8mq requires an > external binary (signed_hdmi_imx8m.bin). If this file cannot be found

  1   2   >