Re: [PATCH v1 2/4] usb: xhci: xhci_mem_init: Use cpu_to_le64() and not xhci_writeq()

2020-07-16 Thread Bin Meng
Hi Stefan, On Thu, Jul 2, 2020 at 4:47 PM Stefan Roese wrote: > > xhci_writeq() makes the CPU->LE swapping only when addressing registers > in the xHCI controller address range and not in the local memory (RAM). Is the above behavior exposed by the MIPS platform's writel()? > We need to use

Re: [PATCH] mmc: msm_sdhci: Use mmc_of_parse for setting host_caps

2020-07-16 Thread Anibal Limon
I tested the patch using, https://snapshots.linaro.org/96boards/dragonboard410c/linaro/uboot/28/ And now the mmc devices appears. On Thu, 16 Jul 2020 at 04:07, Manivannan Sadhasivam < manivannan.sadhasi...@linaro.org> wrote: > Since the introduction of 'get_cd' callback in sdhci core, >

Re: [PATCH] mtd: mtdpart: use uint64_t instead of int for cur_off

2020-07-16 Thread Heiko Schocher
Hello Martin, Am 13.07.2020 um 14:40 schrieb Martin Kaistra: The types of "offset" and "size" of "struct mtd_partition" are uint64_t, while mtd_parse_partitions() uses int to work with these values. When the offset reaches 2GB, it is interpreted as a negative value, which leads to error

Re: [PATCH v1 3/4] usb: usb-uclass.c: Drop le16_to_cpu() as values are already swapped

2020-07-16 Thread Bin Meng
Hi Stefan, On Thu, Jul 2, 2020 at 4:47 PM Stefan Roese wrote: > > These values are already swapped to CPU endianess, so swapping them Can you please add more details as to when these values are swapped? I assume this is inside usb_select_config() which is called before this function is called?

Re: [PATCH v1 1/4] usb: xhci: Add missing endian conversions (cpu_to_leXX / leXX_to_cpu)

2020-07-16 Thread Bin Meng
On Thu, Jul 2, 2020 at 4:47 PM Stefan Roese wrote: > > While trying to use the U-Boot xHCI driver on the MIPS Octeon platform, > which is big endian, I noticed that the driver is missing a few endian > conversion calls. This patch adds these missing endian conversion > calls. > > Signed-off-by:

Re: [PATCH 4/4] ram: sifive: Avoid using hardcoded ram base and size

2020-07-16 Thread Leo Liang
Hi Bin, This whole patch set looks pretty good to me. Just out of curiosity and as being rather new to the u-boot community, would the following fix be more direct and avoid modifying general code? On Wed, Jul 15, 2020 at 08:23:03PM -0700, Bin Meng wrote: > From: Bin Meng > > At present the

Re: [PATCH v1 4/4] usb: xhci: Add virt_to_phys() to support mapped platforms

2020-07-16 Thread Bin Meng
Hi Stefan, On Thu, Jul 2, 2020 at 4:47 PM Stefan Roese wrote: > > Some platforms, like MIPS Octeon, use mapped addresses (virtual address > != physical address). On these platforms we need to make sure, that the > local virtual addresses are converted to physical (DMA) addresses for > the xHCI

Re: [PATCH] test/py: efi_secboot: fix Test Case 6c

2020-07-16 Thread AKASHI Takahiro
Heinrich, On Fri, Jul 17, 2020 at 07:55:03AM +0200, Heinrich Schuchardt wrote: > On 10.07.20 02:27, AKASHI Takahiro wrote: > > As the commit cb7116030aff ("efi_loader: time based authentication") > > fixed the timestamp handling, Test Case 6c has no longer worked as > > expected. > > So adjust

[PATCH] sandbox: enable FIT cipher support in defconfig

2020-07-16 Thread patrick . oppenlander
From: Patrick Oppenlander Linux distributions generally use the "make defconfig && make tools-all" recipe to generate a uboot-tools (or similar) package. This patch enables FIT cipher support in the default mkimage build. Signed-off-by: Patrick Oppenlander --- configs/sandbox_defconfig | 1 +

Re: [PATCH v4 00/25] x86: Enhance MTRR functionality to support multiple CPUs

2020-07-16 Thread Bin Meng
Hi Simon, On Fri, Jul 17, 2020 at 11:24 AM Simon Glass wrote: > > Hi Bin, > > On Tue, 7 Jul 2020 at 19:36, Simon Glass wrote: > > > > At present MTRRs are mirrored to the secondary CPUs only once, as those > > CPUs are started up. But U-Boot may add more MTRRs later, e.g. if it > > decides that

Re: [PATCH] bcmgenet: fix DMA buffer management

2020-07-16 Thread Jason Wessel
On 7/16/20 11:02 AM, Jason Wessel wrote: > > > On 7/16/20 7:02 AM, Jason Wessel wrote: >> On 7/9/20 3:11 AM, etienne.du...@gmail.com wrote: >>> From: Etienne Dublé >>> >>> This commit fixes a serious issue occuring when several network >>> commands are run on a raspberry pi 4 board: for

[PATCH v3 02/10] x86: Add debugging to table writing

2020-07-16 Thread Simon Glass
Writing tables is currently pretty opaque. Add a bit of debugging to the process so we can see what tables are written and where they start/end in memory. Signed-off-by: Simon Glass Reviewed-by: Bin Meng Reviewed-by: Wolfgang Wallner --- (no changes since v1) arch/x86/lib/tables.c | 38

[PATCH v3 03/10] x86: apl: Set the correct boot mode in the FSP-M code

