Re: [U-Boot] [PATCH 22/30] riscv: remove unused labels in start.S

2018-10-30 Thread Auer, Lukas
Hi Rick, On Tue, 2018-10-30 at 09:49 +0800, Rick Chen wrote: > Auer, Lukas 於 2018年10月30日 週二 > 上午12:43寫道: > > > > Hi Rick, > > > > On Thu, 2018-10-25 at 15:56 +, Auer, Lukas wrote: > > > Hi Rick, > > > > > > On Thu, 2018-10-25 at 09:

Re: [U-Boot] [PATCH 22/30] riscv: remove unused labels in start.S

2018-10-29 Thread Auer, Lukas
Hi Rick, On Thu, 2018-10-25 at 15:56 +, Auer, Lukas wrote: > Hi Rick, > > On Thu, 2018-10-25 at 09:16 +0800, Rick Chen wrote: > > Auer, Lukas 於 2018年10月24日 週三 > > 下午10:14寫道: > > > > > > Hi Rick, > > > > > > On Wed, 2018-10-24 at 13

Re: [U-Boot] [PATCH] riscv: cache: Implement i/dcache [status, enable, disable]

2018-10-29 Thread Auer, Lukas
Hi Rick, On Mon, 2018-10-29 at 11:16 +0800, Rick Chen wrote: > Auer, Lukas 於 2018年10月27日 週六 > 上午12:32寫道: > > > > Hi Rick, > > > > On Mon, 2018-10-22 at 16:16 +0800, Andes wrote: > > > From: Rick Chen > > > > > > AndeStar V5 provide m

Re: [U-Boot] [PATCH] riscv: cache: Implement i/dcache [status, enable, disable]

2018-10-26 Thread Auer, Lukas
Hi Rick, On Mon, 2018-10-22 at 16:16 +0800, Andes wrote: > From: Rick Chen > > AndeStar V5 provide mcache_ctl register which can configure > I/D cache as enabled or disabled. > > This CSR will be encapsulated by CONFIG_NDS_V5. > If you want to configure cache on AndeStar V5 > AE350 platform. YO

Re: [U-Boot] FW: [PATCH 18/30] riscv: invalidate the instruction cache before jumping to Linux

2018-10-26 Thread Auer, Lukas
Hi Rick, On Mon, 2018-10-22 at 09:39 +0800, Rick Chen wrote: > > From: Lukas Auer [mailto:lukas.a...@aisec.fraunhofer.de] > > Sent: Saturday, October 20, 2018 6:08 AM > > To: u-boot@lists.denx.de > > Cc: Bin Meng; Lukas Auer; Greentime Hu; Alexander Graf; Rick Jian- > > Zhi Chen(陳建志) > > Subject:

Re: [U-Boot] [PATCH 00/30] General fixes / cleanup for RISC-V and improvements to qemu-riscv

2018-10-26 Thread Auer, Lukas
Hi Bin, On Fri, 2018-10-26 at 21:20 +0800, Bin Meng wrote: > Hi Lukas, > > On Mon, Oct 22, 2018 at 5:37 PM Bin Meng wrote: > > > > Hi Lukas, > > > > On Sat, Oct 20, 2018 at 6:08 AM Lukas Auer > > wrote: > > > > > > > > > This patch series includes general fixes and cleanup for RISC-V. > > >

Re: [U-Boot] [PATCH 26/30] bdinfo: riscv: print fdt_blob address

2018-10-26 Thread Auer, Lukas
Hi Rick and Bin, On Wed, 2018-10-24 at 14:54 +0800, Rick Chen wrote: > > > > Print the address of the u-boot device tree. > > > > > > > > > > This is unnecessary as it is already done by 'fdt' command. > > > > > Hi Bin & Lukas > > At the beginning, I really don't understand the fdt Usage: > M

Re: [U-Boot] [PATCH 29/30] dm: core: add missing prototype for ofnode_read_u64

