Re: [U-Boot] [EXT] Re: [PATCH 1/1] nvme: Fix PRP Offset Invalid

2019-08-21 Thread Aaron Williams
Hi Bin, On Wednesday, August 21, 2019 8:23:50 AM PDT Bin Meng wrote: > Hi Aaron, > > On Wed, Aug 21, 2019 at 7:26 PM Aaron Williams wrote: > > Hi Bin, > > > > I submitted another patch via git. Hopefully it went through. I'm new to > > trying to get email to work with GIT since until now

Re: [U-Boot] [PATCH] nvme: Fix PRP Offset Invalid

2019-08-21 Thread Bin Meng
Hi Aaron, On Wed, Aug 21, 2019 at 10:09 PM Aaron Williams wrote: > > From: Aaron Williams > > When large writes take place I saw a Samsung EVO 970+ return a status > value of 0x13, PRP Offset Invalid. I tracked this down to the > improper handling of PRP entries. The blocks the PRP entries

Re: [U-Boot] [EXT] Re: [PATCH 1/1] nvme: Fix PRP Offset Invalid

2019-08-21 Thread Bin Meng
Hi Aaron, On Thu, Aug 22, 2019 at 6:06 AM Aaron Williams wrote: > > Hi Bin, > > On Wednesday, August 21, 2019 8:23:50 AM PDT Bin Meng wrote: > > Hi Aaron, > > > > On Wed, Aug 21, 2019 at 7:26 PM Aaron Williams > wrote: > > > Hi Bin, > > > > > > I submitted another patch via git. Hopefully it

Re: [U-Boot] [PATCH] sunxi: H6: DRAM: Add support for half DQ

2019-08-21 Thread Jernej Škrabec
Dne sreda, 21. avgust 2019 ob 13:07:13 CEST je Andre Przywara napisal(a): > On Wed, 21 Aug 2019 08:01:31 +0200 > Jernej Škrabec wrote: > > Hi, > > > Dne sreda, 21. avgust 2019 ob 02:31:04 CEST je André Przywara napisal(a): > > > On 17/07/2019 23:16, Jernej Skrabec wrote: > > > > Half DQ

Re: [U-Boot] [PATCH 1/1] serial: ns16550: Read reg-io-type from device tree

2019-08-21 Thread Bin Meng
Hi Aiden, On Thu, Aug 22, 2019 at 12:40 AM Park, Aiden wrote: > > Hi Andy/Bin, > > > -Original Message- > > From: Bin Meng [mailto:bmeng...@gmail.com] > > Sent: Wednesday, August 21, 2019 2:45 AM > > To: Andy Shevchenko > > Cc: Park, Aiden ; u-boot@lists.denx.de > > Subject: Re:

[U-Boot] [PATCH v3 3/4] SDP: fix wrong usb request size and add high speed endpoint descriptor

2019-08-21 Thread Sherry Sun
Because the buffer length of sdp usb request is 65, we have to allocate 65 bytes not 64 bytes. Otherwise there is potential buffer overflow. So the wMaxPacketSize of fullspeed can't meet the needs. Add HS endpoint descriptor for SDP. Then we can use high speed endpoint, and the SDP device can

[U-Boot] [PATCH v3 1/4] imx: spl: Change USB boot device type for imx8/8m

2019-08-21 Thread Sherry Sun
The SPL SDP is configured as BOOT_DEVICE_BOARD, but for i.MX8 and i.MX8M, the boot_device_spl is still set to BOOT_DEVICE_USB, which may cause SDP can't work, in order to fix this issue, when booting from USB in spl, we change its type to BOOT_DEVICE_BOARD. Signed-off-by: Sherry Sun

[U-Boot] [PATCH v3 4/4] SDP: Call usb_gadget_initialize and usb_gadget_release to support UDC

2019-08-21 Thread Sherry Sun
Need initialize UDC before run sdp download and release it at the end of sdp. Signed-off-by: Sherry Sun Signed-off-by: Frank Li Reviewed-by: Lukasz Majewski --- common/spl/spl_sdp.c | 4 1 file changed, 4 insertions(+) diff --git a/common/spl/spl_sdp.c b/common/spl/spl_sdp.c index

[U-Boot] [PATCH v3 0/4] Make some changes to SDP

2019-08-21 Thread Sherry Sun
Changes in v3: - Add reviewed-by tag for patch2/4 and patch4/4 since this two have been reviewed in v1. Changes in v2: - Update the commit log in patch 1/4. This patchset adds: 1. Add usb_gadget_initialize() and usb_gadget_release() to initialize and release UDC during sdp download. 2. Add

[U-Boot] [PATCH v3 2/4] SDP: use CONFIG_SDP_LOADADDR as default load address

2019-08-21 Thread Sherry Sun
If SDP_WRITE and SDP_JUMP command addr is zero, use CONFIG_SDP_LOADADDR as default address. Signed-off-by: Sherry Sun Signed-off-by: Frank Li Reviewed-by: Lukasz Majewski --- drivers/usb/gadget/Kconfig | 4 drivers/usb/gadget/f_sdp.c | 6 -- 2 files changed, 8 insertions(+), 2

Re: [U-Boot] [PATCH v5 1/5] spl: dm: disable SPI DM flash for non-DM SPL

2019-08-21 Thread Xiaowei Bao
> -Original Message- > From: Lukasz Majewski > Sent: 2019年8月20日 17:50 > To: Xiaowei Bao > Cc: w...@denx.de; Ruchika Gupta ; Shengzhou Liu > ; ja...@amarulasolutions.com; Prabhakar > Kushwaha ; u-boot@lists.denx.de; Jiafei > Pan ; Chuanhua Han > Subject: Re: [U-Boot] [PATCH v5 1/5]

