Re: [U-Boot] [PATCH] test/py: hush_if_test: Add tests to cover octal/hex values

2019-10-11 Thread Michal Simek
On 10. 10. 19 19:06, Simon Glass wrote: > Hi Michal, > > On Thu, 10 Oct 2019 at 05:44, Michal Simek wrote: >> >> Extend test suite to cover also automatic octal/hex converstions which >> haven't been implemented in past. >> >> Signed-off-by: Michal Simek >> --- >> >> Depends on

[U-Boot] [PATCH v1 00/11] import x509/pkcs7 parsers from linux

2019-10-11 Thread AKASHI Takahiro
Asn1 parsers of x509 certificates and pkcs7 messages are required to implement image authentication and variable authentication as part of UEFI secure boot feature. As we discussed before in the thread[1], most people insisted that we should re-use corresponding source code from Linux repository

[U-Boot] [PATCH v1 10/11] lib: crypto: add pkcs7 message parser

2019-10-11 Thread AKASHI Takahiro
Imported from linux kernel v5.3. Signed-off-by: AKASHI Takahiro --- include/crypto/pkcs7.h| 47 +++ lib/crypto/Kconfig| 9 + lib/crypto/Makefile | 11 + lib/crypto/pkcs7.asn1 | 135 lib/crypto/pkcs7_parser.c | 693 ++

[U-Boot] [PATCH v1 05/11] Makefile: add build script for asn1 parsers

2019-10-11 Thread AKASHI Takahiro
This rule will be used to build x509 and pkcs7 parsers. Signed-off-by: AKASHI Takahiro --- scripts/Makefile.build | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/Makefile.build b/scripts/Makefile.build index f7a041296d3d..9357d310e50b 100644 ---

[U-Boot] [PATCH v1 06/11] lib: add asn1 decoder

2019-10-11 Thread AKASHI Takahiro
Imported from linux kernel v5.3. Signed-off-by: AKASHI Takahiro --- lib/Kconfig| 6 + lib/Makefile | 1 + lib/asn1_decoder.c | 527 + 3 files changed, 534 insertions(+) create mode 100644 lib/asn1_decoder.c diff --git a/lib/Kconfig

[U-Boot] [PATCH v1 03/11] include: kernel.h: include printk.h

2019-10-11 Thread AKASHI Takahiro
Adding "printk.h" will help improve portability from linux kernel code (in my case, lib/asn1_decoder.c). Signed-off-by: AKASHI Takahiro --- include/linux/kernel.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/kernel.h b/include/linux/kernel.h index

[U-Boot] [PATCH v1 08/11] lib: crypto: add public key utility

2019-10-11 Thread AKASHI Takahiro
Imported from linux kernel v5.3. Signed-off-by: AKASHI Takahiro --- include/crypto/public_key.h| 90 + include/keys/asymmetric-type.h | 88 + lib/crypto/Kconfig | 19 + lib/crypto/Makefile| 10 + lib/crypto/asymmetric_type.c | 668

[U-Boot] [PATCH v1 11/11] lib: crypto: add rsa public key parser

2019-10-11 Thread AKASHI Takahiro
Imported from linux kernel v5.3. Signed-off-by: AKASHI Takahiro --- include/crypto/internal/rsa.h | 57 ++ lib/crypto/Makefile | 10 +- lib/crypto/rsa_helper.c | 198 ++ lib/crypto/rsapubkey.asn1 | 4 + 4 files changed, 268

Re: [U-Boot] [PATCH v1 00/11] import x509/pkcs7 parsers from linux

2019-10-11 Thread AKASHI Takahiro
I hope this patch set will be reviewed promptly as I'm aiming to push my "UEFI secure boot" patch for v2020.01. On Fri, Oct 11, 2019 at 04:41:49PM +0900, AKASHI Takahiro wrote: > Asn1 parsers of x509 certificates and pkcs7 messages are required > to implement image authentication and variable

[U-Boot] [PATCH v3 0/3] spi-nor: spi-nor-ids: Fix 4 Byte addressing for n25q*

2019-10-11 Thread Vignesh Raghavendra
n25q variants do not support stateless 4 byte addressing opcodes by default, therefore first patch disables this flag for those parts. Second patch adds entries for mt25q variants which are similar to n25q but supports stateless 4 byte opcodes. Third patch adds USE_FSR flag for mt25q* and n25q*

[U-Boot] [PATCH v3 3/3] spi-nor: spi-nor-ids: Add USE_FSR flag for mt25q* and n25q* entry

2019-10-11 Thread Vignesh Raghavendra
n25q* and mt25q* (both 256Mb and 512Mb) flashes support Flag status register that indicates various errors that may be encountered during erase/write operations. Therefore add USE_FSR flag wherever missing. Signed-off-by: Vignesh Raghavendra Reviewed-by: Tudor Ambarus Reviewed-by: Simon

[U-Boot] [PATCH v3 1/3] spi-nor: spi-nor-ids: Disable SPI_NOR_4B_OPCODES for n25q512* and n25q256*

2019-10-11 Thread Vignesh Raghavendra
Per datasheets of n25q256* and n25q512* not all variants of n25q256* and n25q512* support 4 Byte stateless addressing opcodes. Therefore drop SPI_NOR_4B_OPCODES flag from these entries Signed-off-by: Vignesh Raghavendra Reviewed-by: Tudor Ambarus Reviewed-by: Simon Goldschmidt Tested-by: Simon

[U-Boot] [PATCH v3 2/3] spi-nor: spi-nor-ids: Add entries for mt25q variants

2019-10-11 Thread Vignesh Raghavendra
mt25q* flashes support stateless 4 byte addressing opcodes. Add entries for the same. These flashes have bit 6 set in 5th byte of READ ID response when compared to n25q* variants. Signed-off-by: Vignesh Raghavendra Reviewed-by: Tudor Ambarus Tested-by: Simon Goldschmidt ---

