Re: [PATCH] lib/acpi: Enable QEMU special cases for ARM

2022-03-13 Thread Heinrich Schuchardt
On 2/27/22 15:10, Alexander Graf wrote: With QEMU, we receive ACPI tables from the hypervisor rather than build them ourselves in U-Boot. That logic however hard codes the target to the x86 QEMU target, leaving ARM out on the fun. Let's add the ARM QEMU config as well to the ifdefs so that we ca

Re: [PATCH] test/py: efi_capsule: Handle expected reset after capsule on disk

2022-03-13 Thread Simon Glass
Hi Takahiro, On Sun, 13 Mar 2022 at 20:43, AKASHI Takahiro wrote: > > On Sun, Mar 13, 2022 at 08:15:02PM -0600, Simon Glass wrote: > > Hi Takahiro, > > > > On Sun, 13 Mar 2022 at 19:08, AKASHI Takahiro > > wrote: > > > > > > Hi Simon, > > > > > > On Fri, Mar 11, 2022 at 07:24:39PM -0700, Simon G

RE: [EXT] Re: [PATCH v8 01/15] crypto/fsl: Add support for CAAM Job ring driver model

2022-03-13 Thread Gaurav Jain
Hi Michael > -Original Message- > From: Michael Nazzareno Trimarchi > Sent: Tuesday, March 8, 2022 7:05 PM > To: Stefano Babic > Cc: Tom Rini ; Fabio Estevam ; > Gaurav Jain ; Michael Walle ; > Varun Sethi ; Adrian Alonso ; > Alison Wang ; Andy Tang ; > Franck Lenormand ; Horia Geanta >

Re: [PATCH] test/py: efi_capsule: Handle expected reset after capsule on disk

2022-03-13 Thread AKASHI Takahiro
On Sun, Mar 13, 2022 at 08:15:02PM -0600, Simon Glass wrote: > Hi Takahiro, > > On Sun, 13 Mar 2022 at 19:08, AKASHI Takahiro > wrote: > > > > Hi Simon, > > > > On Fri, Mar 11, 2022 at 07:24:39PM -0700, Simon Glass wrote: > > > Hi Takahiro, > > > > > > On Fri, 18 Feb 2022 at 18:16, AKASHI Takahir

Re: [PATCH] test/py: efi_capsule: Handle expected reset after capsule on disk

2022-03-13 Thread Simon Glass
Hi Takahiro, On Sun, 13 Mar 2022 at 19:08, AKASHI Takahiro wrote: > > Hi Simon, > > On Fri, Mar 11, 2022 at 07:24:39PM -0700, Simon Glass wrote: > > Hi Takahiro, > > > > On Fri, 18 Feb 2022 at 18:16, AKASHI Takahiro > > wrote: > > > > > > On Fri, Feb 18, 2022 at 02:48:54PM +0100, Heinrich Schuch

Re: [PATCH 14/18] Make ASYMMETRIC_KEY_TYPE depend on FIT_SIGNATURE

2022-03-13 Thread AKASHI Takahiro
Hi Simon, On Fri, Mar 11, 2022 at 07:25:16PM -0700, Simon Glass wrote: > Hi Takahiro, > > On Mon, 28 Feb 2022 at 21:22, AKASHI Takahiro > wrote: > > > > Simon, > > > > On Mon, Feb 28, 2022 at 12:08:31PM -0700, Simon Glass wrote: > > > Add this dependency to avoid a build error if FIT_SIGNATURE i

Re: Re: [PATCH v2] tools: mkimage: Call verify_header after writing image to disk

2022-03-13 Thread 陈健洪
Hi, The rk3568 uses V2 IDB structrure and the rkcommon_verify_header() has not cover V2. My teammate will fix it these days and kever.yang will submit his patch to mainline. 陈健洪 (Joseph Chen) E-mail:che...@rock-chips.com 瑞芯微电子股份有限公司 Rockchip Electronics Co.Ltd 福建省福州市铜盘路软件

Re: Re: [PATCH v2] tools: mkimage: Call verify_header after writing image to disk

2022-03-13 Thread 陈健洪
Hi, The rk3568 uses V2 IDB structrure and the rkcommon_verify_header() has not cover V2. My teammate will fix it these days and kever.yang will submit his patch to mainline. 陈健洪 (Joseph Chen) E-mail:che...@rock-chips.com 瑞芯微电子股份有限公司 Rockchip Electronics Co.Ltd 福建省福州市铜盘路软件