Re: [U-Boot] [PATCH] vexpress/aemv8a: drop CONFIG_ARMV8_SWITCH_TO_EL1

2019-08-21 Thread Peng Fan
> Subject: [U-Boot] [PATCH] vexpress/aemv8a: drop > CONFIG_ARMV8_SWITCH_TO_EL1 > > To support KVM, we need to drop at EL2 and not EL1 before we boot Linux > kernel. This causes issues on platform with VHE and secondaries booting at > EL2 via TF-A PSCI CPU_ON call. > > Cc: Ryan Harkin > Cc:

Re: [U-Boot] [PATCH] ARM: vexpress_*_defconfig: replace earlyprintk with earlycon

2019-08-21 Thread Peng Fan
> Subject: [U-Boot] [PATCH] ARM: vexpress_*_defconfig: replace earlyprintk > with earlycon > > earlyprintk no longer works on arm64 platforms. Replace it with earlycon > which works fine. > > Cc: Ryan Harkin > Cc: Liviu Dudau > Cc: Linus Walleij > Signed-off-by: Sudeep Holla > --- >

[U-Boot] [RESEND PATCH v4 06/11] riscv: add SPL support

2019-08-21 Thread Lukas Auer
U-Boot SPL on the generic RISC-V CPU supports two boot flows, directly jumping to the image and via OpenSBI firmware. In the first case, both U-Boot SPL and proper must be compiled to run in the same privilege mode. Using OpenSBI firmware, U-Boot SPL must be compiled for machine mode and U-Boot

[U-Boot] [RESEND PATCH v4 11/11] doc: update QEMU RISC-V documentation

2019-08-21 Thread Lukas Auer
The available defconfigs for RISC-V QEMU have changed. We now have configurations to compile U-Boot to run in supervisor mode and for U-Boot SPL. Update the QEMU RISC-V documentation to reflect these changes. Signed-off-by: Lukas Auer Reviewed-by: Bin Meng Tested-by: Bin Meng Reviewed-by: Anup

Re: [U-Boot] CONFIG_OPTEE

2019-08-21 Thread Robert P. J. Day
On Tue, 20 Aug 2019, Stephen Segal wrote: > Hi all, > > I'm not sure if this has been noticed or handled already, but it appears > there are two separate config options named CONFIG_OPTEE. > > In drivers/tee/optee/Kconfig: > > config OPTEE > bool "OP-TEE" > depends on ARM_SMCCC >

[U-Boot] [RESEND PATCH v4 03/11] spl: fit: use U-Boot device tree when FIT image has no device tree

2019-08-21 Thread Lukas Auer
As part of the SPL FIT boot flow, the device tree is appended to U-Boot proper. The device tree is used to record information on the loadables to make them available to the SPL framework and U-Boot proper. Depending on the U-Boot device tree provider, the FIT image might not include a device tree.

[U-Boot] CONFIG_OPTEE

2019-08-21 Thread Stephen Segal
Hi all, I'm not sure if this has been noticed or handled already, but it appears there are two separate config options named CONFIG_OPTEE. In drivers/tee/optee/Kconfig: config OPTEE bool "OP-TEE" depends on ARM_SMCCC help This implements the OP-TEE Trusted

[U-Boot] [PATCH 5/5] CVE-2019-14196: nfs: fix unbounded memcpy with a failed length check at nfs_lookup_reply

2019-08-21 Thread Cheng Liu
CVE-2019-14196: nfs: fix unbounded memcpy with a failed length check at nfs_lookup_reply This patch adds a check to rpc_pkt.u.reply.data at nfs_lookup_reply. Signed-off-by: Cheng Liu --- net/nfs.c | 4 1 file changed, 4 insertions(+) diff --git a/net/nfs.c b/net/nfs.c index

[U-Boot] [PATCH 1/5] CVE: net: fix unbounded memcpy of UDP packet

2019-08-21 Thread Cheng Liu
CVE: net: fix unbounded memcpy of UDP packet This patch adds a check to udp_len to fix unbounded memcpy for CVE-2019-14192, CVE-2019-14193 and CVE-2019-14199. Signed-off-by: Cheng Liu --- net/net.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/net.c b/net/net.c index

[U-Boot] [PATCH 4/5] CVE-2019-14195: nfs: fix unbounded memcpy with unvalidated length at nfs_readlink_reply

2019-08-21 Thread Cheng Liu
CVE-2019-14195: nfs: fix unbounded memcpy with unvalidated length at nfs_readlink_reply This patch adds a check to rpc_pkt.u.reply.data at nfs_readlink_reply. Signed-off-by: Cheng Liu --- net/nfs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/nfs.c b/net/nfs.c index

[U-Boot] [PATCH] qemu-riscv64_smode, sifive-fu540: fix extlinux (define preboot)

2019-08-21 Thread David Abdurachmanov
Commit 37304aaf60bf92a5dc3ef222ba520698bd862a44 removed preboot commands in RISC-V targets and broke extlinux support as reported by Fu Wei . The patch finishes migration of CONFIG_USE_PREBOOT and CONFIG_REBOOT to Kconfig. Signed-off-by: David Abdurachmanov ---

[U-Boot] [RESEND PATCH v4 10/11] riscv: qemu: add SPL configuration

2019-08-21 Thread Lukas Auer
Add two new configurations (qemu-riscv{32,64}_spl_defconfig) with SPL enabled for RISC-V QEMU. QEMU does not require SPL to run U-Boot. The configurations are meant to help the development of SPL on RISC-V. The configurations enable RAM as the only SPL boot device. Images must be loaded at

[U-Boot] [RESEND PATCH v4 05/11] spl: support booting via RISC-V OpenSBI

