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

2018-05-25 Thread Ramon Fried
On Sat, May 26, 2018 at 5:07 AM, Simon Glass wrote: > Hi Ramon, > > On 25 May 2018 at 04:41, Ramon Fried wrote: >> When the buffer is full, there supposed to be no more >> writes, the code however misses the else statement and >> subsequently writes to arbitrary pointer location and increases >>

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

2018-05-25 Thread Ramon Fried
On Sat, May 26, 2018 at 5:07 AM, Simon Glass wrote: > HI Ramon, > > On 25 May 2018 at 04:41, Ramon Fried wrote: >> Add timestamp to each iotrace record to aid in debugging >> of IO timing access bugs. >> >> Signed-off-by: Ramon Fried >> --- >> common/iotrace.c | 3 +++ >> 1 file changed, 3 inse

Re: [U-Boot] RFC: Alternative boot_jump_linux() function

2018-05-25 Thread Ramon Fried
On Sat, May 26, 2018 at 5:18 AM, Tom Rini wrote: > On Fri, May 25, 2018 at 05:41:31PM +0300, Ramon Fried wrote: >> On Fri, May 25, 2018 at 3:11 PM, Tom Rini wrote: >> > On Thu, May 17, 2018 at 07:48:45PM +0300, Ramon Fried wrote: >> >> On Thu, May 17, 2018 at 5:22 PM, Tom Rini wrote: >> >> > On

Re: [U-Boot] [PATCH v1 1/2] buildman: Extract environment as part of each build

2018-05-25 Thread Alex Kiernan
On Sat, May 26, 2018 at 3:07 AM Simon Glass wrote: > Hi Alex, > On 24 May 2018 at 22:57, Alex Kiernan wrote: > > As we're building the boards, extract the default U-Boot environment to > > uboot.env so we can interrogate it later. > > > > Signed-off-by: Alex Kiernan > > --- > > > > tools/buil

Re: [U-Boot] [PATCH] x86: use EFI calling convention for efi_main on x86_64

2018-05-25 Thread Heinrich Schuchardt
On 05/25/2018 11:28 PM, Ivan Gorinov wrote: > Save the arguments passed in %rcx and %rdx for efi_main() on x86_64; > consistently use EFI calling convention for efi_main(). > > Signed-off-by: Ivan Gorinov One big difference between the ms_abi and the sysv_abi calling convention is the set of vol

Re: [U-Boot] RFC: Alternative boot_jump_linux() function

2018-05-25 Thread Tom Rini
On Fri, May 25, 2018 at 05:41:31PM +0300, Ramon Fried wrote: > On Fri, May 25, 2018 at 3:11 PM, Tom Rini wrote: > > On Thu, May 17, 2018 at 07:48:45PM +0300, Ramon Fried wrote: > >> On Thu, May 17, 2018 at 5:22 PM, Tom Rini wrote: > >> > On Thu, May 17, 2018 at 02:01:55PM +0300, Ramon Fried wrote

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

2018-05-25 Thread Simon Glass
On 25 May 2018 at 04:41, 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 > --- > v2: fixed printf zero field width. > > cmd/iotrace.c | 36 +++- > 1 file ch

Re: [U-Boot] [PATCH v1 1/2] buildman: Extract environment as part of each build

2018-05-25 Thread Simon Glass
Hi Alex, On 24 May 2018 at 22:57, Alex Kiernan wrote: > As we're building the boards, extract the default U-Boot environment to > uboot.env so we can interrogate it later. > > Signed-off-by: Alex Kiernan > --- > > tools/buildman/builderthread.py | 10 ++ > 1 file changed, 10 insertions(

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

2018-05-25 Thread Simon Glass
HI Ramon, On 25 May 2018 at 04:41, Ramon Fried wrote: > Add timestamp to each iotrace record to aid in debugging > of IO timing access bugs. > > Signed-off-by: Ramon Fried > --- > common/iotrace.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/common/iotrace.c b/common/iotrace.c >

Re: [U-Boot] [PATCH] regmap: Separate memory-based operations

2018-05-25 Thread Simon Glass
Hi Alexey, On 25 May 2018 at 03:45, Alexey Brodkin wrote: > Hi Simon, > > On Thu, 2018-05-24 at 20:42 -0600, Simon Glass wrote: >> Hi Alexey, >> >> On 24 May 2018 at 06:36, Alexey Brodkin wrote: >> > One of important features of regmap [at least in Linux kernel] >> > is an ability to seamlessly

Re: [U-Boot] [PATCH v1 2/2] buildman: Add support for environment delta in summary

2018-05-25 Thread Simon Glass
On 24 May 2018 at 22:57, Alex Kiernan wrote: > When summarising the builds, add the -U option to emit delta lines for > the default environment built into U-Boot at each commit. > > Signed-off-by: Alex Kiernan > --- > > tools/buildman/builder.py | 128 +- > to

Re: [U-Boot] [PATCH v3 2/2] test/py: add test for whitelist of variables while importing environment

2018-05-25 Thread Simon Glass
Hi, On 25 May 2018 at 02:38, Quentin Schulz wrote: > This tests that the importing of an environment with a specified > whitelist works as intended. > > If there are variables passed as parameter to the env import command, >those only should be imported in the current environment. > > For eac

Re: [U-Boot] [PATCH v3 6/6] test: dm: Fix wrong aliases property names

