Re: [U-Boot] cmd: gpio: Remove dead code from do_gpio

2018-06-19 Thread Tom Rini
On Wed, Jun 13, 2018 at 03:06:49PM +0200, Michal Simek wrote: > gpio input/set/clear and toggle commands are already cover that's why > there is no any other case which should be handled. > > Signed-off-by: Michal Simek > --- > > Reported by: Coverity (local) > Not sure how to report this

Re: [U-Boot] [U-Boot, v2, 3/8] sandbox: Use memcpy() to move overlapping regions

2018-06-19 Thread Tom Rini
On Tue, Jun 12, 2018 at 12:04:57AM -0600, Simon Glass wrote: > The use of strcpy() to remove characters at the start of a string is safe > in U-Boot, since we know the implementation. But in os.c we are using the > C library's strcpy() function, where this behaviour is not permitted. > > Update

Re: [U-Boot] [U-Boot, v2, 2/8] avb2.0: integrate avb 2.0 into the build system

2018-06-19 Thread Tom Rini
On Sun, Jun 03, 2018 at 09:56:37PM +0300, Igor Opaniuk wrote: > Integrate libavb into the build system. Introduce CONFIG_LIBAVB > build option. > > Signed-off-by: Igor Opaniuk Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] mmc: Remove hwpartition help text when command is disabled

2018-06-19 Thread Tom Rini
On Mon, Jun 11, 2018 at 04:20:09PM +, Alex Kiernan wrote: > When the `mmc hwpartition` command is disabled, remove the associated help > text. > > Signed-off-by: Alex Kiernan Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot,v5,5/6] cmd: iotrace: add dump trace command

2018-06-19 Thread Tom Rini
On Fri, Jun 08, 2018 at 08:53:26PM +0300, Ramon Fried wrote: > Add dump trace command which dump all trace > buffer content in a much more readable fashion > than md. > > Signed-off-by: Ramon Fried > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [U-Boot] db410c: fix alignment of dts file

2018-06-19 Thread Tom Rini
On Sat, Jun 09, 2018 at 11:30:30AM +0300, Ramon Fried wrote: > Alignment was wrong, missing one tab. fix it. > > Signed-off-by: Ramon Fried Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list

Re: [U-Boot] [U-Boot, 1/3] configs: Remove empty #ifdef/#ifndef blocks

2018-06-19 Thread Tom Rini
On Mon, Jun 04, 2018 at 09:45:21PM +1200, Chris Packham wrote: > Remove empty #ifdef/#ifndef..#endif blocks where the configuration they > guarded has been completely removed. > > Signed-off-by: Chris Packham Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot, v2, 2/8] console: Fix handling of NULL global_data

2018-06-19 Thread Tom Rini
On Tue, Jun 12, 2018 at 12:04:56AM -0600, Simon Glass wrote: > Both putc() and puts() can be called before global_data is set up. Some of > the code paths don't handle this correctly. Add an explicit test before > any member is accessed. > > Reported-by: Coverity (CID: 169030) > Signed-off-by:

Re: [U-Boot] arm: mach-omap2/omap3/clock.c: Enable all GPIO with CMD_GPIO

2018-06-19 Thread Tom Rini
On Mon, Jun 11, 2018 at 07:56:49PM -0500, Adam Ford wrote: > When CMD_GPIO is enabled the command 'gpio status -a' can cause > a hang or reboot if GPIO banks are not enabled, because it scans > all banks. This patch enables all GPIO banks so 'gpio status -a' > can fully execute. > >

Re: [U-Boot] [U-Boot, v2, 8/8] sandbox: swap_case: Increase number of base address regs

2018-06-19 Thread Tom Rini
On Tue, Jun 12, 2018 at 12:05:02AM -0600, Simon Glass wrote: > At present the code overruns the bar[] array. Fix this. > > At the same time, drop the leading / from the "/spl" path so that we can > run U-Boot SPL with: > >spl/u-boot-spl > > rather than requiring: > >

Re: [U-Boot] common: Fix cpu nr type which is always unsigned type

2018-06-19 Thread Tom Rini
On Wed, Jun 13, 2018 at 08:56:31AM +0200, Michal Simek wrote: > cpu_cmd() is reading cpu number via simple_strtoul() which is always > unsigned type. > Platform code implementations are not expecting that nr can be negative > and there is not checking in the code for that too. > > This patch is

Re: [U-Boot] [U-Boot,v5,1/6] cmd: iotrace: add set region command

2018-06-19 Thread Tom Rini
On Fri, Jun 08, 2018 at 08:53:22PM +0300, Ramon Fried wrote: > Signed-off-by: Ramon Fried > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [U-Boot, v5, 6/6] iotrace: fix behaviour when buffer is full

2018-06-19 Thread Tom Rini
On Fri, Jun 08, 2018 at 08:53:27PM +0300, Ramon Fried wrote: > Don't continue updating the offset when buffer is full. > When the buffer size exhausts and there's no space left to write > warn the user and update only the needed size and not both the > offset and needed size. > > Add needed

Re: [U-Boot] [PATCH] test_avb: Add pymark.buildconfigspec information for the AVB tests

2018-06-19 Thread Tom Rini
On Tue, Jun 19, 2018 at 11:55:08AM -0400, Tom Rini wrote: > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [U-Boot, 3/3] ARM: sunxi: remove empty #ifdef/endif block