Re: [U-Boot] [Uboot-stm32] [PATCH v2 03/16] dfu: sf: add partition support for nor backend

2019-10-11 Thread Patrick DELAUNAY
Hi Lukasz, > Sent: jeudi 10 octobre 2019 12:11 > To: Patrick DELAUNAY > > Hi Patrick, > > > Copy the partition support from NAND backend to SF, support part and > > partubi option. > > In case of ubi partition, erase the rest of the partition as it is > > mandatory for UBI. > > > > for

Re: [U-Boot] [PATCH 069/126] sandbox: pci: Remember the device being emulated

2019-10-11 Thread Bin Meng
On Wed, Oct 9, 2019 at 10:27 PM Bin Meng wrote: > > On Wed, Sep 25, 2019 at 10:58 PM Simon Glass wrote: > > > > Add a field to the PCI emulator per-device data which records which device > > is being emulated. This is useful when the emulator needs to check the > > device for something. > > > >

Re: [U-Boot] [PATCH 073/126] trace: Remove the const from write functions

2019-10-11 Thread Bin Meng
On Thu, Oct 10, 2019 at 11:20 AM Bin Meng wrote: > > On Wed, Sep 25, 2019 at 10:58 PM Simon Glass wrote: > > > > The write functions do actually change the contents of memory so it is not > > correct to use 'const'. Remove it. > > > > Signed-off-by: Simon Glass > > --- > > > > common/iotrace.c

Re: [U-Boot] [PATCH 080/126] x86: Add a function to find the size of an mrccache record

2019-10-11 Thread Bin Meng
On Thu, Oct 10, 2019 at 1:09 PM Bin Meng wrote: > > On Wed, Sep 25, 2019 at 10:59 PM Simon Glass wrote: > > > > Move the code to determine the size of a cache record into a function so > > we can use it elsewhere in this file. > > > > Signed-off-by: Simon Glass > > --- > > > >

Re: [U-Boot] [PATCH] binman: Use qemu-x86_defconfig in the example

2019-10-11 Thread Bin Meng
On Fri, Oct 11, 2019 at 1:06 AM Simon Glass wrote: > > On Wed, 2 Oct 2019 at 19:07, Bin Meng wrote: > > > > The doc currently uses sandbox_defconfig as examples of enabling > > debug/verbose output of binman. However during a sandbox build it > > does not call binman at all. Change it to

Re: [U-Boot] [PATCH 105/126] x86: Reduce resetvec size

2019-10-11 Thread Bin Meng
On Thu, Oct 10, 2019 at 3:12 PM Bin Meng wrote: > > On Wed, Sep 25, 2019 at 11:02 PM Simon Glass wrote: > > > > At present this produces a 16-byte file. It is intended to start 16 bytes > > before the end of ROM and pads with zeroes to readh the end. > > > > But binman sometimes wants to add an

Re: [U-Boot] [PATCH 099/126] x86: Drop RESET_SEG_SIZE

2019-10-11 Thread Bin Meng
On Thu, Oct 10, 2019 at 5:57 PM Bin Meng wrote: > > On Wed, Sep 25, 2019 at 10:59 PM Simon Glass wrote: > > > > This is not used anywhere now, so drop it. > > > > Signed-off-by: Simon Glass > > --- > > > > arch/x86/Kconfig | 5 - > > arch/x86/cpu/config.mk | 1 - > > 2 files changed,

Re: [U-Boot] [PATCH] MAINTAINERS: Update ARM entry

2019-10-11 Thread Bin Meng
On Fri, Oct 11, 2019 at 5:33 AM Tom Rini wrote: > > Fully take over the ARM maintainers entry. > > Signed-off-by: Tom Rini > --- > MAINTAINERS| 2 +- > doc/git-mailrc | 3 +-- > 2 files changed, 2 insertions(+), 3 deletions(-) > I noticed that previous email address is no longer available.

[U-Boot] [PATCH v1 01/11] linux_compat: add kmemdup()

2019-10-11 Thread AKASHI Takahiro
Adding kmemdup() will help improve portability from linux kernel code (in my case, lib/crypto/x509_cert_parser.c and pkcs7_parser.c). Signed-off-by: AKASHI Takahiro --- include/linux/compat.h | 4 ++-- lib/linux_compat.c | 11 +++ 2 files changed, 13 insertions(+), 2 deletions(-)

[U-Boot] [PATCH v1 02/11] include: time.h: define time64_t

2019-10-11 Thread AKASHI Takahiro
Adding time64_t definition will help improve portability of linux kernel code (in my case, lib/crypto/x509_cert_parser.c). Signed-off-by: AKASHI Takahiro --- include/linux/time.h | 24 1 file changed, 24 insertions(+) diff --git a/include/linux/time.h

[U-Boot] [PATCH v1 09/11] lib: crypto: add x509 parser

2019-10-11 Thread AKASHI Takahiro
Imported from linux kernel v5.3. Signed-off-by: AKASHI Takahiro --- lib/Kconfig | 1 + lib/Makefile | 1 + lib/crypto/Kconfig| 10 + lib/crypto/Makefile | 17 + lib/crypto/x509.asn1 | 60 +++ lib/crypto/x509_akid.asn1

[U-Boot] [PATCH v1 07/11] lib: add oid registry utility

2019-10-11 Thread AKASHI Takahiro
Imported from linux kernel v5.3. Signed-off-by: AKASHI Takahiro --- include/linux/oid_registry.h | 117 lib/Kconfig | 5 + lib/Makefile | 16 +++ lib/build_OID_registry | 203 +++ lib/oid_registry.c

[U-Boot] [PATCH v1 04/11] cmd: add asn1_compiler

2019-10-11 Thread AKASHI Takahiro
Imported from linux kernel v5.3. This host command will be used to create a ASN1 parser, for example, for pkcs7 or x509. Signed-off-by: AKASHI Takahiro --- cmd/Kconfig |3 + include/linux/asn1.h | 65 ++ include/linux/asn1_ber_bytecode.h | 89 ++

