[PATCH] usb: xhci: Fix compare to use physical addresses in xhci_bulk_tx()

2021-01-14 Thread Stefan Roese
Testing with v2021.01 on MIPS Octeon has shown, that the latest patch for the "short packet event trb handling" did introduce a bug on platforms with virtual address != physical address. This patch fixes this issue by using the correct address types in the compare (both physical in this case).

[PATCH v9 6/7] riscv: Add Microchip MPFS Icicle Kit support

2021-01-14 Thread Padmarao Begari
This patch adds Microchip MPFS Icicle Kit support. For now, only NS16550 Serial, Microchip clock, Cadence eMMC and MACB drivers are enabled. The Microchip MPFS Icicle defconfig by default builds U-Boot for S-Mode because U-Boot on Microchip PolarFire SoC will run in S-Mode as payload of HSS +

[PATCH v9 7/7] doc: board: Add Microchip MPFS Icicle Kit doc

2021-01-14 Thread Padmarao Begari
This doc describes the procedure to build, flash and boot Linux using U-boot on Microchip MPFS Icicle Kit. Signed-off-by: Padmarao Begari Reviewed-by: Anup Patel Reviewed-by: Bin Meng --- doc/board/index.rst | 1 + doc/board/microchip/index.rst | 9 +

[PATCH v9 4/7] clk: Add Microchip PolarFire SoC clock driver

2021-01-14 Thread Padmarao Begari
Add clock driver code for the Microchip PolarFire SoC. This driver handles reset and clock control of the Microchip PolarFire SoC device. Signed-off-by: Padmarao Begari Reviewed-by: Anup Patel Tested-by: Bin Meng --- drivers/clk/Kconfig | 1 + drivers/clk/Makefile

[PATCH v9 5/7] riscv: dts: Add device tree for Microchip Icicle Kit

2021-01-14 Thread Padmarao Begari
Add device tree for Microchip PolarFire SoC Icicle Kit. Signed-off-by: Padmarao Begari Reviewed-by: Anup Patel Reviewed-by: Bin Meng --- arch/riscv/dts/Makefile | 1 + .../dts/microchip-mpfs-icicle-kit-u-boot.dtsi | 14 + arch/riscv/dts/microchip-mpfs-icicle-kit.dts

[PATCH v9 3/7] net: macb: Add phy address to read it from device tree

2021-01-14 Thread Padmarao Begari
Read phy address from device tree and use it to find the phy device if not found then search in the range of 0 to 31. Signed-off-by: Padmarao Begari Reviewed-by: Anup Patel Reviewed-by: Bin Meng Tested-by: Bin Meng --- drivers/net/macb.c | 13 + 1 file changed, 13 insertions(+)

[PATCH v9 2/7] net: macb: Add DMA 64-bit address support for macb

2021-01-14 Thread Padmarao Begari
Enable 32-bit or 64-bit DMA in the macb driver based on the macb hardware compatibility and it is configured with structure macb_config in the driver. The Microchip PolarFire SoC Memory Protection Unit(MPU) gives the 64-bit DMA access with the GEM, the MPU transactions on the AXI bus is 64-bit

[PATCH v9 1/7] riscv: Add DMA 64-bit address support

2021-01-14 Thread Padmarao Begari
dma_addr_t holds any valid DMA address. If the DMA API only uses 32/64-bit addresses, dma_addr_t need only be 32/64 bits wide. Signed-off-by: Padmarao Begari Reviewed-by: Anup Patel Reviewed-by: Bin Meng Reviewed-by: Rick Chen --- arch/riscv/Kconfig | 4

[PATCH v9 0/7] Microchip PolarFire SoC support

