Re: [U-Boot] [PATCH v3 1/5] x86: cpu: introduce scu_ipc_raw_command()

2018-09-16 Thread Bin Meng
On Mon, Sep 17, 2018 at 2:29 PM Bin Meng wrote: > > On Tue, Sep 11, 2018 at 6:33 PM Georgii Staroselskii > wrote: > > > > This interface will be used to configure properly some pins on > > Merrifield that are shared with SCU. > > > > scu_ipc_raw_command() writes SPTR and DPTR registers before sen

Re: [U-Boot] [PATCH v3 1/5] x86: cpu: introduce scu_ipc_raw_command()

2018-09-16 Thread Bin Meng
On Tue, Sep 11, 2018 at 6:33 PM Georgii Staroselskii wrote: > > This interface will be used to configure properly some pins on > Merrifield that are shared with SCU. > > scu_ipc_raw_command() writes SPTR and DPTR registers before sending > a command to SCU. > > This code has been ported from Linux

Re: [U-Boot] [PATCH v2] x86: drop custom CONFIG_SYS_BAUDRATE_TABLE define

2018-09-16 Thread Bin Meng
On Fri, Sep 7, 2018 at 3:35 PM Bin Meng wrote: > > On Fri, Sep 7, 2018 at 3:30 PM Christian Gmeiner > wrote: > > > > This will add support for a baud rate of 57600. > > > > Signed-off-by: Christian Gmeiner > > --- > > include/configs/x86-common.h | 2 -- > > 1 file changed, 2 deletions(-) > > >

Re: [U-Boot] [PATCH v3 4/8] binman: Add support for PowerPC mpc85xx 'bootpg + resetvec' entry

2018-09-16 Thread Bin Meng
On Mon, Sep 3, 2018 at 1:08 PM Jagdish Gediya wrote: > > This entry contains the PowerPC mpc85xx boot page and resetvec > sections. > > Signed-off-by: Jagdish Gediya > --- > Changes for v2: > - Updated README for new binman entry > - Added test > > Changes for v3: > - Chan

Re: [U-Boot] [PATCH v3 1/8] powerpc/dts: Define '_end' symbol in mpc85xx U-Boot lds files

2018-09-16 Thread Bin Meng
On Mon, Sep 3, 2018 at 1:08 PM Jagdish Gediya wrote: > > 'board_fdt_blob_setup' function sets up fdt blob at '&_end' so > define '_end' symbol in mpc85xx lds files. > > Signed-off-by: Jagdish Gediya > --- > Changes for v2: > - Define '_end' symbol in lds file instead of defining new >

Re: [U-Boot] [PATCH] efi_loader: Align runtime section to 64kb

2018-09-16 Thread Heinrich Schuchardt
On 09/17/2018 04:45 AM, Alexander Graf wrote: > The UEFI spec mandates that runtime sections are 64kb aligned to enable > support for 64kb page size OSs. Where in the spec did you find this? I could neither find the term "runtime section" nor "64kb" in the text. Best regards Heinrich > > This

Re: [U-Boot] [PATCH] efi_loader: Align runtime section to 64kb

2018-09-16 Thread Heinrich Schuchardt
On 09/17/2018 04:45 AM, Alexander Graf wrote: > The UEFI spec mandates that runtime sections are 64kb aligned to enable %s/kb/ kiB/g The spec requires a multiple of 64,000 not of 65,536. > support for 64kb page size OSs. > > This patch ensures that we extend the runtime section to 64kb to be spec

Re: [U-Boot] QSPI driver for Zynq and ZynqMP

2018-09-16 Thread Siva Durga Prasad Paladugu
Hi Jagan, Could you please take some time to look into this mail and let me now your comments. Thanks, Siva > -Original Message- > From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Siva > Durga Prasad Paladugu > Sent: Wednesday, September 12, 2018 2:47 PM > To: u-boot@list

[U-Boot] [PATCH 2/2] config.mk: Remove duplicated -fno-strict-aliasing

2018-09-16 Thread Bin Meng
Now that we already disable the "strict-aliasing" globally, remove the duplicates in the nds32/riscv/x86 arch-specific Makefiles. Signed-off-by: Bin Meng Reviewed-by: Rick Chen --- arch/nds32/config.mk | 2 +- arch/riscv/config.mk | 2 +- arch/x86/config.mk | 1 - 3 files changed, 2 inserti

[U-Boot] [PATCH 1/2] Makefile: Use -fno-strict-aliasing globally

2018-09-16 Thread Bin Meng
The -fstrict-aliasing option is implicitly enabled at levels -O2, -O3, -Os by GCC. This option allows the compiler to assume the strictest aliasing rules applicable to the language being compiled. For example, the practice of reading from a different union member than the one most recently written