2019-08-21 Thread Lukas Auer
RISC-V OpenSBI is an open-source implementation of the RISC-V Supervisor Binary Interface (SBI) specification. It is required by Linux and U-Boot running in supervisor mode. This patch adds support for booting via the OpenSBI FW_DYNAMIC firmware. It supports OpenSBI version 0.4 and higher. In

[U-Boot] [RESEND PATCH v4 04/11] riscv: add run mode configuration for SPL

2019-08-21 Thread Lukas Auer
U-Boot SPL can be run in a different privilege mode from U-Boot proper. Add new configuration entries for SPL to allow the run mode to be configured independently of U-Boot proper. Extend all uses of the CONFIG_RISCV_SMODE and CONFIG_RISCV_MMODE configuration symbols to also cover the SPL

[U-Boot] [RESEND PATCH v4 07/11] riscv: support SPL stack and global data relocation

2019-08-21 Thread Lukas Auer
To support relocation of the stack and global data on RISC-V, the secondary harts must be notified of the change using IPIs. We can reuse the hart relocation code for this purpose. It uses global data to store the new stack pointer and global data pointer for the secondary harts. This means that

[U-Boot] [RESEND PATCH v4 00/11] SPL support for RISC-V

2019-08-21 Thread Lukas Auer
This series adds support for SPL to RISC-V U-Boot. Images can be booted via OpenSBI (FW_DYNAMIC firmware) or by directly jumping to them. In the former case, OpenSBI and U-Boot proper are bundled as a FIT image and made available to U-Boot SPL. Currently, only the QEMU board enables U-Boot SPL

[U-Boot] [RESEND PATCH v4 01/11] fdtdec: make CONFIG_OF_PRIOR_STAGE available in SPL

2019-08-21 Thread Lukas Auer
The current preprocessor logic prevents CONFIG_OF_PRIOR_STAGE from being used in U-Boot SPL. Change the logic to also make it available in U-Boot SPL. Signed-off-by: Lukas Auer Reviewed-by: Bin Meng Tested-by: Bin Meng Reviewed-by: Anup Patel --- Changes in v4: None Changes in v3: None

[U-Boot] [RESEND PATCH v4 02/11] Makefile: support building SPL FIT images without device trees

2019-08-21 Thread Lukas Auer
When building a U-Boot FIT image, the device trees specified by the board are unconditionally built for inclusion in the FIT image. However, not all device tree providers, such as CONFIG_OF_PRIOR_STAGE, require a device tree to be built and bundled with the U-Boot binary. They rely on other

Re: [U-Boot] [PATCH 1/1] serial: ns16550: Read reg-io-type from device tree

2019-08-21 Thread Park, Aiden
Hi Andy/Bin, > -Original Message- > From: Bin Meng [mailto:bmeng...@gmail.com] > Sent: Wednesday, August 21, 2019 2:45 AM > To: Andy Shevchenko > Cc: Park, Aiden ; u-boot@lists.denx.de > Subject: Re: [U-Boot] [PATCH 1/1] serial: ns16550: Read reg-io-type from > device tree > > On Wed,

Re: [U-Boot] U-Boot/EBBR plugfest at ELC-EU?

2019-08-21 Thread Da Xue
My flight out of Lyon is on the 31st. Happy to work on it anytime during the conference. On Thu, Aug 8, 2019, 4:06 AM Grant Likely wrote: > > > On 28/06/2019 09:19, Grant Likely wrote: > > Quick poll: who would be interested in a U-Boot/EBBR plugfest event > collocates with ELC-EU this year

[U-Boot] [PATCH] fat: FAT filesystem premature release of info struct.

2019-08-21 Thread Martin Vystrčil
File was found on specified location. Info about file was read, but then immediately destroyed using 'free' call. As a result file size was set to 0, hence fat process didn't read any data. Premature 'free' call removed. Resources are freed right before function return. File is read correctly.

[U-Boot] [RESEND PATCH v4 08/11] riscv: add a generic FIT generator script

2019-08-21 Thread Lukas Auer
Add a generic FIT generator script for RISC-V to generate images containing U-Boot, OpenSBI FW_DYNAMIC firmware, and optionally one or more device trees. The location of the OpenSBI firmware binary can be specified with the OPENSBI environment variable. By default, it is assumed to be

[U-Boot] [RESEND PATCH v4 09/11] riscv: set default FIT generator script and build target for SPL builds

2019-08-21 Thread Lukas Auer
Now that we have a generic FIT generator script for RISC-V, set it as the default. To also build the FIT image by default, set the default build target to "u-boot.itb" if CONFIG_SPL_LOAD_FIT is enabled. Signed-off-by: Lukas Auer Reviewed-by: Bin Meng Tested-by: Bin Meng Reviewed-by: Anup Patel

Re: [U-Boot] [PATCH 1/5] CVE: net: fix unbounded memcpy of UDP packet

2019-08-21 Thread Simon Goldschmidt
On Wed, Aug 21, 2019 at 8:32 PM Cheng Liu wrote: > > CVE: net: fix unbounded memcpy of UDP packet > > This patch adds a check to udp_len to fix unbounded memcpy for > CVE-2019-14192, CVE-2019-14193 and CVE-2019-14199. > > Signed-off-by: Cheng Liu Reviewed-by: Simon Goldschmidt Although being

[U-Boot] [PATCH] ARM: vexpress_*_defconfig: replace earlyprintk with earlycon

2019-08-21 Thread Sudeep Holla
earlyprintk no longer works on arm64 platforms. Replace it with earlycon which works fine. Cc: Ryan Harkin Cc: Liviu Dudau Cc: Linus Walleij Signed-off-by: Sudeep Holla --- configs/vexpress_aemv8a_dram_defconfig | 2 +- configs/vexpress_aemv8a_juno_defconfig | 2 +-

