Re: [PATCH 01/11] virtio_ring: Merge identical variables

2022-04-07 Thread Heinrich Schuchardt
On 3/31/22 12:09, Andrew Scull wrote: The variables `total_sg` and `descs_used` have the same value. Replace the few uses of `total_sg` with `descs_used` to simplify the situation. Signed-off-by: Andrew Scull Reviewed-by: Heinrich Schuchardt --- drivers/virtio/virtio_ring.c | 7 +++

[PATCH v2 04/52] mips: octeon: Add cvmx-lbk-defs.h header file

2022-04-07 Thread Stefan Roese
From: Aaron Williams Import cvmx-lbk-defs.h header file from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- .../mach-octeon/include/mach/cvmx-lbk-defs.h | 157 +

[PATCH v2 00/52] mips: octeon: Add ethernet support

2022-04-07 Thread Stefan Roese
This patchset adds the networking files and drivers including device helper headers and C files. Please excuse the massive amount of files in this patch series. Also the sometimes huge files (mostly headers with register definitions) that I needed to include. The infrastructure code with all the h

[PATCH v2 07/52] mips: octeon: Add cvmx-xcv-defs.h header file

2022-04-07 Thread Stefan Roese
From: Aaron Williams Import cvmx-xcv-defs.h header file from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- .../mach-octeon/include/mach/cvmx-xcv-defs.h | 226 +

[PATCH v2 08/52] mips: octeon: Misc changes to existing headers for upcoming eth support

2022-04-07 Thread Stefan Roese
This patch includes misc changes to already present Octeon MIPS header files, which are necessary for the upcoming ethernet support. The changes are mostly: - DM GPIO & I2C infrastructure - Coding style cleanup while reworking the headers Signed-off-by: Stefan Roese --- .../mach-octeon/include/

[PATCH v2 12/52] mips: octeon: Add cvmx-helper-fpa.c

2022-04-07 Thread Stefan Roese
From: Aaron Williams Import cvmx-helper-fpa.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-helper-fpa.c | 76 ++

[PATCH v2 06/52] mips: octeon: Add cvmx-pcsxx-defs.h header file

2022-04-07 Thread Stefan Roese
From: Aaron Williams Import cvmx-pcsxxx-defs.h header file from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- .../include/mach/cvmx-pcsxx-defs.h| 78

[PATCH v2 16/52] mips: octeon: Add cvmx-helper-npi.c

2022-04-07 Thread Stefan Roese
From: Aaron Williams Import cvmx-helper-npi.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-helper-npi.c | 137 +

[PATCH v2 14/52] mips: octeon: Add cvmx-helper-ipd.c

2022-04-07 Thread Stefan Roese
From: Aaron Williams Import cvmx-helper-ipd.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-helper-ipd.c | 286 +

[PATCH v2 11/52] mips: octeon: Add cvmx-helper-board.c

2022-04-07 Thread Stefan Roese
From: Aaron Williams Import cvmx-helper-board.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-helper-board.c | 1824

[PATCH v2 17/52] mips: octeon: Add cvmx-helper-pki.c

2022-04-07 Thread Stefan Roese
From: Aaron Williams Import cvmx-helper-pki.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-helper-pki.c | 549 +

[PATCH v2 09/52] mips: octeon: Add cvmx-helper-agl.c

2022-04-07 Thread Stefan Roese
From: Aaron Williams Import cvmx-helper-agl.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-helper-agl.c | 231 +

[PATCH v2 18/52] mips: octeon: Add cvmx-helper-pko.c

2022-04-07 Thread Stefan Roese
From: Aaron Williams Import cvmx-helper-pko.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-helper-pko.c | 203 +

[PATCH v2 02/52] mips: octeon: Add cvmx-ilk-defs.h header file

2022-04-07 Thread Stefan Roese
From: Aaron Williams Import cvmx-igl-defs.h header file from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- .../mach-octeon/include/mach/cvmx-ilk-defs.h | 2269

[PATCH v2 10/52] mips: octeon: Add cvmx-helper-bgx.c

2022-04-07 Thread Stefan Roese
From: Aaron Williams Import cvmx-helper-bgx.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-helper-bgx.c | 2737

[PATCH v2 05/52] mips: octeon: Add cvmx-npei-defs.h header file

2022-04-07 Thread Stefan Roese
From: Aaron Williams Import cvmx-npei-defs.h header file from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- .../mach-octeon/include/mach/cvmx-npei-defs.h | 3550

[PATCH v2 23/52] mips: octeon: Add cvmx-helper-xaui.c

2022-04-07 Thread Stefan Roese
From: Aaron Williams Import cvmx-helper-xaui.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-helper-xaui.c | 518 +++