Re: [U-Boot] [PATCH] net: eth-uclass: Remove warning about ROM MAC address

2019-10-11 Thread Soeren Moch
Hi Joe, On 11.10.19 05:06, Joe Hershberger wrote: > Hi Soeren, > > On Thu, Oct 10, 2019 at 6:01 PM Soeren Moch wrote: >> Using a MAC address from ROM storage is the normal case for most >> ethernet hardware. Why should we warn about this? > Most hardware that U-Boot runs on is an SoC and the

Re: [U-Boot] [PATCH 090/126] x86: Update Kconfig options for FSP1

2019-10-11 Thread Bin Meng
On Thu, Oct 10, 2019 at 5:19 PM Bin Meng wrote: > > On Wed, Sep 25, 2019 at 10:59 PM Simon Glass wrote: > > > > Many of the Kconfig options do not apply to FSP2. Update them to use the > > FSP_VERSION1 condition instead. > > > > Signed-off-by: Simon Glass > > --- > > > > arch/x86/Kconfig | 14

Re: [U-Boot] [PATCH 098/126] x86: Drop RESET_BASE

2019-10-11 Thread Bin Meng
On Thu, Oct 10, 2019 at 5:56 PM Bin Meng wrote: > > On Wed, Sep 25, 2019 at 10:59 PM Simon Glass wrote: > > > > Since x86 users binman now, we don't need this compile-time define. > > > > Signed-off-by: Simon Glass > > --- > > > > arch/x86/cpu/config.mk | 1 - > > 1 file changed, 1 deletion(-)

Re: [U-Boot] [PATCH 093/126] x86: Allow interrupt to happen once

2019-10-11 Thread Bin Meng
On Thu, Oct 10, 2019 at 5:26 PM Bin Meng wrote: > > On Wed, Sep 25, 2019 at 10:59 PM Simon Glass wrote: > > > > At present the interrupt table is included in all phases of U-Boot. Allow > > it to be omitted, e.g. in TPL, to reduce size. > > > > Signed-off-by: Simon Glass > > --- > > > >

Re: [U-Boot] [PATCH 0/8] usb: Add support for Cadence USB controller driver

2019-10-11 Thread Jean-Jacques Hiblot
On 01/10/2019 13:56, Vignesh Raghavendra wrote: This series adds support for Cadence USB Host and Gadget controller drivers. This is borrowed directly from Linux kernel v5.4-rc1. Driver as such supports both 3.0 and 2.0 speeds. But USB 3.0 requires a PHY driver which will be added in a separate

Re: [U-Boot] [PATCH 093/126] x86: Allow interrupt to happen once

2019-10-11 Thread Bin Meng
Hi Simon, On Fri, Oct 11, 2019 at 4:35 PM Bin Meng wrote: > > On Thu, Oct 10, 2019 at 5:26 PM Bin Meng wrote: > > > > On Wed, Sep 25, 2019 at 10:59 PM Simon Glass wrote: > > > > > > At present the interrupt table is included in all phases of U-Boot. Allow > > > it to be omitted, e.g. in TPL,

Re: [U-Boot] [PATCH 1/4] dm: core: Allow for not controlling the power-domain by DM framework

2019-10-11 Thread Simon Glass
Hi Lokesh, On Fri, 27 Sep 2019 at 02:19, Lokesh Vutla wrote: > > In some remoteproc cases, enabling the power domain of the core will > start running the core. In such cases image should be loaded before > enabling the power domain. But the current DM framework enables the > power-domain by

Re: [U-Boot] [PATCH] sandbox: Remove sandbox_noblk build

2019-10-11 Thread Simon Glass
On Fri, 11 Oct 2019 at 14:30, Tom Rini wrote: > > At this point, all drivers that do not use CONFIG_BLK are past their > migration deadlines, so remove this config as it's no longer helpful and > hinders enhancing block drivers. > > Cc: Simon Glass > Cc: Faiz Abbas > Signed-off-by: Tom Rini >

Re: [U-Boot] [PATCH v2 1/4] libfdt: fdt_address_cells() and fdt_size_cells()

2019-10-11 Thread Simon Glass
Hi Matthias, On Mon, 7 Oct 2019 at 07:31, Matthias Brugger wrote: > > Hi Simon, > > On 28/09/2019 01:28, s...@google.com wrote: > > From: Matthias Brugger > > > > Add internal fdt_cells() to avoid copy and paste. Fix typo in > > fdt_size_cells() documentation comment. > > > > This is based in

Re: [U-Boot] [PATCH] remoteproc: elf_loader: fix program header parsing

2019-10-11 Thread Suman Anna
On 9/4/19 2:53 AM, Fabien Dessenne wrote: > Fix an issue where some sections are never loaded : if p_type is > different from PT_LOAD the phdr pointer must be incremented. > Good catch Fabien. Fixes: 7a7c4cb0f044 ("remoteproc: add elf file load support") > Signed-off-by: Fabien Dessenne

Re: [U-Boot] [PATCH 5/5] remoteproc: stm32: invert the is_running() return value

2019-10-11 Thread Suman Anna
On 10/9/19 10:36 AM, Fabien Dessenne wrote: > The .is_running() ops expects a return value of 0 if the processor is > running, 1 if not running : align to this. > > Signed-off-by: Fabien Dessenne This patch should be earlier than patch4, right? Reviewed-by: Suman Anna > --- >

Re: [U-Boot] [PATCH 3/5] remoteproc: stm32: load resource table from firmware

2019-10-11 Thread Suman Anna
Hi Fabien, On 10/9/19 10:36 AM, Fabien Dessenne wrote: > Load the optional resource table from the firmware, and write its > address in the dedicated backup register. What processor is this? Reason I ask is that you are using 0 as a no resource table address, and if it is a valid address for