2018-06-19 Thread Tom Rini
On Mon, Jun 04, 2018 at 09:45:23PM +1200, Chris Packham wrote: > Whatever code this was guarding has been removed so remove the guards > too. > > Signed-off-by: Chris Packham Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot, V4, 1/2] ARM: image: Add option for ignoring ep bit 3

2018-06-19 Thread Tom Rini
On Wed, Jun 13, 2018 at 06:13:32AM +0200, Marek Vasut wrote: > Add option to the booti_setup() which indicates to it that the caller > requires the image to be relocated to the beginning of the RAM and > that the information whether the image can be located anywhere in RAM > at 2 MiB aligned

Re: [U-Boot] [U-Boot, v2, 1/8] log: Fix incorect range check in log_get_cat_name()

2018-06-19 Thread Tom Rini
On Tue, Jun 12, 2018 at 12:04:55AM -0600, Simon Glass wrote: > This allows access to an element after the end of the array. Fix it. > > Reported-by: Coverity (CID: 173279) > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot,V4,2/2] bootm: Handle kernel_noload on arm64

2018-06-19 Thread Tom Rini
On Wed, Jun 13, 2018 at 06:13:33AM +0200, Marek Vasut wrote: > The ARM64 has 2 MiB alignment requirement for the kernel. When using > fitImage, this requirement may by violated, the kernel will thus be > executed from unaligned address and fail to boot. Do what booti does > and run booti_setup()

Re: [U-Boot] [U-Boot, v2, 5/8] fdtgrep: Separate out checking of two allocations

2018-06-19 Thread Tom Rini
On Tue, Jun 12, 2018 at 12:04:59AM -0600, Simon Glass wrote: > The current code might succeed on the first allocation and fail on the > second. Separate the checks to avoid this problem. > > Of course, free() will never fail and the chances that (when allocating > two small areas) one will

Re: [U-Boot] [U-Boot, v2, 6/8] rsa: Fix missing memory leak on error in fdt_add_bignum()

2018-06-19 Thread Tom Rini
On Tue, Jun 12, 2018 at 12:05:00AM -0600, Simon Glass wrote: > Thsi function can fail without freeing all its memory. Fix it. > > Reported-by: Coverity (CID: 131217) > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] arm: Do not clear LR on exception in SPL

2018-06-19 Thread Tom Rini
On Mon, Jun 11, 2018 at 02:04:17PM -0500, Andrew F. Davis wrote: > When an exception or interrupt occurs the link register (LR) may > contain the source of the exception, although we do not print the > value it may still be extracted with a debugger. When in SPL we > loop on getting and

Re: [U-Boot] [U-Boot, v2, 8/8] doc: avb2.0: add README about AVB2.0 integration

2018-06-19 Thread Tom Rini
On Sun, Jun 03, 2018 at 09:56:43PM +0300, Igor Opaniuk wrote: > Contains: > 1. Overview of Android Verified Boot 2.0 > 2. Description of avb subset of commands > 3. Examples of errors when boot/vendor/system/vbmeta partitions > are tampered > 4. Examples of enabling AVB2.0 on your setup > >

Re: [U-Boot] [U-Boot, V2] dm: gpio: Add DM compatibility to GPIO driver for Davinci

2018-06-19 Thread Tom Rini
On Sun, Jun 10, 2018 at 10:25:57PM -0500, Adam Ford wrote: > This adds DM_GPIO support for the davinici GPIO driver with > DT support. > > Signed-off-by: Adam Ford > > diff --git a/arch/arm/mach-davinci/include/mach/gpio.h > b/arch/arm/mach-davinci/include/mach/gpio.h > index

Re: [U-Boot] [U-Boot, v2, 4/8] fdtgrep: Fix logic of free() in do_fdtgrep()

2018-06-19 Thread Tom Rini
On Tue, Jun 12, 2018 at 12:04:58AM -0600, Simon Glass wrote: > This loop never actually exits, but the way the code is written this is > not obvious. Add an explicit error check. > > Reported-by: Coverity (CID: 131280) > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom

Re: [U-Boot] [U-Boot,V3] block: Add SPL_BLOCK_CACHE and default n