[PATCH v2 26/52] mips: octeon: Add cvmx-fau-compat.c

2022-04-07 Thread Stefan Roese
From: Aaron Williams Import cvmx-fau-compat.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-fau-compat.c | 53 ++

[PATCH v2 24/52] mips: octeon: Add cvmx-agl.c

2022-04-07 Thread Stefan Roese
From: Aaron Williams Import cvmx-agl.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-agl.c | 216 +++

[PATCH v2 19/52] mips: octeon: Add cvmx-helper-pko3.c

2022-04-07 Thread Stefan Roese
From: Aaron Williams Import cvmx-helper-pko3.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-helper-pko3.c | 1088 ++

[PATCH v2 15/52] mips: octeon: Add cvmx-helper-loop.c

2022-04-07 Thread Stefan Roese
From: Aaron Williams Import cvmx-helper-loop.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-helper-loop.c | 178 +++

[PATCH v2 21/52] mips: octeon: Add cvmx-helper-sgmii.c

2022-04-07 Thread Stefan Roese
From: Aaron Williams Import cvmx-helper-sgmii.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-helper-sgmii.c | 781 +

[PATCH v2 13/52] mips: octeon: Add cvmx-helper-ilk.c

2022-04-07 Thread Stefan Roese
From: Aaron Williams Import cvmx-helper-ilk.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-helper-ilk.c | 902 +

[PATCH v2 03/52] mips: octeon: Add cvmx-iob-defs.h header file

2022-04-07 Thread Stefan Roese
From: Aaron Williams Import cvmx-iob-defs.h header file from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- .../mach-octeon/include/mach/cvmx-iob-defs.h | 1328

[PATCH 0/6] imx8mp: misc update

2022-04-07 Thread Peng Fan (OSS)
From: Peng Fan Support i.MX8MP UL part Disable fused IP drop legacy property when booting kernel Relocate U-Boot to higher address for System-Ready IR Peng Fan (5): imx: imx8mp: Add iMX8MP UltraLite Part cpu type imx: imx8mp: detect i.MX8MP UltraLite when get cpu rev imx: imx8mp: disable f

[PATCH 2/6] imx: imx8mp: detect i.MX8MP UltraLite when get cpu rev

2022-04-07 Thread Peng Fan (OSS)
From: Peng Fan Detect i.MX8MP UltraLite in get_cpu_variant_type Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/soc.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c index 7397b99a1ee..f88

[PATCH 1/6] imx: imx8mp: Add iMX8MP UltraLite Part cpu type

2022-04-07 Thread Peng Fan (OSS)
From: Peng Fan Add i.MX8MP UltraLite Part CPU type Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx/cpu.h | 1 + arch/arm/include/asm/mach-imx/sys_proto.h | 3 ++- arch/arm/mach-imx/cpu.c | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/arc

[PATCH 3/6] imx: imx8mp: disable fused IP for UltraLite

2022-04-07 Thread Peng Fan (OSS)
From: Peng Fan Beside the fused modules on iMX8MP Lite, this part has also fused GPU3D/2D, LVDS and MIPI DSI. So we have to disable them for kernel and also disable MIPI DSI in u-boot DTS for splash screen at runtime. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/so

[PATCH 4/6] imx: imx8m: soc: runtime drop extcon property from usbotg node

2022-04-07 Thread Peng Fan (OSS)
From: Peng Fan The extcon is an decrepted property and not used by upstream Linux and NXP 5.10 kernel, so we remove it before kicking linux in case it is in dts. Otherwise distro kernel will not able to have usb function. Reviewed-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/

[PATCH 6/6] imx8m: soc: Relocate u-boot to the top DDR in 4GB space

2022-04-07 Thread Peng Fan (OSS)
From: Ye Li The EFI memory init uses gd->ram_top for conventional memory. In current implementation, the ram_top is below optee address. This cause grub failed to allocation memory for initrd. The change updates DDR bank setup functions to place the u-boot at top DDR in 4GB space. Reviewed-by: P

[PATCH 5/6] imx8m: soc: drop phy-reset-gpios for fec

2022-04-07 Thread Peng Fan (OSS)
From: Peng Fan Need to drop phy-reset-gpios before booting linux, this property is legacy property and replaced with reset-gpios. If provide both, kernel would failed to request the same gpio twice and cause fec not work. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/soc.c | 27

Re: [PATCH 08/11] virtio: sandbox: Bind RNG rather than block device

2022-04-07 Thread Heinrich Schuchardt
On 3/31/22 12:09, Andrew Scull wrote: The virtio-rng driver is extremely simple, making it suitable for testing more of the virtio uclass logic. Have the sandbox driver bind the virtio-rng driver rather than the virtio-blk driver so it can be used in tests. test/dm/rng.c assumes that drivers/rn