Re: [U-Boot] [PATCH 2/4] remoteproc: k3_arm64: Enable DM_FLAG_DEFAULT_PD_CTRL_OFF

2019-10-11 Thread Simon Glass
On Fri, 27 Sep 2019 at 02:19, Lokesh Vutla wrote: > > Enable DM_FLAG_DEFAULT_PD_CTRL_OFF for arm64 remote core so that > pd can be enabled after loading the image. > > Signed-off-by: Lokesh Vutla > --- > drivers/remoteproc/ti_k3_arm64_rproc.c | 1 + > 1 file changed, 1 insertion(+)

Re: [U-Boot] [PATCH v1 1/2] arch: sandbox: Provide working writeX/readX functions

2019-10-11 Thread Simon Glass
Hi Jean-Jacques, On Wed, 2 Oct 2019 at 03:29, Jean-Jacques Hiblot wrote: > > Those functions are used by the regmap core. Without them regmaps are > not working on sandbox. > The implementation is taken from arch/x86/include/asm/io.h. > > Signed-off-by: Jean-Jacques Hiblot > --- > >

Re: [U-Boot] [PATCH] dm: device: Fix typo in the non-DEVRES version of devm_kmalloc_array()

2019-10-11 Thread Simon Glass
On Thu, 26 Sep 2019 at 07:44, Jean-Jacques Hiblot wrote: > > When DEVRES is not set, devm_kmalloc_array() is spelled > devm_kmaloc_array() (with one 'l' only). > Fixing it so that the name is the same with and without DEVRES. > > Signed-off-by: Jean-Jacques Hiblot > --- > include/dm/device.h |

Re: [U-Boot] [PATCH v1 2/2] test: regmap: check the values read from the regmap

2019-10-11 Thread Simon Glass
Hi Jean-Jacques, On Wed, 2 Oct 2019 at 03:28, Jean-Jacques Hiblot wrote: > > The test did reads after writes but didn't check the value. > It probably was because the sandbox didn't implement the writeX/readX > functions. > > Signed-off-by: Jean-Jacques Hiblot > > --- > > test/dm/regmap.c | 15

Re: [U-Boot] [PATCH v5 12/15] drivers: board: Make the board drivers available in SPL

2019-10-11 Thread Simon Glass
On Fri, 20 Sep 2019 at 09:28, Jean-Jacques Hiblot wrote: > > Make the board driver available in the SPL too. The board driver is a way > to provide useful information about the board and that can be useful in > the SPL too. > > Signed-off-by: Jean-Jacques Hiblot > > --- > > Changes in v5: None >

Re: [U-Boot] [PATCH v2] dm: Tidy up dump output when there are many devices

2019-10-11 Thread Simon Glass
On Mon, 30 Sep 2019 at 02:19, Patrick Delaunay wrote: > > At present the 'Index' column of 'dm tree' assumes there is > two digits, this patch increase it to 3 digits. > > It also aligns output of 'dm uclass', assuming the same 3 digits index. > > The boards with CONFIG_PINCTRL_FULL activated

Re: [U-Boot] [PATCH 4/4] dm: core: device: switch off power domain after device removal

2019-10-11 Thread Simon Glass
On Fri, 27 Sep 2019 at 02:19, Lokesh Vutla wrote: > > From: Anatolij Gustschin > > The power domain associated with a device is enabled when probing, > but currently the domain remains enabled when the device is removed. > Some boards started to disable power domains for selected devices > via

[U-Boot] [PATCH 2/5] sandbox: Drop 'const' from sandbox_write()

2019-10-11 Thread Simon Glass
This function writes to its address so the address should not be declared as const. Fix it. Signed-off-by: Simon Glass --- arch/sandbox/cpu/cpu.c| 3 +-- arch/sandbox/include/asm/io.h | 11 +-- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git

[U-Boot] [PATCH 0/5] dm: regmap: Various fixes for regmap

2019-10-11 Thread Simon Glass
Recently a feature was added to allow sandbox to do memory-mapped IO using readl(), writel(), etc. This adds a few fixes and improvements to this. It also includes an updated version of Jean-Jacques patch to add more tests for regmap. Jean-Jacques Hiblot (1): test: regmap: check the values

[U-Boot] [PATCH 5/5] test: regmap: check the values read from the regmap

2019-10-11 Thread Simon Glass
From: Jean-Jacques Hiblot The test did reads after writes but didn't check the value. It probably was because the sandbox didn't implement the writeX/readX functions. Signed-off-by: Jean-Jacques Hiblot Updated to use sandbox_set_enable_memio(): Signed-off-by: Simon Glass ---

[U-Boot] [PATCH 1/5] sandbox: test: Show hex values on failure

2019-10-11 Thread Simon Glass
Quite a few tests use addresses or hex values for comparisons. Add hex output for test failures, e.g.: 0x55ca22fa == reg: Expected 0x55ca22fa (1439310586), got 0x55ea22fb (1441407739) Signed-off-by: Simon Glass --- include/test/ut.h | 3 ++- 1 file changed, 2 insertions(+), 1

Re: [U-Boot] IS_ERR_VALUE failing on socfpga gen5

2019-10-11 Thread Simon Glass
Hi Simon, On Tue, 8 Oct 2019 at 14:34, Simon Goldschmidt wrote: > > In a series I'm currently preparing, I've stumbled accross the fact that > IS_ERR_VALUE() doesn't reliably work on socfpga SPL as the onchip SRAM > begins at 0x and the heap is at the end of the 32 bit range. > Which

Re: [U-Boot] [PATCH 4/5] stm32mp1: Fixup the Linux DeviceTree with coprocessor information

2019-10-11 Thread Suman Anna
Hi Fabien, On 10/9/19 10:36 AM, Fabien Dessenne wrote: > When the coprocessor has been started, provide the context to Linux > kernel so it can handle it: > - update the coprocessor node of kernel DeviceTree with the > "early-booted" property. Has this property been acked by DT maintainers at