Re: [U-Boot] [RESEND PATCH v2 14/15] riscv: Add QEMU virt board support

2018-09-16 Thread Bin Meng
Hi Lukas, On Mon, Sep 17, 2018 at 5:02 AM Auer, Lukas wrote: > > Hi Bin, > > On Mon, 2018-09-10 at 21:54 -0700, Bin Meng wrote: > > This adds QEMU RISC-V 'virt' board target support, with the hope of > > helping people easily test U-Boot on RISC-V. > > > > The QEMU virt machine models a generic R

Re: [U-Boot] [RESEND PATCH v2 15/15] riscv: Move do_reset() to a common place

2018-09-16 Thread Bin Meng
Hi Lukas, On Mon, Sep 17, 2018 at 5:09 AM Auer, Lukas wrote: > > Hi Bin, > > On Mon, 2018-09-10 at 21:54 -0700, Bin Meng wrote: > > We don't have a reset method on any RISC-V board yet. Instead of > > adding the same 'unsupported' message for each CPU variant it might > > make more sense to add a

Re: [U-Boot] [RESEND PATCH v2 08/15] riscv: Add a helper routine to print CPU information

2018-09-16 Thread Bin Meng
Hi Lukas, On Mon, Sep 17, 2018 at 4:54 AM Auer, Lukas wrote: > > Hi Bin, > > On Mon, 2018-09-10 at 21:54 -0700, Bin Meng wrote: > > This adds a helper routine to print CPU information. Currently > > it prints all the instruction set extensions that the processor > > core supports. > > > > Signed-

[U-Boot] [PATCH] efi_loader: Align runtime section to 64kb

2018-09-16 Thread Alexander Graf
The UEFI spec mandates that runtime sections are 64kb aligned to enable support for 64kb page size OSs. This patch ensures that we extend the runtime section to 64kb to be spec compliant. Signed-off-by: Alexander Graf --- lib/efi_loader/efi_memory.c | 7 --- 1 file changed, 4 insertions(+),

[U-Boot] [PATCH] efi_loader: Merge memory map entries

2018-09-16 Thread Alexander Graf
We currently do not combine memory entries that are adjacent and have the same attributes. The problem with that is that our memory map can easily grow multiple hundreds of entries in a simple UEFI Shell environment. So let's make sure we always combine all entries to make the memory map as small

Re: [U-Boot] [PATCH 4/4] u-boot: Upgrade 2018.07 -> 2018.09

2018-09-16 Thread Otavio Salvador
On Sun, Sep 16, 2018 at 6:16 PM Otavio Salvador wrote: > > This upgrades U-Boot to 2018.09 release and drop the backported > security fixes which are now included upstream. > > Signed-off-by: Otavio Salvador When I mentioned, on IRC, about this bump to Marek, he mentioned that there is a regress

[U-Boot] [PATCH 4/4] u-boot: Upgrade 2018.07 -> 2018.09

2018-09-16 Thread Otavio Salvador
This upgrades U-Boot to 2018.09 release and drop the backported security fixes which are now included upstream. Signed-off-by: Otavio Salvador --- .../u-boot/files/CVE-2018-1000205-1.patch | 59 .../u-boot/files/CVE-2018-1000205-2.patch | 143 -- ..._2018.07.in

Re: [U-Boot] [RESEND PATCH v2 15/15] riscv: Move do_reset() to a common place

2018-09-16 Thread Auer, Lukas
Hi Bin, On Mon, 2018-09-10 at 21:54 -0700, Bin Meng wrote: > We don't have a reset method on any RISC-V board yet. Instead of > adding the same 'unsupported' message for each CPU variant it might > make more sense to add a generic do_reset function for all CPU > variants to lib/, similar to the on

Re: [U-Boot] [RESEND PATCH v2 14/15] riscv: Add QEMU virt board support

2018-09-16 Thread Auer, Lukas
Hi Bin, On Mon, 2018-09-10 at 21:54 -0700, Bin Meng wrote: > This adds QEMU RISC-V 'virt' board target support, with the hope of > helping people easily test U-Boot on RISC-V. > > The QEMU virt machine models a generic RISC-V virtual machine with > support for the VirtIO standard networking and b

Re: [U-Boot] [RESEND PATCH v2 13/15] riscv: kconfig: Select DM and OF_CONTROL

2018-09-16 Thread Auer, Lukas
On Mon, 2018-09-10 at 21:54 -0700, Bin Meng wrote: > RISC-V is a pretty new architecture and should support DM and > OF_CONTROL by default. > > Signed-off-by: Bin Meng > Reviewed-by: Lukas Auer ___ U-Boot mailing list U-Boot@lists.denx.de https://lis

Re: [U-Boot] [RESEND PATCH v2 12/15] riscv: ae350: Clean up mixed tabs and spaces in the dts