2018-05-25 Thread Simon Glass
Hi, On 24 May 2018 at 16:04, Eugeniu Rosca wrote: > Hi Simon, > > On Tue, May 22, 2018 at 05:30:40PM -0600, Simon Glass wrote: >> Hi Eugeniu, >> >> On 19 May 2018 at 06:13, Eugeniu Rosca wrote: > > --snip-- > >> > v2->v3: >> > * Fixed an issue in the test code (test/dm/test-fdt.c) generated by t

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

2018-05-25 Thread Simon Glass
Hi Ramon, On 25 May 2018 at 04:41, Ramon Fried wrote: > When the buffer is full, there supposed to be no more > writes, the code however misses the else statement and > subsequently writes to arbitrary pointer location and increases > the offset. I don't think so. It writes to a local variable i

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

2018-05-25 Thread Simon Glass
On 25 May 2018 at 04:41, Ramon Fried wrote: > The header definitions are needed for reading > record information in cmd/iotrace.c > > Signed-off-by: Ramon Fried > --- > common/iotrace.c | 27 --- > include/iotrace.h | 28 > 2 files changed, 2

Re: [U-Boot] [PATCH 5/5] cmd: iotrace: add dump trace command

2018-05-25 Thread Simon Glass
Hi Ramon, On 24 May 2018 at 13:36, 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 > --- > cmd/iotrace.c | 36 +++- > 1 file changed, 35 insertions(+), 1 d

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

2018-05-25 Thread Simon Glass
On 25 May 2018 at 04:41, 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 only logs io oper

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

2018-05-25 Thread Simon Glass
On 25 May 2018 at 04:41, Ramon Fried wrote: > Signed-off-by: Ramon Fried > --- > cmd/iotrace.c | 22 ++ > 1 file changed, 22 insertions(+) > Reviewed-by: Simon Glass ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx

Re: [U-Boot] [PATCH] malloc: Use malloc simple before malloc is fully initialized in memalign()

2018-05-25 Thread Simon Glass
+Masahiro On 25 May 2018 at 02:50, Ley Foon Tan wrote: > > On Fri, May 25, 2018 at 11:33 AM, Simon Glass wrote: > > Hi, > > > > On 24 May 2018 at 21:24, Ley Foon Tan wrote: > >> > >> On Thu, May 24, 2018 at 12:33 AM, Simon Glass wrote: > >> > Hi, > >> > > >> > On 23 May 2018 at 00:32, Ley Foon

Re: [U-Boot] [PATCH v2 7/7] video_display: Add Xilinx LogiCore DP TX

2018-05-25 Thread Anatolij Gustschin
Hi Mario, Please test the patch with ./scripts/checkpatch.pl, there are warnings/ errors reported that need fixing: ... total: 1 errors, 31 warnings, 26 checks, 2746 lines checked On Wed, 23 May 2018 14:10:47 +0200 Mario Six mario@gdsys.cc wrote: ... > diff --git a/drivers/video/Makefile b/

[U-Boot] [PATCH] x86: enable cpu-specific functions for x86_64 target

2018-05-25 Thread Ivan Gorinov
Add __weak prefix to the following functions to allow override: misc_init_r(), checkcpu(), print_cpuinfo(). Signed-off-by: Ivan Gorinov --- arch/x86/cpu/x86_64/cpu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/cpu/x86_64/cpu.c b/arch/x86/cpu/x86_64/cpu.c in

[U-Boot] [PATCH v1] rockchip: utilize CONFIG_DEFAULT_FDT_FILE

2018-05-25 Thread Klaus Goger
Currently the fdtfile environment variable is set to CONFIG_DEFAULT_DEVICE_TREE which is іnternally used as U-Boot devicetree source. The OS can use a different filename and Kconfig gives us the ability to select a default devicetree via CONFIG_DEFAULT_FDT_FILE. This also gives user configuring U-B

[U-Boot] [PATCH] x86: use EFI calling convention for efi_main on x86_64

2018-05-25 Thread Ivan Gorinov
Save the arguments passed in %rcx and %rdx for efi_main() on x86_64; consistently use EFI calling convention for efi_main(). Signed-off-by: Ivan Gorinov --- arch/x86/lib/crt0_x86_64_efi.S | 8 lib/efi/efi_app.c | 3 ++- lib/efi/efi_stub.c | 3 ++- 3 files change

[U-Boot] [PATCH v2] efi_selftest: check for buffer overflow in efi_get_variable

2018-05-25 Thread Ivan Gorinov
Allocate a buffer on the stack instead of an array of uninitialized pointers; check if GetVariable writes past the end of the buffer. Signed-off-by: Ivan Gorinov --- lib/efi_selftest/efi_selftest_variables.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/l

[U-Boot] [PATCH v2] arm, imx6: fix NOR/OneNAND boot mode mix-up

2018-05-25 Thread Jay Carlson
From: Jay Carlson This patch fixes the ordering of the EMI enum to match Table 8-8 in the i.MX6ULL Reference Manual, and has been spot-checked in two other i.MX reference manuals for accuracy. Signed-off-by: Jay Carlson --- arch/arm/include/asm/mach-imx/sys_proto.h | 2 +- 1 file changed, 1

[U-Boot] [PATCH v2] arm, imx6: add support for SD/MMC Manufacture Mode

2018-05-25 Thread Jay Carlson
From: Jay Carlson This patch adds support for booting blank i.MX6 devices in SD/MMC Manufacture Mode: a fallback mode which the boot ROM enters when no fuses or boot mode pins have been set, the USB serial downloader connection is inactive, and there is an SD card inserted into uSDHC1. The i.MX7