Re: [U-Boot] IS_ERR_VALUE failing on socfpga gen5

2019-10-11 Thread Simon Goldschmidt
Simon Glass schrieb am Fr., 11. Okt. 2019, 20:27: > Hi Simon, > > On Tue, 8 Oct 2019 at 14:34, Simon Goldschmidt > wrote: > > > > In a series I'm currently preparing, I've stumbled accross the fact that > > IS_ERR_VALUE() doesn't reliably work on socfpga SPL as the onchip SRAM > > begins at

Re: [U-Boot] [PATCH v2 1/4] libfdt: fdt_address_cells() and fdt_size_cells()

2019-10-11 Thread Matthias Brugger
On 11/10/2019 20:28, Simon Glass wrote: > Hi Matthias, > > On Mon, 7 Oct 2019 at 07:31, Matthias Brugger wrote: >> >> Hi Simon, >> >> On 28/09/2019 01:28, s...@google.com wrote: >>> From: Matthias Brugger >>> >>> Add internal fdt_cells() to avoid copy and paste. Fix typo in >>>

Re: [U-Boot] IS_ERR_VALUE failing on socfpga gen5

2019-10-11 Thread Simon Glass
Hi Simon, On Fri, 11 Oct 2019 at 12:31, Simon Goldschmidt wrote: > > > > Simon Glass schrieb am Fr., 11. Okt. 2019, 20:27: >> >> Hi Simon, >> >> On Tue, 8 Oct 2019 at 14:34, Simon Goldschmidt >> wrote: >> > >> > In a series I'm currently preparing, I've stumbled accross the fact that >> >

Re: [U-Boot] [PATCH 3/4] power: domain: Introduce dev_power_domain_off

2019-10-11 Thread Simon Glass
On Fri, 27 Sep 2019 at 02:19, Lokesh Vutla wrote: > > Add dev_power_domain_off() api to disable all the power-domains > corresponding to a device > > Signed-off-by: Lokesh Vutla > --- > drivers/power/domain/power-domain-uclass.c | 34 +- > include/power-domain.h

[U-Boot] [PATCH 3/5] sandbox: test: Add a prototype for sandbox_set_enable_memio()

2019-10-11 Thread Simon Glass
This function needs a prototype so that tests can use it. Add one. Signed-off-by: Simon Glass --- arch/sandbox/include/asm/test.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/sandbox/include/asm/test.h b/arch/sandbox/include/asm/test.h index cd2b9e3155d..b885e1a14f1

[U-Boot] [PATCH 4/5] dm: regmap: Fix mask in regmap_update_bits()

2019-10-11 Thread Simon Glass
This function assumes that the 'val' parameter has no masked bits set. This is not defined by the function prototype though. Fix the function to mask the value and update the documentation. Signed-off-by: Simon Glass --- drivers/core/regmap.c | 2 +- include/regmap.h | 3 ++- 2 files

Re: [U-Boot] [PATCH v1 0/2] sandbox: Fixes the regmap tests

2019-10-11 Thread Simon Glass
Hi Jean-Jacques, On Wed, 2 Oct 2019 at 03:29, Jean-Jacques Hiblot wrote: > > The sandbox architecture does not implement the writeX nor readX functions. > This prevents testing properly the regmaps and the other stuff relying on > it. I just added a feature to sandbox to support mmio. I'll send

[U-Boot] [PATCH] sandbox: Remove sandbox_noblk build

2019-10-11 Thread Tom Rini
At this point, all drivers that do not use CONFIG_BLK are past their migration deadlines, so remove this config as it's no longer helpful and hinders enhancing block drivers. Cc: Simon Glass Cc: Faiz Abbas Signed-off-by: Tom Rini --- This is required for Faiz's series that adds UFS support to

Re: [U-Boot] [PATCH] configs: stm32f746-disco: Fix ramdisk_addr_r

2019-10-11 Thread Patrick DELAUNAY
Hi Patrice, > From: Patrice CHOTARD > Sent: lundi 16 septembre 2019 10:57 > > Set ramdisk_addr_r to 0xC060. Acked-by: Patrick Delaunay > Reported-by: Christophe Priouzeau > Signed-off-by: Patrice Chotard > --- > > include/configs/stm32f746-disco.h | 2 +- > 1 file changed, 1

Re: [U-Boot] [Uboot-stm32] [PATCH] board: stm32mp1: fixup the usb product id for USB download gadget

2019-10-11 Thread Patrice CHOTARD
Hi Patrick On 9/13/19 3:24 PM, Patrick Delaunay wrote: > Select the correct USB product id used by the download gadget > for ST stm32mp1 boards. > > The board stm32mp1 select the correct product id, as defined in > http://www.linux-usb.org/usb.ids for the STMicroelectronics > vendor id = 0x0483

[U-Boot] [PATCH 6/8] boards: amlogic: add SEI610 support

2019-10-11 Thread Neil Armstrong
Add support for the customer board SEI610 manufactured by SEI Robotics with the following specifications: - Amlogic S905X3 ARM Cortex-A35 quad-core SoC - 2GB DDR4 SDRAM - 10/100 Ethernet (Internal PHY) - 1 x USB 3.0 Host - 1 x USB Type-C DRD - 1 x FTDI USB Serial Debug Interface - eMMC -

[U-Boot] [PATCH 5/8] ARM: dts: meson-sm1: add U-Boot specific DT for graphics

2019-10-11 Thread Neil Armstrong
Rename meson-g12a-u-boot.dtsi into meson-g12-common-u-boot.dtsi to match the new DT architecture and add meson-sm1-sei610-u-boot.dtsi to handle the U-Boot specific DT for graphics. Signed-off-by: Neil Armstrong --- ...meson-g12a-u-boot.dtsi => meson-g12-common-u-boot.dtsi} | 0