[PATCH v2 39/52] mips: octeon: Add cvmx-pko-internal-ports-range.c

2022-04-07 Thread Stefan Roese
From: Aaron Williams Import cvmx-pko-internal-ports-range.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- .../cvmx-pko-internal-ports-range.c | 9

[PATCH v2 44/52] mips: octeon: cpu.c: Move bootmem init to arch_early_init_r()

2022-04-07 Thread Stefan Roese
Call octeon_bootmem_init() earlier in the boot process, so that this bootmemory infrastructure is already initialized when e.g. the networking support gets probed. Signed-off-by: Stefan Roese --- arch/mips/Kconfig | 1 + arch/mips/mach-octeon/cpu.c | 13 - 2 files changed,

[PATCH v2 35/52] mips: octeon: Add cvmx-pko3.c

2022-04-07 Thread Stefan Roese
From: Aaron Williams Import cvmx-pko3.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-pko3.c | 786 +

[PATCH v2 30/52] mips: octeon: Add cvmx-ilk.c

2022-04-07 Thread Stefan Roese
From: Aaron Williams Import cvmx-ilk.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-ilk.c | 1199 ++

[PATCH v2 50/52] net: Add ethernet support for MIPS Octeon

2022-04-07 Thread Stefan Roese
This patchs adds the ethernet & MDIO driver for the MIPS Octeon II / III SoC platform. Please note that these drivers are based on the 2013 U-Boot version from Marvell and make use of the platform supported helper functions for the ethernet functionality, including stuff like SFP handling. Signed-

[PATCH v2 52/52] mips: octeon: nic23: Enable ethernet support

2022-04-07 Thread Stefan Roese
This patch enables the Kconfig symbols needed for full ethernet support on the NIC23. Additionally board specific setup is done, mostly GPIOs related to SFP / GPIO configuration. With this, ethernet can be used on this board. Here an example of a tftp load: => tftp 8100 big Using ether

[PATCH v2 43/52] mips: octeon: Makefile: Enable building of the newly added C files

2022-04-07 Thread Stefan Roese
This patch adds the newly added C files to the Makefile to enable compilation. This is done in a separate step, to not introduce build breakage while adding the single files with potentially missing externals. Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/Makefile | 35 ++

[PATCH v2 47/52] mips: octeon: mrvl, cn73xx.dtsi: Add ethernet (BGX) and SMI DT nodes

2022-04-07 Thread Stefan Roese
Add the Octeon ethernet (BGX) and SMI DT node to the dtsi file. Signed-off-by: Stefan Roese --- arch/mips/dts/mrvl,cn73xx.dtsi | 35 ++ 1 file changed, 35 insertions(+) diff --git a/arch/mips/dts/mrvl,cn73xx.dtsi b/arch/mips/dts/mrvl,cn73xx.dtsi index 2a17f7a6a63

[PATCH v2 20/52] mips: octeon: Add cvmx-helper-rgmii.c

2022-04-07 Thread Stefan Roese
From: Aaron Williams Import cvmx-helper-rgmii.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-helper-rgmii.c | 398 +

[PATCH v2 37/52] mips: octeon: Add cvmx-pko3-compat.c

2022-04-07 Thread Stefan Roese
From: Aaron Williams Import cvmx-pko3-compat.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-pko3-compat.c | 656 +++

[PATCH v2 38/52] mips: octeon: Add cvmx-pko3-resources.c

2022-04-07 Thread Stefan Roese
From: Aaron Williams Import cvmx-pko3-resources.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-pko3-resources.c | 213 +

[PATCH v2 51/52] mips: octeon: ebb7304: Enable ethernet support

2022-04-07 Thread Stefan Roese
This patch enables the Kconfig symbols needed for full ethernet support on the EBB7304. Also the PHY autonegotiation timeout is increased, as the default 5 seconds are sometime a bit short. With this, ethernet can be used on this board. Here an example of a tftp load: => tftp 8100 big

[PATCH v2 46/52] mips: octeon: octeon_common.h: Move init SP because of increased image size

2022-04-07 Thread Stefan Roese
This patch moves CONFIG_SYS_INIT_SP_OFFSET to a higher address so that it does not interfere with larger U-Boot images. This was noticed, while adding network support to the EBB7304 board. Signed-off-by: Stefan Roese --- include/configs/octeon_common.h | 2 +- 1 file changed, 1 insertion(+), 1 d

[PATCH v2 33/52] mips: octeon: Add cvmx-pki-resources.c