2018-06-19 Thread Tom Rini
On Mon, Jun 11, 2018 at 05:17:48PM -0500, Adam Ford wrote: > When enabling BLOCK_CACHE on devices with limited RAM during SPL, > some devices may not boot. This creates an option to enable > block caching in SPL by defaults off. It is dependent on SPL_BLK > > Fixes: 46960ad6d09b ("block: Have

Re: [U-Boot] [U-Boot, u-boot, 2/5] config: meson-gx-common: Enable USB boot

2018-06-19 Thread Tom Rini
On Thu, Jun 14, 2018 at 01:43:38PM +0200, Neil Armstrong wrote: > Add USB as boot target depending on the configuration. > > Signed-off-by: Neil Armstrong Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___

Re: [U-Boot] [U-Boot, 1/2] configs: db410c: Set eMMC env partition to BOOT2

2018-06-19 Thread Tom Rini
On Thu, Jun 14, 2018 at 07:04:40AM +0300, Ramon Fried wrote: > BOOT2 partition is empty and free for using to store the environment. > Use that instead of the default user partition. > > Signed-off-by: Ramon Fried Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

Re: [U-Boot] [U-Boot, v2, 7/8] spi: sandbox: Fix memory leak in sandbox_sf_bind_emul()

2018-06-19 Thread Tom Rini
On Tue, Jun 12, 2018 at 12:05:01AM -0600, Simon Glass wrote: > Move the strdup() call so that it is only done when we know we will bind > the device. > > Reported-by: Coverity (CID: 131216) > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description:

Re: [U-Boot] [U-Boot,u-boot,5/5] configs: Update Meson GX configs

2018-06-19 Thread Tom Rini
On Thu, Jun 14, 2018 at 01:43:41PM +0200, Neil Armstrong wrote: > Enable USB on all Amlogic Meson GXL based board. > Enable Regulator support on all boards. > Enable ADC support on the LibreTech-CC board. > > Signed-off-by: Neil Armstrong Applied to u-boot/master, thanks! -- Tom

[U-Boot] [PATCH v2 2/2] net: mvneta: zero Tx descriptors on init

2018-06-19 Thread Baruch Siach
From: Rabeeh Khoury Make the initialization sequence consistent with the Linux kernel driver. Reviewed-by: Stefan Roese Acked-by: Joe Hershberger Signed-off-by: Rabeeh Khoury Signed-off-by: Baruch Siach --- v2: No change --- drivers/net/mvneta.c | 1 + 1 file changed, 1 insertion(+) diff

[U-Boot] [PATCH v2 1/2] net: mvneta: dcache flush TX descriptors at init

2018-06-19 Thread Baruch Siach
From: Rabeeh Khoury This fixes sporadic timeout on initial packet Tx (usually ARP), with an error message like: timeout: packet not sent Reviewed-by: Stefan Roese Tested-by: Chris Packham Acked-by: Joe Hershberger Signed-off-by: Rabeeh Khoury Signed-off-by: Baruch Siach --- v2: Make the

Re: [U-Boot] [U-Boot,v2,3/8] avb2.0: implement AVB ops

2018-06-19 Thread Tom Rini
On Sun, Jun 03, 2018 at 09:56:38PM +0300, Igor Opaniuk wrote: > Implement AVB ops on top of existing mmc subsystem API. Currently there > is a full implementation of such operations, defined by [1] > AVB2.0 specification: > > .read_from_partition() - reads N bytes from a partition identified by

Re: [U-Boot] [U-Boot, 1/2] .gitignore: sort normal pattern rules alphabetically

2018-06-19 Thread Tom Rini
On Mon, Jun 11, 2018 at 04:21:49PM +0900, Masahiro Yamada wrote: > Follow Linux commit 1377dd3e2987 (".gitignore: sort normal pattern > rules alphabetically"). > > This would allow us to easily catch duplicated patterns if any. > > Signed-off-by: Masahiro Yamada Applied to u-boot/master,

Re: [U-Boot] [U-Boot,2/3] m68k: Remove empty #ifdef/#ifndef block

2018-06-19 Thread Tom Rini
On Mon, Jun 04, 2018 at 09:45:22PM +1200, Chris Packham wrote: > Whatever code this was guarding has been removed so remove the guards > too. > > Signed-off-by: Chris Packham Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot, v2, 4/8] cmd: avb2.0: avb command for performing verification

2018-06-19 Thread Tom Rini
On Sun, Jun 03, 2018 at 09:56:39PM +0300, Igor Opaniuk wrote: > Enable a "avb" command to execute Android Verified > Boot 2.0 operations. It includes such subcommands: > avb init - initialize avb2 subsystem > avb read_rb - read rollback index > avb write_rb - write rollback index > avb

Re: [U-Boot] [U-Boot, v2, 6/8] am57xx_hs: avb2.0: add support of AVB 2.0

2018-06-19 Thread Tom Rini
On Sun, Jun 03, 2018 at 09:56:41PM +0300, Igor Opaniuk wrote: > 1. Add vbmeta partition info to android partition layout for am57xx SoC > 2. Add support of AVB 2.0 (including avb subset of commands) for am57xx HS > > Signed-off-by: Igor Opaniuk I re-worded this slightly as it only updates

Re: [U-Boot] [U-Boot, v5, 4/6] iotrace: move record definitons to header file

2018-06-19 Thread Tom Rini
On Fri, Jun 08, 2018 at 08:53:25PM +0300, Ramon Fried wrote: > The header definitions are needed for reading > record information in cmd/iotrace.c > > Signed-off-by: Ramon Fried > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot, v2, 1/8] avb2.0: add Android Verified Boot 2.0 library

2018-06-19 Thread Tom Rini
On Sun, Jun 03, 2018 at 09:56:36PM +0300, Igor Opaniuk wrote: > Add libavb lib (3rd party library from AOSP), that implements support of > AVB 2.0. This library is used for integrity checking of Android partitions > on eMMC. > > libavb was added as it is and minimal changes were introduced to

Re: [U-Boot] [U-Boot, v5, 3/6] common: iotrace: add timestamp to iotrace records

2018-06-19 Thread Tom Rini
On Fri, Jun 08, 2018 at 08:53:24PM +0300, Ramon Fried wrote: > Add timestamp to each iotrace record to aid in debugging > of IO timing access bugs. > > Signed-off-by: Ramon Fried > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot, v2] mmc: sdhci: Fix MMC HS200 tuning command failures

2018-06-19 Thread Tom Rini
On Wed, Jun 13, 2018 at 08:20:39AM +0200, Michal Simek wrote: > From: Siva Durga Prasad Paladugu > > This patch fixes the mmc tuning command failures > when tuning pattern data needs to read back for > comparision against the expected bit pattern. > > Reported-by: Masahiro Yamada >

Re: [U-Boot] gpio: omap_gpio: Name GPIO's by bank and index with DM_GPIO