[U-Boot] [PATCH] vexpress/aemv8a: drop CONFIG_ARMV8_SWITCH_TO_EL1

2019-08-21 Thread Sudeep Holla
To support KVM, we need to drop at EL2 and not EL1 before we boot Linux kernel. This causes issues on platform with VHE and secondaries booting at EL2 via TF-A PSCI CPU_ON call. Cc: Ryan Harkin Cc: Liviu Dudau Cc: Linus Walleij Cc: David Feng Signed-off-by: Sudeep Holla ---

[U-Boot] [PATCH 3/5] CVE-2019-14194/CVE-2019-14198: nfs: fix unbounded memcpy with a failed length check at nfs_read_reply

2019-08-21 Thread Cheng Liu
CVE-2019-14194/CVE-2019-14198: nfs: fix unbounded memcpy with a failed length check at nfs_read_reply This patch adds a check to rpc_pkt.u.reply.data at nfs_read_reply. Signed-off-by: Cheng Liu --- net/nfs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/nfs.c b/net/nfs.c index

[U-Boot] [PATCH 2/5] CVE: nfs: fix stack-based buffer overflow in some nfs_handler reply helper functions

2019-08-21 Thread Cheng Liu
CVE: nfs: fix stack-based buffer overflow in some nfs_handler reply helper functions This patch adds a check to nfs_handler to fix buffer overflow for CVE-2019-14197, CVE-2019-14200, CVE-2019-14201, CVE-2019-14202, CVE-2019-14203 and CVE-2019-14204. Signed-off-by: Cheng Liu --- net/nfs.c |

[U-Boot] [PATCH] nvme: Fix PRP Offset Invalid

2019-08-21 Thread Aaron Williams
From: Aaron Williams When large writes take place I saw a Samsung EVO 970+ return a status value of 0x13, PRP Offset Invalid. I tracked this down to the improper handling of PRP entries. The blocks the PRP entries are placed in cannot cross a page boundary and thus should be allocated on page

[U-Boot] [PATCH v2 3/5] CVE-2019-14194/CVE-2019-14198: nfs: fix unbounded memcpy with a failed length check at nfs_read_reply //RE: [PATCH 3/5] CVE-2019-14194/CVE-2019-14198: nfs: fix unbounded memcpy

2019-08-21 Thread liucheng (G)
Changes in v2: - Add reported-by tag for patch 3/5 -- CVE-2019-14194/CVE-2019-14198: nfs: fix unbounded memcpy with a failed length check at nfs_read_reply This patch adds a check to

[U-Boot] [PATCH v2 1/5] CVE: net: fix unbounded memcpy of UDP packet//RE: [PATCH 1/5] CVE: net: fix unbounded memcpy of UDP packet

2019-08-21 Thread liucheng (G)
Thank you. Changes in v2: - Add reviewed-by and reported-by tags for patch 1/5 -- CVE: net: fix unbounded memcpy of UDP packet This patch adds a check to udp_len to fix unbounded memcpy

[U-Boot] [PATCH v2 2/5] CVE: nfs: fix stack-based buffer overflow in some nfs_handler reply helper functions //RE: [PATCH 2/5] CVE: nfs: fix stack-based buffer overflow in some nfs_handler reply helpe

2019-08-21 Thread liucheng (G)
Changes in v2: - Add reported-by tag for patch 2/5 -- CVE: nfs: fix stack-based buffer overflow in some nfs_handler reply helper functions This patch adds a check to nfs_handler to fix

[U-Boot] [PATCH v2 4/5] CVE-2019-14195: nfs: fix unbounded memcpy with unvalidated length at nfs_readlink_reply //RE: [PATCH 4/5] CVE-2019-14195: nfs: fix unbounded memcpy with unvalidated length at n

2019-08-21 Thread liucheng (G)
Changes in v2: - Add reported-by tag for patch 4/5 -- CVE-2019-14195: nfs: fix unbounded memcpy with unvalidated length at nfs_readlink_reply This patch adds a check to

[U-Boot] [PATCH v2 5/5] CVE-2019-14196: nfs: fix unbounded memcpy with a failed length check at nfs_lookup_reply //RE: [PATCH 5/5] CVE-2019-14196: nfs: fix unbounded memcpy with a failed length check

2019-08-21 Thread liucheng (G)
Changes in v2: - Add reported-by tag for patch 5/5 -- CVE-2019-14196: nfs: fix unbounded memcpy with a failed length check at nfs_lookup_reply This patch adds a check to

[U-Boot] [PATCH v3 6/8] riscv: cache: Flush L2 cache before jump to linux

2019-08-21 Thread Andes
From: Rick Chen Flush and disable L2 cache in dcache_disable() which will be called in cleanup_before_linux() before jump to linux. The sequence will be preferred as below: L1 flush -> L1 disable -> L2 flush -> L2 disable Signed-off-by: Rick Chen Cc: KC Lin --- arch/riscv/cpu/ax25/cache.c |

[U-Boot] [PATCH v3 7/8] riscv: dts: move out AE350 L2 node from cpus node

2019-08-21 Thread Andes
From: Rick Chen When L2 node exists inside cpus node, uclass_get_device can not parse L2 node successfully. So move it outside from cpus node. Also add tag-ram-ctl and data-ram-ctl attributes for v5l2 cache controller driver. This can adjust timing by requirement from dtb to improve

[U-Boot] [PATCH v3 5/8] riscv: ax25: add imply v5l2 cache controller

2019-08-21 Thread Andes
From: Rick Chen Select the v5l2 UCLASS_CACHE driver for ax25. Signed-off-by: Rick Chen Cc: KC Lin Reviewed-by: Bin Meng --- arch/riscv/cpu/ax25/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/cpu/ax25/Kconfig b/arch/riscv/cpu/ax25/Kconfig index 6b4b92e..49be775 100644