2022-04-07 Thread Stefan Roese
From: Aaron Williams Import cvmx-pki-resources.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-pki-resources.c | 285 +++

[PATCH v2 48/52] mips: octeon: mrvl, octeon-ebb7304.dts: Add ethernet DT support

2022-04-07 Thread Stefan Roese
Add the Octeon ethernet (BGX), SMI and PHY DT nodes to the EBB7304 dts file to enable ethernet support on this board. Signed-off-by: Stefan Roese --- arch/mips/dts/mrvl,octeon-ebb7304.dts | 45 +++ 1 file changed, 45 insertions(+) diff --git a/arch/mips/dts/mrvl,octeon-e

[PATCH v2 34/52] mips: octeon: Add cvmx-pko.c

2022-04-07 Thread Stefan Roese
From: Aaron Williams Import cvmx-pko.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-pko.c | 788 +++

[PATCH v2 49/52] mips: octeon: mrvl, octeon-nic23.dts: Add ethernet DT support

2022-04-07 Thread Stefan Roese
Add the Octeon ethernet (BGX) and SFP DT nodes to the NIC23 dts file to enable ethernet support on this board. Signed-off-by: Stefan Roese --- arch/mips/dts/mrvl,octeon-nic23.dts | 238 1 file changed, 238 insertions(+) diff --git a/arch/mips/dts/mrvl,octeon-nic23.d

[PATCH v2 45/52] mips: octeon: cpu.c: Implement configure_lmtdma_window()

2022-04-07 Thread Stefan Roese
Import configure_lmtdma_window from Marvell 2013 U-Boot as it's needed for network functionality. Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cpu.c | 34 +- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/arch/mips/mach-octeon/cpu.c b/arch/

[PATCH v2 40/52] mips: octeon: Add cvmx-qlm-tables.c

2022-04-07 Thread Stefan Roese
From: Aaron Williams Import cvmx-qlm-tables.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-qlm-tables.c | 292 +

[PATCH v2 27/52] mips: octeon: Add cvmx-fpa.c

2022-04-07 Thread Stefan Roese
From: Aaron Williams Import cvmx-fpa.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-fpa.c | 1127 ++

[PATCH] drivers: usb: dwc3: Add support for AM62 USB wrapper driver

2022-04-07 Thread Aswath Govindraju
Add support for AM62 USB wrapper for DWC3 Controller in AM62 SoC. Signed-off-by: Aswath Govindraju --- Link to corresponding kernel dt-bindings and driver patches, - https://patchwork.kernel.org/project/linux-usb/list/?series=629613 drivers/usb/dwc3/Kconfig | 7 + drivers/usb/dwc3/Makefi

Re: [PATCH] squashfs: Fix compilation on big endian systems

2022-04-07 Thread Miquel Raynal
Hi Pali, p...@kernel.org wrote on Wed, 6 Apr 2022 23:31:53 +0200: Would you mind explaining a little bit how this change fixes it? It does not look straightforward to me. > Signed-off-by: Pali Rohár > --- > fs/squashfs/sqfs.c | 3 +-- > fs/squashfs/sqfs_dir.c | 3 +-- > 2 files changed, 2

Re: [PATCH v6 7/7] fpga: zynqmp: support loading encrypted bitfiles

2022-04-07 Thread Michal Simek
On 2/7/22 12:18, Adrian Fiergolski wrote: Add supporting new compatible string "u-boot,zynqmp-fpga-enc" to handle loading encrypted bitfiles. This feature requires encrypted FSBL,as according to UG1085: "The CSU automatically locks out the AES key, stored in either BBRAM or eFUSEs, as a key

Re: [PATCH v6 6/7] fpga: zynqmp: support loading authenticated images

2022-04-07 Thread Michal Simek
On 2/7/22 12:18, Adrian Fiergolski wrote: From: Oleksandr Suvorov Add supporting new compatible string "u-boot,zynqmp-fpga-ddrauth" to handle loading authenticated images (DDR). Based on solution by Jorge Ramirez-Ortiz Signed-off-by: Oleksandr Suvorov Co-developed-by: Ricardo Salveti Sig

Re: [PATCH v6 3/7] fpga: xilinx: pass an address of xilinx_desc in fpga_desc

2022-04-07 Thread Michal Simek
On 2/7/22 12:18, Adrian Fiergolski wrote: From: Oleksandr Suvorov Pass an address of xilinx_desc pointer in an fpga_desc to use parent double space here. M

Re: [PATCH v6 1/7] fpga: add option for loading FPGA secure bitstreams