2018-06-19 Thread Tom Rini
On Mon, Jun 11, 2018 at 08:05:38PM -0500, Adam Ford wrote: > There are multiple GPIO banks with up to 32 pins / bank. When > using 'gpio status -a' to read the pins, this patch displays > both GPIO_ similar to how the device trees > display in addition to displaying gpio_# > > Signed-off-by:

Re: [U-Boot] [U-Boot, u-boot, 1/5] adc: meson-saradc: fix regmap_init_mem call

2018-06-19 Thread Tom Rini
On Thu, Jun 14, 2018 at 01:43:37PM +0200, Neil Armstrong wrote: > The SARADC driver was merged after the following commit : > commit d35812368a59 ("regmap: change regmap_init_mem() to take ofnode instead > udevice") > Thus breaking build, this patch fixes the regmap_init_mem accordingly. > >

Re: [U-Boot] MAINTAINERS: update ARM Snapdragon

2018-06-19 Thread Tom Rini
On Sun, Jun 10, 2018 at 11:51:41PM +0300, Ramon Fried wrote: > Replace Mateusz as Maintainer for ARM Snapdragon arch. > > Signed-off-by: Ramon Fried > Acked-by: Mateusz Kulikowski Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot, v2, 7/8] test/py: avb2.0: add tests for avb commands

2018-06-19 Thread Tom Rini
On Sun, Jun 03, 2018 at 09:56:42PM +0300, Igor Opaniuk wrote: > 1. Run AVB 2.0 full verification chain, avb verify > 2. Check if 'avb get_uuid' works, compare results with > 'part list mmc 1' output > 3. Test `avb read` commands, which reads N bytes from a partition > identified by a name > >

Re: [U-Boot] [U-Boot, v2, 5/8] avb2.0: add boot states and dm-verity support

2018-06-19 Thread Tom Rini
On Sun, Jun 03, 2018 at 09:56:40PM +0300, Igor Opaniuk wrote: > 1. Add initial support of boot states mode (red, green, yellow) > 2. Add functions for enforcing dm-verity configurations > > Signed-off-by: Igor Opaniuk Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

Re: [U-Boot] fs: btrfs: Do not fail when all root_backups are empty

2018-06-19 Thread Tom Rini
On Mon, Jun 11, 2018 at 02:14:33PM +0300, Yevgeny Popovych wrote: > This is the case when reading freshly created filesystem. > The error message is like the following: > btrfs_read_superblock: No valid root_backup found! > > Since the data from super_roots/root_backups is not actually used

Re: [U-Boot] [U-Boot,v5,2/6] iotrace: add IO region limit

2018-06-19 Thread Tom Rini
On Fri, Jun 08, 2018 at 08:53:23PM +0300, Ramon Fried wrote: > When dealing with a lot of IO regions, sometimes > it makes sense only to trace a specific one. > This patch adds support for region limits. > If region is not set, the iotrace works the same as it was. > If region is set, the iotrace

Re: [U-Boot] [U-Boot, u-boot, 3/5] clk: add Amlogic meson clock driver

2018-06-19 Thread Tom Rini
On Thu, Jun 14, 2018 at 01:43:39PM +0200, Neil Armstrong wrote: > From: Beniamino Galvani > > Introduce a basic clock driver for Amlogic Meson SoCs which supports > enabling/disabling clock gates and getting their frequency. > > Signed-off-by: Beniamino Galvani > Signed-off-by: Neil Armstrong

[U-Boot] [PATCH v3] x86: Add 64-bit setjmp/longjmp implementation

2018-06-19 Thread Ivan Gorinov
Add setjmp/longjmp functions for x86_64. Signed-off-by: Ivan Gorinov --- arch/x86/cpu/x86_64/setjmp.S | 49 +++ arch/x86/cpu/x86_64/setjmp.c | 19 - arch/x86/include/asm/setjmp.h | 17 +++ 3 files changed, 66 insertions(+),

Re: [U-Boot] [U-Boot, 2/2] configs: dragonboard410c: remove env partition offset

2018-06-19 Thread Tom Rini
On Thu, Jun 14, 2018 at 07:04:41AM +0300, Ramon Fried wrote: > BOOT2 is not partitioned, no need for partition offset. > > Signed-off-by: Ramon Fried Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot

Re: [U-Boot] [U-Boot,u-boot,4/5] meson: use the clock driver

2018-06-19 Thread Tom Rini
On Thu, Jun 14, 2018 at 01:43:40PM +0200, Neil Armstrong wrote: > From: Beniamino Galvani > > Use the clk framework to initialize clocks from drivers that need them > instead of having hardcoded frequencies and initializations from board > code. > > Signed-off-by: Beniamino Galvani >

Re: [U-Boot] [U-Boot, 2/2] .gitignore: move *.dtb and *.dtb.S patterns to the top-level .gitignore

2018-06-19 Thread Tom Rini
On Mon, Jun 11, 2018 at 04:21:50PM +0900, Masahiro Yamada wrote: > Follow Linux commit 10b62a2f785a (".gitignore: move *.dtb and *.dtb.S > patterns to the top-level .gitignore"). > > Signed-off-by: Masahiro Yamada Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

[U-Boot] [PATCH v3] x86: Add 64-bit setjmp/longjmp implementation

2018-06-19 Thread Ivan Gorinov
Add setjmp/longjmp functions for x86_64. v3: Removed the FPU control word and MXCSR; Corrected SPDX License Identifier. v2: Added the FPU control word and MXCSR to jmp_buf; Using ENTRY/ENDPROC macros. Ivan Gorinov (1): x86: Add 64-bit setjmp/longjmp implementation