2021-01-14 Thread Padmarao Begari
This patch set adds Microchip PolarFire SoC Icicle Kit support to RISC-V U-Boot. The patches are based upon latest U-Boot tree (https://gitlab.denx.de/u-boot/u-boot.git) at commit id ab1a425524a79eeca61e7b67fdf382c7a499346f All drivers namely: NS16550 Serial, Microchip clock, Cadence eMMC and

[PATCH v2 2/2] doc: device-tree-bindings: rtc: Abracon AB x80x i2c rtc

2021-01-14 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" Document the bindings for abracon,abx80x and related compatibles. Signed-off-by: Ying-Chun Liu (PaulLiu) --- v2: nothing changed --- .../rtc/abracon,abx80x.txt| 31 +++ 1 file changed, 31 insertions(+) create mode 100644

[PATCH v2 1/2] rtc: add rtc-abx80x, a driver for the Abracon AB x80x i2c rtc

2021-01-14 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" This is a basic driver for the ultra-low-power Abracon AB x80x series of RTC chips. It supports in particular, the supersets AB0805 and AB1805. It allows reading and writing the time, and enables the supercapacitor or battery charger. Signed-off-by: Ying-Chun Liu

[PATCH v2 0/2] add rtc-abx80x, a driver for the Abracon AB x80x i2c rtc

2021-01-14 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" This is a basic driver for the ultra-low-power Abracon AB x80x series of RTC chips. It supports in particular, the supersets AB0805 and AB1805. It allows reading and writing the time, and enables the supercapacitor or battery charger. Ying-Chun Liu (PaulLiu) (2):

[RFC PATCH] common: board_f: add print_archinfo to display arch information

2021-01-14 Thread Jaehoon Chung
Current U-boot doesn't display a message about which architecture is used. So Developer is difficult to know it by intuition. This patch is displaying to CPU information with CONFIG_SYS_CPU. CPU: armv8 DARM: 3.9 GiB Signed-off-by: Jaehoon Chung --- common/board_f.c | 11 +++ 1 file

Re: [PATCH 1/3] efi_loader: print boot device and file path in helloworld

2021-01-14 Thread AKASHI Takahiro
On Fri, Jan 15, 2021 at 04:12:18AM +0100, Heinrich Schuchardt wrote: > Am 15. Januar 2021 02:56:03 MEZ schrieb AKASHI Takahiro > : > >Heinrich, > > > >On Tue, Jan 12, 2021 at 08:58:40PM +0100, Heinrich Schuchardt wrote: > >> Let helloworld.efi print the device path of the boot device and the >

Re: [PATCH 1/6] net: macb: use dummy descriptor for RBQP

2021-01-14 Thread Padmarao Begari
Hi Eugen, On Thu, Jan 14, 2021 at 4:50 PM wrote: > On 17.12.2020 07:22, Padmarao Begari - I30397 wrote: > > Hi Eugen, > > > > This series of patches break my side of work(patches) so you need to > > create patches after my patches are going into master branch because my > > patches are already

Re: [PATCH 1/3] efi_loader: print boot device and file path in helloworld

2021-01-14 Thread Heinrich Schuchardt
Am 15. Januar 2021 02:56:03 MEZ schrieb AKASHI Takahiro : >Heinrich, > >On Tue, Jan 12, 2021 at 08:58:40PM +0100, Heinrich Schuchardt wrote: >> Let helloworld.efi print the device path of the boot device and the >file >> path as provided by the loaded image protocol. >> >> Signed-off-by:

[PATCH] autoboot: fix illegal memory access when stop key and delay key are empty

2021-01-14 Thread Yuezhang.Mo
If both stop key and delay key are empty, the length of these keys is 0. The subtraction operation will cause the u_int type variable to overflow, will cause illegal memory access in key input loop. This commit fixes this bug by using int type instead of u_init. --- common/autoboot.c | 6 +++---

[PATCH] dm: uclass: allow phandle < -1 with u32 type

2021-01-14 Thread Jianqun Xu
First, uclass try to get device node phandle by calling dev_read_u32_default, which always return the third argument def, the function codes as following: ofnode_read_u32_default(ofnode, *propname, u32 def) ofnode_read_u32(node, propname, ); return def; In

Re: [RFC PATCH 3/3] efidebug: add multiple device path instances on Boot####

2021-01-14 Thread AKASHI Takahiro
On Thu, Jan 14, 2021 at 02:36:23PM +0200, Ilias Apalodimas wrote: > On Thu, Jan 14, 2021 at 01:07:42PM +0100, Heinrich Schuchardt wrote: > > On 14.01.21 10:55, Ilias Apalodimas wrote: > > > On Thu, Jan 14, 2021 at 02:11:33PM +0900, AKASHI Takahiro wrote: > > >> Ilias, > > >> > > >> On Wed, Jan 13,

Re: Invitation: Regular U-Boot video call (Tuesday 19th)

2021-01-14 Thread Bin Meng
Hi Peng, On Fri, Jan 15, 2021 at 9:33 AM Peng Fan wrote: > > Hi Simon, > > > Subject: Invitation: Regular U-Boot video call (Tuesday 19th) > > > > Hi, > > > > (This has been discussed for a while now so I thought I would just try it) > > > > As an experiment I'd like to set up a regular

Re: [PATCH 1/3] efi_loader: print boot device and file path in helloworld

2021-01-14 Thread AKASHI Takahiro
Heinrich, On Tue, Jan 12, 2021 at 08:58:40PM +0100, Heinrich Schuchardt wrote: > Let helloworld.efi print the device path of the boot device and the file > path as provided by the loaded image protocol. > > Signed-off-by: Heinrich Schuchardt > --- > lib/efi_loader/helloworld.c | 167

RE: Invitation: Regular U-Boot video call (Tuesday 19th)

2021-01-14 Thread Peng Fan
Hi Simon, > Subject: Invitation: Regular U-Boot video call (Tuesday 19th) > > Hi, > > (This has been discussed for a while now so I thought I would just try it) > > As an experiment I'd like to set up a regular 30-minute U-Boot call for people > to discuss features, bugs, patches, etc. > >

Re: [PATCH] mmc: sdhci: skip cache invalidation if DMA is not used

2021-01-14 Thread Andy.Wu
The config usage keep the same style as function sdhci_prepare_dma(). Reviewed-by: Andy Wu > +#if (defined(CONFIG_MMC_SDHCI_SDMA) || CONFIG_IS_ENABLED(MMC_SDHCI_ADMA)) > dma_unmap_single(host->start_addr, data->blocks * data->blocksize, > mmc_get_dma_dir(data)); > +#endif -- Sent from:

[PATCH] dm: uclass: allow phandle < -1 with u32 type

2021-01-14 Thread Jianqun Xu
First, the uclass_find_device_by_phandle will try to get phandle of device node by name, calls the dev_read_u32_default, the function always return the argument 'u32 def', as following: ofnode_read_u32_default(ofnode node, const char *propname, u32 def)

Re: [PATCH] efi_loader: Enable run-time variable support for tee based variables

2021-01-14 Thread Ilias Apalodimas
Hi Atish, > > > > diff --git a/lib/efi_loader/efi_var_mem.c b/lib/efi_loader/efi_var_mem.c > > index 7a2dba7dc263..fd97d5b56300 100644 > > --- a/lib/efi_loader/efi_var_mem.c > > +++ b/lib/efi_loader/efi_var_mem.c > > @@ -10,7 +10,7 @@ > > #include > > #include > > > > -static struct

Re: [PATCH v2] cmd: pxe: add support for FDT overlays

2021-01-14 Thread Tom Rini
On Tue, Jan 05, 2021 at 09:14:24AM +0100, Neil Armstrong wrote: > On 04/01/2021 17:21, Jernej Škrabec wrote: > > Dne ponedeljek, 04. januar 2021 ob 15:41:17 CET je Tom Rini napisal(a): > >> On Mon, Jan 04, 2021 at 03:33:43PM +0100, Neil Armstrong wrote: > >>> This adds support for specifying FDT

Re: [PATCH 2/4] power: pmic: add driver for Monolithic Power mp5416

2021-01-14 Thread Tim Harvey
On Thu, Jan 14, 2021 at 2:07 PM Jaehoon Chung wrote: > > On 1/14/21 2:00 AM, Tim Harvey wrote: > > This adds basic register access and child regulator binding > > for the Monolithic MP5416 Power Management IC which integrates > > four DC/DC switching converters and five LDO regulators. > > > >

Re: [PATCH 2/4] power: pmic: add driver for Monolithic Power mp5416

2021-01-14 Thread Jaehoon Chung
On 1/14/21 2:00 AM, Tim Harvey wrote: > This adds basic register access and child regulator binding > for the Monolithic MP5416 Power Management IC which integrates > four DC/DC switching converters and five LDO regulators. > > Signed-off-by: Tim Harvey > --- > drivers/power/pmic/Kconfig | 15

Re: [PATCH 14/17] mmc: pci_mmc: Set the removable flag

2021-01-14 Thread Jaehoon Chung
On 1/14/21 12:29 PM, Simon Glass wrote: > Set this flag so that it is available to those looking at the device. For > non-removable devices there is no need to check for insertion/removable > since the media can never change. > > Signed-off-by: Simon Glass Reviewed-by: Jaehoon Chung Best

Re: [PATCH 13/17] x86: coral: Add a devicetree node for eMMC

2021-01-14 Thread Jaehoon Chung
On 1/14/21 12:29 PM, Simon Glass wrote: > Add a node for this so we can indicate that it is does not require any > ACPI code. > > Signed-off-by: Simon Glass Reviewed-by: Jaehoon Chung Best Regards, Jaehoon Chung > --- > > arch/x86/dts/chromebook_coral.dts | 6 ++ > 1 file changed, 6

Re: [PATCH 12/17] mmc: pci_mmc: Only generate ACPI code for the SD card

2021-01-14 Thread Jaehoon Chung
On 1/14/21 12:29 PM, Simon Glass wrote: > At present if an eMMC part is in the system, the ACPI table generated > will include information about that, as well as the SD card. We only need > to include the SD card, since it has a card-detect GPIO. Use a different > compatible string for each

[PATCH v2 1/3] net: cortina_ni: Add eth support for Cortina Access CAxxxx SoCs

2021-01-14 Thread Alex Nemirovsky
From: Aaron Tseng Add Cortina Access Ethernet device driver for CA SoCs. This driver supports both legacy and DM_ETH network models. Signed-off-by: Aaron Tseng Signed-off-by: Alex Nemirovsky Signed-off-by: Abbie Chang CC: Joe Hershberger CC: Abbie Chang CC: Tom Rini --- Changes in

[PATCH v2 3/3] board: presidio-asic: Add CAxxxx Ethernet support

2021-01-14 Thread Alex Nemirovsky
Add CA Ethernet support for the Cortina Access Presidio Engineering Board Signed-off-by: Alex Nemirovsky CC: Tom Rini --- Changes in v2: - only support DM_ETH network models by removing code for legacy mode support arch/arm/dts/ca-presidio-engboard.dts| 31

[PATCH v2 2/3] net: phy: ca_phy: Add driver for CAxxxx SoCs

2021-01-14 Thread Alex Nemirovsky
From: Abbie Chang Add phy driver support for MACs embedded inside Cortina Access SoCs Signed-off-by: Abbie Chang Signed-off-by: Alex Nemirovsky CC: Joe Hershberger CC: Tom Rini CC: Aaron Tseng Moved out PHY specific code out of Cortina NI Ethernet driver and into a Cortina Access PHY

Re: [PATCH] efi_loader: Enable run-time variable support for tee based variables

2021-01-14 Thread Atish Patra
On Thu, Jul 23, 2020 at 12:53 AM Ilias Apalodimas wrote: > > We recently added functions for storing/restoring variables > from a file to a memory backed buffer marked as __efi_runtime_data > commit f1f990a8c958 ("efi_loader: memory buffer for variables") > commit 5f7dcf079de8 ("efi_loader: UEFI

[PATCH v8] Add support for stack-protector

2021-01-14 Thread Joel Peshkin
Add support for stack protector for UBOOT, SPL, and TPL as well as new pytest for stackprotector Signed-off-by: Joel Peshkin --- Cc: Simon Glass Cc: Heinrich Schuchardt Changes for v8: - Fix commit message - Force canary to UL type Changes for v7: - Fix commit message - add

Re: [PATCH] env: Remove all dependencies for SYS_REDUNDAND_ENVIRONMENT

2021-01-14 Thread Tom Rini
On Wed, Jan 13, 2021 at 03:50:17PM +0100, Michal Simek wrote: > > > On 13. 01. 21 15:43, Tom Rini wrote: > > On Wed, Jan 13, 2021 at 03:24:24PM +0100, Michal Simek wrote: > >> On 13. 01. 21 15:02, Tom Rini wrote: > >>> On Wed, Jan 13, 2021 at 01:26:27PM +0100, Michal Simek wrote: > >>> >

Re: Pull request for UEFI sub-system for efi-2021-04-rc1

2021-01-14 Thread Tom Rini
On Wed, Jan 13, 2021 at 07:43:56PM +0100, Heinrich Schuchardt wrote: > Dear Tom, > > The following changes since commit ee6726be4f0dccb612f0193c62ca149164c8a5af: > > Merge tag 'ti-v2021.04-rc1' of > https://gitlab.denx.de/u-boot/custodians/u-boot-ti (2021-01-12 09:32:48 > -0500) > > are

Re: [PATCH 1/5] dm: crypto: Define UCLASS API for ECDSA signature verification

2021-01-14 Thread Simon Glass
Hi Alex, On Thu, 14 Jan 2021 at 09:09, Alex G. wrote: > > On 1/13/21 10:10 AM, Simon Glass wrote: > > Hi Alexandru, > > > > On Mon, 11 Jan 2021 at 08:41, Alexandru Gagniuc > > wrote: > >> > >> Define a UCLASS API for verifying ECDSA signatures. Unlike > >> UCLASS_MOD_EXP, which focuses

Re: Invitation: Regular U-Boot video call (Tuesday 19th)

2021-01-14 Thread Simon Glass
On Thu, 14 Jan 2021 at 11:39, Tom Rini wrote: > > On Thu, Jan 14, 2021 at 07:00:34AM +0100, Heinrich Schuchardt wrote: > > On 1/14/21 6:42 AM, Bin Meng wrote: > > > Hi Simon, > > > > > > On Thu, Jan 14, 2021 at 5:57 AM Simon Glass wrote: > > > > > > > > Hi Bin, > > > > > > > > I added you,

Re: Invitation: Regular U-Boot video call (Tuesday 19th)

2021-01-14 Thread Tom Rini
On Thu, Jan 14, 2021 at 07:00:34AM +0100, Heinrich Schuchardt wrote: > On 1/14/21 6:42 AM, Bin Meng wrote: > > Hi Simon, > > > > On Thu, Jan 14, 2021 at 5:57 AM Simon Glass wrote: > > > > > > Hi Bin, > > > > > > I added you, Heinrich, Tom and Andy. > > > > > > For others, as mentioned in the

Re: [PATCH] net: sun8i-emac: Allow all RGMII PHY modes

2021-01-14 Thread Joe Hershberger
On Wed, Jan 13, 2021 at 4:43 PM André Przywara wrote: > > On 30/11/2020 17:23, Heinrich Schuchardt wrote: > > Hi Joe, > > > On 11/16/20 10:46 AM, Andre Przywara wrote: > >> So far all GBit users of the sun8i-emac driver were using the "rgmii" > >> PHY mode, even though this turns out to be mostly

Re: [PATCH 1/5] dm: crypto: Define UCLASS API for ECDSA signature verification

2021-01-14 Thread Alex G.
On 1/13/21 10:10 AM, Simon Glass wrote: Hi Alexandru, On Mon, 11 Jan 2021 at 08:41, Alexandru Gagniuc wrote: Define a UCLASS API for verifying ECDSA signatures. Unlike UCLASS_MOD_EXP, which focuses strictly on modular exponentiation, the ECDSA class focuses on verification. This is done so

[PATCH 2/2] pci: brcmstb: Cleanup controller state before handover

2021-01-14 Thread Nicolas Saenz Julienne
Make sure we handover the PCIe controller in a clean state. Some of the devices hanging from the PCIe bus might need to be properly reset through #PERST in order for Linux to be able to initialize them. This is specially important in order to properly initialize Raspberry Pi 4 B and 400's USB

[PATCH 1/2] usb: xhci-pci: Add DM_FLAG_OS_PREPARE flag

2021-01-14 Thread Nicolas Saenz Julienne
The PCIe bus the controller is connected to might need to be removed prior the handover. Make sure xhci-pci is also removed so as to avoid unexpected timeouts or hangs. Signed-off-by: Nicolas Saenz Julienne --- drivers/usb/host/xhci-pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH 0/2] Raspberry Pi 4 PCIe handover

2021-01-14 Thread Nicolas Saenz Julienne
It's important for u-boot to properly reset RPi4's PCIe controller in order for Linux to run the board's USB firmware load rountines. --- Nicolas Saenz Julienne (2): usb: xhci-pci: Add DM_FLAG_OS_PREPARE flag pci: brcmstb: Cleanup controller state before handover drivers/pci/pcie_brcmstb.c

Re: [PATCH v3 3/6] lib: Add support for ECDSA image signing

2021-01-14 Thread Alex G.
On 1/13/21 10:10 AM, Simon Glass wrote: On Thu, 7 Jan 2021 at 15:34, Alexandru Gagniuc wrote: mkimage supports rsa2048, and rsa4096 signatures. With newer silicon now supporting hardware-accelerated ECDSA, it makes sense to expand signing support to elliptic curves. Implement host-side

Re: [PATCH] w1: mxc: fix build

2021-01-14 Thread Simon Glass
On Wed, 13 Jan 2021 at 03:21, Martin Fuzzey wrote: > > Now that header files no longer include common.h it must be included > first. > > Otherwise the build fails with errors like > include/asm/arch/clock.h:43:1: error: unknown type name 'u32' > u32 imx_get_uartclk(void); > >

Re: [PATCH 1/3] efi_loader: print boot device and file path in helloworld

2021-01-14 Thread Simon Glass
On Tue, 12 Jan 2021 at 12:58, Heinrich Schuchardt wrote: > > Let helloworld.efi print the device path of the boot device and the file > path as provided by the loaded image protocol. > > Signed-off-by: Heinrich Schuchardt > --- > lib/efi_loader/helloworld.c | 167

Re: [PATCH 1/1] image-fit: fit_check_format check for valid FDT

2021-01-14 Thread Simon Glass
On Tue, 12 Jan 2021 at 18:36, Heinrich Schuchardt wrote: > > fit_check_format() must check that the buffer contains a flattened device > tree before calling any device tree library functions. > > Failure to do may cause segmentation faults. > > Signed-off-by: Heinrich Schuchardt > --- >

Re: [PATCH 2/2] pci: Add Rockchip dwc based PCIe controller driver

2021-01-14 Thread Simon Glass
Hi Shawn, On Thu, 14 Jan 2021 at 01:15, Shawn Lin wrote: > > Add Rockchip dwc based PCIe controller driver for rk356x platform. > Driver support Gen3 by operating as a Root complex. > > Signed-off-by: Shawn Lin > > --- > > drivers/pci/Kconfig| 9 + > drivers/pci/Makefile

Re: [PATCH 2/5] sandbox: Add a DSA sandbox driver and unit test

2021-01-14 Thread Simon Glass
On Wed, 13 Jan 2021 at 11:05, Claudiu Manoil wrote: > > The DSA sandbox driver is used for unit testing the DSA class code. > It implements a simple 2 port switch plus 1 CPU port, and uses a very > simple tag to identify the ports. > The DSA sandbox device is connected via CPU port to a regular

Re: [PATCH 1/5] net: Introduce DSA class for Ethernet switches

2021-01-14 Thread Simon Glass
Hi Claudiu, On Wed, 13 Jan 2021 at 11:05, Claudiu Manoil wrote: > > DSA stands for Distributed Switch Architecture and it covers switches that > are connected to the CPU through an Ethernet link and generally use frame > tags to pass information about the source/destination ports to/from CPU. >

Re: [PATCH 2/3] efi_loader: carve out efi_check_pe()

2021-01-14 Thread Simon Glass
On Tue, 12 Jan 2021 at 12:58, Heinrich Schuchardt wrote: > > Carve out a function to check that a buffer contains a PE-COFF image. > > Signed-off-by: Heinrich Schuchardt > --- > include/efi_loader.h | 2 + > lib/efi_loader/efi_image_loader.c | 80 ++- >

Re: [PATCH 1/2] phy: rockchip: Add Rockchip Synopsys PCIe 3.0 PHY

2021-01-14 Thread Simon Glass
Hi Shawn, On Thu, 14 Jan 2021 at 01:15, Shawn Lin wrote: > > Add the Rockchip Synopsys based PCIe 3.0 PHY driver as > part of Generic PHY framework. > > Signed-off-by: Shawn Lin > --- > > drivers/phy/rockchip/Kconfig | 6 + > drivers/phy/rockchip/Makefile |

Re: [PATCHv3 4/4] test: dm: tee: extend with RPC test

2021-01-14 Thread Simon Glass
Hi Igor, On Thu, 14 Jan 2021 at 02:41, Igor Opaniuk wrote: > > Hi Simon, > > On Wed, Jan 13, 2021 at 6:12 PM Simon Glass wrote: > > > > On Tue, 12 Jan 2021 at 01:44, Jorge Ramirez-Ortiz > > wrote: > > > > > > From: Igor Opaniuk > > > > > > Extend existing DM tee tests adding test coverage

Re: [PATCH 4/5] arm: dts: ls1028a: Add Ethernet switch node and dependencies

2021-01-14 Thread Michael Walle
Hi Claudiu, Am 2021-01-14 16:20, schrieb Claudiu Manoil: -Original Message- From: Michael Walle Sent: Wednesday, January 13, 2021 10:11 PM [...] --- a/arch/arm/dts/fsl-ls1028a.dtsi +++ b/arch/arm/dts/fsl-ls1028a.dtsi @@ -14,6 +14,17 @@ #address-cells = <2>;

RE: [PATCH 4/5] arm: dts: ls1028a: Add Ethernet switch node and dependencies

2021-01-14 Thread Claudiu Manoil
>-Original Message- >From: Michael Walle >Sent: Wednesday, January 13, 2021 10:11 PM [...] >> --- a/arch/arm/dts/fsl-ls1028a.dtsi >> +++ b/arch/arm/dts/fsl-ls1028a.dtsi >> @@ -14,6 +14,17 @@ >> #address-cells = <2>; >> #size-cells = <2>; >> >> +aliases { >> +

Re: [PATCH 1/6] net: macb: use dummy descriptor for RBQP

2021-01-14 Thread Eugen.Hristev
On 17.12.2020 07:22, Padmarao Begari - I30397 wrote: > Hi Eugen, > > This series of patches break my side of work(patches) so you need to > create patches after my patches are going into master branch because my > patches are already reviewed and tested. Hi, Could you please detail the

Re: Pull request: u-boot-riscv/master

2021-01-14 Thread Padmarao Begari
Hi Tom, On Thu, Jan 14, 2021 at 1:31 AM Tom Rini wrote: > On Wed, Jan 13, 2021 at 01:34:55PM +0800, ub...@andestech.com wrote: > > > Hi Tom, > > > > Please pull some riscv updates: > > > > - Update qemu-riscv.rst build instructions. > > - Add support for SPI on Kendryte K210. > > - Add

Re: [PATCH v7] Add support for stack-protector

2021-01-14 Thread Alex Sadovsky
Dear Joel, > Add support for stack protector for UBOOT, SPL, and TPL > as well as new pytest for stackprotector > > Signed-off-by: Joel Peshkin > Cc: Simon Glass > Cc: Heinrich Schuchardt > > Changes for v7: >    - Fix commit message >    - add __builtin_extract_return_addr() calls > Changes

[PATCH] serial: a3720: Implement pending method for output direction

2021-01-14 Thread Pali Rohár
To check if some output characters are waiting either in Transmitter Holding Register or Transmitter Shift Register we need to look at TX_EMPTY bit of UART Status Register. Signed-off-by: Pali Rohár --- drivers/serial/serial_mvebu_a3700.c | 10 -- 1 file changed, 8 insertions(+), 2

Re: [PATCH 0/2] add support for dll setup on ksz9131

2021-01-14 Thread Eugen.Hristev
On 03.12.2020 11:18, Claudiu Beznea wrote: > Hi, > > KSZ9131 has an internal DLL used to add proper delay on TX/RX lines > to confirm with RGMII timings. The series add support for this. Along > with this I included a typo patch. > > Thank you, > Claudiu Beznea > > Claudiu Beznea (2): >net:

[PATCH v7] Add support for stack-protector

2021-01-14 Thread Joel Peshkin
Add support for stack protector for UBOOT, SPL, and TPL as well as new pytest for stackprotector Signed-off-by: Joel Peshkin Cc: Simon Glass Cc: Heinrich Schuchardt Changes for v7: - Fix commit message - add __builtin_extract_return_addr() calls Changes for v6: - Fix commit message

Re: [PULL] Pull request for u-boot master / v2021.04 = u-boot-stm32-20210113

2021-01-14 Thread Tom Rini
On Wed, Jan 13, 2021 at 11:30:37AM +0100, Patrick DELAUNAY wrote: > > Hi Tom, > > Please pull the STM32 related patches for u-boot/master, v2021.04: > u-boot-stm32-20210113 > > - Enable logging features for stm32mp15 boards > - Update MAINTAINERS emails for STI and STM32 > - Activate OF_LIVE

Re: [RFC PATCH 3/3] efidebug: add multiple device path instances on Boot####

2021-01-14 Thread Ilias Apalodimas
On Thu, Jan 14, 2021 at 01:07:42PM +0100, Heinrich Schuchardt wrote: > On 14.01.21 10:55, Ilias Apalodimas wrote: > > On Thu, Jan 14, 2021 at 02:11:33PM +0900, AKASHI Takahiro wrote: > >> Ilias, > >> > >> On Wed, Jan 13, 2021 at 01:11:49PM +0200, Ilias Apalodimas wrote: > >>> The UEFI spec allow a

How to compile u-boot-2020.04.tar.bz2 to generate uboot image supporting PPC?

2021-01-14 Thread 钟日成
Hello, I downloaded u-boot-2020.04.tar.bz2, but I unzipped it to ubuntu14.04 64bit and the following operation reported an error: make TQM823L_defconfigMakefile:37: *** missing separator. Stop.My current system information:uname -aLinux ubuntu 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15

Re: [PATCHv3 4/4] test: dm: tee: extend with RPC test

2021-01-14 Thread Igor Opaniuk
Hi Simon, On Wed, Jan 13, 2021 at 6:12 PM Simon Glass wrote: > > On Tue, 12 Jan 2021 at 01:44, Jorge Ramirez-Ortiz wrote: > > > > From: Igor Opaniuk > > > > Extend existing DM tee tests adding test coverage for reverse RPC calls. > > Currently this commit only adds tests for I2C requests from

[PATCH 2/2] pci: Add Rockchip dwc based PCIe controller driver

2021-01-14 Thread Shawn Lin
Add Rockchip dwc based PCIe controller driver for rk356x platform. Driver support Gen3 by operating as a Root complex. Signed-off-by: Shawn Lin --- drivers/pci/Kconfig| 9 + drivers/pci/Makefile | 1 + drivers/pci/pcie_dw_rockchip.c | 755

[PATCH 1/2] phy: rockchip: Add Rockchip Synopsys PCIe 3.0 PHY

2021-01-14 Thread Shawn Lin
Add the Rockchip Synopsys based PCIe 3.0 PHY driver as part of Generic PHY framework. Signed-off-by: Shawn Lin --- drivers/phy/rockchip/Kconfig | 6 + drivers/phy/rockchip/Makefile | 1 + .../phy/rockchip/phy-rockchip-snps-pcie3.c| 146

[PATCH 0/2] Add Rockchip dwc-based PCIe controller and PHY support

2021-01-14 Thread Shawn Lin
This patchset add Rockchip dwc-based PCIe controller and PHY found on RK356X platforms. It could support Gen3 as a root complex. Shawn Lin (2): phy: rockchip: Add Rockchip Synopsys PCIe 3.0 PHY pci: Add Rockchip dwc based PCIe controller driver drivers/pci/Kconfig

[PATCH 13/13] imx: timer: Modify GPT timer driver for mx7

2021-01-14 Thread Peng Fan (OSS)
From: Ye Li Modify the GPT common platform driver for mx7 which only use 24Mhz OSC as clock source. Note: at default, the mx7d will use system counter as timer. The GPT is disabled. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/timer.c | 16 +--- 1 file

[PATCH 12/13] imx: support choose emmc device by uuu

2021-01-14 Thread Peng Fan (OSS)
From: Frank Li uuu can change emmc device number for fastboot Signed-off-by: Frank Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/mmc_env.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/mmc_env.c b/arch/arm/mach-imx/mmc_env.c index

[PATCH 11/13] imx: Update runtime SD/MMC boot env device and env variables

2021-01-14 Thread Peng Fan (OSS)
From: Ye Li Since we enabled MMC alias, the USDHC index in u-boot is the usdhc port. So we don't need to convert them for kernel and u-boot env device. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8/cpu.c| 2 +- arch/arm/mach-imx/mmc_env.c

[PATCH 10/13] imx8m: add QSPI boot dev

2021-01-14 Thread Peng Fan (OSS)
From: Peng Fan When boot type could not be detected from rom sw info, read sbmr1 to detect, here we only use it to detect FLEXSPI boot, because ROM not update it in rom sw info. Signed-off-by: Peng Fan --- arch/arm/mach-imx/cpu.c | 6 -- arch/arm/mach-imx/spl.c | 2 ++ 2 files changed, 6

[PATCH 09/13] imx6: Remove AHCI device before boot OS

2021-01-14 Thread Peng Fan (OSS)
From: Ye Li Since we remove SATA device before boot OS, when AHCI is enabled, update the codes to remove AHCI device. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/cpu.c | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/mach-imx/cpu.c

[PATCH 08/13] imx: Fix market segment fuse offset on iMX8MP

2021-01-14 Thread Peng Fan (OSS)
From: Ye Li iMX8MP has shifted market segment fuse one bit from 0x440 [7:6] to [6:5], correct it in imx common codes. Signed-off-by: Ye Li Reviewed-by: Peng Fan Signed-off-by: Peng Fan --- arch/arm/mach-imx/cpu.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git

[PATCH 07/13] nandbcb: nand support for i.MX8MP

2021-01-14 Thread Peng Fan (OSS)
From: Han Xu Add NAND boot support for i.MX8MP by adding i.MX8MP in nandbcb support list, reading boot_search_count from fuse. i.MX8MN NAND boot is same as i.MX8MP, fix some issues as well. Signed-off-by: Han Xu Reviewed-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/cmd_nandbcb.c

[PATCH 06/13] imx: nandbcb: Fix potential overflow in nandbcb_set_boot_config

2021-01-14 Thread Peng Fan (OSS)
From: Ye Li Fix Coverity Issue 9006656. In nandbcb_set_boot_config, an integer overflow occurs, with the result converted to a wider integer type. Signed-off-by: Ye Li Reviewed-by: Peng Fan Signed-off-by: Peng Fan --- arch/arm/mach-imx/cmd_nandbcb.c | 3 ++- 1 file changed, 2 insertions(+),

[PATCH 05/13] imx: nandbcb: Fix potential overflow in fill_dbbt_data

2021-01-14 Thread Peng Fan (OSS)
From: Ye Li Fix Coverity Issue 9006658. In fill_dbbt_data, an integer overflow occurs, with the result converted to a wider integer type Signed-off-by: Ye Li Reviewed-by: Peng Fan Signed-off-by: Peng Fan --- arch/arm/mach-imx/cmd_nandbcb.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 04/13] imx: nandbcb: Fix resource leak in read_fcb