2022-04-07 Thread Michal Simek
On 2/7/22 12:18, Adrian Fiergolski wrote: From: Oleksandr Suvorov It allows using this feature without enabling the "fpga loads" command. Signed-off-by: Oleksandr Suvorov Tested-by: Ricardo Salveti --- cmd/Kconfig | 3 ++- drivers/fpga/Kconfig| 14 ++ driv

Re: [PATCH] misc: atsha204a: Fix big endian support

2022-04-07 Thread Pali Rohár
On Monday 04 April 2022 09:43:21 Stefan Roese wrote: > On 4/3/22 00:36, Pali Rohár wrote: > > Callers of function atsha204a_crc16() expect to return value in host cpu > > endianity. So remove cpu_to_le16() conversion. > > > > Signed-off-by: Pali Rohár > > Reviewed-by: Stefan Roese Hello Stefan

Re: [PATCH] imx: power-domain: Add i.MX8MP support

2022-04-07 Thread Marek Vasut
On 4/7/22 06:01, Peng Fan (OSS) wrote: On 2022/4/1 9:12, Marek Vasut wrote: Add i.MX8MP power domain handling into the driver. This is based on the Linux GPCv2 driver state which is soon to be in Linux next. Do we really need this in U-Boot? You will also port the blk-ctrl part? That would b

Re: [PATCH v6 2/7] fpga: add fit_fpga_load function

2022-04-07 Thread Michal Simek
On 2/7/22 12:18, Adrian Fiergolski wrote: From: Oleksandr Suvorov Introduce a function which passes an fpga compatible string from FIT images to FPGA drivers. This lets the different implementations decide how to handle it. Some code of Jorge Ramirez-Ortiz is reused. Signed-off-by: Oleksa

Re: [PATCH v6 0/7] fpga: zynqmp: Adding support of loading authenticated images

2022-04-07 Thread Michal Simek
Hi, On 2/7/22 12:18, Adrian Fiergolski wrote: This patchset introduces support for the authenticated FPGA images on ZynqMP boards, besides that introducing common way to pass the compatible property to any fpga driver. It bases on the initial work by Jorge Ramirez-Ortiz https://patchwork.ozlab

Re: [PATCH] riscv: Fix build against binutils 2.38

2022-04-07 Thread Leo Liang
Hi Alex, On Thu, Mar 10, 2022 at 09:03:08AM +0100, Alexandre Ghiti wrote: > Hi Leo, > > On Wed, Mar 9, 2022 at 7:31 AM Leo Liang wrote: > > > > Hi Alex, > > On Thu, Mar 03, 2022 at 11:06:18AM +, Leo Liang wrote: > > > Hi Alex, > > > On Tue, Mar 01, 2022 at 03:21:56AM +, Leo Liang wrote: >

[PATCH] arm: mvebu: a37xx: Add support for writing Security OTP values

2022-04-07 Thread Pali Rohár
Implement write support for Security OTP values via mailbox API commands MBOX_CMD_OTP_WRITE_32B and MBOX_CMD_OTP_WRITE. Write support for North and South Bridge OTPs are not implemented as these OTPs are already burned in factory with some data. Signed-off-by: Pali Rohár --- This patch depends o

[PATCH] tools: add boot/ to .gitignore

2022-04-07 Thread Du Huanpeng
/tools/boot/ is a build product. Add it to .gitignore Signed-off-by: Du Huanpeng --- tools/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/.gitignore b/tools/.gitignore index a88453f64d..d3a93ff294 100644 --- a/tools/.gitignore +++ b/tools/.gitignore @@ -36,3 +36,4 @@ /upda

[PATCH 01/11] sandbox: Set the EFI symbols in linker script

2022-04-07 Thread Andrew Scull
The sandbox doesn't populate the EFI lists so explicitly set the list start and end symbols to indicate that the lists are empty. This simplifies the linker scripts, removed references to non-existant sections and removes '.' prefixed sections that conflicted with clang's ASAN. Signed-off-by: Andr

[PATCH 02/11] sandbox: Migrate getopt section to linker list

2022-04-07 Thread Andrew Scull
Use the common infrastructure to create a linker list of the sandbox command line flags rather than using a custom method. The list is changed from containing pointers to containing structs and the uses are updated accordingly. Signed-off-by: Andrew Scull --- arch/sandbox/cpu/os.c

[PATCH 05/11] fuzzing_engine: Add fuzzing engine uclass

2022-04-07 Thread Andrew Scull
This new class of device will provide fuzzing inputs from a fuzzing engine. Signed-off-by: Andrew Scull --- drivers/Kconfig | 2 + drivers/Makefile | 1 + drivers/fuzzing_engine/Kconfig| 6 +++ drivers/fuzzing_engine/M

[PATCH 04/11] sandbox: Add support for Address Sanitizer