[U-Boot] [PATCH v3 2/8] dm: cache: Add enable and disable ops for sandbox and test

2019-08-21 Thread Andes
From: Rick Chen Add L2 cache enable and disable ops for test coverage. Signed-off-by: Rick Chen Cc: KC Lin --- drivers/cache/sandbox_cache.c | 13 + test/dm/cache.c | 2 ++ 2 files changed, 15 insertions(+) diff --git a/drivers/cache/sandbox_cache.c

Re: [U-Boot] [PATCH] sunxi: H6: DRAM: Add support for half DQ

2019-08-21 Thread Jernej Škrabec
Hi! Dne sreda, 21. avgust 2019 ob 02:31:04 CEST je André Przywara napisal(a): > On 17/07/2019 23:16, Jernej Skrabec wrote: > > Half DQ configuration seems to be very rare for H6 based boards/STBs, > > but exists nevertheless. Currently the only known product which needs > > this support is Tanix

Re: [U-Boot] [PATCH v5 2/5] dm: spi: Convert Freescale ESPI driver to driver model

2019-08-21 Thread Joakim Tjernlund
On Wed, 2019-08-21 at 01:19 +, Xiaowei Bao wrote: > > > -Original Message- > > From: Joakim Tjernlund > > Sent: 2019年8月20日 19:04 > > To: Prabhakar Kushwaha ; Ruchika Gupta > > ; Xiaowei Bao ; > > Shengzhou Liu ; w...@denx.de; > > ja...@amarulasolutions.com > > Cc:

Re: [U-Boot] [PATCH 1/1] nvme: Fix PRP Offset Invalid

2019-08-21 Thread Bin Meng
Hi Aaron, On Wed, Aug 21, 2019 at 8:34 AM Aaron Williams wrote: > > When large writes take place I saw a Samsung > EVO 970+ return a status value of 0x13, PRP > Offset Invalid. I tracked this down to the > improper handling of PRP entries. The blocks > the PRP entries are placed in cannot

[U-Boot] [PATCH v3 0/8] Support Andes RISC-V l2cache on AE350 platform

2019-08-21 Thread Andes
From: Rick Chen Add a v5l2 cache controller driver that is usually found on Andes RISC-V ae350 platform. It will parse and configure the cache settings (data & instruction prefetch, data & tag latency) from the device tree blob. Also implement L2 cache flush and disable before jump to linux.

[U-Boot] [PATCH v3 1/8] dm: cache: Add enable and disable ops for cache uclass

2019-08-21 Thread Andes
From: Rick Chen The L2 cache will be enabled in init flow of dm cache driver when it detect L2 node in dtb. When U-Boot jumps to Linux Kernel, the disable ops will be called to flush and disable the L2 cache via the dm cache driver. Signed-off-by: Rick Chen Cc: KC Lin ---

[U-Boot] [PATCH v3 3/8] dm: cache: add v5l2 cache controller driver

2019-08-21 Thread Andes
From: Rick Chen Add a v5l2 cache controller driver that is usually found on Andes RISC-V ae350 platform. It will parse the cache settings from the dtb. In this version tag and data ram control timing can be adjusted by the requirement from the dtb. Signed-off-by: Rick Chen Cc: KC Lin ---

Re: [U-Boot] [PATCH 1/1] serial: ns16550: Read reg-io-type from device tree

2019-08-21 Thread Andy Shevchenko
On Wed, Aug 21, 2019 at 3:43 AM Park, Aiden wrote: > > ns16550 can select register access type from device tree. > This also allows an inherited serial driver of ns16550 to configure > register access type at run-time by overriding ofdata_to_platdata. > Can you elaborate more on this? For now

[U-Boot] [PATCH v3 8/8] riscv: cache: use CCTL to flush d-cache

2019-08-21 Thread Andes
From: Rick Chen Use CCTL command to do d-cache write back and invalidate instead of fence. Signed-off-by: Rick Chen Cc: KC Lin Reviewed-by: Bin Meng --- arch/riscv/cpu/ax25/cache.c | 22 +- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git

[U-Boot] [PATCH v3 4/8] riscv: ae350: use the v5l2 driver to configure the cache

2019-08-21 Thread Andes
From: Rick Chen Find the UCLASS_CACHE driver to configure the cache controller's settings. Signed-off-by: Rick Chen Cc: KC Lin Reviewed-by: Bin Meng --- board/AndesTech/ax25-ae350/ax25-ae350.c | 9 + 1 file changed, 9 insertions(+) diff --git

Re: [U-Boot] [PATCH 1/1] dm: scsi: Scan the actual number of ports

2019-08-21 Thread Bin Meng
On Wed, Aug 21, 2019 at 12:47 AM Park, Aiden wrote: > > The scsi_scan_dev() is looping over the number of uc_plat->max_id. > The number of actual ports a AHCI controller has can be greater than > max_id. Update uc_plat->max_id to make SCSI scan all detected ports. > > Signed-off-by: Aiden Park >

[U-Boot] [PATCH 1/3] riscv: andes_plic: init plic by scanning each cpu node

2019-08-21 Thread Andes
From: Rick Chen Initialize plic driver by ofnode_for_each_subnode() instead of cpu_get_count(). This way can support to skip some harts which maybe mark as unavailable, but the cpu node exist indeed. Signed-off-by: Rick Chen Cc: KC Lin --- arch/riscv/lib/andes_plic.c | 36

Re: [U-Boot] [PATCH V4 0/4] Prepare i.MX8MM clk

2019-08-21 Thread Peng Fan
> Subject: Re: [PATCH V4 0/4] Prepare i.MX8MM clk > > Hi Peng, > > > V4: > > 1/4: Expose CCF for all > > 2/4: Improve commit log > > 3/4: Typo fix > > 4/4: Drop unneeded initialization > > Your patches cause some build breaks on sandbox: >