2021-01-14 Thread Peng Fan (OSS)
From: Ye Li Fix Coverity Issue 9006657. In read_fcb, leak of memory to system resource "fcb_raw_page". Adjust the sequence to check the mtd bad block prior than allocation of "fcb_raw_page", also check the NULL return of allocation. Signed-off-by: Ye Li Reviewed-by: Peng Fan Signed-off-by:

[PATCH 02/13] nandbcb: Fix uninitialized variable

2021-01-14 Thread Peng Fan (OSS)
From: Ye Li Fix Coverity Issue 9006654. In write_fcb, use of an uninitialized variable "ret". Signed-off-by: Ye Li Reviewed-by: Peng Fan Signed-off-by: Peng Fan --- arch/arm/mach-imx/cmd_nandbcb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 03/13] imx: nandbcb: Fix resource leak

2021-01-14 Thread Peng Fan (OSS)
From: Ye Li Fix Coverity Issue 9006655. In write_fcb, leak of memory to resource "fcb_raw_page". Since we have initialized the "ret" to 0, should return the value of ret. Signed-off-by: Ye Li Reviewed-by: Peng Fan Signed-off-by: Peng Fan --- arch/arm/mach-imx/cmd_nandbcb.c | 2 -- 1 file

[PATCH 01/13] imx: lowlevel: implement armv8_el2_to_aarch32