Re: [U-Boot] [PATCH v8 14/30] efi: Don't build sandbox with __attribute__((ms_abi))

2018-06-19 Thread Simon Glass
Hi Alex, On 18 June 2018 at 08:46, Alexander Graf wrote: > On 06/18/2018 04:08 PM, Simon Glass wrote: >> >> There appears to be a bug [1] in gcc when using varargs with this >> attribute. Disable it for sandbox so that functions which use that can >> work correctly, such as

Re: [U-Boot] [PATCH] x86: efi-x86_app: Update MAINTAINERS

2018-06-19 Thread Simon Glass
On 18 June 2018 at 19:43, Bin Meng wrote: > Previous rename of efi-x86 target missed the MAINTAINERS update, > which caused the buildman warnings: > > WARNING: no status info for 'efi-x86_app' > WARNING: no maintainers for 'efi-x86_app' > > This updates the board MAINTAINERS to reflect the

Re: [U-Boot] [PATCH v8 12/30] sandbox: Try to start the RAM buffer at a particular address

2018-06-19 Thread Simon Glass
Hi Alex, On 18 June 2018 at 08:45, Alexander Graf wrote: > On 06/18/2018 04:08 PM, Simon Glass wrote: >> >> Use a starting address of 256MB which should be available. This helps to >> make sandbox RAM buffers pointers more recognisable. >> >> Signed-off-by: Simon Glass > > > Nak, this has a

Re: [U-Boot] [PATCH] serial: zynq: Use platdata for storing static data instead of priv

2018-06-19 Thread Simon Glass
On 15 June 2018 at 01:32, Michal Simek wrote: > Explanation from Simon Glass > "Private data is created when the device is probed and freed when the > device is removed. > > Platform data is created when the device is bound, and survives > probe/remove cycles. > > Strictly speaking, platform data

Re: [U-Boot] [PATCH v2 02/13] efi.h: Do not use config options

2018-06-19 Thread Simon Glass
Hi Bin, On 15 June 2018 at 03:51, Bin Meng wrote: > Hi Simon, > > On Thu, Jun 14, 2018 at 8:58 PM, Simon Glass wrote: >> Hi Alex, >> >> On 13 June 2018 at 04:17, Alexander Graf wrote: >>> >>> >>> On 13.06.18 03:29, Simon Glass wrote: Hi Bin, Alex, On 12 June 2018 at 09:36, Bin

Re: [U-Boot] [PATCH 1/1] common: print \n in initr_scsi()

2018-06-19 Thread Simon Glass
Hi Heinrich, On 14 June 2018 at 23:01, Heinrich Schuchardt wrote: > Typically init_scsi() does not output anything. So initr_scsi() should > provide a \n or we may see borked output like > > SCSI: Net: No ethernet found. > > as observed with sandbox_defconfig. > > Signed-off-by:

Re: [U-Boot] [PATCH v2 10/11] efi_loader: Pass address to fs_read()

2018-06-19 Thread Simon Glass
Hi Alex, On 14 June 2018 at 15:55, Alexander Graf wrote: > > > On 14.06.18 23:35, Simon Glass wrote: >> Hi Alex, >> >> On 14 June 2018 at 13:51, Alexander Graf wrote: >>> >>> >>> On 14.06.18 21:01, Simon Glass wrote: On 14 June 2018 at 12:22, Alexander Graf wrote: > The fs_read()

Re: [U-Boot] sandbox: Net: No ethernet found.

2018-06-19 Thread Simon Glass
+Joe On 15 June 2018 at 00:10, Heinrich Schuchardt wrote: > Hello Simon, > > when I run sandbox_defconfig I always get > Net: No ethernet found. > > The dm command shows no driver attached to uclass 21: eth. Why are the > sandbox and sandbox-raw drivers not loaded? > > device_bind_common is

Re: [U-Boot] tpm TIS TPMv2.0

2018-06-19 Thread Simon Glass
Hi, On 18 June 2018 at 03:47, Miquel Raynal wrote: > > Hi Martin, > > > > > Nevertheless one question: Why did you define another dts binding > > > > instead of using that one what is already available on the Linux > > > > kernel? There is "tcg,tpm_tis-spi" already defined. > > > > > > I did

Re: [U-Boot] U-Boot TFTP protection

2018-06-19 Thread Simon Glass
Hi Stefan, On 15 June 2018 at 00:44, Stefan Johansson wrote: > > Hello, > We have been looking at protecting U-Boot from (malicious) TFTP overwrites. > We want to do this after our ARMv7 U-Boot has relocated. > > The memory map looks like this (I hope): > > --- Top of

Re: [U-Boot] [PATCH v2 3/5] cmd: Add bind/unbind commands to bind a device to a driver from the command line

2018-06-19 Thread Joe Hershberger
On Mon, Jun 18, 2018 at 8:56 AM, Jean-Jacques Hiblot wrote: > In some cases it can be useful to be able to bind a device to a driver from > the command line. > The obvious example is for versatile devices such as USB gadget. > Another use case is when the devices are not yet ready at startup and

[U-Boot] [PATCH v2] patman: Support using a particular SMTP server

2018-06-19 Thread Simon Glass
Some environments require providing the '--smtp-server' argument to 'git send-email'. Add support for this. Signed-off-by: Simon Glass --- Changes in v2: - Fix 'get' typo tools/patman/README | 1 + tools/patman/gitutil.py | 6 +- tools/patman/patman.py | 5 - 3 files changed, 10