2018-10-25 Thread Auer, Lukas
Hi Bin, On Mon, 2018-10-22 at 17:35 +0800, Bin Meng wrote: > Hi Lukas, > > On Sat, Oct 20, 2018 at 6:11 AM Lukas Auer > wrote: > > > > Signed-off-by: Lukas Auer > > --- > > > > include/dm/ofnode.h | 10 ++ > > 1 file changed, 10 insertions(+) > > > > diff --git a/include/dm/ofnode.h

Re: [U-Boot] [PATCH 22/30] riscv: remove unused labels in start.S

2018-10-25 Thread Auer, Lukas
Hi Rick, On Thu, 2018-10-25 at 09:16 +0800, Rick Chen wrote: > Auer, Lukas 於 2018年10月24日 週三 > 下午10:14寫道: > > > > Hi Rick, > > > > On Wed, 2018-10-24 at 13:47 +0800, Rick Chen wrote: > > > Rick Chen 於 2018年10月24日 週三 下午1:20寫道: > > >

Re: [U-Boot] [PATCH 21/30] riscv: remove CONFIG_INIT_CRITICAL

2018-10-25 Thread Auer, Lukas
Hi Bin, On Thu, 2018-10-25 at 10:57 +0800, Bin Meng wrote: > Hi Lukas, > > On Mon, Oct 22, 2018 at 5:19 PM Bin Meng wrote: > > > > Hi Lukas, > > > > On Sat, Oct 20, 2018 at 6:10 AM Lukas Auer > > wrote: > > > > > > CONFIG_INIT_CRITICAL is deprecated and not used for RISC-V. > > > Remove it.

Re: [U-Boot] [PATCH 13/30] riscv: do not reimplement generic io functions

2018-10-25 Thread Auer, Lukas
Hi Bin, On Mon, 2018-10-22 at 15:36 +0800, Bin Meng wrote: > Hi Lukas, > > On Sat, Oct 20, 2018 at 6:10 AM Lukas Auer > wrote: > > > > RISC-V u-boot reimplements the generic io functions from > > nits: U-Boot > Fixed in v2. Thanks, Lukas > > asm-generic/io.h. Remove the redundant implement

Re: [U-Boot] [PATCH 12/30] riscv: make use of the barrier functions from Linux

2018-10-25 Thread Auer, Lukas
Hi Bin, On Mon, 2018-10-22 at 15:36 +0800, Bin Meng wrote: > Hi Lukas, > > On Sat, Oct 20, 2018 at 6:10 AM Lukas Auer > wrote: > > > > Replace the barrier functions in arch/riscv/include/asm/io.h with > > those > > defined in barrier.h, which is imported from Linux. This version is > > modified

Re: [U-Boot] [PATCH 11/30] riscv: fix use of incorrectly sized variables

