[U-Boot] [PATCH 4/4] test/py: test_fs: add tests for creating/deleting many files

2019-05-12 Thread AKASHI Takahiro
Two test cases are added under test_fs_ext: test case 10: for root directory test case 11: for non-root directory Those will verify a behavior fixed by the commits related to root directory ("fs: fat: allocate a new cluster for root directory of fat32" and "fs: fat: flush a directory

[U-Boot] [PATCH 0/4] fs: fat: fixes for write under root directory

2019-05-12 Thread AKASHI Takahiro
This patch set contains three (independent) bug fixes relating to write operations to root directory. See each commit message for more details. Without those fixes, you may lose files that you created under root directory or will see the file system corrupted. This will happen particularly when

[U-Boot] [PATCH 1/4] fs: fat: write to non-cluster-aligned root directory

2019-05-12 Thread AKASHI Takahiro
With the commit below, fat now correctly handles a file read under a non-cluster-aligned root directory of fat12/16. Write operation should be fixed in the same manner. Fixes: commit 9b18358dc05d ("fs: fat: fix reading non-cluster-aligned root directory") Signed-off-by: AKASHI Takahiro

[U-Boot] [PATCH 2/4] fs: fat: flush a directory cluster properly

2019-05-12 Thread AKASHI Takahiro
When a long name directory entry is created, multiple directory entries may be occupied across a directory cluster boundary. Since only one directory cluster is cached in a directory iterator, a first cluster must be written back to device before switching over a second cluster. Without this

[U-Boot] [PATCH 3/4] fs: fat: allocate a new cluster for root directory of fat32

2019-05-12 Thread AKASHI Takahiro
Contrary to fat12/16, fat32 can have root directory at any location and its size can be expanded. Without this patch, root directory won't grow properly and so we will eventually fail to add files under root directory. Please note that this can happen even if you delete many files as deleted

Re: [U-Boot] [PATCH v2 2/5] spi: add spi-mem driver for MediaTek MT7629 SoC

2019-05-12 Thread Weijie Gao
On Tue, 2019-05-07 at 18:42 +0530, Jagan Teki wrote: > On Sun, May 5, 2019 at 2:59 PM Weijie Gao wrote: > > > > This patch adds spi-mem driver for MediaTek MT7629 SoC to access SPI-NOR > > and SPI-NAND flashes. > > > > Cc: Jagan Teki > > Signed-off-by: Weijie Gao > > --- > > Changes since v1:

[U-Boot] [RESEND][PATCH v2] armv8: Add workaround for USB erratum A-050106

2019-05-12 Thread Ran Wang
USB3.0 Receiver needs to enable fixed equalization for each of PHY instances in an SOC. This is similar to erratum A-009007, but this one is for LX2160A, and the register value is different. Signed-off-by: Ran Wang --- Change in v2: - Move function erratum_a050106() under the scope of

Re: [U-Boot] [PATCH v2] include: android_bl_msg.h: Initial import

2019-05-12 Thread AKASHI Takahiro
On Fri, May 10, 2019 at 04:12:10PM +0300, Sam Protsenko wrote: > From: Eugeniu Rosca > > Import the bootloader_message.h (former bootloader.h) from AOSP. > > The bootloader_message.h basically defines the flash layout of a > dedicated partition (usually called 'misc') and is needed in U-Boot >

[U-Boot] [PATCH 2/2] watchdog: imx: Add DM support

2019-05-12 Thread Marek Vasut
Add DM and DT probing support to iMX watchdog driver. This should allow boards to move over to this driver, enable SYSRESET_WATCHDOG to handle cpu_reset() if required. Signed-off-by: Marek Vasut Cc: Peng Fan Cc: Stefano Babic --- drivers/watchdog/Kconfig| 2 +-

[U-Boot] [PATCH 1/2] watchdog: Split WDT from SPL_WDT

2019-05-12 Thread Marek Vasut
Use CONFIG_IS_ENABLED(WDT) to permit use of WDT in SPL without DM, while the full U-Boot can use rich DM/DT WDT driver. Signed-off-by: Marek Vasut Cc: Peng Fan Cc: Stefano Babic --- common/board_r.c | 2 +- common/spl/spl.c | 2 +- drivers/watchdog/Makefile

Re: [U-Boot] [PATCH 6/8] ARM: imx: dh-imx6: Convert SATA support to DM

2019-05-12 Thread Marek Vasut
On 5/12/19 12:04 PM, Stefan Roese wrote: > On 12.05.19 02:57, Marek Vasut wrote: >> Enable DM SATA support on DHCOM iMX6 PDK2. >> Convert board code to match the DM support. >> >> Signed-off-by: Marek Vasut >> Cc: Fabio Estevam >> Cc: Ludwig Zenz >> Cc: Stefano Babic >> --- >>  

Re: [U-Boot] [PATCH v2] arm: socfpga: Re-add support for Aries MCV SoM and MCVEV[KP] board

2019-05-12 Thread Marek Vasut
On 5/12/19 7:25 PM, Wolfgang Grandegger wrote: > Re-add support for Aries Embedded MCV SoM, which is CycloneV based > and the associated MCVEVK and MCVEVP baseboard. The board can boot > from eMMC. Ethernet and USB is supported. > > The Aries Embedded boards have been removed with commit

Re: [U-Boot] [linux-sunxi] Re: [PATCH v3 3/3] arm: sunxi: h6: fix reset using r_wdog

2019-05-12 Thread Clément Péron
On Sun, 12 May 2019 at 20:23, Jagan Teki wrote: > > On Fri, Apr 19, 2019 at 2:49 PM Clément Péron wrote: > > > > Hi, > > > > On Fri, 19 Apr 2019 at 10:24, Jagan Teki wrote: > > > > > > On Fri, Apr 19, 2019 at 1:23 PM Clément Péron > > > wrote: > > > > > > > > Hi, > > > > > > > > +Chen-Yu Tsai

Re: [U-Boot] [PATCH 1/1] pci: pci_mvebu: ignore the local device

2019-05-12 Thread Marek Behun
> Is there a PCIe bridge involved in either of these? In the pre-history > of Kirkwood (which I believe has the same or similar IP block for > PCIe) I've hit platforms where the PCIe I/O fails because something > about the host bridge interferes with a real bridge on the bus where a > directly

[U-Boot] [PATCH] ARM: imx: cm_fx6: Drop ad-hoc SATA binding

2019-05-12 Thread Marek Vasut
Drop the ad-hoc AHCI binding code, this is superseded by CONFIG_DWC_AHSATA_AHCI=y resp. drivers/ata/dwc_ahsata.c Signed-off-by: Marek Vasut Cc: Christopher Spinrath Cc: Fabio Estevam Cc: Igor Grinberg Cc: Nikita Kiryanov Cc: Stefano Babic --- board/compulab/cm_fx6/cm_fx6.c | 63

[U-Boot] [PATCH] ARM: imx: apalis_imx6: Drop ad-hoc SATA binding

2019-05-12 Thread Marek Vasut
Drop the ad-hoc AHCI binding code, this is superseded by CONFIG_DWC_AHSATA_AHCI=y resp. drivers/ata/dwc_ahsata.c Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Marcel Ziswiler Cc: Max Krummenacher Cc: Stefan Agner Cc: Stefano Babic --- board/toradex/apalis_imx6/apalis_imx6.c | 49

Re: [U-Boot] [PATCH 1/1] pci: pci_mvebu: ignore the local device

2019-05-12 Thread Chris Packham
Hi Marek, On Fri, May 10, 2019 at 11:44 PM Marek Behun wrote: > > On Fri, 10 May 2019 10:15:25 +0200 > Stefan Roese wrote: > > > On 10.05.19 04:56, Marek Behún wrote: > > > The local device (host "bridge"?) on pci_mvebu controller reports > > > PCI_CLASS_MEMORY_OTHER in the class register. > >

Re: [U-Boot] [PATCH] arm: mvebu: armada-370-xp.dtsi: Add "u-boot, dm-pre-reloc" to "internal-regs"

2019-05-12 Thread Chris Packham
On Sun, May 12, 2019 at 10:09 PM Stefan Roese wrote: > > On 11.05.19 02:09, Chris Packham wrote: > > > > > > On Fri, 10 May 2019, 11:34 PM Stefan Roese, > > wrote: > > > > Without this U-Boot specific property, booting on Armada XP theadorable > > fails in SPL. All

Re: [U-Boot] [PATCH 00/11] dm: Removal of some boards due to DM_MMC deadline

2019-05-12 Thread Simon Glass
Hi Tom, On Sun, 12 May 2019 at 13:03, Simon Glass wrote: > > Hi Tom, > > On Sat, 11 May 2019 at 13:36, Tom Rini wrote: > > > > + Peng, the new MMC maintainer > > > > On Sat, May 11, 2019 at 01:23:45PM -0600, Simon Glass wrote: > > > > > This series starts the process of removing boards which

[U-Boot] SAMA5D2x and falcon boot mode

2019-05-12 Thread Andy Pont
Hello! Does anyone know if U-Boot for the Microchip (Atmel) SAMA5D2x devices supports the Falcon (SPL -> Linux) boot mode? -Andy. ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [PATCH v2 1/1] efi_loader: out of resources in AllocatePages()

2019-05-12 Thread Heinrich Schuchardt
According to the UEFI AllocatePages() has to return EFI_OUT_OF_RESOURCES if sufficient memory is not available. Change the return value. UEFI SCT II (2017): 3.2.1 AllocatePages(), 5.1.2.1.8 Signed-off-by: Heinrich Schuchardt --- v2 fix typo in title: %s/resource/resources/ ---

Re: [U-Boot] [PATCH 02/11] Add a simple script to remove boards

2019-05-12 Thread Simon Glass
Hi Tom, On Sat, 11 May 2019 at 13:44, Tom Rini wrote: > > On Sat, May 11, 2019 at 01:23:47PM -0600, Simon Glass wrote: > > > This script attempts to create a git commit which removes a single board. > > It is quite fallible and everything it does needs checking. But it can > > help speed up the

Re: [U-Boot] [PATCH 00/11] dm: Removal of some boards due to DM_MMC deadline

2019-05-12 Thread Simon Glass
Hi Tom, On Sat, 11 May 2019 at 13:36, Tom Rini wrote: > > + Peng, the new MMC maintainer > > On Sat, May 11, 2019 at 01:23:45PM -0600, Simon Glass wrote: > > > This series starts the process of removing boards which have not been > > converted to driver model for MMC. > > I'm sorry, no. Like

[U-Boot] [PATCH 1/1] efi_loader: comments for efi_install_fdt()

2019-05-12 Thread Heinrich Schuchardt
Describe that efi_install_fdt() defaults to using the device tree indicated by environment variable fdtcontroladdr. ACPI tables and device trees are mutually exclusive. Signed-off-by: Heinrich Schuchardt --- cmd/bootefi.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff

[U-Boot] [PATCH 1/1] efi_loader: deduplicate code in cmd/bootefi.c

2019-05-12 Thread Heinrich Schuchardt
Move duplicate initialization code to single instance. Adjust comments of concerned functions. Signed-off-by: Heinrich Schuchardt --- cmd/bootefi.c | 99 +++ 1 file changed, 37 insertions(+), 62 deletions(-) diff --git a/cmd/bootefi.c

Re: [U-Boot] [linux-sunxi] Re: [PATCH v3 3/3] arm: sunxi: h6: fix reset using r_wdog

2019-05-12 Thread Jagan Teki
On Fri, Apr 19, 2019 at 2:49 PM Clément Péron wrote: > > Hi, > > On Fri, 19 Apr 2019 at 10:24, Jagan Teki wrote: > > > > On Fri, Apr 19, 2019 at 1:23 PM Clément Péron wrote: > > > > > > Hi, > > > > > > +Chen-Yu Tsai for test and +Icenowy because she try to contact AW > > > about this issue. > >

Re: [U-Boot] [PATCH v3 3/3] arm: sunxi: h6: fix reset using r_wdog

2019-05-12 Thread Clément Péron
Hi Jagan, Is there anything you need to merge this patch? Thanks, Clément On Mon, 29 Apr 2019 at 22:28, Clément Péron wrote: > > Hi Jagan, > > FYI the patch on ATF has been merged just now. It has been tested by > André Przywara on A64, H5 and H6. > >

Re: [RFC PATCH] drivers: ata: ahci_sunxi: Increased SATA/AHCI DMA TX/RX FIFOs

2019-05-12 Thread Maxime Ripard
Hi, On Sun, May 12, 2019 at 06:08:19PM +0200, U.Mutlu wrote: > Hi Maxime & Others, > > what follows is a somewhat lengthy technical story behind this patch; > you can just skip it and jump to the end. > > > As can be seen in the ahci_sunxi.c, the port used in this patch > is this one (32bit): >

[U-Boot] [PATCH v2] arm: socfpga: Re-add support for Aries MCV SoM and MCVEV[KP] board

2019-05-12 Thread Wolfgang Grandegger
Re-add support for Aries Embedded MCV SoM, which is CycloneV based and the associated MCVEVK and MCVEVP baseboard. The board can boot from eMMC. Ethernet and USB is supported. The Aries Embedded boards have been removed with commit 03b54997d568 ("board/aries: Remove"). I will now take care of

Re: [RFC PATCH] drivers: ata: ahci_sunxi: Increased SATA/AHCI DMA TX/RX FIFOs

2019-05-12 Thread U.Mutlu
Hi Maxime & Others, what follows is a somewhat lengthy technical story behind this patch; you can just skip it and jump to the end. As can be seen in the ahci_sunxi.c, the port used in this patch is this one (32bit): #define AHCI_P0DMACR0x0170 It's a so called "Vendor Specific Port"

Re: [RFC PATCH] drivers: ata: ahci_sunxi: Increased SATA/AHCI DMA TX/RX FIFOs

2019-05-12 Thread Maxime Ripard
Hi, On Fri, May 10, 2019 at 09:25:50PM +0200, Uenal Mutlu wrote: > Increasing the SATA/AHCI DMA TX/RX FIFOs (P0DMACR.TXTS and .RXTS) from > default 0x0 each to 0x3 each gives a write performance boost of 120MB/s > from lame 36MB/s to 45MB/s previously. Read performance is about 200MB/s > [tested

Re: [U-Boot] [PATCH] arm: mvebu: armada-370-xp.dtsi: Add "u-boot, dm-pre-reloc" to "internal-regs"

2019-05-12 Thread Stefan Roese
On 11.05.19 02:09, Chris Packham wrote: On Fri, 10 May 2019, 11:34 PM Stefan Roese, mailto:s...@denx.de>> wrote: Without this U-Boot specific property, booting on Armada XP theadorable fails in SPL. All nodes in the "internal-regs" (simple-bus) DT node are not scanned, so the UART

Re: [U-Boot] [PATCH 6/8] ARM: imx: dh-imx6: Convert SATA support to DM

2019-05-12 Thread Stefan Roese
On 12.05.19 02:57, Marek Vasut wrote: Enable DM SATA support on DHCOM iMX6 PDK2. Convert board code to match the DM support. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Ludwig Zenz Cc: Stefano Babic --- board/dhelectronics/dh_imx6/dh_imx6.c | 55 +--

Re: [U-Boot] [PATCH 03/11] solidrun: Fix soldrun typo

2019-05-12 Thread Stefan Roese
On 11.05.19 21:23, Simon Glass wrote: This file in the MAINTAINERS file is incorrect. Fix it. Signed-off-by: Simon Glass Thanks for catching this one: Reviewed-by: Stefan Roese Thanks, Stefan ___ U-Boot mailing list U-Boot@lists.denx.de

[U-Boot] [PATCH 1/1] fs: fat: correct file name normalization

2019-05-12 Thread Heinrich Schuchardt
File names may not contain control characters (< 0x20). Simplify the coding. Signed-off-by: Heinrich Schuchardt --- fs/fat/fat_write.c | 48 +++--- 1 file changed, 20 insertions(+), 28 deletions(-) diff --git a/fs/fat/fat_write.c b/fs/fat/fat_write.c