[U-Boot] [PATCH] test_avb: Add pymark.buildconfigspec information for the AVB tests

2018-06-19 Thread Tom Rini
Signed-off-by: Tom Rini --- test/py/tests/test_avb.py | 5 + 1 file changed, 5 insertions(+) diff --git a/test/py/tests/test_avb.py b/test/py/tests/test_avb.py index 770bdde4ad0c..7996e4845db3 100644 --- a/test/py/tests/test_avb.py +++ b/test/py/tests/test_avb.py @@ -23,6 +23,7 @@ mmc_dev =

Re: [U-Boot] [PATCH] efi_loader: Fix GOP 32bpp exposure

2018-06-19 Thread Peter Robinson
On Tue, Jun 19, 2018 at 12:47 PM, Alexander Graf wrote: > We store pixels as BGRA in memory, as can be seen from struct efi_gop_pixel. > So we need to expose the same format to UEFI payloads to actually have them > use the correct colors. > > Reported-by: Fabian Vogt > Signed-off-by: Alexander

Re: [U-Boot] [PATCH V2] eth: dm: fec: Add gpio phy reset binding

2018-06-19 Thread Joe Hershberger
On Sun, Jun 17, 2018 at 8:22 AM, Michael Trimarchi wrote: > Add the missing gpio phy reset binding to the gpio and > reset time configuration > > Signed-off-by: Michael Trimarchi Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [PATCH] efi_loader: Fix GOP 32bpp exposure

2018-06-19 Thread Heinrich Schuchardt
On 06/19/2018 01:47 PM, Alexander Graf wrote: > We store pixels as BGRA in memory, as can be seen from struct efi_gop_pixel. > So we need to expose the same format to UEFI payloads to actually have them > use the correct colors. > > Reported-by: Fabian Vogt > Signed-off-by: Alexander Graf > ---

[U-Boot] [PATCH v2 1/1] x86: qemu: do not build car.o with start64.o

2018-06-19 Thread Heinrich Schuchardt
car.o can only be used with start.o, not with start64.o. Signed-off-by: Heinrich Schuchardt --- v2 rebase to current master shorten commit message --- arch/x86/cpu/qemu/Makefile | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/x86/cpu/qemu/Makefile

Re: [U-Boot] [RFC] ARM: rmobile: create DT memory nodes for R8A7795 3.0 and newer

2018-06-19 Thread Geert Uytterhoeven
Hi Laurent, On Tue, Jun 19, 2018 at 4:15 AM Laurent Pinchart wrote: > On Sunday, 17 June 2018 03:08:02 EEST Marek Vasut wrote: > > On 06/16/2018 05:44 PM, Laurent Pinchart wrote: > > > On Saturday, 16 June 2018 02:42:30 EEST Marek Vasut wrote: > > >> On 06/16/2018 01:21 AM, Laurent Pinchart

[U-Boot] [PATCH 2/6] reset: uniphier: sync reset data with Linux 4.18-rc1

2018-06-19 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- drivers/reset/reset-uniphier.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/reset/reset-uniphier.c b/drivers/reset/reset-uniphier.c index 657243a..39d684b 100644 --- a/drivers/reset/reset-uniphier.c +++

Re: [U-Boot] [PATCH 1/1] x86: qemu: do not build car.o with start64.o

2018-06-19 Thread Bin Meng
Hi Heinrich, On Tue, Jun 19, 2018 at 2:10 PM, Heinrich Schuchardt wrote: > On 06/19/2018 04:37 AM, Bin Meng wrote: >> Hi Heinrich, >> >> On Tue, Jun 12, 2018 at 11:50 PM, Heinrich Schuchardt >> wrote: >>> car.o can only be used with start.o, not with start64.o. >>> >>> So on qemu 64bit it

Re: [U-Boot] [PATCH v3 1/2] dm: mdio: add a uclass for MDIO

2018-06-19 Thread Joe Hershberger
On Tue, Jun 12, 2018 at 11:33 PM, wrote: > From: Ken Ma > > Add a uclass which provides access to MDIO busses and includes > operations required by MDIO. > The implementation is based on the existing mii/phy/mdio data > structures and APIs. > This patch also adds evice tree binding for MDIO

Re: [U-Boot] [PATCH v3 1/2] dm: mdio: add a uclass for MDIO

2018-06-19 Thread Joe Hershberger
On Tue, Jun 12, 2018 at 11:33 PM, wrote: > From: Ken Ma > > Add a uclass which provides access to MDIO busses and includes > operations required by MDIO. > The implementation is based on the existing mii/phy/mdio data > structures and APIs. > This patch also adds evice tree binding for MDIO

[U-Boot] [ANN] U-Boot v2018.07-rc2 released

2018-06-19 Thread Tom Rini
Hey all, It's a day after when I had planned to release v2018.07-rc2, but here we are. The group of patches I applied earlier in the day took a bit longer to sort out, and that means I have a few more things I had hoped to apply still left to look at. I still think at this point we should focus

[U-Boot] Make Menuconfig Error

2018-06-19 Thread Duncan Hare
Karsten Thanks for your lasts response. My apologies, I forget my yahoo email does not quite understand RFC email standards. Here's when I'm at with this version of u-boot. root@debian:/home/duncan/archive/u-boot# make clean root@debian:/home/duncan/archive/u-boot# make menuconfig   HOSTCC 

Re: [U-Boot] [PATCH v5 0/3] sunxi: fix eMMC stability issues on A64