2022-04-07 Thread Andrew Scull
Add CONFIG_ASAN to build with the Address Sanitizer. This only works with the sandbox so the config is likewise dependent. The resulting executable will have ASAN instrumentation, including the leak detector that can be disabled with the ASAN_OPTIONS environment variable: ASAN_OPTIONS=detect_le

[PATCH 06/11] test: fuzz: Add framework for fuzzing

2022-04-07 Thread Andrew Scull
Add the basic infrastructure for declaring fuzz tests and a command to invoke them. Signed-off-by: Andrew Scull --- Kconfig | 8 + include/test/fuzz.h | 51 +++ test/Makefile| 1 + test/fuzz/Makefile | 7 test/fuzz/cmd_fuzz.c | 82 +

[PATCH 08/11] sandbox: Add libfuzzer integration

2022-04-07 Thread Andrew Scull
Add an implementation of LLVMFuzzerTestOneInput() that starts the sandbox on a secondary thread and exposes a function to synchronize the generation of fuzzing inputs with their consumption by the sandbox. Signed-off-by: Andrew Scull --- arch/sandbox/config.mk| 3 + arch/san

[PATCH 03/11] linker_lists: Rename sections to remove . prefix

2022-04-07 Thread Andrew Scull
Rename the sections used to implement linker lists so they begin with '__u_boot_list' rather than '.u_boot_list'. The double underscore at the start is still distinct from the single underscore used by the symbol names. Having a '.' in the section names conflicts with clang's ASAN instrumentation

[PATCH 09/11] sandbox: Implement fuzzing engine driver

2022-04-07 Thread Andrew Scull
Add a fuzzing engine driver for the sandbox to take inputs from libfuzzer and expose them to the fuzz tests. Signed-off-by: Andrew Scull --- arch/Kconfig | 2 ++ arch/sandbox/dts/test.dts | 4 +++ drivers/fuzzing_engine/Kconfig

[PATCH 07/11] sandbox: Decouple program entry from sandbox init

2022-04-07 Thread Andrew Scull
Move the program's entry point to os.c, in preparation for a separate fuzzing entry point to be added. Signed-off-by: Andrew Scull --- arch/sandbox/cpu/os.c | 6 ++ arch/sandbox/cpu/start.c| 2 +- arch/sandbox/include/asm/main.h | 18 ++ 3 files changed, 2

Re: [PATCH] squashfs: Fix compilation on big endian systems

2022-04-07 Thread Pali Rohár
On Thursday 07 April 2022 09:54:21 Miquel Raynal wrote: > Hi Pali, > > p...@kernel.org wrote on Wed, 6 Apr 2022 23:31:53 +0200: > > Would you mind explaining a little bit how this change fixes it? It > does not look straightforward to me. Yes! I though that it is straightforward this change...

[PATCH 11/11] RFC: Hack dlmalloc to poison memory

2022-04-07 Thread Andrew Scull
This is a hugely ugly hack to poison and unpoison memory allocated by dlmalloc. It wraps every access dlmalloc makes to the metadata breifly allow it access, taking care not to then poison the parts of the record which overlap. The result is very small redzones between the allocations, which has l

Re: [PATCH] squashfs: Fix compilation on big endian systems

2022-04-07 Thread Miquel Raynal
Hi Pali, p...@kernel.org wrote on Thu, 7 Apr 2022 11:41:59 +0200: > On Thursday 07 April 2022 09:54:21 Miquel Raynal wrote: > > Hi Pali, > > > > p...@kernel.org wrote on Wed, 6 Apr 2022 23:31:53 +0200: > > > > Would you mind explaining a little bit how this change fixes it? It > > does not loo

Re: [PATCH] squashfs: Fix compilation on big endian systems

2022-04-07 Thread Pali Rohár
On Thursday 07 April 2022 11:54:55 Miquel Raynal wrote: > Hi Pali, > > p...@kernel.org wrote on Thu, 7 Apr 2022 11:41:59 +0200: > > > On Thursday 07 April 2022 09:54:21 Miquel Raynal wrote: > > > Hi Pali, > > > > > > p...@kernel.org wrote on Wed, 6 Apr 2022 23:31:53 +0200: > > > > > > Would yo

Re: [PATCH 10/11] virtio: rng: Check length before copying

2022-04-07 Thread Andrew Scull
On Wed, 6 Apr 2022 at 15:18, Pierre-Clément Tosi wrote: > > Hi, > > On Thu, Mar 31, 2022 at 10:09:48AM +, Andrew Scull wrote: > > Check the length of data written by the device is consistent with the > > size of the buffers to avoid out-of-bounds memory accesses in case > > values aren't consi