2021-01-14 Thread Peng Fan (OSS)
From: Peng Fan Implement armv8_el2_to_aarch32 for aarch64 U-Boot booting aarch32 SMP linux. It will trap to ATF to let ATF handle the mode switching. Signed-off-by: Peng Fan --- arch/arm/mach-imx/lowlevel.S | 23 +++ 1 file changed, 23 insertions(+) diff --git

Re: [RFC PATCH 3/3] efidebug: add multiple device path instances on Boot####

2021-01-14 Thread Heinrich Schuchardt
On 14.01.21 10:55, Ilias Apalodimas wrote: > On Thu, Jan 14, 2021 at 02:11:33PM +0900, AKASHI Takahiro wrote: >> Ilias, >> >> On Wed, Jan 13, 2021 at 01:11:49PM +0200, Ilias Apalodimas wrote: >>> The UEFI spec allow a packed array of UEFI device paths in the >>> FilePathList[] of an

[PATCHv4 4/4] test: dm: tee: extend with RPC test

2021-01-14 Thread Jorge Ramirez-Ortiz
From: Igor Opaniuk Extend existing DM tee tests adding test coverage for reverse RPC calls. Currently this commit only adds tests for I2C requests from TEE driver to TEE supplicant, for instance reading/writing data to emulated i2c eeprom defines in standard sandbox test device tree