2018-10-25 Thread Auer, Lukas
Hi Rick and Bin, On Tue, 2018-10-23 at 13:52 +0800, Rick Chen wrote: > > > -static void _exit_trap(int code, uint epc, struct pt_regs *regs) > > > +static void _exit_trap(ulong code, ulong epc, struct pt_regs > > > *regs) > > > { > > > static const char * const exception_code[] = { > > >

Re: [U-Boot] [PATCH 09/30] riscv: move target selection into separate file

2018-10-25 Thread Auer, Lukas
Hi Bin, On Mon, 2018-10-22 at 15:22 +0800, Bin Meng wrote: > Hi Lukas, > > On Sat, Oct 20, 2018 at 6:10 AM Lukas Auer > wrote: > > > > Move the target selection into a separate file (Kconfig.board) to > > avoid > > clutter once we support more boards. > > > > Signed-off-by: Lukas Auer > > ---

Re: [U-Boot] [PATCH 09/30] riscv: move target selection into separate file

2018-10-25 Thread Auer, Lukas
Hi Bin, On Thu, 2018-10-25 at 10:50 +0800, Bin Meng wrote: > On Tue, Oct 23, 2018 at 10:48 AM Rick Chen > wrote: > > > > > > Subject: Re: [PATCH 09/30] riscv: move target selection into > > > > separate file > > > > > > > > Hi Lukas, > > > > > > > > On Sat, Oct 20, 2018 at 6:10 AM Lukas Auer <

Re: [U-Boot] [PATCH] riscv: ax25-ae350: Pass dtb address to u-boot with a1 register

2018-10-25 Thread Auer, Lukas
Hi Rick, On Thu, 2018-10-25 at 11:28 +0800, Rick Chen wrote: > Bin Meng 於 2018年10月25日 週四 上午11:16寫道: > > > > Hi Rick, > > > > On Thu, Oct 25, 2018 at 11:11 AM Rick Chen > > wrote: > > > > > > Bin Meng 於 2018年10月25日 週四 上午10:33寫道: > > > > > > > > Hi Rick, > > > > > > > > On Thu, Oct 25, 2018

Re: [U-Boot] [PATCH 07/30] riscv: set -march and -mabi based on the Kconfig configuration

2018-10-24 Thread Auer, Lukas
Hi Bin, On Mon, 2018-10-22 at 15:21 +0800, Bin Meng wrote: > Hi Lukas, > > On Sat, Oct 20, 2018 at 6:09 AM Lukas Auer > wrote: > > > > Use the new Kconfig entries to construct the ISA string for the > > -march > > compiler flag. The -mabi compiler flag is selected based on the > > base > > inte

Re: [U-Boot] [PATCH 06/30] riscv: add Kconfig entries for the C and A ISA extensions

2018-10-24 Thread Auer, Lukas
Hi Bin, On Wed, 2018-10-24 at 23:32 +0800, Bin Meng wrote: > Hi Lukas, > > On Wed, Oct 24, 2018 at 11:21 PM Auer, Lukas > wrote: > > > > Hi Bin, > > > > On Mon, 2018-10-22 at 15:21 +0800, Bin Meng wrote: > > > Hi Lukas, > > > > &g

Re: [U-Boot] [PATCH 06/30] riscv: add Kconfig entries for the C and A ISA extensions

2018-10-24 Thread Auer, Lukas
Hi Bin, On Mon, 2018-10-22 at 15:21 +0800, Bin Meng wrote: > Hi Lukas, > > On Sat, Oct 20, 2018 at 6:09 AM Lukas Auer > wrote: > > > > Add Kconfig entries for the C (compressed instructions) and A > > (atomic > > instructions) ISA extensions. Only the C ISA extension is > > selectable. > > This

Re: [U-Boot] [PATCH 04/30] riscv: rename CPU_RISCV_32/64 to match architecture names ARCH_RV32I/64I

2018-10-24 Thread Auer, Lukas
Hi Bin, On Mon, 2018-10-22 at 14:23 +0800, Bin Meng wrote: > Hi Lukas, > > On Sat, Oct 20, 2018 at 6:09 AM Lukas Auer > wrote: > > > > RISC-V defines the base integer instruction sets as RV32I and > > RV64I. > > Rename CPU_RISCV_32 and CPU_RISCV_64 to ARCH_RV32I and ARCH_64I to > > match > > A

Re: [U-Boot] FW: [PATCH 02/30] riscv: ignore device tree binaries

2018-10-24 Thread Auer, Lukas
Hi Rick and Bin, On Tue, 2018-10-23 at 09:30 +0800, Rick Chen wrote: > > From: Bin Meng [mailto:bmeng...@gmail.com] > > Sent: Monday, October 22, 2018 2:16 PM > > To: Lukas Auer > > Cc: U-Boot Mailing List; Rick Jian-Zhi Chen(陳建志) > > Subject: Re: [PATCH 02/30] riscv: ignore device tree binaries >

Re: [U-Boot] [PATCH 22/30] riscv: remove unused labels in start.S

2018-10-24 Thread Auer, Lukas
Hi Rick, On Wed, 2018-10-24 at 13:47 +0800, Rick Chen wrote: > Rick Chen 於 2018年10月24日 週三 下午1:20寫道: > > > > Bin Meng 於 2018年10月24日 週三 上午11:34寫道: > > > > > > Hi Rich, > > > > > > On Wed, Oct 24, 2018 at 10:37 AM Rick Chen > > > wrote: > > > > > > > > > > > The labels nmi_vector, trap_vector

Re: [U-Boot] [PATCH v3 00/17] riscv: Add QEMU virt board support

2018-10-04 Thread Auer, Lukas
Hi Bin, On Thu, 2018-10-04 at 15:01 +0800, Bin Meng wrote: > Hi Lukas, > > On Thu, Oct 4, 2018 at 12:45 AM Auer, Lukas > wrote: > > > > Hi Bin, > > > > On Wed, 2018-09-26 at 06:55 -0700, Bin Meng wrote: > > > This series adds QEMU RISC-V 'vir

Re: [U-Boot] [PATCH v3 00/17] riscv: Add QEMU virt board support

2018-10-03 Thread Auer, Lukas
Hi Bin, On Wed, 2018-09-26 at 06:55 -0700, 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 s

Re: [U-Boot] [PATCH v3 05/17] riscv: cmd: bdinfo: Print the relocation address

2018-09-30 Thread Auer, Lukas
On Wed, 2018-09-26 at 06:55 -0700, Bin Meng wrote: > Add printing of U-Boot relocation address. > > Signed-off-by: Bin Meng > > --- > > Changes in v3: > - net patch to print the relocation address in cmd 'bdinfo' > > Changes in v2: None > > cmd/bdinfo.c | 2 ++ > 1 file changed, 2 insertions

Re: [U-Boot] [PATCH v3 15/17] riscv: kconfig: Imply DM support for some common drivers

2018-09-30 Thread Auer, Lukas
On Wed, 2018-09-26 at 06:55 -0700, Bin Meng wrote: > This implies DM support for some common drivers that are used on > RISC-V. > > Signed-off-by: Bin Meng > > --- > > Changes in v3: > - new patch to imply DM support for some common drivers > > Changes in v2: None > > arch/Kconfig

Re: [U-Boot] [PATCH v3 17/17] riscv: Move do_reset() to a common place

2018-09-30 Thread Auer, Lukas
Hi Bin, On Wed, 2018-09-26 at 06:55 -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 15/15] riscv: Move do_reset() to a common place

2018-09-18 Thread Auer, Lukas
Hi Bin, On Tue, 2018-09-18 at 16:50 +0800, Bin Meng wrote: > Hi Lukas, > > On Tue, Sep 18, 2018 at 6:01 AM Auer, Lukas > wrote: > > > > Hi Bin, > > > > On Mon, 2018-09-17 at 13:02 +0800, Bin Meng wrote: > > > Hi Lukas, > > > > >

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

2018-09-18 Thread Auer, Lukas
Hi Bin, On Tue, 2018-09-18 at 16:53 +0800, Bin Meng wrote: > Hi Lukas, > > On Tue, Sep 18, 2018 at 5:59 AM Auer, Lukas > wrote: > > > > Hi Bin, > > > > On Mon, 2018-09-17 at 12:55 +0800, Bin Meng wrote: > > > Hi Lukas, > > > > >

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

2018-09-17 Thread Auer, Lukas
Hi Bin, On Mon, 2018-09-17 at 13:02 +0800, Bin Meng wrote: > 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

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

2018-09-17 Thread Auer, Lukas
Hi Bin, On Mon, 2018-09-17 at 12:55 +0800, Bin Meng wrote: > 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 C

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

2018-09-17 Thread Auer, Lukas
Hi Bin, On Mon, 2018-09-17 at 13:18 +0800, Bin Meng wrote: > 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 '

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 12/12] riscv: Add QEMU virt board support