2018-06-19 Thread Vasily Khoruzhick
On Mon, Jun 18, 2018 at 11:56 PM, Jagan Teki wrote: > > This what[1] I changed on top of your changes, same issue. > > [1] https://paste.ubuntu.com/p/NjYyMk68P6/ It should be tested separately. ___ U-Boot mailing list U-Boot@lists.denx.de

[U-Boot] [PATCH] Makefile: Ensure we build with -std=gnu11

2018-06-19 Thread Tom Rini
With the move to using at least gcc-6 for many targets we now have C code that requires the GNU11 C standard to be used in all cases. Signed-off-by: Tom Rini --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index

Re: [U-Boot] [PATCH] mtd: nand: denali: Replace the ad-hoc cache management with bouncebuf

2018-06-19 Thread Marek Vasut
On 06/19/2018 08:39 AM, Masahiro Yamada wrote: > Hi Marek, Hi, > 2018-06-08 5:17 GMT+09:00 Marek Vasut : >> Replace the ad-hoc DMA cache management functions with common bouncebuf, >> since those functions are not handling cases where unaligned buffer is >> passed in, > > > Were you hit by a

[U-Boot] [PULL] u-boot-sh/master

2018-06-19 Thread Marek Vasut
he following changes since commit 378b29cbc6607ad8246b1381bc74ec62bdb19105: Merge git://git.denx.de/u-boot-x86 (2018-06-18 12:59:46 -0400) are available in the Git repository at: git://git.denx.de/u-boot-sh.git master for you to fetch changes up to 2c84d5218e7e379dce493080a01938530b477611:

Re: [U-Boot] [RFC] ARM: rmobile: create DT memory nodes for R8A7795 3.0 and newer

2018-06-19 Thread Marek Vasut
On 06/19/2018 09:11 AM, Laurent Pinchart wrote: > Hi Geert, > > On Tuesday, 19 June 2018 09:58:59 EEST Geert Uytterhoeven wrote: >> On Tue, Jun 19, 2018 at 4:15 AM Laurent Pinchart wrote: >>> On Sunday, 17 June 2018 03:08:02 EEST Marek Vasut wrote: On 06/16/2018 05:44 PM, Laurent Pinchart

Re: [U-Boot] [PATCH v5 0/3] sunxi: fix eMMC stability issues on A64

2018-06-19 Thread Jagan Teki
On Tue, Jun 19, 2018 at 11:55 AM, Vasily Khoruzhick wrote: > On Mon, Jun 18, 2018 at 12:43 AM, Jagan Teki wrote: >> >> Don't have these hardware with me. > > Could you test this patch on your hardware when you get some time? > >

Re: [U-Boot] [PATCH] mmc: Parse HS400 DT properties

2018-06-19 Thread Jean-Jacques Hiblot
On 19/06/2018 06:23, Marek Vasut wrote: Add HS400 properties parsing support to mmc_of_parse(). Signed-off-by: Marek Vasut Cc: Bin Meng Cc: Jaehoon Chung Cc: Jean-Jacques Hiblot Cc: Kishon Vijay Abraham I Cc: Peng Fan Cc: Simon Glass --- drivers/mmc/mmc-uclass.c | 4 1 file

Re: [U-Boot] [PATCH v5 0/3] sunxi: fix eMMC stability issues on A64

2018-06-19 Thread Vasily Khoruzhick
On Mon, Jun 18, 2018 at 12:43 AM, Jagan Teki wrote: > > Don't have these hardware with me. Could you test this patch on your hardware when you get some time? https://github.com/anarsoul/u-boot-pine64/commit/a3f5d175a5ed0ece7a7720f1e665809c9f140850.patch It uses calibration without using new

Re: [U-Boot] [PATCH] mtd: nand: denali: Replace the ad-hoc cache management with bouncebuf

2018-06-19 Thread Masahiro Yamada
Hi Marek, 2018-06-08 5:17 GMT+09:00 Marek Vasut : > Replace the ad-hoc DMA cache management functions with common bouncebuf, > since those functions are not handling cases where unaligned buffer is > passed in, Were you hit by a problem, or just-in-case replacement? I thought I took care of

Re: [U-Boot] [PATCH v6 0/7] sunxi: sync H3, H5, A64 DTs from mainline Linux

2018-06-19 Thread Jagan Teki
On Wed, May 16, 2018 at 1:30 PM, Andre Przywara wrote: > This is an updated version of the series which brings the exact mainline > Linux device tree files for various Allwinner boards into U-Boot. > Apart from using the usually more correct reference DT files, this offers > the big benefit of

Re: [U-Boot] U-Boot TFTP protection

2018-06-19 Thread Lukasz Majewski
Hi Stefan, > Hello, > We have been looking at protecting U-Boot from (malicious) TFTP > overwrites. We want to do this after our ARMv7 U-Boot has relocated. > > The memory map looks like this (I hope): > > --- Top of DRAM > | U-Boot (Protected) > |

Re: [U-Boot] [PATCH v2] x86: Add 64-bit setjmp/longjmp implementation

2018-06-19 Thread Bin Meng
Hi Ivan, On Thu, Jun 7, 2018 at 2:28 AM, Ivan Gorinov wrote: > Add setjmp/longjmp functions for x86_64. > The FPU control word and MXCSR control bits are preserved across calls. > > Signed-off-by: Ivan Gorinov > --- > arch/x86/cpu/x86_64/setjmp.S | 66 >

Re: [U-Boot] [PATCH v6 0/7] sunxi: sync H3, H5, A64 DTs from mainline Linux