[PATCHv4 3/4] drivers: tee: sandbox: add rpc test ta emulation

2021-01-14 Thread Jorge Ramirez-Ortiz
From: Igor Opaniuk This adds support for RPC test trusted application emulation, which permits to test reverse RPC calls to TEE supplicant. Currently it covers requests to the I2C bus from TEE. Signed-off-by: Igor Opaniuk Reviewed-by: Simon Glass --- drivers/tee/Makefile| 2 +

[PATCHv4 2/4] test: py: add pygit2 and pyelftools to requirements.txt

2021-01-14 Thread Jorge Ramirez-Ortiz
From: Igor Opaniuk Add pygit2 and pyelftools to the list of packages for virtualenv needed to run all sets of pytests.This fixes warnings like: binman.elf_test.TestElf.testDecodeElf (subunit.RemotedTestCase): Python elftools not available Signed-off-by: Igor Opaniuk Reviewed-by: Simon Glass

[PATCHv4 1/4] drivers: tee: i2c trampoline driver

2021-01-14 Thread Jorge Ramirez-Ortiz
This commit gives the secure world access to the I2C bus so it can communicate with I2C slaves (typically those would be secure elements like the NXP SE050). A similar service implementation has been merged in linux: c05210ab ("drivers: optee: allow op-tee to access devices on the i2c bus")