Re: [U-Boot] [PATCH 1/1] serial: ns16550: Read reg-io-type from device tree

2019-08-21 Thread Bin Meng
On Wed, Aug 21, 2019 at 3:26 PM Andy Shevchenko wrote: > > On Wed, Aug 21, 2019 at 3:43 AM Park, Aiden wrote: > > > > ns16550 can select register access type from device tree. > > This also allows an inherited serial driver of ns16550 to configure > > register access type at run-time by

[U-Boot] [PATCH] nvme: Fix PRP Offset Invalid

2019-08-21 Thread Aaron Williams
From: Aaron Williams When large writes take place I saw a Samsung EVO 970+ return a status value of 0x13, PRP Offset Invalid. I tracked this down to the improper handling of PRP entries. The blocks the PRP entries are placed in cannot cross a page boundary and thus should be allocated on page

[U-Boot] [PATCH 1/1][nvme] Fix PRP Offset Invalid

2019-08-21 Thread Aaron Williams
Hopefully this addresses your concerns. Note that nprbs can't be used directly for the size since one must be removed from each page to point to the next page. -Aaron ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [PATCH] imx: imx8qxp_mek: fix CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR

2019-08-21 Thread Peng Fan
The first stage of flash.bin is larger than 584 * 512, so when writting u-boot.itb, some data will be override. Enlarge the CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR to fix boot. Signed-off-by: Peng Fan --- board/freescale/imx8qxp_mek/README | 2 +- include/configs/imx8qxp_mek.h | 2 +- 2

Re: [U-Boot] [PATCH] sunxi: H6: DRAM: Add support for half DQ

2019-08-21 Thread Andre Przywara
On Wed, 21 Aug 2019 08:01:31 +0200 Jernej Škrabec wrote: Hi, > Dne sreda, 21. avgust 2019 ob 02:31:04 CEST je André Przywara napisal(a): > > On 17/07/2019 23:16, Jernej Skrabec wrote: > > > Half DQ configuration seems to be very rare for H6 based boards/STBs, > > > but exists nevertheless.

Re: [U-Boot] [PATCH v5 2/5] dm: spi: Convert Freescale ESPI driver to driver model

2019-08-21 Thread Xiaowei Bao
> -Original Message- > From: Joakim Tjernlund > Sent: 2019年8月21日 15:52 > To: Prabhakar Kushwaha ; Ruchika Gupta > ; Xiaowei Bao ; > Shengzhou Liu ; w...@denx.de; > ja...@amarulasolutions.com > Cc: u-boot@lists.denx.de; Jiafei Pan ; Chuanhua Han > > Subject: Re: [U-Boot] [PATCH v5 2/5]

Re: [U-Boot] [PATCH v5 2/5] dm: spi: Convert Freescale ESPI driver to driver model

2019-08-21 Thread Joakim Tjernlund
On Wed, 2019-08-21 at 09:46 +, Xiaowei Bao wrote: > > -Original Message- > > From: Joakim Tjernlund > > Sent: 2019年8月21日 15:52 > > To: Prabhakar Kushwaha ; Ruchika Gupta > > ; Xiaowei Bao ; > > Shengzhou Liu ; w...@denx.de; > > ja...@amarulasolutions.com > > Cc: u-boot@lists.denx.de;

[U-Boot] [PATCH V3 3/4] clk: support clk tree dump

2019-08-21 Thread Peng Fan
The previous code only dump the clk list. This patch is to support clk tree dump, and also dump the enable_cnt. The code used in patch is similar to dm_dump_all, but the code here only filter out the UCLASS_CLK devices. On i.MX8MM, Partial output: u-boot=> clk dump Rate Usecnt

[U-Boot] [PATCH V3 1/4] clk: introduce enable_count

2019-08-21 Thread Peng Fan
As what Linux Kernel 5.3.0 provides when enable/disable clk, there is an enable_count in clk_core_disable/enable. Introduce enable_count to track the clk enable/disable count when clk_enable/disable for CCF. And Initialize enable_count to 0 when register the clk. And clk tree dump with

[U-Boot] [PATCH V3 2/4] clk: prograte clk enable/disable to parent

2019-08-21 Thread Peng Fan
On i.MX8MM, thinking such as clk path OSC->PLL->PLL GATE->CCM ROOT->CCGR GATE->Device Only enabling CCGR GATE is not enough, we also need to enable PLL GATE to make sure the clk path work. So when enabling CCGR GATE, we could prograte to enabling PLL GATE to make life easier. Signed-off-by: Peng

Re: [U-Boot] [ANN] U-Boot v2019.10-rc2 released

2019-08-21 Thread Peter Robinson
Hi Simon, > It's the day after the scheduled release day, and here is v2019.10-rc2. > It took me a while to confirm that the riscv PR was causing the issue I > saw, and I got extra paranoid about testing all of the other PRs to be > sure it really was that and not some other race condition. At

Re: [U-Boot] [EXT] Re: [PATCH 1/1] nvme: Fix PRP Offset Invalid

2019-08-21 Thread Aaron Williams
Hi Bin, I submitted another patch via git. Hopefully it went through. I'm new to trying to get email to work with GIT since until now nobody in my group has had access to a working SMTP server so I'm still learning how to use git send- email. -Aaron On Wednesday, August 21, 2019 12:55:59 AM

[U-Boot] [PATCH V3 4/4] sandbox: clk: add clk enable/disable test code

2019-08-21 Thread Peng Fan
Since we added clk enable_count and prograte clk child enabling operation to clk parent, so add a new function sandbox_clk_enable_count to get enable_count for test usage. And add test code to get the enable_count after we enable/disable the device clk. Signed-off-by: Peng Fan --- V3: Fix