2018-09-16 Thread Auer, Lukas
On Mon, 2018-09-10 at 21:54 -0700, Bin Meng wrote: > There are quite a lot of mixed tabs and spaces in the ae350.dts. > Clean them up. > > Signed-off-by: Bin Meng > Reviewed-by: Lukas Auer ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.de

Re: [U-Boot] [RESEND PATCH v2 11/15] riscv: Make start.S available for all targets

2018-09-16 Thread Auer, Lukas
On Mon, 2018-09-10 at 21:54 -0700, Bin Meng wrote: > Currently start.S is inside arch/riscv/cpu/ax25/, but it can be > common for all RISC-V targets. > > Signed-off-by: Bin Meng > Reviewed-by: Lukas Auer ___ U-Boot mailing list U-Boot@lists.denx.de h

Re: [U-Boot] [RESEND PATCH v2 10/15] riscv: bootm: Pass mhartid CSR value to kernel

2018-09-16 Thread Auer, Lukas
On Mon, 2018-09-10 at 21:54 -0700, Bin Meng wrote: > So far this is hardcoded to zero, and we should read the value from > mhartid CSR and pass it to Linux kernel. > > Suggested-by: Lukas Auer > Signed-off-by: Bin Meng > > Reviewed-by: Lukas Auer _

Re: [U-Boot] [RESEND PATCH v2 09/15] riscv: Remove CSR read/write defines in encoding.h

2018-09-16 Thread Auer, Lukas
On Mon, 2018-09-10 at 21:54 -0700, Bin Meng wrote: > There is no reason to keep two versions of CSR read/write defines > in encoding.h. We already have one set of defines in csr.h, which > is from Linux kernel, and let's drop the one in encoding.h. > > Signed-off-by: Bin Meng > > Reviewed-by:

Re: [U-Boot] [RESEND PATCH v2 08/15] riscv: Add a helper routine to print CPU information

2018-09-16 Thread Auer, Lukas
Hi Bin, On Mon, 2018-09-10 at 21:54 -0700, Bin Meng wrote: > This adds a helper routine to print CPU information. Currently > it prints all the instruction set extensions that the processor > core supports. > > Signed-off-by: Bin Meng > --- > > Changes in v2: None > > arch/riscv/Makefile

Re: [U-Boot] [RESEND PATCH v2 07/15] riscv: Explicitly pass -march and -mabi to the compiler

2018-09-16 Thread Auer, Lukas
On Mon, 2018-09-10 at 21:54 -0700, Bin Meng wrote: > At present the compiler flag against which architecture and abi > variant the riscv image is built for is not explicitly indicated > which means the default compiler configuration is used. But this > does not work if we want to build a different

Re: [U-Boot] [RESEND PATCH v2 06/15] riscv: Fix coding style issues in the linker script

2018-09-16 Thread Auer, Lukas
On Mon, 2018-09-10 at 21:54 -0700, Bin Meng wrote: > There are several coding style issues in the linker script. Fix them. > > Signed-off-by: Bin Meng > Reviewed-by: Lukas Auer ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listin

Re: [U-Boot] [RESEND PATCH v2 05/15] riscv: Move the linker script to the CPU root directory

2018-09-16 Thread Auer, Lukas
On Mon, 2018-09-10 at 21:54 -0700, Bin Meng wrote: > The linker script can be shared by all RISC-V targets. Move it to > a common place. > > Signed-off-by: Bin Meng > Reviewed-by: Lukas Auer ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.

Re: [U-Boot] [RESEND PATCH v2 04/15] riscv: Remove mach type

2018-09-16 Thread Auer, Lukas
On Mon, 2018-09-10 at 21:54 -0700, Bin Meng wrote: > Since the mach_id is not used by RISC-V, remove it. > > Signed-off-by: Bin Meng > Reviewed-by: Lukas Auer ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [RESEND PATCH v2 03/15] riscv: bootm: Correct the 1st kernel argument to hart id

2018-09-16 Thread Auer, Lukas
On Mon, 2018-09-10 at 21:54 -0700, Bin Meng wrote: > The first argument of Linux kernel is the risc-v core hart id, > from which the kernel is booted from. It is not the mach_id, > which seems to be copied from arm. > > While we are here, this also changes the Linux kernel entry > parameters' type

Re: [U-Boot] [RESEND PATCH v2 02/15] riscv: Remove setup.h

2018-09-16 Thread Auer, Lukas
On Mon, 2018-09-10 at 21:54 -0700, Bin Meng wrote: > This was copied from ARM, and does not apply to RISC-V. While we > are here, bootm.h is eventually removed as its content is only > the inclusion of setup.h. > > Signed-off-by: Bin Meng > Reviewed-by: Lukas Auer _