Re: [U-Boot] RFC: Alternative boot_jump_linux() function

2018-05-25 Thread Ramon Fried
On Fri, May 25, 2018 at 3:11 PM, Tom Rini wrote: > On Thu, May 17, 2018 at 07:48:45PM +0300, Ramon Fried wrote: >> On Thu, May 17, 2018 at 5:22 PM, Tom Rini wrote: >> > On Thu, May 17, 2018 at 02:01:55PM +0300, Ramon Fried wrote: >> > >> >> Hi. >> >> I'm currently working on snapdragon bootloader

Re: [U-Boot] U-Boot thumb interlink patches

2018-05-25 Thread klaus . goger
Hi Tom, > On 25.05.2018, at 14:01, Tom Rini wrote: > > Hey guys, > > So, I want to be sure that I get all of the patches that we need in > order to fix the thumb interlink problems on older ARM cores applied. > > I believe that we have: > https://patchwork.ozlabs.org/patch/905299/ Applied on

Re: [U-Boot] Signed FIT image boots without public key

2018-05-25 Thread Teddy Reed
I also use the verified-boot features for several boards. The behavior you're describing is my understanding too. But I think the expectation: "do not enforce signature checks if there are no public keys" is OK. The expectation "enforce a signature check if there's a signature" doesn't seem comple

[U-Boot] [PATCH v6 11/11] board: ti: am57xx: remove USB platform code

2018-05-25 Thread Jean-Jacques Hiblot
Signed-off-by: Jean-Jacques Hiblot --- Changes in v6: - Supports DM USB for peripherals - Removed DTS changes that disabled USB1 on DRA7 because DM_USB_DEV is now supported Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None board/ti/am57xx/board.c | 87 -

[U-Boot] [PATCH v6 05/11] board: ti: dra7xx-evm: turn on USB clocks in late init stage

2018-05-25 Thread Jean-Jacques Hiblot
For USB ports that use the Driver Model, turn on the clocks during the late init stage. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None board/ti/dra7xx/evm.c | 19 +

[U-Boot] [PATCH v6 09/11] configs: am57xx_evm: Enable DM_USB and DM_USB_DEV

2018-05-25 Thread Jean-Jacques Hiblot
Enable DM_USB and DM_USB_DEV for AM57xx based boards. Signed-off-by: Vignesh R Signed-off-by: Jean-Jacques Hiblot --- Changes in v6: - AM57 configs: enable DM_USB and DM_USB_DEV. Use DWC3_GENERIC in place of DWC3_OF_SIMPLE. disable non DM USB options Changes in v5: - Rebased on latest u-boot

[U-Boot] [PATCH v6 10/11] board: ti: dra7-evm: remove USB platform code

2018-05-25 Thread Jean-Jacques Hiblot
Signed-off-by: Jean-Jacques Hiblot --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None board/ti/dra7xx/evm.c | 104 -- 1 file changed, 104 deletions(-) diff --git a/board/ti/dra7xx/evm.c b/board

[U-Boot] [PATCH v6 07/11] dts: dra7x: make ocp2scp@4a080000 compatible with simple-bus

2018-05-25 Thread Jean-Jacques Hiblot
This is required when DM_USB is used, to bind the USB phys. Signed-off-by: Jean-Jacques Hiblot --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: - split dts changes in 2 commits: one for binding the children of ocp2scp@4a08, and one to disa

[U-Boot] [PATCH v6 01/11] syscon: dm: Add a new method to get a regmap from DTS

2018-05-25 Thread Jean-Jacques Hiblot
syscon_regmap_lookup_by_phandle() can be used to get the regmap of a syscon device from a reference in the DTS. It operates similarly to the linux version of the namesake function. Signed-off-by: Jean-Jacques Hiblot --- Changes in v6: None Changes in v5: None Changes in v4: - Fix word missing i

[U-Boot] [PATCH v6 06/11] board; ti: am57xx: turn on USB clocks

2018-05-25 Thread Jean-Jacques Hiblot
From: Vignesh R Enable USB clocks in late init stage to support ports under DM_USB. Signed-off-by: Vignesh R Signed-off-by: Jean-Jacques Hiblot --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: - am57xx boards: when DM_USB is used, turn on the

[U-Boot] [PATCH v6 08/11] configs: enable DM_USB and DM_USB_DEV for all DRA7 platforms