Re: [U-Boot] [PATCH V4 0/4] Prepare i.MX8MM clk

2019-08-21 Thread Peng Fan
Hi Lukasz > Subject: RE: [PATCH V4 0/4] Prepare i.MX8MM clk > > > Subject: Re: [PATCH V4 0/4] Prepare i.MX8MM clk > > > > Hi Peng, > > > > > V4: > > > 1/4: Expose CCF for all > > > 2/4: Improve commit log > > > 3/4: Typo fix > > > 4/4: Drop unneeded initialization > > > > Your patches cause

[U-Boot] [PATCH] nvme: Fix PRP Offset Invalid

2019-08-21 Thread Aaron Williams
From: Aaron Williams When large writes take place I saw a Samsung EVO 970+ return a status value of 0x13, PRP Offset Invalid. I tracked this down to the improper handling of PRP entries. The blocks the PRP entries are placed in cannot cross a page boundary and thus should be allocated on page

[U-Boot] [PATCH] nvme: Fix PRP Offset Invalid

2019-08-21 Thread Aaron Williams
From: Aaron Williams When large writes take place I saw a Samsung EVO 970+ return a status value of 0x13, PRP Offset Invalid. I tracked this down to the improper handling of PRP entries. The blocks the PRP entries are placed in cannot cross a page boundary and thus should be allocated on page

Re: [U-Boot] [PATCH] ARM: DRA7: Fixup DPLL clock rate fixup logic for newer kernels

2019-08-21 Thread Tom Rini
On Fri, Aug 16, 2019 at 05:30:16PM -0500, Suman Anna wrote: > The commit 1b42ab3eda8a ("ARM: DRA7: Fixup DSPEVE, IVA and GPU clock > frequencies based on OPP") updates the kernel device-tree blob to adjust > the DSP, IVA and GPU DPLL clocks based on a one-time OPP choice selected > in U-Boot. All

Re: [U-Boot] [PATCH 1/1] mailmap: provide usage instruction

2019-08-21 Thread Tom Rini
On Sat, Aug 10, 2019 at 01:17:21PM +0200, Heinrich Schuchardt wrote: > Looking at the contents of file .mailmap it seems that some editors assumed > that translation is done by entering multiple lines into the file and the > last one replaces the others. This is not how it works. The translation

Re: [U-Boot] [PATCH] mmc: mtk-sd: Add MT8183 SoC support

2019-08-21 Thread Tom Rini
On Mon, Aug 12, 2019 at 08:26:58PM +0200, Fabien Parent wrote: > Add support for the MT8183 in the MediaTek MMC driver. > > Signed-off-by: Fabien Parent Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot

Re: [U-Boot] [PATCH] README: Clarify use of BSS during SPL board_init_f()

2019-08-21 Thread Tom Rini
On Thu, Aug 08, 2019 at 12:54:49PM -0500, Andreas Dannenberg wrote: > The earlier commit > > commit a5a5d997b41a ("spl: Allow performing BSS init early before > board_init_f()") > > ...introduced the ability to use BSS from SPL's board_init_f() as it may > be required in certain

Re: [U-Boot] [PATCH] arm: baltos: use device tree alias to access Ethernet slave

2019-08-21 Thread Tom Rini
On Fri, Aug 09, 2019 at 07:21:57AM +0200, yegorsli...@googlemail.com wrote: > From: Yegor Yefremov > > The full path has changed in the recent kernels so that it is > not possible to load them. Aliases "ethernet0" and "ethernet1" > are still present in both legacy and new kernels. > > Also,

Re: [U-Boot] [PATCH 2/3] configs: Rename environment variable fit_loadaddr to addr_fit

2019-08-21 Thread Tom Rini
On Mon, Aug 12, 2019 at 03:59:54PM -0400, Andrew F. Davis wrote: > This is the first part of a larger effort I would like to propose to > unify and simplify the default set of environment variables. > > When many early environment variables were named there were fewer images > being loaded,

Re: [U-Boot] [PATCH] arm: omap2: am43xx: Enable CONFIG_BLK

2019-08-21 Thread Tom Rini
On Mon, Aug 19, 2019 at 11:57:39AM +0530, suni...@techveda.org wrote: > From: Suniel Mahesh > > With DM_MMC enabled, enable CONFIG_BLK to remove this > compile warning for am43xx based targets: > > = WARNING == > This board does not use CONFIG_DM_MMC.

Re: [U-Boot] [PATCH] jffs2: remove unused code files

2019-08-21 Thread Tom Rini
On Wed, Aug 14, 2019 at 10:07:29PM +0200, Uwe Kleine-König wrote: > I failed to find where these two files are used and a few test compile > runs with JFFS2 enabled succeeded also without these. Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [PATCH] Revert "ARM: da850-evm: Enable SPI Flash and NAND Flash when booting NOR"

2019-08-21 Thread Tom Rini
On Tue, Aug 13, 2019 at 02:04:02PM -0500, Adam Ford wrote: > Sorry for the noise, but there appears to be a regression with older > hardware. Since it broke the direct_nor boot option, it should be > reverted until a better solution is available. > > This reverts commit

Re: [U-Boot] [PATCH] test/py: Add cmd_memory dependency back to test_mmc_wr