2020-07-16 Thread Simon Glass
If there is MRC information we should run FSP-M with a different boot_mode flag since it is supposed to do a 'fast path' through the memory init. Fix this. Signed-off-by: Simon Glass Reviewed-by: Wolfgang Wallner Reviewed-by: Bin Meng --- (no changes since v2) Changes in v2: - Add a new

[PATCH v3 07/10] x86: Drop setup_pcat_compatibility()

2020-07-16 Thread Simon Glass
This function does not exist anymore. Drop it from the header file. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- (no changes since v2) Changes in v2: - Remove the function from zimage.c also arch/x86/include/asm/u-boot-x86.h | 2 -- arch/x86/lib/zimage.c | 10

[PATCH v3 10/10] acpi: Enable ACPI table generation by default on x86

2020-07-16 Thread Simon Glass
This should ideally be used by all x86 boards in U-Boot. Enable it by default. If some boards don't use it, the cost is small. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v3: - Rebase to x86/master Changes in v2: - Don't enable this for qemu arch/Kconfig | 1 +

[PATCH v3 09/10] x86: Rename board_final_cleanup() to board_final_init()

2020-07-16 Thread Simon Glass
This function sounds like something that is called when U-Boot is about to jump to Linux. In fact it is an init function. Rename it to reduce confusion. Signed-off-by: Simon Glass Reviewed-by: Bin Meng Reviewed-by: Wolfgang Wallner --- (no changes since v1) arch/x86/cpu/coreboot/coreboot.c

[PATCH v3 08/10] x86: acpi: Correct the version of the MADT

2020-07-16 Thread Simon Glass
Currently U-Boot implements version 2 but reports version 4. Correct it. Signed-off-by: Simon Glass Reviewed-by: Bin Meng Reviewed-by: Wolfgang Wallner --- (no changes since v2) Changes in v2: - Use ACPI_MADT_REV_ACPI_3_0 instead of the open-coded value arch/x86/lib/acpi_table.c | 2 +- 1

[PATCH v3 04/10] x86: apl: Adjust FSP-M code to avoid hard-coded address

2020-07-16 Thread Simon Glass
Update this code to calculate the address to use, rather than hard-coding it. Obtain the requested stack size from the FSP. Signed-off-by: Simon Glass Reviewed-by: Wolfgang Wallner Reviewed-by: Bin Meng --- (no changes since v2) Changes in v2: - Split out the boot_mode change into a

Re: [PATCH v4 00/25] x86: Enhance MTRR functionality to support multiple CPUs

2020-07-16 Thread Simon Glass
Hi Bin, On Tue, 7 Jul 2020 at 19:36, Simon Glass wrote: > > At present MTRRs are mirrored to the secondary CPUs only once, as those > CPUs are started up. But U-Boot may add more MTRRs later, e.g. if it > decides that a video console must be set up. > > This series enhances the x86

Re: [PATCH] test/py: efi_secboot: fix Test Case 6c

2020-07-16 Thread Heinrich Schuchardt
On 10.07.20 02:27, AKASHI Takahiro wrote: > As the commit cb7116030aff ("efi_loader: time based authentication") > fixed the timestamp handling, Test Case 6c has no longer worked as > expected. > So adjust the timestamp of "dbx" variable. > > Signed-off-by: AKASHI Takahiro > --- >

[PATCH v3 00/10] x86: Programmatic generation of ACPI tables (Part C)

2020-07-16 Thread Simon Glass
This series is split off from the original ACPI series and renumbered to version 1. It includes functions for generating more ACPI constructs as well as I2C, GPIO and sound support. There are also quite a few patches related to getting coral to work correctly with ACPI. Changes in v3: - Update

[PATCH v3 05/10] x86: Store the coreboot table address in global_data

2020-07-16 Thread Simon Glass
At present this information is used to locate and parse the tables but is not stored. Store it so that we can display it to the user, e.g. with the 'bdinfo' command. Note that now the GD_FLG_SKIP_LL_INIT flag is set in get_coreboot_info(), so it is always set when booting from coreboot.

[PATCH v3 01/10] x86: apl: Fix save/restore of ITSS priorities

2020-07-16 Thread Simon Glass
The FSP-S changes the ITSS priorities. The code that tries to save it before running FSP-S and restore it afterwards does not work as U-Boot relocates in between the save and restore. This means that the driver data saved before relocation is lost and the new driver just sees zeroes. Fix this by

[PATCH v3 06/10] x86: Update the comment about booting for FSP2

2020-07-16 Thread Simon Glass
The comment here applies only to FSP1, so update it. Signed-off-by: Simon Glass Reviewed-by: Bin Meng Reviewed-by: Wolfgang Wallner --- (no changes since v1) arch/x86/cpu/start.S | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/cpu/start.S b/arch/x86/cpu/start.S index

[PATCH 3/3] treewide: convert devfdt_get_addr() to dev_read_addr()

2020-07-16 Thread Masahiro Yamada
When you enable CONFIG_OF_LIVE, you will end up with a lot of conversions. To generate this commit, I used coccinelle excluding drivers/core/, include/dm/, and test/ The semantic patch that makes this change is as follows: @@ expression dev; @@ -devfdt_get_addr(dev)

[PATCH 1/3] treewide: convert (void *)devfdt_get_addr() to dev_read_addr_ptr()

2020-07-16 Thread Masahiro Yamada
Use the _ptr suffixed variant instead of casting. Also, convert it to dev_read_addr_ptr(), which is safe to CONFIG_OF_LIVE. One curious part is an error check like follows in drivers/watchdog/omap_wdt.c: priv->regs = (struct wd_timer *)devfdt_get_addr(dev); if (!priv->regs)

[PATCH 2/3] treewide: remove (phys_addr_t) casts from devfdt_get_addr()