Re: [PATCH 08/11] virtio: sandbox: Bind RNG rather than block device

2022-04-07 Thread Andrew Scull
On Thu, 7 Apr 2022 at 08:20, Heinrich Schuchardt wrote: > > On 3/31/22 12:09, Andrew Scull wrote: > > The virtio-rng driver is extremely simple, making it suitable for > > testing more of the virtio uclass logic. Have the sandbox driver bind > > the virtio-rng driver rather than the virtio-blk dri

[PATCH 00/11] board: freescale: p1_p2_rdb_pc: Various cleanups and fixes

2022-04-07 Thread Pali Rohár
This patch series contains various cleanups and fixes for shared P1*/P2* board code and preparation for introducing support for another P2020 board. Pali Rohár (11): board: freescale: p1_p2_rdb_pc: Do not hang in checkboard() board: freescale: p1_p2_rdb_pc: Detect both P2020 SD switch conf

[PATCH 01/11] board: freescale: p1_p2_rdb_pc: Do not hang in checkboard()

2022-04-07 Thread Pali Rohár
Like in all other checks in checkboard() function, do not hang on error. Signed-off-by: Pali Rohár --- board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c b/board/freescale/p1_p2_rdb_pc/p1_p2

[PATCH 07/11] board: freescale: p1_p2_rdb_pc: Fix env $vscfw_addr

2022-04-07 Thread Pali Rohár
Do not stringify env $vscfw_addr two times (once implicitly via string operator "" and second time explicitly via __stringify() macro) and allow to compile U-Boot without CONFIG_VSC7385_ENET (when __VSCFW_ADDR was not defined and so macro name was stringified into CONFIG_EXTRA_ENV_SETTINGS). Signe

[PATCH 02/11] board: freescale: p1_p2_rdb_pc: Detect both P2020 SD switch configurations

2022-04-07 Thread Pali Rohár
As written in comment, P2020 has two possible SD switch configurations. Extend code to detect both of them. Signed-off-by: Pali Rohár --- board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c | 4 include/configs/p1_p2_rdb_pc.h | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) di

[PATCH 04/11] board: freescale: p1_p2_rdb_pc: Do not set MPC85xx_PMUXCR_SDHC_WP bit when SDHC_WP is used as GPIO

2022-04-07 Thread Pali Rohár
When MPC85xx_PMUXCR_SDHC_WP is set then SDHC controller automatically makes inserted SD card readonly if GPIO[9] is active. In some design GPIO[9] pin does not have to be connected to SD card write-protect pin and can be used as GPIO. So do not set MPC85xx_PMUXCR_SDHC_WP bit when GPIO[9] is not u

[PATCH 10/11] board: freescale: p1_p2_rdb_pc: Move BootROM change source macros to p1_p2_bootrom.h

2022-04-07 Thread Pali Rohár
Code for changing BootROM source is platform generic and can be used by any P1* and P2* compatible board. Not only by RDB boards which use config header file p1_p2_rdb_pc.h. So move this code from p1_p2_rdb_pc.h to p1_p2_bootrom.h and cleanup macros for generating boot source env variables in CONF

[PATCH 03/11] board: freescale: p1_p2_rdb_pc: Fix parsing negated upper 4 bits from boot input data

2022-04-07 Thread Pali Rohár
On some boards upper 4 bits of i2c boot input data (register 0) are negated. So negate read input data back prior processing them. Fixes printing correct rom_loc: value. Signed-off-by: Pali Rohár --- board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c | 4 1 file changed, 4 insertions(+) diff --g

[PATCH 05/11] board: freescale: p1_p2_rdb_pc: Fix page attributes for second 1G SDRAM map

2022-04-07 Thread Pali Rohár
Like for first 1G SDRAM map, do not enable Caching-inhibited nor Guarded attribute for second 1G SDRAM mapping. Whole 2G SDRAM should use caches and also allow speculative loading (by not setting Guarded attribute). Also enable Memory Coherency attribute for second 1G SDRAM map. In commit 316f0d0f

[PATCH 09/11] board: freescale: p1_p2_rdb_pc: Define SW macros for lower and upper NOR banks

2022-04-07 Thread Pali Rohár
Replace hardcoded i2c hex values for NOR banks by named SW macros in map_lowernorbank/map_uppernorbank env commands. Signed-off-by: Pali Rohár --- include/configs/p1_p2_rdb_pc.h | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/include/configs/p1_p2_rdb_pc.h b/in

[PATCH 06/11] board: freescale: p1_p2_rdb_pc: Move ifdef for USB/eLBC check to correct place