2019-08-21 Thread Tom Rini
On Mon, Aug 19, 2019 at 11:06:13AM +0200, Michal Simek wrote: > Based on discussion with Stephen Warren there was recommendation to list > both memory and random command dependencies just in case that dependency is > not properly handled by Kconfig. > > Fixes: a09c1f7e1c1b ("test/py: Fix MMC/SD

Re: [U-Boot] [PATCH 3/3] configs: Rename environment variable fit_bootfile to name_fit

2019-08-21 Thread Tom Rini
On Mon, Aug 12, 2019 at 03:59:55PM -0400, Andrew F. Davis wrote: > Like we did with 'fit_loadaddr' to 'addr_fit', the variable > 'fit_bootfile' contains a name and so should be prefixed with > name_. Make this change here. > > Signed-off-by: Andrew F. Davis Applied to u-boot/master, thanks!

Re: [U-Boot] [PATCH] ARM: omapl138_lcdk: Enable USB

2019-08-21 Thread Tom Rini
On Mon, Aug 12, 2019 at 04:45:21PM -0500, Adam Ford wrote: > The OMAPL138-lcdk has two USB controllers which are currently > disabled. This patch enables them. > > Signed-off-by: Adam Ford > > diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig > index

Re: [U-Boot] [PATCH] ARM: da850evm: Remove dead SPI Code

2019-08-21 Thread Tom Rini
On Tue, Aug 13, 2019 at 08:27:28AM -0500, Adam Ford wrote: > With SPL now supporting DM_SPI, the need for compiler directives > and hard-coded addresses is obsolete. This patch removes some > dead legacy code defining the SPI base address > > Signed-off-by: Adam Ford > > diff --git

Re: [U-Boot] [PATCH] ARM: davinci: Remove duplicated references

2019-08-21 Thread Tom Rini
On Tue, Aug 13, 2019 at 02:38:11PM -0500, Adam Ford wrote: > The Kconfig file calls to ti/common/Kconfig twice which makes > several of the menu items repeat themselves. In an effort to > clean this up, this patch removes the second call which eliminates > the duplicate menu items. > >

Re: [U-Boot] [PATCH 1/3] configs: Remove unneeded overlay_files environment variable

2019-08-21 Thread Tom Rini
On Mon, Aug 12, 2019 at 03:59:53PM -0400, Andrew F. Davis wrote: > The variable 'name_overlays' serves the same purpose. Remove > 'overlay_files' and use 'name_overlays' everywhere. > > Signed-off-by: Andrew F. Davis Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

Re: [U-Boot] [PATCH v2] arm: dts: Makefile: clean *dtb_HS

2019-08-21 Thread Tom Rini
On Fri, Aug 16, 2019 at 02:16:36PM +0530, suni...@techveda.org wrote: > From: Suniel Mahesh > > TI HS platforms generate *dtb_HS binary blobs and there is no > rule for cleanup. Added entry for cleanup in clean-files target. > > Signed-off-by: Suniel Mahesh > Reviewed-by: Lokesh Vutla

Re: [U-Boot] [PATCH] ARM: da850evm: Remove dead code

2019-08-21 Thread Tom Rini
On Tue, Aug 13, 2019 at 08:28:28AM -0500, Adam Ford wrote: > Now that SPL supports DM_SERIAL and the direct NOR boot supports > DM_SERIAL, the check to see if DM_SERIAL is defined can go away, > because all da850evm variants now support DM_SERIAL. This patch > simply removes some dead

Re: [U-Boot] [PATCH 1/1] easylogo: avoid buffer overrun

2019-08-21 Thread Tom Rini
On Thu, Aug 15, 2019 at 11:54:15PM +0200, Heinrich Schuchardt wrote: > Building easylogo with `HOST_TOOLS_ALL=y make tools` results in a build > warning due to a possible buffer overrun: > > tools/easylogo/easylogo.c:453:4: note: ‘sprintf’ output between 7 and > 262 bytes into a destination of

Re: [U-Boot] [PATCH v2] arm: baltos: switch to driver model for the watchdog timer

2019-08-21 Thread Tom Rini
On Thu, Aug 15, 2019 at 11:08:04AM +0200, yegorsli...@googlemail.com wrote: > From: Yegor Yefremov > > Signed-off-by: Yegor Yefremov Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list

Re: [U-Boot] [PATCH] davinci: omapl138-lcdk: Remove empty compiler directives

2019-08-21 Thread Tom Rini
On Wed, Aug 14, 2019 at 08:11:09AM -0500, Adam Ford wrote: > There is an #ifdef with nothing inside it any longer. This patch > removes this empty #ifdef > > Signed-off-by: Adam Ford > > diff --git a/board/davinci/da8xxevm/omapl138_lcdk.c > b/board/davinci/da8xxevm/omapl138_lcdk.c > index

[U-Boot] [PATCH v5 1/7] dt-bindings: add dt-binding doc for CDNS3 controller

2019-08-21 Thread Sherry Sun
This patch aim at documenting USB related dt-bindings for the Cadence USB controller. Signed-off-by: Sherry Sun --- doc/device-tree-bindings/usb/cdns-usb3.txt | 53 ++ 1 file changed, 53 insertions(+) create mode 100644 doc/device-tree-bindings/usb/cdns-usb3.txt diff --git

[U-Boot] [PATCH v5 0/7] usb: Add cadence USB3 gadget/host/phy driver

2019-08-21 Thread Sherry Sun
These patches introduce new Cadence driver to U-Boot. The first patch is to add the Cadence USB3 IP(CDNS3) core and driver for the usb gadget. The second patch introduce the xhci-imx8 usb host driver separately. The third patch introduce the cdns3 phy driver which can be used for both cdns3 host

[U-Boot] [PATCH v5 6/7] phy: Add USB PHY driver for the cadence USB3

2019-08-21 Thread Sherry Sun
The cdns3-usb-phy driver supports both host and peripheral mode of usb driver which use cadence usb3 IP. Signed-off-by: Sherry Sun --- drivers/phy/Kconfig | 8 ++ drivers/phy/Makefile| 1 + drivers/phy/cdns3-usb-phy.c | 241 3 files

  1   2   >