2018-05-25 Thread Jean-Jacques Hiblot
Signed-off-by: Jean-Jacques Hiblot --- Changes in v6: - DRA7 configs: enable DM_USB and DM_USB_DEV. Use DWC3_GENERIC in place of DWC3_OF_SIMPLE. disable non DM USB options Changes in v5: None Changes in v4: - Remove dependency on MISC - Renamed the commit (DM_USB is already enabled, the only mi

[U-Boot] [PATCH v6 04/11] dwc3-generic: Add support for the TI DWC3 glue

2018-05-25 Thread Jean-Jacques Hiblot
Signed-off-by: Jean-Jacques Hiblot --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None drivers/usb/dwc3/dwc3-generic.c | 86 + 1 file changed, 86 insertions(+) diff --git a/drivers/usb/dwc3/dwc3-generic

[U-Boot] [PATCH v6 03/11] phy: Add a new driver for OMAP's USB2 PHYs

2018-05-25 Thread Jean-Jacques Hiblot
This drivers supports the USB2 PHY found on omap5 and dra7 SOCs. Signed-off-by: Jean-Jacques Hiblot --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: - omap-usb2-phy: Implement power_on and power_off callbacks drivers/phy/Kconfig | 8

[U-Boot] [PATCH v6 02/11] phy: ti-pip3-phy: Add support for USB3 PHY

2018-05-25 Thread Jean-Jacques Hiblot
From: Vignesh R Add support to handle USB3 PHYs present on AM57xx/DRA7xx SoCs. This is needed to move AM57xx to DM_USB. Signed-off-by: Vignesh R Signed-off-by: Jean-Jacques Hiblot --- Changes in v6: - ti-pipe3-phy: take PLL out of IDLE in pipe3_init(). The PLL may have been put into idle b

[U-Boot] [PATCH] MAINTAINERS: Add board/synopsys/

2018-05-25 Thread Alexey Brodkin
As of today 'board/synopsys/' folder contains only Synopsys ARC boards supported by the same people who support 'arch/arc'. Signed-off-by: Alexey Brodkin --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 5670917b41b9..cc1331f16d6b 100644 --- a/MA

[U-Boot] [PATCH v2] board_f: Only reserve memory for U-Boot if we're going to relocate

2018-05-25 Thread Alexey Brodkin
In case of no relocation we'll just waste some space at the very end of usable memory area. If target device has very limited amount of memory (for example 256 kB) this loss will be pretty inconvenient. Signed-off-by: Alexey Brodkin Reviewed-by: Simon Glass Cc: Bin Meng Cc: Heiko Schocher Cc:

Re: [U-Boot] [PATCH] arm, imx6: add support for SD/MMC Manufacture Mode

2018-05-25 Thread Otavio Salvador
On Thu, May 24, 2018 at 6:48 PM, Jay Carlson wrote: > From: Jay Carlson > > This patch adds support for booting blank i.MX6 devices in SD/MMC Manufacture > Mode: a fallback mode which the boot ROM enters when no fuses or boot mode > pins have been set, the USB serial downloader connection is in

Re: [U-Boot] [PATCH] arm, imx6: fix NOR/OneNAND boot mode mix-up

2018-05-25 Thread Otavio Salvador
On Thu, May 24, 2018 at 7:00 PM, Jay Carlson wrote: > From: Jay Carlson > > This patch fixes the ordering of the EMI enum to match Table 8-8 in the the > i.MX6ULL Reference Manual, and has been spot-checked in two other i.MX > reference manuals for accuracy. Same as the other patch. -- Otavi

[U-Boot] Signed FIT image boots without public key

2018-05-25 Thread Nelson, Mark
Let me preface this by saying I'm using the xilinx-u-boot repo based on the 2017.4 tag. I've been studying how to sign FIT images, using mkimage. I successfully signed an image and verified the signature as follows: ${UBTOOLS4}/mkimage -T multi -A arm64 -O linux -f images/linux/fitimage.its -K

Re: [U-Boot] U-Boot thumb interlink patches

2018-05-25 Thread Tom Rini
On Fri, May 25, 2018 at 01:17:45PM +0100, Måns Rullgård wrote: > Tom Rini writes: > > > And then: > > https://patchwork.ozlabs.org/patch/909652/ > > > > has been reviewed and could be applied. Is there anything else I'm > > missing? Thanks! > > I'd be more comfortable with this one if someone

[U-Boot] [PATCH] tests: Make test_log.py tests depend on cmd_log not log

2018-05-25 Thread Tom Rini
While the tests in this testcase are for the log subsystem they are only able to be run if CONFIG_CMD_LOG is enabled as well as CONFIG_LOG, so update the buildconfigspec requirement. Signed-off-by: Tom Rini --- test/py/tests/test_log.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[U-Boot] [PATCH] sandbox_flattree: Switch to TPMv2 support

2018-05-25 Thread Tom Rini
In order to have the test.py tests for TPMv2 run automatically we need to have one of our sandbox builds use TPMv2 rather than TPMv1. Switch sandbox_flattree over to this style of TPM. Cc: Simon Glass Signed-off-by: Tom Rini --- I'm tempted to switch the main sandbox target over instead as I do

Re: [U-Boot] U-Boot thumb interlink patches

2018-05-25 Thread Måns Rullgård
Tom Rini writes: > And then: > https://patchwork.ozlabs.org/patch/909652/ > > has been reviewed and could be applied. Is there anything else I'm > missing? Thanks! I'd be more comfortable with this one if someone actually tested it. I can't since I don't have such hardware. -- Måns Rullgård

Re: [U-Boot] [PATCH v3 1/2] cmd: nvedit: env import can now import only variables passed as parameters

2018-05-25 Thread Alex Kiernan
On Fri, May 25, 2018 at 12:26 PM Lothar Waßmann wrote: > Hi, > On Fri, 25 May 2018 11:52:17 +0100 Alex Kiernan wrote: > > On Fri, May 25, 2018 at 9:38 AM Quentin Schulz < quentin.sch...@bootlin.com> > > wrote: > > > > > While the `env export` can take as parameters variables to be exported, > >

Re: [U-Boot] [PATCH v3 1/2] cmd: nvedit: env import can now import only variables passed as parameters

2018-05-25 Thread Quentin Schulz
Hi Lothar and Alex, On Fri, May 25, 2018 at 01:26:20PM +0200, Lothar Waßmann wrote: > Hi, > > On Fri, 25 May 2018 11:52:17 +0100 Alex Kiernan wrote: > > On Fri, May 25, 2018 at 9:38 AM Quentin Schulz > > wrote: > > > > > While the `env export` can take as parameters variables to be exported, >

Re: [U-Boot] RFC: Alternative boot_jump_linux() function

2018-05-25 Thread Tom Rini
On Thu, May 17, 2018 at 07:48:45PM +0300, Ramon Fried wrote: > On Thu, May 17, 2018 at 5:22 PM, Tom Rini wrote: > > On Thu, May 17, 2018 at 02:01:55PM +0300, Ramon Fried wrote: > > > >> Hi. > >> I'm currently working on snapdragon bootloader support and in the > >> particular case where U-boot is

[U-Boot] U-Boot thumb interlink patches

2018-05-25 Thread Tom Rini
Hey guys, So, I want to be sure that I get all of the patches that we need in order to fix the thumb interlink problems on older ARM cores applied. I believe that we have: https://patchwork.ozlabs.org/patch/905299/ Which could still apply, but I'm wondering if the kernel needs this as well then

Re: [U-Boot] [PATCH 1/2] fit: allow fit to call hardware accelerated hash

2018-05-25 Thread Tom Rini
On Thu, May 24, 2018 at 02:43:24PM +0100, Ben Whitten wrote: > Move to calling the abstraction which allows for hardware acceleration. > > Signed-off-by: Ben Whitten > --- > common/image-fit.c | 26 -- > 1 file changed, 16 insertions(+), 10 deletions(-) > > diff --git a

Re: [U-Boot] [PATCH v3 1/2] cmd: nvedit: env import can now import only variables passed as parameters

2018-05-25 Thread Lothar Waßmann
Hi, On Fri, 25 May 2018 11:52:17 +0100 Alex Kiernan wrote: > On Fri, May 25, 2018 at 9:38 AM Quentin Schulz > wrote: > > > While the `env export` can take as parameters variables to be exported, > > `env import` does not have such a mechanism of variable selection. > > > Let's add the ability t

Re: [U-Boot] [PATCH v2 1/5] drivers: Add OSD uclass

2018-05-25 Thread Mario Six
Hi Simon, On Wed, May 23, 2018 at 6:33 PM, Simon Glass wrote: > On 23 May 2018 at 06:09, Mario Six wrote: >> Some devices offer a text-based OSD (on-screen display) that can be >> programmatically controlled (i.e. text displayed on). >> >> Add a uclass to support such devices. >> >> Signed-off-b

Re: [U-Boot] [PATCH v2 5/5] cmd: Add osd commands

2018-05-25 Thread Mario Six
Hi Simon, On Wed, May 23, 2018 at 6:33 PM, Simon Glass wrote: > Hi Mario, > > On 23 May 2018 at 06:09, Mario Six wrote: >> Add command to query information from and write text to on-screen >> display (OSD) devices. >> >> Signed-off-by: Mario Six >> >> --- >> >> v1 -> v2: >> * Added explanation

Re: [U-Boot] [PATCH v2 4/5] lib: Import hexdump.c from Linux

2018-05-25 Thread Mario Six
Hi Simon, On Wed, May 23, 2018 at 6:33 PM, Simon Glass wrote: > Hi Mario, > > On 23 May 2018 at 06:09, Mario Six wrote: >> Especially for commands, it is useful to be able to turn a hexadecimal >> string into its binary representation. >> >> Hence, import the hex_to_bin, bin2hex, and hex2bin fun

Re: [U-Boot] [PATCH v2 2/5] video_osd: Add ihs_video_out driver

2018-05-25 Thread Mario Six
Hi Simon, On Wed, May 23, 2018 at 6:33 PM, Simon Glass wrote: > Hi Mario, > > On 23 May 2018 at 06:09, Mario Six wrote: >> Add a driver for IHS OSDs on IHS FPGAs. >> >> Signed-off-by: Mario Six >> >> --- >> >> v1 -> v2: >> * Renamed x and y parameters to col and row >> * Removed duplicate IHS_V

Re: [U-Boot] [PATCH v2 3/5] video_osd: Add osd sandbox driver and tests

2018-05-25 Thread Mario Six
Hi Simon, On Wed, May 23, 2018 at 6:33 PM, Simon Glass wrote: > Hi Mario, > > On 23 May 2018 at 06:09, Mario Six wrote: >> Add sandbox driver and tests for the new OSD uclass. >> >> Signed-off-by: Mario Six >> >> --- >> >> v1 -> v2: >> New in v2 >> >> --- >> arch/sandbox/dts/test.dts

Re: [U-Boot] [U-Boot, v3, 1/3] mmc: dwmmc: socfpga: Add reset ctrl to driver

2018-05-25 Thread Tom Rini
On Fri, May 25, 2018 at 10:45:53AM +0800, Ley Foon Tan wrote: > On Thu, May 24, 2018 at 8:39 PM, Tom Rini wrote: > > On Tue, May 08, 2018 at 11:19:24AM +0800, Ley Foon Tan wrote: > > > >> Add code to reset all reset signals as in mmc DT node. A reset property is > >> an optional feature, > >> so

Re: [U-Boot] [PATCH v3 1/2] cmd: nvedit: env import can now import only variables passed as parameters

2018-05-25 Thread Alex Kiernan
On Fri, May 25, 2018 at 9:38 AM Quentin Schulz wrote: > While the `env export` can take as parameters variables to be exported, > `env import` does not have such a mechanism of variable selection. > Let's add the ability to add parameters at the end of the command for > variables to be imported.

[U-Boot] [PATCH v2 5/6] cmd: iotrace: add dump trace command

2018-05-25 Thread Ramon Fried
Add dump trace command which dump all trace buffer content in a much more readable fashion than md. Signed-off-by: Ramon Fried --- v2: fixed printf zero field width. cmd/iotrace.c | 36 +++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/cmd/iotrac

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

2018-05-25 Thread Ramon Fried
The header definitions are needed for reading record information in cmd/iotrace.c Signed-off-by: Ramon Fried --- common/iotrace.c | 27 --- include/iotrace.h | 28 2 files changed, 28 insertions(+), 27 deletions(-) diff --git a/common/iotrac

[U-Boot] [PATCH 6/6] common: iotrace: fix behaviour when buffer is full

2018-05-25 Thread Ramon Fried
When the buffer is full, there supposed to be no more writes, the code however misses the else statement and subsequently writes to arbitrary pointer location and increases the offset. This patch fixes that by returning immediately. Signed-off-by: Ramon Fried --- common/iotrace.c | 2 ++ 1 file

[U-Boot] [PATCH 1/6] cmd: iotrace: add set region command

2018-05-25 Thread Ramon Fried
Signed-off-by: Ramon Fried --- cmd/iotrace.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/cmd/iotrace.c b/cmd/iotrace.c index e496787e0d..601b8c8e32 100644 --- a/cmd/iotrace.c +++ b/cmd/iotrace.c @@ -15,6 +15,9 @@ static void do_print_stats(void) iotrace_get

[U-Boot] [PATCH 2/6] iotrace: add IO region limit

2018-05-25 Thread Ramon Fried
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 only logs io operation that falls in the defined region. Signed-off-by:

[U-Boot] [PATCH 3/6] common: iotrace: add timestamp to iotrace records

2018-05-25 Thread Ramon Fried
Add timestamp to each iotrace record to aid in debugging of IO timing access bugs. Signed-off-by: Ramon Fried --- common/iotrace.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/iotrace.c b/common/iotrace.c index f39885663a..3530688ab1 100644 --- a/common/iotrace.c +++ b/common/io

[U-Boot] [PATCH v2 0/6] Iotrace improvements

2018-05-25 Thread Ramon Fried
These set of patches add few improvements to iotrace. * Region limiting - allows setting an address and size where only io operations that falls into that address are logged. * Timestamping - Timestamp every iotrace re

Re: [U-Boot] [PATCH v7 14/18] mmc: Separate "mmc swrite" from fastboot

2018-05-25 Thread Alex Kiernan
On Fri, May 25, 2018 at 3:42 AM Simon Glass wrote: > Hi Alex, > On 24 May 2018 at 07:29, Alex Kiernan wrote: > > > > Introduce CONFIG_IMAGE_SPARSE and CONFIG_CMD_MMC_SWRITE so the "mmc > > swrite" command is separated from the fastboot code. > > > > Move image-sparse from common to lib so it's

Re: [U-Boot] [PATCH v7 14/18] mmc: Separate "mmc swrite" from fastboot

2018-05-25 Thread Simon Glass
Hi Alex, On 24 May 2018 at 07:29, Alex Kiernan wrote: > > Introduce CONFIG_IMAGE_SPARSE and CONFIG_CMD_MMC_SWRITE so the "mmc > swrite" command is separated from the fastboot code. > > Move image-sparse from common to lib so it's clear it's library code. > > Rename CONFIG_FASTBOOT_FLASH_FILLBUF_S

Re: [U-Boot] [PATCH v7 17/18] usb: fastboot: Convert USB f_fastboot to shared fastboot

2018-05-25 Thread Simon Glass
On 24 May 2018 at 07:29, Alex Kiernan wrote: > Convert USB fastboot code to use shared fastboot protocol. > > Signed-off-by: Alex Kiernan > --- > > Changes in v7: > - set FASTBOOT_CMD_OEM_FORMAT for all existing users of FASTBOOT_FLASH_MMC_DEV > that also have CMD_GPT > > Changes in v6: > - mer

[U-Boot] [PATCH 1/1] efi_selftest: imply FAT, FAT_WRITE

2018-05-25 Thread Heinrich Schuchardt
efi_selftest_block_device accesses a FAT file system. Signed-off-by: Heinrich Schuchardt --- lib/efi_selftest/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/efi_selftest/Kconfig b/lib/efi_selftest/Kconfig index 3b5f3a1230b..59f9f36801c 100644 --- a/lib/efi_selftest/Kconfig +++

Re: [U-Boot] [PATCH v1 1/2] buildman: Extract environment as part of each build

2018-05-25 Thread Alex Kiernan
On Fri, May 25, 2018 at 9:56 AM Alex Kiernan wrote: > On Fri, May 25, 2018 at 9:05 AM Lukasz Majewski wrote: > > Hi Alex, > > > As we're building the boards, extract the default U-Boot environment > > > to uboot.env so we can interrogate it later. > > If applicable, you may also consider usi

Re: [U-Boot] [PATCH] regmap: Separate memory-based operations

2018-05-25 Thread Alexey Brodkin
Hi Simon, On Thu, 2018-05-24 at 20:42 -0600, Simon Glass wrote: > Hi Alexey, > > On 24 May 2018 at 06:36, Alexey Brodkin wrote: > > One of important features of regmap [at least in Linux kernel] > > is an ability to seamlessly communicate to devices connected > > via different buses like: MMIO,

[U-Boot] [PATCH v1 6/7] dwc3-generic: Handle the PHYs, the clocks and the reset lines

2018-05-25 Thread Jean-Jacques Hiblot
This make the driver more generic. At this point this driver can replace the dwc3-of-simple implementation. Make the description in the Kconfig more generic too. Signed-off-by: Jean-Jacques Hiblot --- drivers/usb/dwc3/Kconfig| 7 +- drivers/usb/dwc3/dwc3-generic.c | 159 ++

[U-Boot] [PATCH] buildman: Add GCC 8.1.0 version to tools from kernel.org

2018-05-25 Thread Alexey Brodkin
Since May 22th toolchains built from GCC 8.1.0 are available at https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/8.1.0/ Unfortunately that pretty trivial bump disclosed a few build issues, see CI job [1] for all the details. That's a brief analysis if of any interest: 1) Wron

[U-Boot] [PATCH v1 4/7] dwc3_generic: do not probe the USB device driver when it's bound

2018-05-25 Thread Jean-Jacques Hiblot
The driver will be probed when usb_gadget_initialize() is called. Signed-off-by: Jean-Jacques Hiblot --- drivers/usb/dwc3/dwc3-generic.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/usb/dwc3/dwc3-generic.c b/drivers/usb/dwc3/dwc3-generic.c index 43e97be..3ec0c0e 100644 ---

[U-Boot] [PATCH v1 3/7] usb: udc: implement DM versions of usb_gadget_initialize()/_release()/_handle_interrupt()

2018-05-25 Thread Jean-Jacques Hiblot
When DM_USB_DEV the platform code for the USB device must be replaced by calls to a USB device driver. usb_gadget_initialize() probes the USB device driver. usb_gadget_release() removes the USB device driver. Signed-off-by: Jean-Jacques Hiblot --- drivers/usb/dwc3/dwc3-generic.c | 14 ++-

[U-Boot] [PATCH v1 5/7] dwc3: move phy operation to core.c

2018-05-25 Thread Jean-Jacques Hiblot
Those operations can be used for peripheral operation as well as host operation. Signed-off-by: Jean-Jacques Hiblot --- drivers/usb/dwc3/core.c | 88 - drivers/usb/dwc3/ep0.c | 1 - drivers/usb/host/xhci-dwc3.c | 93 +++

[U-Boot] [PATCH v1 7/7] dwc3-generic: Add select_dr_mode operation

2018-05-25 Thread Jean-Jacques Hiblot
The select_dr_mode operation is executed when the glue driver is probed. The role of this optional function is to configure the operating mode of the controller at the glue level. Signed-off-by: Jean-Jacques Hiblot --- drivers/usb/dwc3/dwc3-generic.c | 26 ++ 1 file cha

[U-Boot] [PATCH v1 0/7] Improvements for the dwc3_generic driver

2018-05-25 Thread Jean-Jacques Hiblot
This series aims at bringing improvements to the dwc3_generic driver so that it can be used by most of the platforms using the dwc3 controller. I tested this on with DRA7 and AM57x platforms for both Peripheral and Host operations. The code to enable DM USB host & dev support for those platforms w

[U-Boot] [PATCH v1 1/7] usb: gadget: Do not call board_usb_xxx() directly in USB gadget drivers

2018-05-25 Thread Jean-Jacques Hiblot
Add 2 functions to wrap the calls to board_usb_init() and board_usb_cleanup(). Signed-off-by: Jean-Jacques Hiblot --- cmd/fastboot.c | 4 ++-- cmd/rockusb.c | 4 ++-- cmd/thordown.c | 4 ++-- cmd/usb_gadget_sdp.c | 4 ++-- cmd/usb_mass_storage.c

[U-Boot] [PATCH v1 2/7] usb: introduce a separate config option for DM USB device

2018-05-25 Thread Jean-Jacques Hiblot
Using CONFIG_DM_USB for this purpose prevents using DM_USB for host and not for device. Signed-off-by: Jean-Jacques Hiblot --- drivers/usb/Kconfig | 6 ++ drivers/usb/dwc3/core.c | 2 +- drivers/usb/dwc3/dwc3-generic.c | 4 +++- 3 files changed, 10 insertions(+), 2 delet

Re: [U-Boot] [PATCH] arm: Use mtune for Xscale

2018-05-25 Thread Alexey Brodkin
Hello, Just a short update. On Fri, 2018-05-25 at 12:04 +0300, Alexey Brodkin wrote: > Otherwise with GCC 8 we see this warning [which is rendered to an error > with -Werror, which happens for buildman/travisci], see [1]: > --->8--- > cc1: w

[U-Boot] [PATCH 3/4] scsi: ceva: add ls1012a soc support

2018-05-25 Thread andy.tang
From: Yuantian Tang Adjust the code structure more general so that more socs can be added easily. Add the ls1012a sata support as well. Signed-off-by: Tang Yuantian --- drivers/ata/sata_ceva.c | 87 +- 1 files changed, 55 insertions(+), 32 deletion

[U-Boot] [PATCH 4/4] arm64: ls1012ardb: enable DM support for sata

2018-05-25 Thread andy.tang
From: Yuantian Tang Enable related configs to support sata DM feature. Signed-off-by: Tang Yuantian --- configs/ls1012ardb_qspi_defconfig |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/configs/ls1012ardb_qspi_defconfig b/configs/ls1012ardb_qspi_defconfig index

[U-Boot] [PATCH 2/4] armv8: dts: fsl-ls1012a: add sata node support

2018-05-25 Thread andy.tang
From: Yuantian Tang One ls1012a, there is one SATA 3.0 advanced host controller interface which is a high-performance SATA solution that delivers comprehensive and fully-compliant generation 3 (1.5 Gb/s - 6.0 Gb/s) serial ATA capabilities, in accordance with the serial ATA revision 3.0 of Serial

[U-Boot] [PATCH 1/4] armv8: fsl: remove sata support

2018-05-25 Thread andy.tang
From: Yuantian Tang Remove the old implementation in order to enable DM for sata Signed-off-by: Tang Yuantian --- arch/arm/cpu/armv8/fsl-layerscape/soc.c| 54 arch/arm/include/asm/arch-fsl-layerscape/soc.h | 32 -- 2 files changed, 0 insertions(

[U-Boot] [PATCH] arm: Use mtune for Xscale

2018-05-25 Thread Alexey Brodkin
Otherwise with GCC 8 we see this warning [which is rendered to an error with -Werror, which happens for buildman/travisci], see [1]: --->8--- cc1: warning: switch -mcpu=xscale conflicts with -march=armv5te switch --

Re: [U-Boot] [PATCH v1 1/2] buildman: Extract environment as part of each build

2018-05-25 Thread Alex Kiernan
On Fri, May 25, 2018 at 9:05 AM Lukasz Majewski wrote: > Hi Alex, > > As we're building the boards, extract the default U-Boot environment > > to uboot.env so we can interrogate it later. > If applicable, you may also consider using: > scripts/get_default_envs.sh > script to extract default en

Re: [U-Boot] [PATCH] malloc: Use malloc simple before malloc is fully initialized in memalign()

2018-05-25 Thread Ley Foon Tan
On Fri, May 25, 2018 at 11:33 AM, Simon Glass wrote: > Hi, > > On 24 May 2018 at 21:24, Ley Foon Tan wrote: >> >> On Thu, May 24, 2018 at 12:33 AM, Simon Glass wrote: >> > Hi, >> > >> > On 23 May 2018 at 00:32, Ley Foon Tan wrote: >> >> On Sat, May 19, 2018 at 10:37 PM, Simon Glass wrote: >> >

[U-Boot] [PATCH v3 1/2] cmd: nvedit: env import can now import only variables passed as parameters

2018-05-25 Thread Quentin Schulz
While the `env export` can take as parameters variables to be exported, `env import` does not have such a mechanism of variable selection. Let's add the ability to add parameters at the end of the command for variables to be imported. Every env variable from the env to be imported passed by param

[U-Boot] [PATCH v3 2/2] test/py: add test for whitelist of variables while importing environment

2018-05-25 Thread Quentin Schulz
This tests that the importing of an environment with a specified whitelist works as intended. If there are variables passed as parameter to the env import command, those only should be imported in the current environment. For each variable passed as parameter, if - foo is bar in current env a

Re: [U-Boot] [PATCH v1 1/2] buildman: Extract environment as part of each build

2018-05-25 Thread Lukasz Majewski
Hi Alex, > As we're building the boards, extract the default U-Boot environment > to uboot.env so we can interrogate it later. If applicable, you may also consider using: scripts/get_default_envs.sh script to extract default envs (to txt file). > > Signed-off-by: Alex Kiernan > --- > > tool

[U-Boot] [PATCH v4 1/4] ata: mvebu: move mvebu sata driver to drivers/ata directory

2018-05-25 Thread make
From: Ken Ma Currently mvebu sata driver is in arch/arm/mach_mvebu directory, this patch moves it to drivers/ata directory with renaming "sata.c" to "ahci_mvebu.c" which is aligned to Linux. New ahci driver's kconfig option is added as AHCI_MVEBU which selects SCSI_AHCI and is based on AHCI. Sig

[U-Boot] [PATCH v4 0/4] ahci mvebu driver updates

2018-05-25 Thread make
From: Ken Ma These patches move ahci mvebu driver to drivers/ata directory with bug fixing and scsi supporting. Changes in v4: - Base on the latest mainline git version - Let AHCI_MVEBU depend on AHCI and select SCSI_AHCI ahci_mvebu driver is based on AHCI UCLASS, so let AHCI_MVEBU based on AHC

[U-Boot] [PATCH v4 3/4] ata: ahci_mvebu: add scsi support

2018-05-25 Thread make
From: Ken Ma Mvebu AHCI is AHCI driver which uses SCSI under the hood. This patch adjusts AHCI setup to support SCSI by creating a SCSI device as a child. Since the functions of creating SCSI device need the kconfig option DM_SCSI, so let AHCI_MVEBU select DM_SCSI. Signed-off-by: Ken Ma Reviewe

[U-Boot] [PATCH v4 4/4] arm64: mvebu: defconfig: enable CONFIG_AHCI_MVEBU

2018-05-25 Thread make
From: Ken Ma This patch enables the new ahci mvebu driver for marvell arm64 platform SOCs(A3k and A8k). And since AHCI_MVEBU selects SCSI_AHCI, so "CONFIG_SCSI_AHCI=y" is removed from those default config files. Signed-off-by: Ken Ma Reviewed-by: Stefan Roese Reviewed-by: Simon Glass --- Cha

[U-Boot] [PATCH v4 2/4] ata: ahci_mvebu: a8040 a0: remove bad port register offsets workarounds

2018-05-25 Thread make
From: David Sniatkiwicz This workaround was added for A8040/7040 A0. A8040/7040 A0 is no longer supported so this workaround can be removed. Signed-off-by: David Sniatkiwicz Signed-off-by: Ken Ma Reviewed-by: Stefan Roese Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: None

  1   2   >