2022-04-07 Thread Pali Rohár
Whole section about USB/eLBC configuration seems to be P1020 specific. So add ifdefs to not compile it on other platforms (e.g. P2020). Signed-off-by: Pali Rohár --- board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/freescal

[PATCH 11/11] board: freescale: p1_p2_rdb_pc: Add env commands norlowerboot, norupperboot, sd2boot and defboot

2022-04-07 Thread Pali Rohár
All *boot env commands overrides default BootROM boot location via i2c. BootROM then starts booting U-Boot from this specified location instead of the default one. Add new env command defboot which reverts BootROM boot location to the default value, which in most cases is configurable by HW DIP sw

[PATCH 08/11] board: freescale: p1_p2_rdb_pc: Use named macros for i2c bus num and address

2022-04-07 Thread Pali Rohár
Replace hardcoded boot i2c bus num and address by existing macros when generating env for CONFIG_EXTRA_ENV_SETTINGS. Same macros are used in U-Boot board code when reading information from boot i2c data. Signed-off-by: Pali Rohár --- include/configs/p1_p2_rdb_pc.h | 24

Re: [PATCH v2] IOMUX: Fix access past end of console_devices

2022-04-07 Thread Andy Shevchenko
On Wed, Apr 06, 2022 at 02:36:35PM -0400, Sean Anderson wrote: > We should only access console_devices[file][i] once we have checked that i > < cd_count[file]. Otherwise, we will access uninitialized memory at the end > of the loop. console_devices[file][i] should not be NULL, but putting the > ass

Re: [PATCH] arm: mvebu: Add support for reading LD0 and LD1 eFuse

2022-04-07 Thread Pali Rohár
On Wednesday 06 April 2022 21:21:59 Marek Behún wrote: > On Wed, 6 Apr 2022 14:18:18 +0200 > Pali Rohár wrote: > > > Armada 385 contains 64 lines of HD eFuse and 2 lines of LD eFuse. HD eFuse > > is used for secure boot and each line is 64 bits long + 1 lock bit. LD > > eFuse lines are 256 bits

Re: [PATCH] arm: mvebu: Add support for reading LD0 and LD1 eFuse

2022-04-07 Thread Marek Behún
On Thu, 7 Apr 2022 13:53:23 +0200 Pali Rohár wrote: > On Wednesday 06 April 2022 21:21:59 Marek Behún wrote: > > On Wed, 6 Apr 2022 14:18:18 +0200 > > Pali Rohár wrote: > > > > > Armada 385 contains 64 lines of HD eFuse and 2 lines of LD eFuse. HD eFuse > > > is used for secure boot and each

Re: [PATCH] arm: mvebu: a37xx: Add support for writing Security OTP values

2022-04-07 Thread Marek Behún
On Thu, 7 Apr 2022 11:32:10 +0200 Pali Rohár wrote: > Implement write support for Security OTP values via mailbox API commands > MBOX_CMD_OTP_WRITE_32B and MBOX_CMD_OTP_WRITE. > > Write support for North and South Bridge OTPs are not implemented as these > OTPs are already burned in factory wit

[PATCH v2 42/52] mips: octeon: Misc changes to existing C files for upcoming eth support

2022-04-07 Thread Stefan Roese
This patch includes misc changes to already present Octeon MIPS C files files, which are necessary for the upcoming ethernet support. The changes are mostly: - DM GPIO & I2C infrastructure - Coding style cleanup while reworking of the code Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/c

[PATCH v2 01/52] mips: octeon: Add misc cvmx-* header files

2022-04-07 Thread Stefan Roese
From: Aaron Williams Import misc cvmx-helper header files from 2013 U-Boot. They will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/include/mach/cvmx-agl.h |

[PATCH] LS1043ARDB, LS1046ARDB, LS1088ARDB: Enable SPL_OF_CONTROL in SECURE Boot defconfig

2022-04-07 Thread Kshitiz Varshney
If enable SPL_DM without SPL_OF_CONTROL, build errors "undefined reference to fdt_get_resource", is coming in function `caam_jr_probe'. Added SPL_OF_CONTROL to remove the error. Signed-off-by: Kshitiz Varshney --- configs/ls1043ardb_nand_SECURE_BOOT_defconfig| 1 + configs/ls1043ardb_sdc

Re: [PATCH 1/9] net: gmac_rockchip: Fix misuse of GENMASK macro

2022-04-07 Thread David Wu
Hi Pierre-Clément, Thanks for your correction, there was wrong mask here. Reviewed-by: David Wu 在 2022/4/6 23:08, Kever Yang 写道: Add David, Hi David,     Could you help to check this patch? Thanks, - Kever On 2022/3/16 23:39, Pierre-Clément Tosi wrote: Swap the arguments as that seems to

  1   2   >