Re: [U-Boot] [RESEND PATCH v2 01/15] riscv: kconfig: Normalize architecture name spelling

2018-09-16 Thread Auer, Lukas
On Mon, 2018-09-10 at 21:54 -0700, Bin Meng wrote: > It's RISC-V that is the official name, not RISCV. > > Signed-off-by: Bin Meng > Reviewed-by: Lukas Auer ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH v2 07/13] x86: Fix signed shift overflow in MSR_IA32_APICBASE_BASE

2018-09-16 Thread Eugeniu Rosca
Hi Bin, Apologize for the delay. I came back from vacation a few days ago. On Tue, Sep 04, 2018 at 12:00:14PM +0800, Bin Meng wrote: > Hi Eugeniu, > > On Sat, Sep 1, 2018 at 6:59 PM Eugeniu Rosca wrote: [..] > > Just wanted to let you know that coreboot folks are going through > > similar disc

[U-Boot] [PATCH 3/6] Kconfig: tegra: Migrate SYS_I2C_TEGRA

2018-09-16 Thread Peter Robinson
Migrate SYS_I2C_TEGRA from headers to Kconfig Signed-off-by: Peter Robinson Cc: Tom Warren Cc: Stephen Warren Cc: Heiko Schocher Cc: Marcel Ziswiler Cc: peter.ch...@data61.csiro.au Cc: Lucas Stach Cc: Stefan Agner Cc: Alban Bedel Cc: Allen Martin --- configs/apalis-tk1_defconfig | 1

[U-Boot] [PATCH 2/6] tegra20: common: fix USB_EHCI_TXFIFO_THRESH value

2018-09-16 Thread Peter Robinson
All other Tegra devices that define USB_EHCI_TXFIFO_THRESH use hex representation, fix tegra20 to be the same format. Signed-off-by: Peter Robinson Cc: Tom Warren Cc: Stephen Warren --- include/configs/tegra20-common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include

[U-Boot] [PATCH 4/6] Kconfig: tegra: Migrate USB_EHCI_TEGRA

2018-09-16 Thread Peter Robinson
Migrate USB_EHCI_TEGRA from headers to Kconfig Signed-off-by: Peter Robinson Cc: Tom Warren Cc: Stephen Warren Cc: Marek Vasut Cc: Marcel Ziswiler Cc: peter.ch...@data61.csiro.au Cc: Lucas Stach Cc: Stefan Agner Cc: Alban Bedel Cc: Allen Martin --- configs/apalis-tk1_defconfig | 1 + co

[U-Boot] [PATCH 6/6] nyan-big: drop CONFIG_KEYBOARD

2018-09-16 Thread Peter Robinson
The CONFIG_KEYBOARD does nothing as it's legacy and unused so just drop it from the config. Signed-off-by: Peter Robinson Cc: Tom Warren Cc: Stephen Warren Cc: Allen Martin --- include/configs/nyan-big.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/configs/nyan-big.h b/include

[U-Boot] [PATCH 5/6] Kconfig: tegra: Migrate TEGRA_KEYBOARD

2018-09-16 Thread Peter Robinson
Migrate TEGRA_KEYBOARD from headers to Kconfig, only the seaboard uses it but we drop CONFIG_KEYBOARD as the driver doesn't use the legacy drv_keyboard_init. Signed-off-by: Peter Robinson Cc: Tom Warren Cc: Stephen Warren --- configs/seaboard_defconfig | 1 + drivers/input/Kconfig| 6

[U-Boot] [PATCH 1/6] tegra: cleanup dangling comments in include/configs

2018-09-16 Thread Peter Robinson
There's a number of dangling comments in various tegra configs post migrations of various configs so lets clean them up. Signed-off-by: Peter Robinson Cc: Tom Warren Cc: Stephen Warren Cc: Marcel Ziswiler Cc: Tom Warren Cc: Stephen Warren Cc: peter.ch...@data61.csiro.au Cc: Lucas Stach Cc:

[U-Boot] Some tegra cleanups and Kconfig migrations

2018-09-16 Thread Peter Robinson
The following patches are a few cleanups to dangling comments from Kconfig cleanups and migrations of SYS_I2C_TEGRA, USB_EHCI_TEGRA and TEGRA_KEYBOARD. There's also a couple of other minors fixes and cleanups as well. ___ U-Boot mailing list U-Boot@lists.

Re: [U-Boot] [RESEND PATCH v2 00/15] riscv: Add QEMU virt board support

2018-09-16 Thread Bin Meng
Hi Rick, On Tue, Sep 11, 2018 at 12:50 PM Bin Meng wrote: > > This series adds QEMU RISC-V 'virt' board target support, with the > hope of helping people easily test U-Boot on RISC-V. > > Some existing RISC-V codes have been changed to make it easily to > support new targets. Some spotted coding