2020-07-16 Thread Masahiro Yamada
This cast is unneeded. Signed-off-by: Masahiro Yamada --- drivers/net/fec_mxc.c | 2 +- drivers/net/fsl_mcdmafec.c| 2 +- drivers/net/mcffec.c | 2 +- drivers/net/xilinx_axi_emac.c | 2 +- drivers/net/xilinx_emaclite.c | 2 +- 5 files changed, 5 insertions(+), 5

[PATCH v2] efi_loader: Rename and correct values for ARM_SMC_MM_*

2020-07-16 Thread Ilias Apalodimas
Instead of adding the definition for the specific MM SVC used in StandAloneMM we added the one used in the standard SMC calls. So change the value from -4 to -5 to match the correct one defined in EDK2 and rename them to avoid future confusion Fixes 23a397d2e2fb: ("efi_loader: Add headers for

Re: [PATCH 4/4] mips: sync asm/mipsregs.h with Linux 5.7

2020-07-16 Thread Stefan Roese
On 12.07.20 01:46, Daniel Schwierzeck wrote: Sync asm/mipsregs.h with Linux 5.7. Also replace the custom symbols EBASE_CPUNUM and EBASE_WG with the according symbols from Linux. Signed-off-by: Daniel Schwierzeck Reviewed-by: Stefan Roese Tested-by: Stefan Roese Thanks, Stefan ---

Re: [PATCH 1/2] Revert "riscv: Allow use of reset drivers"

2020-07-16 Thread Rick Chen
Hi Bin > From: Bin Meng [mailto:bmeng...@gmail.com] > Sent: Thursday, July 16, 2020 9:36 AM > To: Sean Anderson > Cc: Rick Jian-Zhi Chen(陳建志); Tom Rini; U-Boot Mailing List; Bin Meng > Subject: Re: [PATCH 1/2] Revert "riscv: Allow use of reset drivers" > > Hi Rick, > > On Wed, Jul 8, 2020 at 3:04

Re: [PATCH 2/4] mips: add KSEG1 wrapper for change_k0_cca

2020-07-16 Thread Stefan Roese
On 12.07.20 00:45, Daniel Schwierzeck wrote: change_k0_cca() is called multiple times. Move the code for changing to KSEG1 to a macro to avoid code duplication. Also fix missing change to KSEG1 when changing to CONF_CM_CACHABLE_COW. Signed-off-by: Daniel Schwierzeck Reviewed-by: Stefan

Re: [PATCH 4/4] mips: add config options for generic cache setup code

2020-07-16 Thread Stefan Roese
On 12.07.20 00:45, Daniel Schwierzeck wrote: Add an own Kconfig symbol for the initial disabling of caches invoked from generic start code. Also add an own Kconfig symbols for the initialization of caches invoked from generic start code. Until now both code paths could only be disabled with

Re: [PATCH 1/4] mips: remove deprecated UNCACHED_SDRAM() macro

2020-07-16 Thread Stefan Roese
On 12.07.20 01:46, Daniel Schwierzeck wrote: This macro only served as a wrapper for CKSEG1ADDR() with an exception for CONFIG_TB0229. CONFIG_TB0229 doesn't exist, thus use CKSEG1ADDR() directly. This also prepares for an upcoming asm header sync with Linux. Signed-off-by: Daniel Schwierzeck

Re: [PATCH 3/4] mips: sync asm/addrspace.h with Linux 5.7

2020-07-16 Thread Stefan Roese
On 12.07.20 01:46, Daniel Schwierzeck wrote: Sync asm/addrspace.h with Linux 5.7 Signed-off-by: Daniel Schwierzeck Reviewed-by: Stefan Roese Tested-by: Stefan Roese Thanks, Stefan --- arch/mips/include/asm/addrspace.h | 14 ++ 1 file changed, 2 insertions(+), 12

Re: [PATCH 1/4] mips: start.S: remove dead code

2020-07-16 Thread Stefan Roese
On 12.07.20 00:45, Daniel Schwierzeck wrote: Since commit 703ec9ddf965 ("MIPS: Stop building position independent code") the relocation code was completely reworked and removed from start.S. Remove some left-overs of the old code. Signed-off-by: Daniel Schwierzeck Reviewed-by: Stefan Roese

Re: [PATCH 3/4] mips: refactor disabling of caches

2020-07-16 Thread Stefan Roese
On 12.07.20 00:45, Daniel Schwierzeck wrote: Logically this code belongs to cache_init.S. If a complex SoC needs to replace the generic cache init, mips_cache_disable() can now be called from custom start.S files. Signed-off-by: Daniel Schwierzeck Reviewed-by: Stefan Roese Tested-by:

Re: [PATCH 2/4] mips: sync asm/asm.h with Linux 5.7

2020-07-16 Thread Stefan Roese
On 12.07.20 01:46, Daniel Schwierzeck wrote: Sync asm/asm.h with Linux 5.7. Signed-off-by: Daniel Schwierzeck Reviewed-by: Stefan Roese Tested-by: Stefan Roese Thanks, Stefan --- arch/mips/include/asm/asm.h | 130 +++- 1 file changed, 10

Re: [PATCH v2 4/5] mips: cache: Make invalidate_dcache_range() weak to enable overwrite

2020-07-16 Thread Stefan Roese
Hi Daniel, On 12.07.20 00:45, Daniel Schwierzeck wrote: This patch adds __weak to invalidate_dcache_range() in lib/cache.c. This makes it possible to overwrite this function by a platforms specific version, which will be done for Octeon. Signed-off-by: Stefan Roese --- (no changes since v1)

Re: [PATCH 0/3] squashfs fixes

2020-07-16 Thread Joao Marcos Costa
Hello, Thomas! On Wed, 15 Jul 2020 22:11:40 +0200 Thomas Petazzoni wrote: > Hello Joao, > > As I started reviewing your patch series, I encountered a number of > build issues after applying your patches, and building on the latest > master. The following patches address the build failures I

Re: [PATCH 0/3] squashfs fixes

2020-07-16 Thread Thomas Petazzoni
On Thu, 16 Jul 2020 09:51:25 +0200 Joao Marcos Costa wrote: > > As I started reviewing your patch series, I encountered a number of > > build issues after applying your patches, and building on the latest > > master. The following patches address the build failures I have > > encountered. Could

Re: [PATCH] memsize: Make get_ram_size() work with arbitary RAM size

2020-07-16 Thread Bin Meng
Hi Wolfgang, On Tue, Jul 14, 2020 at 8:28 PM Wolfgang Denk wrote: > > Dear Bin Meng, > > In message > you > wrote: > > > > > I'm afraid I don't understand this change, Can you please explain a > > > bit more detailed what "any RAM size" means? > > > > I meant "any RAM size" that is not power

Re: [PATCH 1/2] Revert "riscv: Allow use of reset drivers"

2020-07-16 Thread Bin Meng
Hi Rick, On Thu, Jul 16, 2020 at 3:06 PM Rick Chen wrote: > > Hi Bin > > > From: Bin Meng [mailto:bmeng...@gmail.com] > > Sent: Thursday, July 16, 2020 9:36 AM > > To: Sean Anderson > > Cc: Rick Jian-Zhi Chen(陳建志); Tom Rini; U-Boot Mailing List; Bin Meng > > Subject: Re: [PATCH 1/2] Revert

Re: [PATCH for v2020.10 1/1] cmd: drop fitupd command

2020-07-16 Thread Lukasz Majewski
Hi Heinrich, > On 17.06.20 11:29, Lukasz Majewski wrote: > > On Wed, 17 Jun 2020 11:09:03 +0200 > > Heinrich Schuchardt wrote: > > > >> The `fitupd' command is not used by any board. The `dfu tftp' > >> command provides the same capabilities. > >> > >> So let's drop the `fitupd' command. > >>

[PATCH] arm64: zynqmp: Reduce malloc memory for mini QSPI configuration

2020-07-16 Thread Michal Simek
From: Ashok Reddy Soma Mini U-boot runs on lower foot print of 256KB OCM. Hence 8K memory for malloc may not be required. Reduce it by 1.5K. Signed-off-by: Ashok Reddy Soma Signed-off-by: Michal Simek --- include/configs/xilinx_zynqmp_mini_qspi.h | 2 +- 1 file changed, 1 insertion(+), 1

Re: [RFC PATCH v2] sunxi: Add UART4 console support for A64

2020-07-16 Thread Maxime Ripard
On Wed, Jul 08, 2020 at 03:11:18PM +0300, Nazım Gediz Aydındoğmuş wrote: > UART4 port of A64 was in conflict with R_UART of older SoCs, like A23. > > This commit adds necessary definitions to use UART4 port on A64. > > Signed-off-by: Nazım Gediz Aydındoğmuş > Tested-by: Faruk Kılavuz > --- >

[PATCH v3 6/7] arm: dts: mt8512: add usb related nodes

2020-07-16 Thread Chunfeng Yun
Add usb, usb phy nodes Signed-off-by: Chunfeng Yun --- v3: remove unused property mediatek,discth v2: no changes --- arch/arm/dts/mt8512-bm1-emmc.dts | 10 ++ arch/arm/dts/mt8512.dtsi | 40 +++- 2 files changed, 49 insertions(+), 1

[PATCH v3 7/7] configs: mt8512: enable fastboot

2020-07-16 Thread Chunfeng Yun
Enable fastboot to support download image from usb, also enable usb related drivers, such as usb phy etc. Signed-off-by: Chunfeng Yun --- v2~v3: no changes --- configs/mt8512_bm1_emmc_defconfig | 19 +++ 1 file changed, 19 insertions(+) diff --git

[PATCH v3 2/7] dt-bindings: usb: mtu3: add bindings for MediaTek USB3 DRD

2020-07-16 Thread Chunfeng Yun
Add dt-binding for MediaTek USB3 DRD Driver Signed-off-by: Chunfeng Yun --- v2~v3: no changes --- doc/device-tree-bindings/usb/mediatek,mtu3.txt | 74 ++ 1 file changed, 74 insertions(+) create mode 100644 doc/device-tree-bindings/usb/mediatek,mtu3.txt diff --git

Re: [PATCH v1 1/4] usb: xhci: Add missing endian conversions (cpu_to_leXX / leXX_to_cpu)

2020-07-16 Thread Stefan Roese
Hi Bin, On 02.07.20 10:47, Stefan Roese wrote: While trying to use the U-Boot xHCI driver on the MIPS Octeon platform, which is big endian, I noticed that the driver is missing a few endian conversion calls. This patch adds these missing endian conversion calls. Did you find the time to

[PATCHv5 15/18] powerpc: p1010rdb: Compile legacy ethernet init function when no DM_ETH

2020-07-16 Thread Zhiqiang Hou
From: Hou Zhiqiang The board_eth_init() is only used by legacy ethernet driver framework, so do not compile it when DM_ETH config has been selected. Signed-off-by: Hou Zhiqiang Reviewed-by: Vladimir Oltean --- V5: - No change. board/freescale/p1010rdb/p1010rdb.c | 2 ++ 1 file changed, 2

[PATCHv5 16/18] configs: P1010RDB: Enable DM_ETH config

2020-07-16 Thread Zhiqiang Hou
From: Hou Zhiqiang Enable the DM_ETH and DM_MDIO config. Signed-off-by: Hou Zhiqiang --- V5: - No change. configs/P1010RDB-PA_36BIT_NAND_defconfig | 2 ++ configs/P1010RDB-PA_36BIT_NOR_defconfig | 2 ++ configs/P1010RDB-PA_36BIT_SDCARD_defconfig | 2 ++

[PATCHv5 14/18] dts: powerpc: p1010rdb: Add eTSEC DT nodes

2020-07-16 Thread Zhiqiang Hou
From: Hou Zhiqiang P1010RDB implements 3 enhanced three-speed Ethernet controllers, and the connection is shown below: eTSEC1: Connected to RGMII PHY AR8033 eTSEC2: Connected to SGMII PHY AR8033 eTSEC3: Connected to SGMII PHY AR8033 Signed-off-by: Hou Zhiqiang --- V5: - No change.

[PATCHv5 10/18] configs: p1_p2_rdb: Add the default address of vsc7385 firmware

2020-07-16 Thread Zhiqiang Hou
From: Hou Zhiqiang Add the environment 'vscfw_addr' to assign a default address for vsc7385 firmware uploading. Signed-off-by: Hou Zhiqiang --- V5: - No change. include/configs/p1_p2_rdb_pc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/p1_p2_rdb_pc.h

[PATCHv5 13/18] configs: P1020RDB: Enable DM_ETH config

2020-07-16 Thread Zhiqiang Hou
From: Hou Zhiqiang Enable the DM_ETH and DM_MDIO config. On P1020RDB, the eTSEC1 is connecting with a switch VSC7385, so also enable the fixed PHY support. Signed-off-by: Hou Zhiqiang --- V5: - No change. configs/P1020RDB-PC_36BIT_NAND_defconfig | 3 +++

[PATCHv5 12/18] powerpc: p1_p2_rdb: Don't compile board_eth_init() when DM_ETH enabled

2020-07-16 Thread Zhiqiang Hou
From: Hou Zhiqiang The board_eth_init() is only used by legacy ethernet driver framework, so do not compile it when DM_ETH config has been selected. Signed-off-by: Hou Zhiqiang Reviewed-by: Vladimir Oltean --- V5: - No change. board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c | 2 ++ 1 file

[PATCHv5 09/18] fsl: p1_p2_rdb: Move vsc7835 firmware uploading to board_early_init_r()

2020-07-16 Thread Zhiqiang Hou
From: Hou Zhiqiang Move vsc7835 firmware uploading to board_early_init_r(), so that the switch also can work in DM eTSEC driver. Signed-off-by: Hou Zhiqiang Reviewed-by: Vladimir Oltean --- V5: - No change. board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c | 35 +++-- 1 file

Re: [PATCH] azure: gitlab: travis: Update OpenSBI used for RISC-V testing

2020-07-16 Thread Bin Meng
Hi Rick, On Thu, Jul 16, 2020 at 4:37 PM Rick Chen wrote: > > Hi Bin > > > From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Tom Rini > > Sent: Tuesday, July 07, 2020 10:13 PM > > To: Bin Meng > > Cc: U-Boot Mailing List; Bin Meng > > Subject: Re: [PATCH] azure: gitlab: travis:

Re: [PATCH v3] imx: support for conga-QMX8 board

2020-07-16 Thread Stefano Babic
Hallo Oliver, On 16.06.20 16:27, Oliver Graute wrote: > Add i.MX8QM qmx8 congatec board support > > U-Boot 2020.04-2-g1ff5446a63 (Jun 16 2020 - 13:47:28 +0200) > > CPU: NXP i.MX8QM RevB A53 at 1200 MHz > > Model: Congatec QMX8 Qseven series > Board: conga-QMX8 > Build: SCFW 494c97f3,

Re: [PATCH v1 1/4] usb: xhci: Add missing endian conversions (cpu_to_leXX / leXX_to_cpu)

2020-07-16 Thread Bin Meng
Hi Stefan, On Thu, Jul 16, 2020 at 5:25 PM Stefan Roese wrote: > > Hi Bin, > > On 02.07.20 10:47, Stefan Roese wrote: > > While trying to use the U-Boot xHCI driver on the MIPS Octeon platform, > > which is big endian, I noticed that the driver is missing a few endian > > conversion calls. This

[PATCHv5 03/18] net: fsl_mdio: Change to use virtual address

2020-07-16 Thread Zhiqiang Hou
From: Hou Zhiqiang Use virtual address to access the MII block registers instead of physical address. Signed-off-by: Hou Zhiqiang Reviewed-by: Vladimir Oltean --- V5: - No change. drivers/net/fsl_mdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCHv5 01/18] phy: make phy_connect_fixed work with a null mdio bus

2020-07-16 Thread Zhiqiang Hou
From: Vladimir Oltean It is utterly pointless to require an MDIO bus pointer for a fixed PHY device. The fixed.c implementation does not require it, only phy_device_create. Fix that. Signed-off-by: Vladimir Oltean Reviewed-by: Hou Zhiqiang Signed-off-by: Hou Zhiqiang --- V5: - Pick from

[PATCHv5 04/18] net: fsl_mdio: Correct the MII management register block address

2020-07-16 Thread Zhiqiang Hou
From: Hou Zhiqiang The MII management register block offset is different between gianfar and etsec2 compatible devices, this patch is to fix this issue by adding driver data for different compatible string. Fixes: 2932c5a802a9 ("net: tsec: fsl_mdio: add DM MDIO support") Signed-off-by: Hou

[PATCHv5 00/18] powerpc: convert p1010, p1020 and p2020 RDB boards to DM_ETH

2020-07-16 Thread Zhiqiang Hou
From: Hou Zhiqiang This patchset is to convert P1010, P1020 and P2020 RDB boards to DM_ETH. V5: Merged the following thread: https://patchwork.ozlabs.org/project/uboot/list/?series=174343=both=* Hou Zhiqiang (16): net: fsl_mdio: Change to use virtual address net: fsl_mdio: Correct the MII

[PATCHv5 02/18] configs: enable DM_MDIO for LS1021A-TWR and LS1021A-TSN

2020-07-16 Thread Zhiqiang Hou
From: Vladimir Oltean The tsec driver now requires DM_MDIO when DM_ETH is enabled. To avoid build errors, enable DM_MDIO in these boards' configs before we actually add DM_MDIO support to tsec. Signed-off-by: Vladimir Oltean Signed-off-by: Hou Zhiqiang --- V5: - Pick from

[PATCHv5 08/18] powerpc: mpc8xxx: Don't compile cpu_eth_init() when DM_ETH enabled

2020-07-16 Thread Zhiqiang Hou
From: Hou Zhiqiang The cpu_eth_init() is only used by the legacy ethernet driver framework. Signed-off-by: Hou Zhiqiang Reviewed-by: Vladimir Oltean --- V5: - No change. arch/powerpc/cpu/mpc8xxx/cpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/cpu/mpc8xxx/cpu.c

[PATCHv5 06/18] net: tsec: Add fixed-link PHY support

2020-07-16 Thread Zhiqiang Hou
From: Hou Zhiqiang The info of fixed-link PHY is described in DT node instead of getting from MII, so detect the fixed-link PHY DT node first, if it doesn't exist then probe the MII. Signed-off-by: Vladimir Oltean Signed-off-by: Hou Zhiqiang --- V5: - No change. drivers/net/tsec.c | 5

[PATCHv5 05/18] net: tsec: convert to use DM_MDIO when DM_ETH enabled

2020-07-16 Thread Zhiqiang Hou
From: Hou Zhiqiang For the platforms on which the eTSEC driver uses DM_ETH, convert its MDIO controller code to also use DM_MDIO. Note that for handling the TBI PHY (the MAC PCS for SGMII), we still don't register a udevice for it, since we can drive it locally and there is no point in doing

[PATCHv5 07/18] net: tsec: Add the compatible string "gianfar" support

2020-07-16 Thread Zhiqiang Hou
From: Hou Zhiqiang Add compatible string "gianfar" support and update the device-tree-bindings doc. Signed-off-by: Hou Zhiqiang Reviewed-by: Vladimir Oltean --- V5: - No change. doc/device-tree-bindings/net/fsl-tsec-phy.txt | 2 +- drivers/net/tsec.c| 16

Re: [PATCH] watchdog: imx: Support set timeout by wdt command

2020-07-16 Thread Stefano Babic
On 01.07.20 11:15, Mo, Yuezhang wrote: > After "4b969deac0 watchdog: imx: Add DM support", the imx watchdog > can be started by wdt command. But the imx watchdog driver only > support start with the default timeout. > > This commit adds the support for setting the timeout which pass from > the

[PATCH v3 0/7] Add support MediaTek USB3 DRD driver

2020-07-16 Thread Chunfeng Yun
These patches introduce the MediaTek USB3 Dual-Role Controller driver. The driver can be configured as Dual-Role Device, Peripheral only and Host only(xHCI) modes, and it's ported from Linux Kernel 5.8-rc1 v3 changes: 1. add patch [5/7] 2. add udc_set_speed() 3. simplify some code

[PATCH v3 5/7] usb: gadget: Add bcdDevice for the MTU3 USB Gadget Controller

2020-07-16 Thread Chunfeng Yun
Add an entry in usb_gadget_controller_number() for the MTU3 gadget controller. It is used to bind the USB Ethernet driver. Signed-off-by: Chunfeng Yun --- v3: new patch --- drivers/usb/gadget/gadget_chips.h | 8 1 file changed, 8 insertions(+) diff --git

[PATCH v3 1/7] dt-binding: usb: add bindings for some common properties

2020-07-16 Thread Chunfeng Yun
Add bindings for common properties, include maximum-speed, dr_mode and phy_type Signed-off-by: Chunfeng Yun --- v2~v3: no changes --- doc/device-tree-bindings/usb/generic.txt | 31 +++ 1 file changed, 31 insertions(+) create mode 100644

[PATCH v3 3/7] usb: add USB_SPEED_SUPER_PLUS

2020-07-16 Thread Chunfeng Yun
Add enum USB_SPEED_SUPER_PLUS for USB3.1 Signed-off-by: Chunfeng Yun --- v2~v3: no changes --- include/linux/usb/ch9.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/usb/ch9.h b/include/linux/usb/ch9.h index 989a5fc..7d225ee 100644 --- a/include/linux/usb/ch9.h +++

[PATCH] mmc: msm_sdhci: Use mmc_of_parse for setting host_caps

2020-07-16 Thread Manivannan Sadhasivam
Since the introduction of 'get_cd' callback in sdhci core, dragonboard410c's MMC interface is broken. It turns out that 'get_cd' callback checks for the host_caps for validating the chip select. And since the msm_sdhci driver is not parsing the host_caps from DT, not all of the cababilities are

[PATCH v2] azure: gitlab: travis: Update OpenSBI used for RISC-V testing

2020-07-16 Thread Bin Meng
From: Bin Meng Change to use OpenSBI release v0.8 generic platform images for QEMU RISC-V CI testing for azure, gitlab and travis-ci. Signed-off-by: Bin Meng Reviewed-by: Tom Rini --- Changes in v2: - rebase on u-boot/master .azure-pipelines.yml | 8 .gitlab-ci.yml | 8

Re: [PATCH] azure: gitlab: travis: Update OpenSBI used for RISC-V testing

2020-07-16 Thread Rick Chen
Hi Bin > From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Tom Rini > Sent: Tuesday, July 07, 2020 10:13 PM > To: Bin Meng > Cc: U-Boot Mailing List; Bin Meng > Subject: Re: [PATCH] azure: gitlab: travis: Update OpenSBI used for RISC-V > testing > > On Sat, Jun 27, 2020 at

[PATCHv5 18/18] configs: P2020RDB: Enable DM_ETH config

2020-07-16 Thread Zhiqiang Hou
From: Hou Zhiqiang Enable the DM_ETH and DM_MDIO config. On P2020RDB, the eTSEC1 is connecting with a switch VSC7385, so also enable the fixed PHY support. Signed-off-by: Hou Zhiqiang Reviewed-by: Vladimir Oltean --- V5: - No change. configs/P2020RDB-PC_36BIT_NAND_defconfig | 3 +++

[PATCHv5 17/18] dts: powerpc: p2020rdb: Add eTSEC DT nodes

2020-07-16 Thread Zhiqiang Hou
From: Hou Zhiqiang P2020RDB implements 3 enhanced three-speed Ethernet controllers, and the connection is shown below: eTSEC1: Connected to RGMII switch VSC7385 eTSEC2: Connected to SGMII PHY VSC8221 eTSEC3: Connected to SGMII PHY AR8021 Signed-off-by: Hou Zhiqiang --- V5: - No

[PATCHv5 11/18] dts: powerpc: p1020rdb: Add eTSEC DT nodes

2020-07-16 Thread Zhiqiang Hou
From: Hou Zhiqiang P1020RDB implements 3 enhanced three-speed Ethernet controllers, and the connection is shown below: eTSEC1: Connected to RGMII switch VSC7385 eTSEC2: Connected to SGMII PHY VSC8221 eTSEC3: Connected to SGMII PHY AR8021 Signed-off-by: Hou Zhiqiang Reviewed-by:

[PATCH] mx6memcal: fix build

2020-07-16 Thread Stefano Babic
Commit 4503299 has a side effect on this board, and build is broken. Adjust mx6memcal_defconfig to build it again. Signed-off-by: Stefano Babic --- configs/mx6memcal_defconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configs/mx6memcal_defconfig

Re: [PATCH] bcmgenet: fix DMA buffer management

2020-07-16 Thread Jason Wessel
On 7/9/20 3:11 AM, etienne.du...@gmail.com wrote: > From: Etienne Dublé > > This commit fixes a serious issue occuring when several network > commands are run on a raspberry pi 4 board: for instance a "dhcp" > command and then one or several "tftp" commands. In this case, > packet recv callbacks

Re: [PATCH] imx6: Remove unneeded CONFIG_DM_MDIO

2020-07-16 Thread Fabio Estevam
Hi Stefano, On Thu, Jul 16, 2020 at 9:26 AM Stefano Babic wrote: > Right - it looks like that CONFIG_DM is removed at all from mx6memcal, > removing an implicit OF_LIBFDT. > > https://travis-ci.org/github/sbabic/u-boot-imx/jobs/708667322 I think your proposed patch makes sense. I have

Re: [PATCH v3 7/8] efi_loader: signature: rework for intermediate

2020-07-16 Thread REITHER Robert - Contractor
Hi, I think I have found a bug in lib/efi_loader/efi_signature.c efi_verify_certificate() + cert = x509_cert_parse(sig_data->data, sig_data->size); + if (!cert) { +

Re: [PATCH] imx6: Remove unneeded CONFIG_DM_MDIO

2020-07-16 Thread Fabio Estevam
Hi Stefano, On Thu, Jul 16, 2020 at 9:05 AM Stefano Babic wrote: > This has a side-effect because it breaks mx6memcal. I propose to let > this in and to fix mx6memcal as follows: I was not able to reproduce the build break on mx6memcal_defconfig here. Just applied the patch against U-Boot

Re: [GIT PULL] please pull mmc-7-24-2020

2020-07-16 Thread Tom Rini
On Tue, Jul 14, 2020 at 08:00:56AM +, Peng Fan wrote: > Hi Tom, > > Please pull mmc-7-24-2020 > Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] imx6: Remove unneeded CONFIG_DM_MDIO

2020-07-16 Thread Stefano Babic
On 16.07.20 14:18, Fabio Estevam wrote: > Hi Stefano, > > On Thu, Jul 16, 2020 at 9:05 AM Stefano Babic wrote: > >> This has a side-effect because it breaks mx6memcal. I propose to let >> this in and to fix mx6memcal as follows: > > I was not able to reproduce the build break on

Re: [PATCH] imx6: Remove unneeded CONFIG_DM_MDIO

2020-07-16 Thread Stefano Babic
On 16.07.20 15:03, Fabio Estevam wrote: > Hi Stefano, > > On Thu, Jul 16, 2020 at 9:26 AM Stefano Babic wrote: > >> Right - it looks like that CONFIG_DM is removed at all from mx6memcal, >> removing an implicit OF_LIBFDT. >> >> https://travis-ci.org/github/sbabic/u-boot-imx/jobs/708667322 > >

Re: [PATCH] imx6: Remove unneeded CONFIG_DM_MDIO

2020-07-16 Thread Stefano Babic
Hi Fabio, On 13.07.20 16:59, Fabio Estevam wrote: > As explained in the CONFIG_DM_MDIO text inside drivers/net/Kconfig: > > "Useful in particular for systems that support > DM_ETH and have a stand-alone MDIO hardware block shared by multiple > Ethernet interfaces." > > i.MX6 has a single FEC

Re: [PATCH 05/17] xen: Port Xen hypervizor related code from mini-os

2020-07-16 Thread Anastasiia Lukianenko
Hello Julien, On Wed, 2020-07-01 at 18:46 +0100, Julien Grall wrote: > Title: s/hypervizor/hypervisor/ > > On 01/07/2020 17:29, Anastasiia Lukianenko wrote: > > From: Oleksandr Andrushchenko > > > > Port hypervizor related code from mini-os. Update essential > > Ditto. > > But I would be

Re: [PATCHv5 02/18] configs: enable DM_MDIO for LS1021A-TWR and LS1021A-TSN

2020-07-16 Thread Vladimir Oltean
On Thu, Jul 16, 2020 at 06:09:09PM +0800, Zhiqiang Hou wrote: > From: Vladimir Oltean > > The tsec driver now requires DM_MDIO when DM_ETH is enabled. To avoid > build errors, enable DM_MDIO in these boards' configs before we actually > add DM_MDIO support to tsec. > > Signed-off-by: Vladimir

Pull request for UEFI sub-system for efi-2020-10-rc1 (4)

2020-07-16 Thread Heinrich Schuchardt
The following changes since commit 47b0a493247b38c1557062e108cc4868e211a73e: Merge branch '2020-07-15-ci-updates' (2020-07-15 15:48:05 -0400) are available in the Git repository at: https://gitlab.denx.de/u-boot/custodians/u-boot-efi.git tags/efi-2020-10-rc1-4 for you to fetch changes up

Re: [PATCH] mmc: msm_sdhci: Use mmc_of_parse for setting host_caps

2020-07-16 Thread Ramon Fried
On Thu, Jul 16, 2020 at 4:50 PM Anibal Limon wrote: > > I tested the patch using, > > https://snapshots.linaro.org/96boards/dragonboard410c/linaro/uboot/28/ > > And now the mmc devices appears. > > On Thu, 16 Jul 2020 at 04:07, Manivannan Sadhasivam > wrote: >> >> Since the introduction of

Re: [PATCH v2 0/9] Introduce UCLASS_SOC

2020-07-16 Thread Grygorii Strashko
On 16/07/2020 07:39, Dave Gerlach wrote: Hi, This is v2 of the series to introduce UCLASS_SOC to be used for SOC identification and attribute matching based on SoC ID info. The first version of this series can be found at [1]. Biggest change is the addition of a patch to add documentation

Re: [PATCH] bcmgenet: fix DMA buffer management

2020-07-16 Thread Jason Wessel
On 7/16/20 7:02 AM, Jason Wessel wrote: > On 7/9/20 3:11 AM, etienne.du...@gmail.com wrote: >> From: Etienne Dublé >> >> This commit fixes a serious issue occuring when several network >> commands are run on a raspberry pi 4 board: for instance a "dhcp" >> command and then one or several

Re: [PATCH 2/2] fdt_support: skip MTD node with "disabled" in fdt_fixup_mtdparts()

2020-07-16 Thread Simon Glass
On Wed, 15 Jul 2020 at 04:57, Masahiro Yamada wrote: > > Currently, fdt_fixup_mtdparts() only checks the compatible property. > It is pointless to fix up the disabled node. > > Skip the node if it has the property: > > status = "disabled" > > Signed-off-by: Masahiro Yamada > --- > >

Re: [PATCH v2 06/14] board_f: m68k: Factor out m68k-specific bdinfo setup

2020-07-16 Thread Simon Glass
Hi Ovidiu, On Wed, 15 Jul 2020 at 08:07, Ovidiu Panait wrote: > > Hi Simon, > > On 15.07.2020 04:05, Simon Glass wrote: > > On Fri, 10 Jul 2020 at 04:25, Ovidiu Panait > > wrote: > >> Factor out m68k-specific bdinfo setup to arch_setup_bdinfo in > >> arch/m68k/lib/bdinfo.c. Also, use

Re: [PATCH 1/1] cmd: fix lsblk command

2020-07-16 Thread Simon Glass
On Mon, 13 Jul 2020 at 14:25, Heinrich Schuchardt wrote: > > Add missing includes. > Add CMD_LSBLK to sandbox_defconfig. > > Signed-off-by: Heinrich Schuchardt > --- > cmd/lsblk.c | 2 ++ > configs/sandbox_defconfig | 1 + > 2 files changed, 3 insertions(+) Reviewed-by: Simon

Re: [PATCH v3 29/49] rockchip: Enable building a SPI ROM image on bob

2020-07-16 Thread Simon Glass
Hi Jagan, On Wed, 15 Jul 2020 at 13:14, Jagan Teki wrote: > > Hi Simon, > > On Thu, Jul 16, 2020 at 12:10 AM Simon Glass wrote: > > > > Hi Jagan, > > > > On Mon, 13 Jul 2020 at 09:36, Jagan Teki wrote: > > > > > > On Fri, Jul 10, 2020 at 6:11 AM Simon Glass wrote: > > > > > > > > Add a simple

Re: [PATCH 1/2] fdt_support: call mtdparts_init() after finding MTD node to fix up

2020-07-16 Thread Simon Glass
On Wed, 15 Jul 2020 at 04:57, Masahiro Yamada wrote: > > Platform code can call fdt_fixup_mtdparts() in order to hand U-Boot's > MTD partitions over to the Linux device tree. > > Currently, fdt_fixup_mtdparts() calls mtdparts_init() in its entry. > If no target MTD device is found, an error

Re: [PATCH] fdt_support: add static to fdt_node_set_part_info()

2020-07-16 Thread Simon Glass
On Wed, 15 Jul 2020 at 04:36, Masahiro Yamada wrote: > > This function is only called from fdt_fixup_mtdpart() in the same file. > > Signed-off-by: Masahiro Yamada > --- > > common/fdt_support.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Reviewed-by: Simon Glass

  1   2   >