Re: [RESEND RFC PATCH v2 2/4] lib/charset: add u16_strlcat() function

2022-03-13 Thread Masahisa Kojima
Hi Simon, On Sat, 12 Mar 2022 at 11:24, Simon Glass wrote: > > Hi Masahisa, > > On Thu, 24 Feb 2022 at 18:31, Masahisa Kojima > wrote: > > > > Provide u16 string version of strlcat(). > > > > Signed-off-by: Masahisa Kojima > > --- > > Changes in v2: > > - implement u16_strlcat(with the destinat

Re: [PATCH] test/py: efi_capsule: Handle expected reset after capsule on disk

2022-03-13 Thread AKASHI Takahiro
Hi Simon, On Fri, Mar 11, 2022 at 07:24:39PM -0700, Simon Glass wrote: > Hi Takahiro, > > On Fri, 18 Feb 2022 at 18:16, AKASHI Takahiro > wrote: > > > > On Fri, Feb 18, 2022 at 02:48:54PM +0100, Heinrich Schuchardt wrote: > > > On 2/18/22 03:16, Masami Hiramatsu wrote: > > > > Hi Simon, > > > >

RE: [PATCH 3/3] ARM: dts: ast2600: Add PWM to device tree

2022-03-13 Thread ChiaWei Wang
> From: Simon Glass > Sent: Saturday, March 12, 2022 10:44 AM > > On Mon, 7 Mar 2022 at 20:02, Billy Tsai wrote: > > > > Add the PWM node and enable it for AST2600 EVB > > > > Signed-off-by: Billy Tsai > > --- > > arch/arm/dts/ast2600-evb.dts | 20 > > arch/arm/dts/ast2600

RE: [PATCH 2/3] pinctrl: Add the pinctrl setting for PWM.

2022-03-13 Thread ChiaWei Wang
> From: Simon Glass > Sent: Saturday, March 12, 2022 10:44 AM > > On Mon, 7 Mar 2022 at 20:02, Billy Tsai wrote: > > > > This patchs add the signal description array for PWM pinctrl settings. > > > > Signed-off-by: Billy Tsai > > --- > > arch/arm/dts/ast2600.dtsi| 80 +

RE: [PATCH 1/3] pwm: Add Aspeed ast2600 PWM support

2022-03-13 Thread ChiaWei Wang
> From: Simon Glass > Sent: Saturday, March 12, 2022 10:44 AM > > On Mon, 7 Mar 2022 at 20:02, Billy Tsai wrote: > > > > This patch add the support of PWM controller which can be found at > > aspeed > > ast2600 soc. The pwm supoorts up to 16 channels and it's part function > > of multi-function

Re: [PATCH v5 7/9] cmd: rng: Use a statically allocated array for random bytes

2022-03-13 Thread Simon Glass
Hi Sughosh, On Sun, 13 Mar 2022 at 08:49, Sughosh Ganu wrote: > > Use a statically allocated buffer on stack instead of using malloc for > reading the random bytes. Using a local array is faster than > allocating heap memory on every initiation of the command. > > Signed-off-by: Sughosh Ganu > -

Re: [PATCH v5 6/9] cmd: rng: Add support for selecting RNG device

2022-03-13 Thread Simon Glass
Hi Sughosh, On Sun, 13 Mar 2022 at 08:49, Sughosh Ganu wrote: > > The 'rng' u-boot command is used for printing a select number of > random bytes on the console. Currently, the RNG device from which the > random bytes are read is fixed. However, a platform can have multiple > RNG devices, one exa

Re: [PATCH v5 3/9] tpm: rng: Add driver model interface for TPM RNG device

2022-03-13 Thread Simon Glass
Hi Sughosh, On Sun, 13 Mar 2022 at 08:48, Sughosh Ganu wrote: > > The TPM device has a builtin random number generator(RNG) > functionality. Expose the RNG functions of the TPM device to the > driver model so that they can be used by the EFI_RNG_PROTOCOL if the > protocol is installed. > > Also c

Re: [PATCH v3 1/6] rockchip: move ROCKCHIP_STIMER_BASE to Kconfig

2022-03-13 Thread Simon Glass
Hi, On Sun, 13 Mar 2022 at 06:41, Paweł Jarosz wrote: > > Hi Kever, > > > > Thanks for you hard working on this, would you mind to share what's the > > motivation for support rk3066 and MK808 board? > > RK3066 is an SoC release at 2012, which has been EOL for a long time, > > and MK808 is a produ

Re: [PATCH v3 8/8] test: rng: Add a UT testcase for the rng command

2022-03-13 Thread Simon Glass
Hi Sughosh, On Sun, 13 Mar 2022 at 05:08, Sughosh Ganu wrote: > > hi Simon, > > On Sat, 12 Mar 2022 at 08:14, Simon Glass wrote: > > > > Hi Sughosh, > > > > On Tue, 8 Mar 2022 at 23:18, Sughosh Ganu wrote: > > > > > > hi Simon, > > > > > > On Wed, 9 Mar 2022 at 08:06, Simon Glass wrote: > > >

Re: [PATCH] test/py: efi_capsule: Handle expected reset after capsule on disk

2022-03-13 Thread Simon Glass
Hi Masami, On Sun, 13 Mar 2022 at 08:00, Masami Hiramatsu wrote: > > Hi Simon and Takahiro, > > I also would like to know how the UEFI is tested in the U-Boot. > It seems that we have lib/efi_selftest/ but it seems not unified to > 'ut' command. I think it would be good to add it there. There is

Re: [PATCH v5 4/9] tpm: Add the RNG child device

2022-03-13 Thread Simon Glass
Hi Sughosh, On Sun, 13 Mar 2022 at 08:48, Sughosh Ganu wrote: > > The TPM device comes with the random number generator(RNG) > functionality which is built into the TPM device. Add logic to add the > RNG child device in the TPM uclass post probe callback. > > The RNG device can then be used to pa

Re: [PATCH v4 00/33] Initial implementation of standard boot

2022-03-13 Thread Simon Glass
Hi Mark, On Sun, 13 Mar 2022 at 09:47, Mark Kettenis wrote: > > > From: Simon Glass > > Date: Sun, 6 Mar 2022 05:49:43 -0700 > > > > The bootflow feature provide a built-in way for U-Boot to automatically > > boot an Operating System without custom scripting and other customisation. > > This is

Re: [PATCH 8/8] video: Convert UTF-8 input stream to the 437 code page

2022-03-13 Thread Simon Glass
Hi Andre, On Sun, 9 Jan 2022 at 17:57, Andre Przywara wrote: > > The bitmap fonts (VGA 8x16 and friends) we import from Linux use the > 437 code page to map their glyphs. For U-Boot's own purposes this is > probably fine, but UEFI applications output Unicode, which only matches > in the very basi

Re: [PATCH 1/8] video: Add cursor support for DM_VIDEO consoles

2022-03-13 Thread Simon Glass
Hi Andre, On Sun, 9 Jan 2022 at 17:57, Andre Przywara wrote: > > So far the DM_VIDEO console is completely lacking any cursor, which makes > typing and correcting quite irritating. > > Add a simple cursor display by writing a SPACE glyph in the background > colour to the next character position o

[PATCH] bloblist: Describe the design goals

2022-03-13 Thread Simon Glass
Add a comment explaining the design goals of bloblist, to make it easier for people to understand and comment on the structure. Signed-off-by: Simon Glass --- doc/develop/bloblist.rst | 2 ++ include/bloblist.h | 62 ++-- 2 files changed, 62 insertions

Re: Pull request for efi-2022-04-rc3-2

2022-03-13 Thread Tom Rini
On Sat, Mar 12, 2022 at 01:27:28PM +0100, Heinrich Schuchardt wrote: > Dear Tom, > > The following changes since commit 589c659035a44a683b087fd75fe0b7667f7be7f5: > > Merge branch '2022-03-08-assorted-fixes' (2022-03-08 08:42:51 -0500) > > are available in the Git repository at: > > https:/

Re: [PATCH v4 00/33] Initial implementation of standard boot

2022-03-13 Thread Mark Kettenis
> From: Simon Glass > Date: Sun, 6 Mar 2022 05:49:43 -0700 > > The bootflow feature provide a built-in way for U-Boot to automatically > boot an Operating System without custom scripting and other customisation. > This is called 'standard boot' since it provides a standard way for > U-Boot to bo

[PATCH v5 9/9] test: rng: Add a UT testcase for the rng command

2022-03-13 Thread Sughosh Ganu
The 'rng' command dumps a number of random bytes on the console. Add a set of tests for the 'rng' command. The test function performs basic sanity testing of the command. Since a unit test is being added for the command, enable it by default in the sandbox platforms. Signed-off-by: Sughosh Ganu

[PATCH v5 8/9] doc: rng: Add documentation for the rng command

2022-03-13 Thread Sughosh Ganu
Add a usage document for the 'rng' u-boot command. Signed-off-by: Sughosh Ganu Reviewed-by: Ilias Apalodimas Reviewed-by: Simon Glass --- Changes since V4: * Reflect the fact that a maximum of 64 bytes can be read on each invocation of the 'rng' command doc/usage/index.rst | 1 + doc/usa

[PATCH v5 6/9] cmd: rng: Add support for selecting RNG device

2022-03-13 Thread Sughosh Ganu
The 'rng' u-boot command is used for printing a select number of random bytes on the console. Currently, the RNG device from which the random bytes are read is fixed. However, a platform can have multiple RNG devices, one example being qemu, which has a virtio RNG device and the RNG pseudo device t

[PATCH v5 7/9] cmd: rng: Use a statically allocated array for random bytes

2022-03-13 Thread Sughosh Ganu
Use a statically allocated buffer on stack instead of using malloc for reading the random bytes. Using a local array is faster than allocating heap memory on every initiation of the command. Signed-off-by: Sughosh Ganu --- Changes since V4: * New patch based on review comments from Simon to not

[PATCH v5 5/9] qemu: arm: Remove platform specific function to get RNG device

2022-03-13 Thread Sughosh Ganu
The Qemu platform has a function defined to get the random number generator(RNG) device. However, the RNG device can be obtained simply by searching for a device belonging to the RNG uclass. Remove the superfluous platform function defined for the Qemu platform for getting the RNG device. Signed-o

[PATCH v5 4/9] tpm: Add the RNG child device

2022-03-13 Thread Sughosh Ganu
The TPM device comes with the random number generator(RNG) functionality which is built into the TPM device. Add logic to add the RNG child device in the TPM uclass post probe callback. The RNG device can then be used to pass a set of random bytes to the linux kernel, need for address space random

[PATCH v5 3/9] tpm: rng: Add driver model interface for TPM RNG device

2022-03-13 Thread Sughosh Ganu
The TPM device has a builtin random number generator(RNG) functionality. Expose the RNG functions of the TPM device to the driver model so that they can be used by the EFI_RNG_PROTOCOL if the protocol is installed. Also change the function arguments and return type of the random number functions t

[PATCH v5 2/9] tpm: Fix the return type of tpm_startup

2022-03-13 Thread Sughosh Ganu
The tpm_startup function returns negative values for error conditions. Fix the return type of the function to a signed int instead of a u32. Signed-off-by: Sughosh Ganu Reviewed-by: Ilias Apalodimas Reviewed-by: Simon Glass --- Changes since V4: None include/tpm_api.h | 2 +- lib/tpm_api.c

[PATCH v5 1/9] tpm: rng: Change tpm_get_random to return an int

2022-03-13 Thread Sughosh Ganu
The tpm random number generation functionality will be moved to the driver model. With that, the tpm_get_random function will call the common driver model api instead of separate functions for tpmv1 and tpmv2. Return an int instead of a u32 to comply with the return value of the driver model functi

[PATCH v5 0/9] tpm: rng: Move TPM RNG functionality to driver model

2022-03-13 Thread Sughosh Ganu
The TPM device provides the random number generator(RNG) functionality, whereby sending a command to the TPM device results in the TPM device responding with random bytes. There was a discussion on the mailing list earlier[1], where it was explained that platforms with a TPM device can install t

Re: [PATCH v2] usb: dwc2: handle return code of dev_read_size() in of to, plat function

2022-03-13 Thread Marek Vasut
On 3/13/22 13:51, Marek Vasut wrote: On 3/13/22 09:18, Wolfgang Grandegger wrote: dev_read_size() returns -EINVAL (-22) if the property "g-tx-fifo-size" does not exist. If that's the case, we now keep the default value of 0. Applied, thanks. The patch does not even compile, please fix: http

Re: [PATCH] test/py: efi_capsule: Handle expected reset after capsule on disk

2022-03-13 Thread Masami Hiramatsu
Hi Simon and Takahiro, I also would like to know how the UEFI is tested in the U-Boot. It seems that we have lib/efi_selftest/ but it seems not unified to 'ut' command. Should I expand efi_selftest for testing capsule update with reset? Thank you, 2022年3月12日(土) 11:24 Simon Glass : > > Hi Takahir

Re: [PATCH v2] usb: dwc2: handle return code of dev_read_size() in of to, plat function

2022-03-13 Thread Marek Vasut
On 3/13/22 09:18, Wolfgang Grandegger wrote: dev_read_size() returns -EINVAL (-22) if the property "g-tx-fifo-size" does not exist. If that's the case, we now keep the default value of 0. Applied, thanks.

[PATCH 3/3] configs: condor: Enabled I2C support for R-Car V3H

2022-03-13 Thread marek . vasut
From: Nam Nguyen Enable I2C support for R-Car V3H (R8A77980) on Condor board. Signed-off-by: Nam Nguyen Signed-off-by: Hai Pham Signed-off-by: Marek Vasut --- configs/r8a77980_condor_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/r8a77980_condor_defconf

[PATCH 2/3] configs: eagle: Enabled I2C support for R-Car V3M

2022-03-13 Thread marek . vasut
From: Nam Nguyen Enable I2C support for R-Car V3M (R8A77970) on Eagle board. Signed-off-by: Nam Nguyen Signed-off-by: Hai Pham Signed-off-by: Marek Vasut --- configs/r8a77970_eagle_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/r8a77970_eagle_defconfig

[PATCH 1/3] configs: falcon: Enabled I2C support for R-Car V3U

2022-03-13 Thread marek . vasut
From: Nam Nguyen Enable I2C support for R-Car V3U (R8A779A0) on Falcon board. Signed-off-by: Nam Nguyen Signed-off-by: Hai Pham Signed-off-by: Marek Vasut --- configs/r8a779a0_falcon_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/r8a779a0_falcon_defconf

Re: [PATCH v3 1/6] rockchip: move ROCKCHIP_STIMER_BASE to Kconfig

2022-03-13 Thread Paweł Jarosz
Hi Kever, > Thanks for you hard working on this, would you mind to share what's the > motivation for support rk3066 and MK808 board? > RK3066 is an SoC release at 2012, which has been EOL for a long time, > and MK808 is a product at 2013, almost 10 years ago. That is true but at least here at P

Re: Pull request: u-boot-spi/master

2022-03-13 Thread Tom Rini
On Sat, Mar 12, 2022 at 02:14:15PM +0530, Jagan Teki wrote: > Hi Tom, > > Please pull this PR. > > Summary: > - sunXi SPI fixups (Andre) > - bcm iproc qspi (Rayagonda) > > CI: > https://source.denx.de/u-boot/custodians/u-boot-spi/-/pipelines/11239 > > thanks, > Jagan. > > The following change

Re: [PATCH v4 4/8] tpm: Add the RNG child device

2022-03-13 Thread Sughosh Ganu
hi Simon, On Sat, 12 Mar 2022 at 08:14, Simon Glass wrote: > > Hi Sughosh, > > On Wed, 9 Mar 2022 at 05:28, Sughosh Ganu wrote: > > > > The TPM device comes with the random number generator(RNG) > > functionality which is built into the TPM device. Add logic to add the > > RNG child device in th

Re: [PATCH v4 3/8] tpm: rng: Add driver model interface for TPM RNG device

2022-03-13 Thread Sughosh Ganu
hi Simon, On Sat, 12 Mar 2022 at 08:14, Simon Glass wrote: > > Hi Sughosh, > > On Wed, 9 Mar 2022 at 05:28, Sughosh Ganu wrote: > > > > The TPM device has a builtin random number generator(RNG) > > functionality. Expose the RNG functions of the TPM device to the > > driver model so that they can

Re: [PATCH v3 8/8] test: rng: Add a UT testcase for the rng command

2022-03-13 Thread Sughosh Ganu
hi Simon, On Sat, 12 Mar 2022 at 08:14, Simon Glass wrote: > > Hi Sughosh, > > On Tue, 8 Mar 2022 at 23:18, Sughosh Ganu wrote: > > > > hi Simon, > > > > On Wed, 9 Mar 2022 at 08:06, Simon Glass wrote: > > > > > > Hi Sughosh, > > > > > > On Fri, 4 Mar 2022 at 06:35, Sughosh Ganu wrote: > > > >

Re: [PATCH] WIP: Nokia RX-51: Convert to CONFIG_DM_VIDEO

2022-03-13 Thread Pali Rohár
On Friday 11 March 2022 22:02:39 Simon Glass wrote: > Hi Pali, > > On Fri, 11 Mar 2022 at 11:58, Pali Rohár wrote: > > > > On Wednesday 09 March 2022 23:20:11 Anatolij Gustschin wrote: > > > Hi Pali, > > > > > > On Wed, 9 Mar 2022 20:44:50 +0100 > > > Pali Rohár p...@kernel.org wrote: > > > > > >