2018-06-19 Thread Andre Przywara
Hi, On 19/06/18 07:40, Jagan Teki wrote: > On Wed, May 16, 2018 at 1:30 PM, Andre Przywara > wrote: >> This is an updated version of the series which brings the exact mainline >> Linux device tree files for various Allwinner boards into U-Boot. >> Apart from using the usually more correct

Re: [U-Boot] [RFC PATCH] fpga: zynq: Add encrypted bitstream support with auto detect

2018-06-19 Thread Siva Durga Prasad Paladugu
Hi Stefan, Yes, I checked and it looks fine functionally, I even tested it. Otherthan this, I have few comments on this which I am going to reply to your RFC patch mail. Thanks, Siva > -Original Message- > From: Siva Durga Prasad Paladugu > Sent: Tuesday, June 12, 2018 9:18 AM > To:

[U-Boot] [PATCH 0/6] ARM: uniphier: some more updates for v2018.07-rc2

2018-06-19 Thread Masahiro Yamada
Masahiro Yamada (6): ARM: uniphier: enable CONFIG_SNI_AVE and disable CONFIG_SMC911X reset: uniphier: sync reset data with Linux 4.18-rc1 serial: uniphier: rename struct uniphier_serial_private_data serial: uniphier: set clock rate without clock-frequency property ARM: dts: uniphier:

[U-Boot] [PATCH 6/6] ARM: dts: uniphier: enable SD card for PXs3 reference board

2018-06-19 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- arch/arm/dts/uniphier-pxs3-ref.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/uniphier-pxs3-ref.dts b/arch/arm/dts/uniphier-pxs3-ref.dts index 3b9931a..4fb12b8 100644 --- a/arch/arm/dts/uniphier-pxs3-ref.dts +++

[U-Boot] [PATCH 3/6] serial: uniphier: rename struct uniphier_serial_private_data

2018-06-19 Thread Masahiro Yamada
Just for making it shorter. Signed-off-by: Masahiro Yamada --- drivers/serial/serial_uniphier.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/serial/serial_uniphier.c b/drivers/serial/serial_uniphier.c index 8878079..b06fc00 100644 ---

[U-Boot] [PATCH 4/6] serial: uniphier: set clock rate without clock-frequency property

2018-06-19 Thread Masahiro Yamada
In Linux, the clock rate of the UART is given by the clock driver. If you try to follow that in U-Boot, you would end up with adding more u-boot,dm-pre-reloc properties, and also the clock driver would be too big for SPL, which is used for UniPhier ARMv7 platform. The current solution is to add

Re: [U-Boot] [PATCH] common/memsize.c: Increase save array for supporting memory size > 4GB

2018-06-19 Thread Marek Vasut
On 06/19/2018 07:52 AM, Chee, Tien Fong wrote: > On Mon, 2018-06-18 at 12:59 -0400, Tom Rini wrote: >> On Wed, Jun 13, 2018 at 03:32:43PM +0800, tien.fong.c...@intel.com >> wrote: >> >>> >>> From: Tien Fong Chee >>> >>> In ARM 64-bits, memory size can be supported is more than 4GB, >>> hence

Re: [U-Boot] [RFC] ARM: rmobile: create DT memory nodes for R8A7795 3.0 and newer

2018-06-19 Thread Geert Uytterhoeven
Hi Laurent, On Tue, Jun 19, 2018 at 9:10 AM Laurent Pinchart wrote: > On Tuesday, 19 June 2018 09:58:59 EEST Geert Uytterhoeven wrote: > > On Tue, Jun 19, 2018 at 4:15 AM Laurent Pinchart wrote: > > > On Sunday, 17 June 2018 03:08:02 EEST Marek Vasut wrote: > > >> On 06/16/2018 05:44 PM, Laurent

Re: [U-Boot] [RFC] ARM: rmobile: create DT memory nodes for R8A7795 3.0 and newer

2018-06-19 Thread Laurent Pinchart
Hi Geert, On Tuesday, 19 June 2018 09:58:59 EEST Geert Uytterhoeven wrote: > On Tue, Jun 19, 2018 at 4:15 AM Laurent Pinchart wrote: > > On Sunday, 17 June 2018 03:08:02 EEST Marek Vasut wrote: > >> On 06/16/2018 05:44 PM, Laurent Pinchart wrote: > >>> On Saturday, 16 June 2018 02:42:30 EEST

Re: [U-Boot] [PATCH 1/1] x86: qemu: do not build car.o with start64.o

2018-06-19 Thread Heinrich Schuchardt
On 06/19/2018 04:37 AM, Bin Meng wrote: > Hi Heinrich, > > On Tue, Jun 12, 2018 at 11:50 PM, Heinrich Schuchardt > wrote: >> car.o can only be used with start.o, not with start64.o. >> >> So on qemu 64bit it should only be built for 32bit SPL but not for u-boot. >> >> Without this patch but with

Re: [U-Boot] [PATCH v5 0/3] sunxi: fix eMMC stability issues on A64

2018-06-19 Thread Jagan Teki
On Tue, Jun 19, 2018 at 12:03 PM, Jagan Teki wrote: > On Tue, Jun 19, 2018 at 11:55 AM, Vasily Khoruzhick > wrote: >> On Mon, Jun 18, 2018 at 12:43 AM, Jagan Teki >> wrote: >>> >>> Don't have these hardware with me. >> >> Could you test this patch on your hardware when you get some time? >>

  1   2   >