2018-09-06 Thread Auer, Lukas
Hi Bin, On Thu, 2018-09-06 at 11:15 +0800, Bin Meng wrote: > Hi Lukas, > > On Wed, Sep 5, 2018 at 5:37 PM Auer, Lukas > wrote: > > > > On Wed, 2018-09-05 at 10:34 +0800, Bin Meng wrote: > > > Hi Rick, > > > > > > On

Re: [U-Boot] [PATCH 12/12] riscv: Add QEMU virt board support

2018-09-06 Thread Auer, Lukas
Hi Bin, On Thu, 2018-09-06 at 11:14 +0800, Bin Meng wrote: > Hi Lukas, > > On Wed, Sep 5, 2018 at 5:35 PM Auer, Lukas > wrote: > > > > On Wed, 2018-09-05 at 09:28 +0800, Rick Chen wrote: > > > > > From: Auer, Lukas [mailto:lukas.a...@aisec.fraunhofer.de

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

2018-09-06 Thread Auer, Lukas
Hi Bin, On Thu, 2018-09-06 at 10:57 +0800, Bin Meng wrote: > Hi Lukas, > > On Tue, Sep 4, 2018 at 5:41 AM Auer, Lukas > wrote: > > > > On Thu, 2018-08-30 at 00:54 -0700, Bin Meng wrote: > > > The first argument of Linux kernel is the risc-v core hart id, >

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

2018-09-06 Thread Auer, Lukas
Hi Bin, On Thu, 2018-09-06 at 11:03 +0800, Bin Meng wrote: > Hi Lukas, > > On Tue, Sep 4, 2018 at 5:42 AM Auer, Lukas > wrote: > > > > On Thu, 2018-08-30 at 00:54 -0700, Bin Meng wrote: > > > This adds a helper routine to print CPU information. Currently > &

Re: [U-Boot] [PATCH 12/12] riscv: Add QEMU virt board support

2018-09-05 Thread Auer, Lukas
On Wed, 2018-09-05 at 10:34 +0800, Bin Meng wrote: > Hi Rick, > > On Wed, Sep 5, 2018 at 9:27 AM Rick Chen > wrote: > > > > > > From: Auer, Lukas [mailto:lukas.a...@aisec.fraunhofer.de] > > > > Sent: Wednesday, September 05, 2018 5:53 AM > > &

Re: [U-Boot] [PATCH 12/12] riscv: Add QEMU virt board support

2018-09-05 Thread Auer, Lukas
On Wed, 2018-09-05 at 09:28 +0800, Rick Chen wrote: > > > From: Auer, Lukas [mailto:lukas.a...@aisec.fraunhofer.de] > > > Sent: Wednesday, September 05, 2018 5:53 AM > > > To: bmeng...@gmail.com > > > Cc: Rick Jian-Zhi Chen(陳建志); u-boot@lists.denx.de >

Re: [U-Boot] [PATCH 12/12] riscv: Add QEMU virt board support

2018-09-04 Thread Auer, Lukas
On Tue, 2018-09-04 at 17:31 +0800, Bin Meng wrote: > Hi Lukas, > > On Tue, Sep 4, 2018 at 5:39 AM Auer, Lukas > wrote: > > > > On Thu, 2018-08-30 at 00:54 -0700, Bin Meng wrote: > > > This adds QEMU RISC-V 'virt' board target support, with the hope

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

2018-09-03 Thread Auer, Lukas
On Thu, 2018-08-30 at 00: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 > --- > > arch/riscv/Makefile | 1 + > arch/riscv/cpu/Mak

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

2018-09-03 Thread Auer, Lukas
On Thu, 2018-08-30 at 00: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. > > Signed-off-by: Bin Meng > --- > > arch/riscv/lib/bootm.c | 18 +

Re: [U-Boot] [PATCH 12/12] riscv: Add QEMU virt board support

2018-09-03 Thread Auer, Lukas
On Thu, 2018-08-30 at 00: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 block stor

Re: [U-Boot] [PATCH v4 2/2] imx: mx7: run sec_init for CAAM RNG

2018-01-26 Thread Auer, Lukas
On Fri, 2018-01-26 at 16:27 +, Bryan O'Donoghue wrote: > This patch adds a sec_init call into arch_misc_init(). Doing so in > conjunction with the patch "drivers/crypto/fsl: assign job-rings to > non-TrustZone" enables use of the CAAM in Linux when OPTEE/TrustZone > is > active. > > u-boot wil

Re: [U-Boot] [RESEND PATCH v3 2/2] imx: mx7: run sec_init for CAAM RNG

2018-01-26 Thread Auer, Lukas
On Fri, 2018-01-26 at 12:24 +, Bryan O'Donoghue wrote: > This patch adds a sec_init call into arch_misc_init(). Doing so in > conjunction with the patch "drivers/crypto/fsl: assign job-rings to > non-TrustZone" enables use of the CAAM in Linux when OPTEE/TrustZone > is > active. > > u-boot wil

Re: [U-Boot] [PATCH v2 2/2] warp7 : run sec_init for CAAM RNG

2018-01-26 Thread Auer, Lukas
On Fri, 2018-01-26 at 11:32 +, Bryan O'Donoghue wrote: > > On 26/01/18 09:09, Auer, Lukas wrote: > > Hi Bryan, > > > > this fails to apply for me on current HEAD. It seems like you have > > additional modifications to wrap7.c in your tree (there is

Re: [U-Boot] [PATCH v2 2/2] warp7 : run sec_init for CAAM RNG

2018-01-26 Thread Auer, Lukas
On Fri, 2018-01-26 at 02:09 +, Bryan O'Donoghue wrote: > This patch adds a sec_init call into board_init. Doing so in > conjunction > with the patch "drivers/crypto/fsl: assign job-rings to non- > TrustZone" > enables use of the CAAM in Linux when OPTEE/TrustZone is active. > > u-boot will ini

Re: [U-Boot] [PATCH v2 1/2] drivers/crypto/fsl: assign job-rings to non-TrustZone

2018-01-26 Thread Auer, Lukas
On Fri, 2018-01-26 at 02:09 +, Bryan O'Donoghue wrote: > After enabling TrustZone various parts of the CAAM silicon become > inaccessible to non TrustZone contexts. The job-ring registers are > designed > to allow non TrustZone contexts like Linux to still submit jobs to > CAAM > even after Tru

Re: [U-Boot] [PATCH] crypto/fsl: instantiate all rng state handles

2018-01-25 Thread Auer, Lukas
On Thu, 2018-01-25 at 15:53 +, Bryan O'Donoghue wrote: > > On 25/01/18 13:11, Lukas Auer wrote: > > Extend the instantiate_rng() function and the corresponding CAAM > > job > > descriptor to instantiate all RNG state handles. This moves the RNG > > instantiation code in line with the CAAM kern

Re: [U-Boot] [PATCH 0/2] Fix CAAM for TrustZone enable for warp7

2018-01-25 Thread Auer, Lukas
On Wed, 2018-01-24 at 19:41 +, Bryan O'Donoghue wrote: > > On 24/01/18 17:41, Auer, Lukas wrote: > > Thanks for adding me to the CC list. > > I have experienced the same thing regarding the dec0 registers. > > However, I don't understand why you wan

Re: [U-Boot] [PATCH 0/2] Fix CAAM for TrustZone enable for warp7

2018-01-24 Thread Auer, Lukas
On Wed, 2018-01-24 at 14:35 +, Bryan O'Donoghue wrote: > > On 24/01/18 12:52, Auer, Lukas wrote: > > On Tue, 2018-01-23 at 21:10 +, Bryan O'Donoghue wrote: > > > This series is the u-boot fix to a problem we encountered when > > > enabling > &g

Re: [U-Boot] [PATCH 0/2] Fix CAAM for TrustZone enable for warp7

2018-01-24 Thread Auer, Lukas
On Tue, 2018-01-23 at 21:10 +, Bryan O'Donoghue wrote: > This series is the u-boot fix to a problem we encountered when > enabling > OPTEE/TrustZone on the WaRP7. The symptom is once TrustZone is > activated > the first page of CAAM registers becomes read-only, read-zero from > the > perspectiv

<    1   2   3