[U-Boot] [PATCH 4/8] ARM: dts: Import SEI610 DT from Linux 5.4-rc2

2019-10-11 Thread Neil Armstrong
Import the Amlogic SM1 DT and the SEI610 board DT from [1] [1] da0c9ea146cb ("Linux 5.4-rc2") Signed-off-by: Neil Armstrong --- arch/arm/dts/Makefile | 3 +- arch/arm/dts/meson-sm1-sei610.dts | 383 arch/arm/dts/meson-sm1.dtsi

Re: [U-Boot] [GIT PULL] Xilinx/FPGA patches for v2020.01

2019-10-11 Thread Tom Rini
On Wed, Oct 09, 2019 at 12:30:36PM +0200, Michal Simek wrote: > Hi Tom, > > please pull the following changes to your tree. I have also included > trivial patch for apalis board. Networking stuff have been assigned to > me in patchwork that's why I am also including them. > > Gitlab CI failed

Re: [U-Boot] [PATCH 2/5] configs: stm32f429-evaluation: Disable CONFIG_NET flag

2019-10-11 Thread Patrick DELAUNAY
Hi, > From: Patrice CHOTARD > Sent: mardi 17 septembre 2019 10:10 > > Network support was never added on this board, disable CONFIG_NET flag to > avoid following warning: > > = WARNING == This board > does not use CONFIG_DM_ETH (Driver Model for Ethernet

Re: [U-Boot] [PATCH 3/5] configs: stm32f469-discovery: Disable CONFIG_NET flag

2019-10-11 Thread Patrick DELAUNAY
Hi, > From: Patrice CHOTARD > Sent: mardi 17 septembre 2019 10:10 > > Network support was never added on this board, disable CONFIG_NET flag to > avoid following warning: > > = WARNING == This board > does not use CONFIG_DM_ETH (Driver Model for Ethernet

[U-Boot] [PATCH 0/8] amlogic: add SEI610 support

2019-10-11 Thread Neil Armstrong
Add support for the customer board SEI610 manufactured by SEI Robotics with the following specifications: - Amlogic S905X3 ARM Cortex-A35 quad-core SoC - 2GB DDR4 SDRAM - 10/100 Ethernet (Internal PHY) - 1 x USB 3.0 Host - 1 x USB Type-C DRD - 1 x FTDI USB Serial Debug Interface - eMMC -

[U-Boot] [PATCH 1/8] ARM: meson: add SM1 SoC id

2019-10-11 Thread Neil Armstrong
Add the missing IDs to detect the SM1 S905X3 SoC. Signed-off-by: Neil Armstrong --- arch/arm/mach-meson/board-info.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-meson/board-info.c b/arch/arm/mach-meson/board-info.c index 9571b5a189..0d3b40a249 100644 ---

Re: [U-Boot] [PATCH 5/5] ARM: MediaTek: add basic support for MT8518 boards

2019-10-11 Thread Tom Rini
On Wed, Sep 11, 2019 at 07:14:59PM +0800, mingming lee wrote: > This adds a general board file based on MT8518 SoCs from MediaTek. > > Apart from the generic parts (cpu) we add some low level init codes > and initialize the early clocks. > > This commit is adding the basic boot support for the

[U-Boot] [PATCH 2/8] mmc: meson-gx: add support for mmc-pwrseq-emmc

2019-10-11 Thread Neil Armstrong
Add support for mmc-pwrseq-emmc in the meson-gx mmc driver to support enabling the eMMC. Signed-off-by: Neil Armstrong --- drivers/mmc/meson_gx_mmc.c | 51 ++ 1 file changed, 51 insertions(+) diff --git a/drivers/mmc/meson_gx_mmc.c

[U-Boot] [PATCH 7/8] configs: sei510: rework header and fix userdata size

2019-10-11 Thread Neil Armstrong
From: Guillaume La Roque Move android generic config and boot sequence in meson64_android header and fix size of userdata to use all eMMC on SEI510. Signed-off-by: Guillaume La Roque Signed-off-by: Neil Armstrong --- MAINTAINERS | 1 +

Re: [U-Boot] [PATCH v2] ata: ahci allow 64-bit DMA for SATA

2019-10-11 Thread Tom Rini
On Wed, Aug 28, 2019 at 11:24:35AM +0200, Roman Kapl wrote: > Allow 64-bit DMA on AHCI. If not supported by the host controller, at > least print a message and fail. > > Signed-off-by: Roman Kapl > --- > > Please disregard the previous patch, I've send a wrong version that does not > even

[U-Boot] [PATCH 3/8] clk: meson-sm1: add compatible

2019-10-11 Thread Neil Armstrong
The SM1 clock controller is almost identical to the G12A and so far the differences don't matter. Signed-off-by: Neil Armstrong --- drivers/clk/meson/g12a.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/meson/g12a.c b/drivers/clk/meson/g12a.c index c03738b6ca..1b2523bbf1

[U-Boot] [PATCH 8/8] configs: sei610: Add config file to fix userdata size

2019-10-11 Thread Neil Armstrong
From: Guillaume La Roque Add separate config file to handle the different eMMC size on the sei610 board. Signed-off-by: Guillaume La Roque Signed-off-by: Neil Armstrong --- board/amlogic/sei610/MAINTAINERS | 1 + configs/sei610_defconfig | 2 +- include/configs/sei610.h |

Re: [U-Boot] [PATCH] common/memsize: panic if maxsize is not power of two

2019-10-11 Thread Tom Rini
On Fri, Aug 30, 2019 at 03:21:40PM +0800, Iru Cai wrote: > The memory write and recover loop in get_ram_size() work correctly > only if maxsize is power of two, otherwise the function will return a > small size. > > Signed-off-by: Iru Cai > --- > common/memsize.c | 4 > 1 file changed, 4

Re: [U-Boot] [PATCH 1/5] configs: stm32f429-discovery: Disable CONFIG_NET flag

2019-10-11 Thread Patrick DELAUNAY
Hi Patrice, > From: Patrice CHOTARD > Sent: mardi 17 septembre 2019 10:10 > > Network support was never added on this board, disable CONFIG_NET flag to > avoid following warning: > > = WARNING == This board > does not use CONFIG_DM_ETH (Driver Model for

[U-Boot] Please pull u-boot-x86

2019-10-11 Thread Bin Meng
Hi Tom, This PR includes the following changes: - Remember the device being emulated for Sandbox PCI - Update Kconfig options for FSP 1.0 - Drop RESET_BASE and RESET_SEG_SIZE that are no longer used The following changes since commit 548aefa5b9e5c31681e0a8bd78e96b66eedd1137: travis: Move

Re: [U-Boot] [PATCH 5/5] configs: stm32h743-eval: Disable CONFIG_NET flag

2019-10-11 Thread Patrick DELAUNAY
Hi Patrice, > From: Patrice CHOTARD > Sent: mardi 17 septembre 2019 10:10 > > Network support was never added on this board, disable CONFIG_NET flag to > avoid following warning: > > = WARNING == This board > does not use CONFIG_DM_ETH (Driver Model for

Re: [U-Boot] [PATCH 4/5] configs: stm32h743-disco: Disable CONFIG_NET flag

2019-10-11 Thread Patrick DELAUNAY
Hi Patrice, > From: Patrice CHOTARD > Sent: mardi 17 septembre 2019 10:10 > > Network support was never added on this board, disable CONFIG_NET flag to > avoid following warning: > > = WARNING == This board > does not use CONFIG_DM_ETH (Driver Model for

Re: [U-Boot] [PATCH v2] usb: ehci-mx6: Fix bus enumeration for iMX7 SoCs

2019-10-11 Thread Marcel Ziswiler
On Thu, 2019-10-10 at 16:09 +0300, Igor Opaniuk wrote: > From: Igor Opaniuk > > This fixes the issues with calculation of controller indexes in > ehci_usb_bind() for iMX7, as USB controllers on iMX7 SoCs aren't > placed next to each other, and their addresses incremented by > 0x1. > >

Re: [U-Boot] [PATCH] test/py: hush_if_test: Add tests to cover octal/hex values

2019-10-11 Thread Simon Glass
Hi Michal, On Fri, 11 Oct 2019 at 01:50, Michal Simek wrote: > > On 10. 10. 19 19:06, Simon Glass wrote: > > Hi Michal, > > > > On Thu, 10 Oct 2019 at 05:44, Michal Simek wrote: > >> > >> Extend test suite to cover also automatic octal/hex converstions which > >> haven't been implemented in

Re: [U-Boot] [PATCH 1/2] rockchip: make_fit_atf.py: allow inclusion of a tee binary

2019-10-11 Thread Simon Glass
Hi Heiko, On Thu, 10 Oct 2019 at 12:28, Heiko Stübner wrote: > > Hi Simon, > > Am Donnerstag, 10. Oktober 2019, 19:06:12 CEST schrieb Simon Glass: > > On Tue, 1 Oct 2019 at 14:23, Heiko Stuebner wrote: > > > A trusted execution environment should also get loaded as loadable from > > > a fit

Re: [U-Boot] [PATCH 2/5] sandbox: Drop 'const' from sandbox_write()

2019-10-11 Thread Bin Meng
Hi Simon, On Sat, Oct 12, 2019 at 6:22 AM Simon Glass wrote: > > This function writes to its address so the address should not be declared > as const. Fix it. > > Signed-off-by: Simon Glass > --- > > arch/sandbox/cpu/cpu.c| 3 +-- > arch/sandbox/include/asm/io.h | 11 +-- > 2

Re: [U-Boot] [PATCH] sandbox: fix build error due to missing struct udevice definition

2019-10-11 Thread sjg
On Thu, 3 Oct 2019 at 21:41, AKASHI Takahiro wrote: > > Without this patch, compiling may potentially fail. > > Signed-off-by: AKASHI Takahiro > --- > arch/sandbox/include/asm/u-boot-sandbox.h | 2 ++ > 1 file changed, 2 insertions(+) Reviewed-by: Simon Glass Applied to u-boot-dm, thanks!

Re: [U-Boot] [PATCH 3/4] power: domain: Introduce dev_power_domain_off

2019-10-11 Thread sjg
On Fri, 27 Sep 2019 at 02:19, Lokesh Vutla wrote: > > Add dev_power_domain_off() api to disable all the power-domains > corresponding to a device > > Signed-off-by: Lokesh Vutla > --- > drivers/power/domain/power-domain-uclass.c | 34 +- > include/power-domain.h

Re: [U-Boot] [PATCH 2/4] remoteproc: k3_arm64: Enable DM_FLAG_DEFAULT_PD_CTRL_OFF

2019-10-11 Thread sjg
On Fri, 27 Sep 2019 at 02:19, Lokesh Vutla wrote: > > Enable DM_FLAG_DEFAULT_PD_CTRL_OFF for arm64 remote core so that > pd can be enabled after loading the image. > > Signed-off-by: Lokesh Vutla > --- > drivers/remoteproc/ti_k3_arm64_rproc.c | 1 + > 1 file changed, 1 insertion(+)

Re: [U-Boot] [PATCH 4/4] dm: core: device: switch off power domain after device removal

2019-10-11 Thread sjg
On Fri, 27 Sep 2019 at 02:19, Lokesh Vutla wrote: > > From: Anatolij Gustschin > > The power domain associated with a device is enabled when probing, > but currently the domain remains enabled when the device is removed. > Some boards started to disable power domains for selected devices > via

Re: [U-Boot] [PATCH 097/126] x86: Add support for newer CAR schemes

2019-10-11 Thread Bin Meng
Hi Simon, On Sat, Oct 12, 2019 at 11:38 AM Simon Glass wrote: > > Hi Bin, > > On Thu, 10 Oct 2019 at 03:50, Bin Meng wrote: > > > > Hi Simon, > > > > On Wed, Sep 25, 2019 at 10:59 PM Simon Glass wrote: > > > > > > Newer Intel SoCs have different ways of setting up cache-as-ram (CAR). > > > Add

Re: [U-Boot] [PATCH] sandbox: Remove sandbox_noblk build

2019-10-11 Thread Tom Rini
On Fri, Oct 11, 2019 at 04:21:56PM -0600, Simon Glass wrote: > On Fri, 11 Oct 2019 at 14:30, Tom Rini wrote: > > > > At this point, all drivers that do not use CONFIG_BLK are past their > > migration deadlines, so remove this config as it's no longer helpful and > > hinders enhancing block

Re: [U-Boot] [PATCH 3/5] sandbox: test: Add a prototype for sandbox_set_enable_memio()

2019-10-11 Thread Bin Meng
On Sat, Oct 12, 2019 at 6:22 AM Simon Glass wrote: > > This function needs a prototype so that tests can use it. Add one. > > Signed-off-by: Simon Glass > --- > > arch/sandbox/include/asm/test.h | 11 +++ > 1 file changed, 11 insertions(+) > Reviewed-by: Bin Meng

Re: [U-Boot] [PATCH 1/5] sandbox: test: Show hex values on failure

2019-10-11 Thread Bin Meng
On Sat, Oct 12, 2019 at 6:28 AM Simon Glass wrote: > > Quite a few tests use addresses or hex values for comparisons. Add hex > output for test failures, e.g.: > >0x55ca22fa == reg: Expected 0x55ca22fa (1439310586), > got 0x55ea22fb (1441407739) > > Signed-off-by: Simon Glass > --- >

Re: [U-Boot] [PATCH 070/126] x86: power: Add a PMC uclass

2019-10-11 Thread Simon Glass
Hi Bin, On Wed, 9 Oct 2019 at 21:11, Bin Meng wrote: > > Hi Simon, > > On Wed, Sep 25, 2019 at 10:58 PM Simon Glass wrote: > > > > Intel x86 SoCs have a power manager/controller which handles several > > power-related aspects of the platform. Add a uclass for this, with a few > > useful

Re: [U-Boot] [PATCH 089/126] x86: Set up the MTRR for SDRAM

2019-10-11 Thread Simon Glass
Hi Bin, On Thu, 10 Oct 2019 at 03:19, Bin Meng wrote: > > On Wed, Sep 25, 2019 at 10:59 PM Simon Glass wrote: > > > > Set up MTRRs for the FST SDRAM regions to improve performance. > > > > Signed-off-by: Simon Glass > > --- > > > > arch/x86/lib/fsp/fsp_dram.c | 3 +++ > > 1 file changed, 3

Re: [U-Boot] [PATCH 074/126] pci: Add support for p2sb uclass

2019-10-11 Thread Simon Glass
Hi Bin, On Wed, 9 Oct 2019 at 22:57, Bin Meng wrote: > > Hi Simon, > > On Wed, Sep 25, 2019 at 10:59 PM Simon Glass wrote: > > > > The Primary-to-Sideband bus (P2SB) is used to access various peripherals > > through memory-mapped I/O in a large chunk of PCI space. The space is > > segmented

Re: [U-Boot] [PATCH 060/126] x86: timer: Set up the timer in timer_early_get_count()

2019-10-11 Thread Simon Glass
Hi Bin, On Sun, 6 Oct 2019 at 18:32, Bin Meng wrote: > > Hi Simon, > > On Wed, Sep 25, 2019 at 10:58 PM Simon Glass wrote: > > > > This function can be called before the timer is set up. Make sure that the > > init function is called so that it works correctly. > > > > Signed-off-by: Simon

Re: [U-Boot] [PATCH 081/126] x86: Correct mrccache find_next_mrc_cache() calculation

2019-10-11 Thread Simon Glass
Hi Bin, On Thu, 10 Oct 2019 at 00:23, Bin Meng wrote: > > Hi Simon, > > On Wed, Sep 25, 2019 at 10:59 PM Simon Glass wrote: > > > > This should take account of the end of the new cache record since a record > > cannot extend beyond the end of the flash region. This problem was not > > seen

Re: [U-Boot] [PATCH 097/126] x86: Add support for newer CAR schemes

2019-10-11 Thread Simon Glass
Hi Bin, On Thu, 10 Oct 2019 at 03:50, Bin Meng wrote: > > Hi Simon, > > On Wed, Sep 25, 2019 at 10:59 PM Simon Glass wrote: > > > > Newer Intel SoCs have different ways of setting up cache-as-ram (CAR). > > Add support for these along with suitable configuration options. > > > > I wonder why do

Re: [U-Boot] [PATCH v2] spl: Introduce SPL_DM_GPIO Kconfig define

2019-10-11 Thread Simon Glass
Hi Lukasz, On Wed, 9 Oct 2019 at 03:02, Lukasz Majewski wrote: > > Dear Tom, > > > This define indicates if DM_GPIO shall be supported in SPL. This > > allows proper operation of DM converted GPIO drivers in SPL, which use > > boards. > > > > Signed-off-by: Lukasz Majewski > > --- > > > >

Re: [U-Boot] [EXT] Re: Issues with driver binding and probing

2019-10-11 Thread Simon Glass
Hi Aaron, On Wed, 25 Sep 2019 at 22:08, Aaron Williams wrote: > > Hi Simon, > > On Wednesday, September 25, 2019 8:40:48 PM PDT Bin Meng wrote: > > External Email > > > > -- > > +Simon > > > > Hi Aaron, > > > > On Thu, Sep 26,

  1   2   >