[PATCH] doc: update help message

2021-01-14 Thread Patrick Delaunay
Update the help message used for 'make help': Documentation targets: Linux kernel internal documentation in different formats from ReST: => U-Boot documentation in different formats from ReST: Signed-off-by: Patrick Delaunay --- doc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1

Re: [RFC PATCH 1/3] efi_loader: Introduce helper functions for EFI

2021-01-14 Thread Ilias Apalodimas
[...] > >> + * @size: size of the discovered device path > >> + * @idx: index of the device path > >> + * > >> + * Return:device path or NULL. Caller must free the returned value > >> + */ > >> + > >> +struct > >> +efi_device_path *efi_dp_instance_by_idx(struct efi_device_path *dp, > >> +

Re: [RFC PATCH 3/3] efidebug: add multiple device path instances on Boot####

2021-01-14 Thread Ilias Apalodimas
On Thu, Jan 14, 2021 at 02:11:33PM +0900, AKASHI Takahiro wrote: > Ilias, > > On Wed, Jan 13, 2021 at 01:11:49PM +0200, Ilias Apalodimas wrote: > > The UEFI spec allow a packed array of UEFI device paths in the > > FilePathList[] of an EFI_LOAD_OPTION. The first file path must > > describe the

Re: [RFC PATCH 1/3] efi_loader: Introduce helper functions for EFI

2021-01-14 Thread Ilias Apalodimas
Akashi-san, > > + efi_uintn_t *size, int idx) [...] > > The type of "idx" should be 'enum load_option_dp_type'. > > Currently, "idx" is used as an index into the array of device paths, > but given each device path is set to have its own guid, "idx" should be >

Re: [RFC PATCH 2/3] efi_loader: efi_loader: Replace config option for initrd loading

2021-01-14 Thread Ilias Apalodimas
Akashi-san, On Thu, Jan 14, 2021 at 01:23:30PM +0900, AKASHI Takahiro wrote: > Ilias, > > On Wed, Jan 13, 2021 at 01:11:48PM +0200, Ilias Apalodimas wrote: > > Up to now we install EFI_LOAD_FILE2_PROTOCOL to load an initrd > > unconditionally. Although we correctly return various EFI exit codes

[PATCH v3] imx8mq: configs: add support for distro boot commands

2021-01-14 Thread Alice Guo (OSS)
From: Alice Guo Supported boot device types in iMX8MQ: MMC, DHCP. CONFIG_DISTRO_DEFAULTS is added for enabling the DISTRO_DEFAULTS option. CONFIG_BOOTCOMMAND which is defined in include/configs/imx8mq_evk.h is deleted because "run distro_bootcmd" is required to be the default boot mode.