Re: [PATCH v6 7/8] mkeficapsule: Remove raw and FIT GUID types

2022-04-13 Thread Sughosh Ganu
On Wed, 13 Apr 2022 at 11:53, AKASHI Takahiro wrote: > > On Wed, Apr 13, 2022 at 11:44:18AM +0530, Sughosh Ganu wrote: > > On Wed, 13 Apr 2022 at 11:35, AKASHI Takahiro > > wrote: > > > > > > On Tue, Apr 12, 2022 at 06:34:46PM +0530, Sughosh Ganu wrote: > > > > While building a capsule, the GUID

Re: [PATCH v6 8/8] doc: uefi: Update the capsule update related documentation

2022-04-13 Thread AKASHI Takahiro
On Tue, Apr 12, 2022 at 06:34:47PM +0530, Sughosh Ganu wrote: > Update the capsule update functionality related documentation to > refect the additional definitions that need to be made per platform > for supporting the capsule update feature. > > Signed-off-by: Sughosh Ganu > --- > > Changes

Re: [PATCH v6 7/8] mkeficapsule: Remove raw and FIT GUID types

2022-04-13 Thread AKASHI Takahiro
On Wed, Apr 13, 2022 at 11:44:18AM +0530, Sughosh Ganu wrote: > On Wed, 13 Apr 2022 at 11:35, AKASHI Takahiro > wrote: > > > > On Tue, Apr 12, 2022 at 06:34:46PM +0530, Sughosh Ganu wrote: > > > While building a capsule, the GUID value of that specific image is to > > > be passed through the

Re: [PATCH v6 7/8] mkeficapsule: Remove raw and FIT GUID types

2022-04-13 Thread AKASHI Takahiro
On Tue, Apr 12, 2022 at 06:34:46PM +0530, Sughosh Ganu wrote: > While building a capsule, the GUID value of that specific image is to > be passed through the --guid command option to the mkeficapsule > tool. This renders the EFI_FIRMWARE_IMAGE_TYPE_UBOOT_FIT_GUID and >

Re: [PATCH v6 7/8] mkeficapsule: Remove raw and FIT GUID types

2022-04-13 Thread Sughosh Ganu
On Wed, 13 Apr 2022 at 11:35, AKASHI Takahiro wrote: > > On Tue, Apr 12, 2022 at 06:34:46PM +0530, Sughosh Ganu wrote: > > While building a capsule, the GUID value of that specific image is to > > be passed through the --guid command option to the mkeficapsule > > tool. This renders the

Re: [PATCH v6 5/8] test: capsule: Modify the capsule tests to use GUID values for sandbox

2022-04-13 Thread AKASHI Takahiro
On Tue, Apr 12, 2022 at 06:34:44PM +0530, Sughosh Ganu wrote: > The current UEFI capsule updation code uses two GUID values, one for > FIT images, and one for raw images across platforms. This logic is > being changed to have GUID values per image, per platform. Change the > tests for the capsule

Re: [EXT] [PATCH v11 01/14] crypto/fsl: Add support for CAAM Job ring driver model

2022-04-13 Thread Stefano Babic
Hi Gaurav, Priyanka, On 13.04.22 07:35, Gaurav Jain wrote: Hi Priyanka Stefano has applied the patches for imx. Please help to apply the layerscape patches. Kshitiz's patch is already applied, else I could not build my tree, you do not need to bother about it:

Re: [PATCH] misc: Port USB251xB/xBi Hi-Speed Hub Controller Driver from Linux

2022-04-13 Thread Michal Simek
On 4/10/22 06:27, Marek Vasut wrote: This patch adds a driver for configuration of the Microchip USB251xB/xBi USB 2.0 hub controller series with USB 2.0 upstream connectivity, SMBus configuration interface and two to four USB 2.0 downstream ports. This is ported from Linux as of Linux kernel

Re: [PATCH v1 19/24] colibri-imx6ull: fix nand bch geometry

2022-04-13 Thread Marcel Ziswiler
Hi Stefano On Wed, 2022-04-13 at 09:32 +0200, Stefano Babic wrote: > Hi Marcel, > > On 08.04.22 10:24, Marcel Ziswiler wrote: > > > Subject: [PATCH v1 19/24] colibri-imx6ull: fix nand bch geometry > > > Date: Fri,  8 Apr 2022 10:07:14 +0200 > > > Message-Id:

Re: [PATCH 1/2] board: gateworks: venice: add additional levels for dtb name match

2022-04-13 Thread Stefano Babic
Hi Tim, (quite unrelated to this series): after applying tons of patches, there are a list that are obsolete and need to be rebased. I applied several of the patches you sent, some have open issues, some cannot be applied (as this series), as they depend on other patches too. I would

[PATCH V4 2/6] arch: arm: move COUNTER_FREQUENCY from versal to arm

2022-04-13 Thread Peng Fan (OSS)
From: Peng Fan Make COUNTER_FREQUENCY usable to armv8 and armv7-a, not limited to versal. And update help message. Signed-off-by: Peng Fan --- arch/arm/Kconfig | 12 arch/arm/mach-versal/Kconfig | 6 -- 2 files changed, 12 insertions(+), 6 deletions(-) diff

Re: [PATCH v6 8/8] doc: uefi: Update the capsule update related documentation

2022-04-13 Thread Sughosh Ganu
On Wed, 13 Apr 2022 at 11:48, AKASHI Takahiro wrote: > > On Tue, Apr 12, 2022 at 06:34:47PM +0530, Sughosh Ganu wrote: > > Update the capsule update functionality related documentation to > > refect the additional definitions that need to be made per platform > > for supporting the capsule update

Re: [PATCH v2] ARM: imx: Enable instruction cache early on on i.MX8M

2022-04-13 Thread Stefano Babic
On 13.04.22 00:41, Marek Vasut wrote: Enable instruction cache early on to speed up the boot process on i.MX8M. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic --- V2: Protect the icache_enable with !CONFIG_IS_ENABLED(SYS_ICACHE_OFF), the symbol might be

Re: [PATCH v6 8/8] doc: uefi: Update the capsule update related documentation

2022-04-13 Thread Masami Hiramatsu
Hi 2022年4月13日(水) 16:33 AKASHI Takahiro : > > On Wed, Apr 13, 2022 at 12:38:05PM +0530, Sughosh Ganu wrote: > > On Wed, 13 Apr 2022 at 11:48, AKASHI Takahiro > > wrote: > > > > > > On Tue, Apr 12, 2022 at 06:34:47PM +0530, Sughosh Ganu wrote: > > > > Update the capsule update functionality

Re: Bug in p1_p2_rdb_pc? Caching-inhibited bit for initial L2 SRAM entry in TLB

2022-04-13 Thread Pali Rohár
On Tuesday 05 April 2022 10:57:37 Pali Rohár wrote: > Hello! > > I suspect that there is a bug in board/freescale/p1_p2_rdb_pc/tlb.c code > which configures TLB entry for initial L2 SRAM. > > When L2 is 512 kB long (e.g. on P2020) then U-Boot *unsets* MAS2_I bit > for first half of L2 and for

[PATCH v2 01/11] toradex: apalis-imx8x: drop support for apalis imx8x

2022-04-13 Thread Marcel Ziswiler
From: Denys Drozdov Drop Apalis iMX8X platform as it never left sample state and is no longer supported. Signed-off-by: Denys Drozdov Signed-off-by: Marcel Ziswiler --- (no changes since v1) arch/arm/dts/Makefile | 1 - arch/arm/dts/fsl-imx8qxp-apalis-u-boot.dtsi

[PATCH v2 08/11] board: toradex: drop colibri pxa270 support

2022-04-13 Thread Marcel Ziswiler
From: Marcel Ziswiler The Colibri PXA270 has been end-of-life since quite a while and would require more and more maintenance (e.g. DM conversions). Signed-off-by: Marcel Ziswiler --- (no changes since v1) arch/arm/Kconfig | 6 -

[PATCH v2 00/11] toradex updates: assortment of fixes and improvements

2022-04-13 Thread Marcel Ziswiler
From: Marcel Ziswiler This series contains an assortment of fixes and improvements for Toradex computer/system on modules (CoM/SoM). We also drop support for the Apalis iMX8X and the Colibri PXA270. The former never evolved beyond the sample state and we no longer support it. The latter is EOL

Re: [PATCH v6 7/8] mkeficapsule: Remove raw and FIT GUID types

2022-04-13 Thread AKASHI Takahiro
On Wed, Apr 13, 2022 at 12:00:44PM +0530, Sughosh Ganu wrote: > On Wed, 13 Apr 2022 at 11:53, AKASHI Takahiro > wrote: > > > > On Wed, Apr 13, 2022 at 11:44:18AM +0530, Sughosh Ganu wrote: > > > On Wed, 13 Apr 2022 at 11:35, AKASHI Takahiro > > > wrote: > > > > > > > > On Tue, Apr 12, 2022 at

[PATCH V4 6/6] arm: set cntfrq_el0 if CONFIG_COUNTER_FREQUENCY is valid

2022-04-13 Thread Peng Fan (OSS)
From: Peng Fan Since COUNTER_FREQUENCY is obselete, so set cntfrq_el0 if CONFIG_COUNTER_FREQUENCY is valid Signed-off-by: Peng Fan --- arch/arm/cpu/armv7/ls102xa/psci.S | 2 +- arch/arm/cpu/armv7/ls102xa/timer.c| 2 +- arch/arm/cpu/armv7/nonsec_virt.S | 4 ++--

[PATCH V4 1/6] xilinx: versal: board: use CONFIG_COUNTER_FREQUENCY

2022-04-13 Thread Peng Fan (OSS)
From: Peng Fan Since versal has CONFIG_COUNTER_FREQUENCY, so use it. And COUNTER_FREQUENCY will be dropped. Signed-off-by: Peng Fan Reviewed-by: Michal Simek --- board/xilinx/versal/board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/xilinx/versal/board.c

[PATCH V4 3/6] arch: arm: Kconfig: set default COUNTER_FREQUENCY

2022-04-13 Thread Peng Fan (OSS)
From: Peng Fan Set default COUNTER_FREQUENCY according to config header file under include/configs/ i.MX6UL/ULL/7D/8QM/8QXP all has system counter frequency run at 8MHz, so set default value for them. SUNXI/EXYNOS/ROCKCHIP_RK3128/ROCKCHIP_RK3288/ROCKCHIP_RK322X/ROCKCHIP_RK3036 at 24MHz.

[PATCH V4 0/6] Convert COUNTER_FREQUENCY to CONFIG_COUNTER_FREQUENCY

2022-04-13 Thread Peng Fan (OSS)
From: Peng Fan V4: Include arm32 support. arm32 changes merged with arm64. Add missing arm64 convert Rebased Pass git bisect build and CI Hope this works well V3: Add more help info for CONFIG_COUNTER_FREQUENCY Drop uneeded comments Pass git bisect build Rebased V2: Drop imx93 which

[PATCH v2 09/11] board: colibri_imx7: fix usb start on solo

2022-04-13 Thread Marcel Ziswiler
From: Marcel Ziswiler This fixes the following crash when run on a Colibri iMX7S aka solo: Colibri iMX7 # usb start starting USB... Bus usb@30b1: USB EHCI 1.00 Bus usb@30b2: The i.MX 7Solo has only one single USB OTG1 but no USB host port. Trying to initialize the nonexisting port just

[PATCH v2 11/11] configs: tdx: apalis/colibri_imx6: use preboot as well

2022-04-13 Thread Marcel Ziswiler
From: Marcel Ziswiler Use PREBOOT as well. This allows a customer to just set fdt_board as on any other module to customize the device tree for his carrier board. Signed-off-by: Marcel Ziswiler --- Changes in v2: - Re-based on top of Stefano's imx/master-next which dropped 13 commits

[PATCH v2 05/11] configs: toradex: enable missing fit options

2022-04-13 Thread Marcel Ziswiler
From: Oleksandr Suvorov Add missing support of FIT-images and enable a verbosity for this feature. Signed-off-by: Oleksandr Suvorov Signed-off-by: Marcel Ziswiler --- (no changes since v1) configs/apalis-imx8_defconfig | 1 + configs/apalis-tk1_defconfig | 1 +

[PATCH v2 03/11] toradex: set default dhcp distroboot scriptname

2022-04-13 Thread Marcel Ziswiler
From: Igor Opaniuk Use the same name of DHCP Distroboot script as in regular eMMC case. Signed-off-by: Igor Opaniuk Signed-off-by: Marcel Ziswiler --- (no changes since v1) include/configs/apalis-imx8.h | 1 + include/configs/apalis-tk1.h | 1 + include/configs/apalis_imx6.h |

[PATCH v2 10/11] configs: tdx: apalis_imx6: drop hw v1.0 support

2022-04-13 Thread Marcel Ziswiler
From: Marcel Ziswiler Drop optional support for the ancient Apalis iMX6 V1.0 hardware which had the UART wired as DCE rather than DTE. Signed-off-by: Marcel Ziswiler --- Changes in v2: - Also drop setup_dcemode_uart() and setup_iomux_dce_uart() which are now unused.

Re: [PATCH V4 6/6] arm: set cntfrq_el0 if CONFIG_COUNTER_FREQUENCY is valid

2022-04-13 Thread Philipp Tomsich
On Wed, 13 Apr 2022 at 11:07, Peng Fan (OSS) wrote: > > From: Peng Fan > > Since COUNTER_FREQUENCY is obselete, so set cntfrq_el0 if > CONFIG_COUNTER_FREQUENCY is valid > > Signed-off-by: Peng Fan Reviewed-by: Philipp Tomsich

[PATCH v2 02/11] toradex: globally disable video support

2022-04-13 Thread Marcel Ziswiler
From: Igor Opaniuk As video support is very specific depending on the exact display customisation we decided to disable video support for all out modules by default. Signed-off-by: Igor Opaniuk Signed-off-by: Marcel Ziswiler --- (no changes since v1) configs/apalis_imx6_defconfig

[PATCH v2 06/11] configs: colibri-imx7/-emmc: enable booting from usb sdp

2022-04-13 Thread Marcel Ziswiler
From: Oleksandr Suvorov For recovery purpose allow booting via SDP over USB as well. Signed-off-by: Oleksandr Suvorov Signed-off-by: Marcel Ziswiler --- (no changes since v1) configs/colibri_imx7_defconfig | 1 + configs/colibri_imx7_emmc_defconfig | 1 + 2 files changed, 2

[PATCH v2 04/11] toradex: drop legacy nfsboot script

2022-04-13 Thread Marcel Ziswiler
From: Igor Opaniuk Drop legacy nfsboot script in favor of distroboot DHCP boot. Signed-off-by: Igor Opaniuk Signed-off-by: Marcel Ziswiler --- (no changes since v1) include/configs/apalis-imx8.h | 5 - include/configs/apalis-tk1.h | 11 ---

[PATCH v2 07/11] configs: tdx: Do not overwrite fdtfile if it got set manually

2022-04-13 Thread Marcel Ziswiler
From: Philippe Schenker In case a customer wants to set fdtfile currently preboot overrides it always with preboot just before the bootdelay. Use test -n to check if fdtfile is already set and only set it if nothing got touched manually Signed-off-by: Philippe Schenker Signed-off-by: Marcel

Pull request: u-boot-imx u-boot-imx-20220412

2022-04-13 Thread Stefano Babic
-2022-07-rc1' of https://source.denx.de/u-boot/custodians/u-boot-efi (2022-04-10 11:21:39 -0400) are available in the Git repository at: https://gitlab.denx.de/u-boot/custodians/u-boot-imx.git tags/u-boot-imx-20220413 for you to fetch changes up to a1c711046b0d5478a702b27c6773ea6231eba057

Re: [PATCH v1 19/24] colibri-imx6ull: fix nand bch geometry

2022-04-13 Thread Stefano Babic
Hi Marcel, On 08.04.22 10:24, Marcel Ziswiler wrote: Subject: [PATCH v1 19/24] colibri-imx6ull: fix nand bch geometry Date: Fri, 8 Apr 2022 10:07:14 +0200 Message-Id: <20220408080719.342072-20-mar...@ziswiler.com> X-Mailer: git-send-email 2.34.1 In-Reply-To:

Re: [PATCH v6 8/8] doc: uefi: Update the capsule update related documentation

2022-04-13 Thread AKASHI Takahiro
On Wed, Apr 13, 2022 at 12:38:05PM +0530, Sughosh Ganu wrote: > On Wed, 13 Apr 2022 at 11:48, AKASHI Takahiro > wrote: > > > > On Tue, Apr 12, 2022 at 06:34:47PM +0530, Sughosh Ganu wrote: > > > Update the capsule update functionality related documentation to > > > refect the additional

Re: [PATCH V2 19/26] imx: imx8ulp_evk: Power down the domains may used in u-boot

2022-04-13 Thread Stefano Babic
Hi Peng, On 13.04.22 05:00, Peng Fan (OSS) wrote: Hi Stefano, On 2022/4/13 1:10, Stefano Babic wrote: Hi Peng,Ye, On 06.04.22 08:30, Peng Fan (OSS) wrote: From: Ye Li Since ATF power domain will hold the enable counter for each power domain, We need to power off them before entering

Re: [PATCH 1/2] Kconfig: Change SYS_MALLOC_F_LEN default to 0x2000

2022-04-13 Thread Kristian Amlie
For vexpress_ca9x4_defconfig: Reviewed-by: Kristian Amlie -- Kristian On 07/04/2022 18:33, Tom Rini wrote: The most commonly used value today is 0x2000 and not 0x400. Rework the Kconfig logic to use this more frequently used value as the default. Cc: Andrew F. Davis Cc: Alex Nemirovsky

Re: [PATCH v6 5/8] test: capsule: Modify the capsule tests to use GUID values for sandbox

2022-04-13 Thread Sughosh Ganu
On Wed, 13 Apr 2022 at 12:05, AKASHI Takahiro wrote: > > On Tue, Apr 12, 2022 at 06:34:44PM +0530, Sughosh Ganu wrote: > > The current UEFI capsule updation code uses two GUID values, one for > > FIT images, and one for raw images across platforms. This logic is > > being changed to have GUID

[PATCH] board: gateworks: venice: add imx8mm-gw7903 support

2022-04-13 Thread sbabic
> The GW7903 is based on the i.MX 8M Mini SoC featuring: > - LPDDR4 DRAM > - eMMC FLASH > - microSD socket with voltage select support > - Gateworks System Controller > - M.2 A-E Socket with USB2.0 and PCIe > - MiniPCIe Socket with PCIe, USB2.0, and SIM > - IMX8M FEC > - RS232/RS485/RS422

[PATCH v3] ARM: imx: Get rid of only i.MX8M SMCCC arch call

2022-04-13 Thread sbabic
> This is the only place where i.MX8M code does SMCCC call, remove it. > The output has little value as it prints some part of commit ID, and > worse, if there is no SMC handler installed, the code outright hangs > or crashes the system. > By removing this one instance of SMCCC call, U-Boot no

[PATCH] clk: imx8mp: Fix 24M and 32k clock

2022-04-13 Thread sbabic
> Fix registration of 24M and 32k clock, those got applied or rebased > incorrectly, so fill in the correct code. > Fixes: 7a2c3be95a5 ("clk: imx8mp: Fill in DWC3 USB, USB PHY, HSIOMIX clock") > Signed-off-by: Marek Vasut > Cc: Fabio Estevam > Cc: Peng Fan > Cc: Stefano Babic > Cc: Ye Li

[PATCH] warp7: Remove duplicated "mmc dev" command

2022-04-13 Thread sbabic
> From: Fabio Estevam > The "mmc dev ${mmcdev}" command is done twice. > Remove one ocurrence to avoid the duplication. > Signed-off-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- =

[PATCH v2] ARM: imx: Enable instruction cache early on on i.MX8M

2022-04-13 Thread sbabic
> Enable instruction cache early on to speed up the boot process on i.MX8M. > Signed-off-by: Marek Vasut > Cc: Fabio Estevam > Cc: Peng Fan > Cc: Stefano Babic Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

Re: [PATCH] build: allow a downstream suffix in the version shown during boot

2022-04-13 Thread Nicolas Boulenguez
> Why do you need this, instead of just using CONFIG_LOCALVERSION? Because we were not aware of this option. Thanks for the hint and sorry for the noise.

RFC: Updating i.MX8M CPU thermal trip-point at runtime

2022-04-13 Thread Andrejs Cainikovs
Hi everyone, Recent issue that I had to deal with sparkled a discussion within my team, and seems like we are not sure what would be a proper way to go, even if there are multiple ways to do it. We decided to ask this question to open-source community, in case someone has thoughts about it.

[PATCH V4 4/6] configs: set CONFIG_COUNTER_FREQUENCY

2022-04-13 Thread Peng Fan (OSS)
From: Peng Fan Set CONFIG_COUNTER_FREQUENCY according to COUNTER_FREQUENCY in config header file. Signed-off-by: Peng Fan --- configs/a3y17lte_defconfig | 1 + configs/a5y17lte_defconfig | 1 + configs/a7y17lte_defconfig

[PATCH V4 5/6] include/configs: drop COUNTER_FREQUENCY

2022-04-13 Thread Peng Fan (OSS)
From: Peng Fan Since we have CONFIG_COUNTER_FREQUENCY enabled, no need COUNTER_FREQUENCY Signed-off-by: Peng Fan --- arch/arm/cpu/armv8/fsl-layerscape/spintable.S | 2 +- include/configs/apalis-imx8.h | 3 --- include/configs/apalis-imx8x.h| 3 ---

[PATCH] gpio: aspeed: Fix incorrect offset of read back register.

2022-04-13 Thread Billy Tsai
The offset of the current read back register is the value of the gpio pin, not the value written for the gpio output. This patch fix it to avoid the other gpio output value controlled by the same register being set incorrectly. Fixes: 7ad889b0f37a ("gpio: Add Aspeed GPIO driver") Signed-off-by:

Re: [PATCH v2 12/18] test: pci: Test PCI address conversion functions

2022-04-13 Thread Bin Meng
On Wed, Mar 30, 2022 at 12:59 AM Andrew Scull wrote: > > Add tests for the functions dm_pci_bus_to_phys() and > dm_pci_phys_to_bus() which convert between PCI bus addresses and > physical addresses based on the ranges declared for the PCI controller. > > The ranges of bus#1 are used for the

Re: [PATCH v2 11/18] pci: Range check address conversions

2022-04-13 Thread Bin Meng
On Wed, Mar 30, 2022 at 12:59 AM Andrew Scull wrote: > > When converting between PCI bus and physical addresses, include a length > parameter that can be used to check that the entire range fits within > one of the PCI regions. This prevents an address being returned that > might be only

Re: [PATCH 0/6] introduce Arm FF-A support

2022-04-13 Thread Abdellatif El Khlifi
On Tue, Apr 12, 2022 at 08:28:42AM -0500, Rob Herring wrote: > On Tue, Apr 12, 2022 at 7:01 AM Tom Rini wrote: > > > > On Tue, Apr 12, 2022 at 12:43:15PM +0100, Abdellatif El Khlifi wrote: > > > On Thu, Apr 07, 2022 at 08:58:11AM -0400, Tom Rini wrote: > > > > On Thu, Apr 07, 2022 at 01:54:24PM

Re: [PATCH] bosch: Add inital board support for ACC

2022-04-13 Thread Philip Oberfichtner
Hi Stefano, On Mon, 2022-04-11 at 17:45 +0200, Stefano Babic wrote: > Hi Philipp, > > On 02.03.22 10:39, Philip Oberfichtner wrote: > > The Bosch ACC (Air Center Control) Board is based on the i.MX6D. > > [snip] > > > diff --git a/include/configs/imx6q-acc.h b/include/configs/imx6q- > > acc.h

U-boot may fail to boot because of stale d-cache entry

2022-04-13 Thread Jeungwoo Yoo
During initialization, U-Boot may rely on clean caches for the code and data in the memory area where its binary is located. Cleaning that cache area could be a responsibility of the loader of U-Boot (e.g., BL2 from ARM Trusted Firmware). Otherwise, it may be hard for U-Boot to avoid using

Re: [PATCH v2 08/18] pci: Fix use of flags in dm_pci_map_bar()

2022-04-13 Thread Bin Meng
On Wed, Mar 30, 2022 at 12:59 AM Andrew Scull wrote: > > The flags parameter of dm_pci_map_bar() is used for PCI region flags > rather than memory mapping flags. Fix the type to match that of the > region flags and stop using the regions flags as memory mapping flags. > > Signed-off-by: Andrew

Re: [PATCH v2 13/18] pci: Map bars with offset and length

2022-04-13 Thread Bin Meng
On Wed, Mar 30, 2022 at 12:59 AM Andrew Scull wrote: > > Evolve dm_pci_map_bar() to include an offset and length parameter. These > allow a portion of the memory to be mapped and range checks to be > applied. > > Passing both the offset and length as zero results in the previous > behaviour and

Re: [PATCH] misc: Port USB251xB/xBi Hi-Speed Hub Controller Driver from Linux

2022-04-13 Thread Marek Vasut
On 4/13/22 09:27, Michal Simek wrote: On 4/10/22 06:27, Marek Vasut wrote: This patch adds a driver for configuration of the Microchip USB251xB/xBi USB 2.0 hub controller series with USB 2.0 upstream connectivity, SMBus configuration interface and two to four USB 2.0 downstream ports. This

[PATCH v2 05/12] dm: test: virtio: Test the virtio ring

2022-04-13 Thread Andrew Scull
The virtio ring is the basis of virtio communication. Test its basic functionality and its resilience against corruption from the device. Signed-off-by: Andrew Scull Reviewed-by: Simon Glass --- test/dm/virtio.c | 72 1 file changed, 72

[PATCH v2 09/12] virtio: sandbox: Bind RNG rather than block device

2022-04-13 Thread Andrew Scull
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. Signed-off-by: Andrew Scull Reviewed-by: Simon Glass ---

[PATCH v2 04/12] virtio_ring: Check used descriptors are chain heads

2022-04-13 Thread Andrew Scull
When the device returns used buffers, it should refer to the descriptor that is the head of the descriptor chain for that buffer. Confirm this to be the case by tracking the head of descriptor chains that have been made available to the device. Signed-off-by: Andrew Scull Reviewed-by: Simon

[PATCH v2 06/12] virtio: sandbox: Fix device features bitfield

2022-04-13 Thread Andrew Scull
The virtio sandbox transport was setting the device features value to the bit index rather than shifting a bit to the right index. Fix this using the bit manipulation macros. Signed-off-by: Andrew Scull Reviewed-by: Simon Glass --- drivers/virtio/virtio_sandbox.c | 2 +- test/dm/virtio.c

[PATCH v2 07/12] test: dm: virtio: Test notify before del_vqs

2022-04-13 Thread Andrew Scull
The virtqueue is passed to virtio_notify() so move the virtqueue deletion to the end of the test when it's no longer needed. This wasn't causing any problems because the sandbox virtio transport driver doesn't do anything for notifications, but it could cause problems if things change and it was a

[PATCH v2 08/12] test: dm: virtio: Split out virtio device tests

2022-04-13 Thread Andrew Scull
Virtio tests that find a child device require the virtio device driver to be included in the build so it can probe. The sandbox virtio transport driver currently reports a virtio-blk device so make sure the corresponding driver is built before running tests that need it. Signed-off-by: Andrew

[PATCH v2 12/12] test: dm: virtio_rng: Test virtio-rng with faked device

2022-04-13 Thread Andrew Scull
Add a regression test for virtio-rng reading beyond the end of its buffer if the virtio device provides an invalid length. Signed-off-by: Andrew Scull Reviewed-by: Simon Glass --- test/dm/Makefile | 1 + test/dm/virtio_rng.c | 52 2 files

[PATCH v2 11/12] virtio: rng: Check length before copying

2022-04-13 Thread Andrew Scull
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 consistent. Signed-off-by: Andrew Scull Cc: Sughosh Ganu Reviewed-by: Simon Glass --- drivers/virtio/virtio_rng.c | 3 +++ 1 file changed, 3

[PATCH v2 10/12] test: dm: virtio: Test virtio device driver probing

2022-04-13 Thread Andrew Scull
Once the virtio-rng driver has been bound, probe it to trigger the pre and post child probe hooks of the virtio uclass driver. Check the status of the virtio device to confirm it reached the expected state. Signed-off-by: Andrew Scull Reviewed-by: Simon Glass --- test/dm/virtio_device.c | 9

Re: [PATCH v2 06/18] virtio: pci: Check virtio capability is in bounds

2022-04-13 Thread Bin Meng
On Wed, Mar 30, 2022 at 12:59 AM Andrew Scull wrote: > > Ensure the virtio PCI capabilities are contained within the bounds of > the device's configuration space. The expected size of the capability is > passed when searching for the capability to enforce this check. > > Signed-off-by: Andrew

Re: [PATCH v2 07/18] virtio: pci: Read entire capability into memory

2022-04-13 Thread Bin Meng
On Wed, Mar 30, 2022 at 12:59 AM Andrew Scull wrote: > > Read the virtio PCI capability out of the device configuration space to > a struct rather than accessing fields directly from the configuration > space as they are needed. This both makes access to the fields easier > and avoids re-reading

Re: [PATCH v2 09/18] pci: Add config for Enhanced Allocation

2022-04-13 Thread Bin Meng
On Wed, Mar 30, 2022 at 12:59 AM Andrew Scull wrote: > > Add a config to control whether Enhanced Allocation is supported by the > driver. > > Signed-off-by: Andrew Scull > --- > drivers/pci/Kconfig | 7 +++ > drivers/pci/pci-uclass.c | 25 +++-- > 2 files changed,

[PATCH v2 01/12] virtio_ring: Merge identical variables

2022-04-13 Thread Andrew Scull
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: Simon Glass --- drivers/virtio/virtio_ring.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-)

[PATCH v2 03/12] virtio_ring: Maintain a shadow copy of descriptors

2022-04-13 Thread Andrew Scull
The shared descriptors should only be written by the guest driver, however, the device is still able to overwrite and corrupt them. Maintain a private shadow copy of the descriptors for the driver to use for state tracking, removing the need to read from the shared descriptors. Signed-off-by:

[PATCH v2 02/12] virtio_ring: Add helper to attach vring descriptor

2022-04-13 Thread Andrew Scull
Move the logic for attaching a descriptor to its own function. Signed-off-by: Andrew Scull Reviewed-by: Simon Glass --- drivers/virtio/virtio_ring.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/virtio/virtio_ring.c

Re: [PATCH v2 14/18] pci: Match region flags using a mask

2022-04-13 Thread Bin Meng
On Wed, Mar 30, 2022 at 12:59 AM Andrew Scull wrote: > > When converting addresses, apply a mask to the region flags during > lookup. This allows the caller to specify which flags are important and > which are not, for example to exclude system memory regions. > > The behaviour of the function is

Re: [PATCH v2 08/18] pci: Fix use of flags in dm_pci_map_bar()

2022-04-13 Thread Andrew Scull
> > diff --git a/drivers/pci/pci-uclass.c b/drivers/pci/pci-uclass.c > > index 33dda2..8bbeb62f2e 100644 > > --- a/drivers/pci/pci-uclass.c > > +++ b/drivers/pci/pci-uclass.c > > @@ -1533,8 +1533,8 @@ static phys_addr_t dm_pci_map_ea_virt(struct udevice > > *dev, int ea_off, > >

Re: Pull request: u-boot-imx u-boot-imx-20220412

2022-04-13 Thread Tom Rini
x.de/u-boot/custodians/u-boot-efi (2022-04-10 11:21:39 > -0400) > > are available in the Git repository at: > > https://gitlab.denx.de/u-boot/custodians/u-boot-imx.git > tags/u-boot-imx-20220413 > > for you to fetch changes up to a1c711046b0d5478a702b27c6773ea6231eba057: &

[PATCH v2] board: gateworks: gw_ventana: use comomn GSC driver

2022-04-13 Thread Tim Harvey
Use the common GSC driver. This allows us to do some additional cleanup: - use the GSC driver functions - move waiting for the EEPROM to the SPL int (it will always be ready after this) - move eeprom functions into eeprom file and elimate GSC_I2C_BUS - eliminate some redundant EEPROM reads

Re: Pull request: u-boot-imx u-boot-imx-20220412

2022-04-13 Thread Tim Harvey
hanges since commit 33ae8c5bebba0874fbc432914406e63fbc219080: > > > > Merge tag 'efi-2022-07-rc1' of > > https://source.denx.de/u-boot/custodians/u-boot-efi (2022-04-10 11:21:39 > > -0400) > > > > are available in the Git repository at: > > >

Re: [PATCH v2 12/18] test: pci: Test PCI address conversion functions

2022-04-13 Thread Andrew Scull
On Wed, 13 Apr 2022 at 15:03, Bin Meng wrote: > > On Wed, Mar 30, 2022 at 12:59 AM Andrew Scull wrote: > > > > Add tests for the functions dm_pci_bus_to_phys() and > > dm_pci_phys_to_bus() which convert between PCI bus addresses and > > physical addresses based on the ranges declared for the PCI

Re: [PATCH 0/6] introduce Arm FF-A support

2022-04-13 Thread Tom Rini
On Wed, Apr 13, 2022 at 03:20:23PM +0100, Abdellatif El Khlifi wrote: > On Tue, Apr 12, 2022 at 08:28:42AM -0500, Rob Herring wrote: > > On Tue, Apr 12, 2022 at 7:01 AM Tom Rini wrote: > > > > > > On Tue, Apr 12, 2022 at 12:43:15PM +0100, Abdellatif El Khlifi wrote: > > > > On Thu, Apr 07, 2022

Re: [PATCH v2 13/18] pci: Map bars with offset and length

2022-04-13 Thread Andrew Scull
On Wed, 13 Apr 2022 at 15:05, Bin Meng wrote: > > On Wed, Mar 30, 2022 at 12:59 AM Andrew Scull wrote: > > > > Evolve dm_pci_map_bar() to include an offset and length parameter. These > > allow a portion of the memory to be mapped and range checks to be > > applied. > > > > Passing both the

[PATCH v1 05/12] configs: stm32f769-disco: Add stm32f769-disco_defconfig

2022-04-13 Thread Patrice Chotard
Add stm32f769-disco_defconfig for stm32f769 discovery board to build U-Boot proper. Signed-off-by: Patrice Chotard --- configs/stm32f769-disco_defconfig | 65 +++ 1 file changed, 65 insertions(+) create mode 100644 configs/stm32f769-disco_defconfig diff --git

[PATCH v1 07/12] configs: stm32f746-disco: Migrate SPL flags to defconfig

2022-04-13 Thread Patrice Chotard
Migrate SPL flags to stm32f746-disco_spl_defconfig Signed-off-by: Patrice Chotard --- arch/arm/mach-stm32/Kconfig | 20 configs/stm32f746-disco_spl_defconfig | 24 2 files changed, 20 insertions(+), 24 deletions(-) diff --git

[PATCH v1 08/12] board: stm32f746-disco: Fix dram_init() in none SPL config

2022-04-13 Thread Patrice Chotard
Replace CONFIG_SUPPORT_SPL by CONFIG_SPL_BUILD to allow dram_init() execution when using none SPL defconfig (stm32f746-disco_defconfig). Signed-off-by: Patrice Chotard --- board/st/stm32f746-disco/stm32f746-disco.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v1 06/12] configs: stm32f769-disco: Migrate SPL flags to defconfig

2022-04-13 Thread Patrice Chotard
Migrate SPL flags to stm32f769-disco_spl_defconfig Signed-off-by: Patrice Chotard --- configs/stm32f769-disco_spl_defconfig | 25 + 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/configs/stm32f769-disco_spl_defconfig

[PATCH v1 09/12] configs: stm32f746-disco: use CONFIG_DEFAULT_DEVICE_TREE as fdtfile

2022-04-13 Thread Patrice Chotard
As stm32f46-disco, stm32f769-disco and stm32746g-eval are very similar except their respective device tree file. These 3 boards uses the same TARGET_STM32F746_DISCO flag (so same include/configs/stm32f746-disco.h and same board file board/st/stm32f746-disco/stm32f746-disco.c) To be able to

Re: [PATCH v2 16/18] pci: Add mask parameter to dm_pci_map_bar()

2022-04-13 Thread Bin Meng
On Wed, Mar 30, 2022 at 12:59 AM Andrew Scull wrote: > > Add a mask parameter to control the lookup of the PCI region from which > the mapping can be made. > > Signed-off-by: Andrew Scull > --- > arch/x86/cpu/baytrail/cpu.c | 2 +- > drivers/ata/ahci.c | 7

Please pull u-boot-net/next

2022-04-13 Thread Ramon Fried
Hi Tom, Please pull the latest changes from u-boot-net/next branch which include: * DM9000 DM support * tftp server bug fix * mdio ofnode support functions * Various phy fixes and improvements. The following changes since commit 8221c52d88fbe84ca9692dc23827e21403c952e8: Merge tag

Re: [PATCH v2 00/18] virtio: pci: Add and fix consistency checks

2022-04-13 Thread Bin Meng
Hi Andrew, On Wed, Mar 30, 2022 at 12:59 AM Andrew Scull wrote: > > The virtio PCI drivers forgo a number of consistency checks, > particularly around pointer validation and bounds checking. This series > focuses on the modern driver to add those checks. > > The start of the series adds and

[PATCH v2] configs: imx8m{m,n}_venice_defconfig: add usb support

2022-04-13 Thread Tim Harvey
Enable USB support for host controller and various USB ethernet devices. Example usage of USB Mass Storage (UMS) support: u-boot=> mmc list FSL_SDHC: 0 FSL_SDHC: 1 FSL_SDHC: 2 (eMMC) u-boot=> ums 0 mmc 2 UMS: LUN 0, dev mmc 2, hwpart 0, sector 0x0, count 0xe3 Signed-off-by: Tim Harvey

[PATCH v2] board: gateworks: venice: enable DM_SERIAL

2022-04-13 Thread Tim Harvey
Enable DM_SERIAL. Signed-off-by: Tim Harvey --- v2: rebase on imx/master --- configs/imx8mm_venice_defconfig | 2 ++ configs/imx8mn_venice_defconfig | 2 ++ 2 files changed, 4 insertions(+) diff --git a/configs/imx8mm_venice_defconfig b/configs/imx8mm_venice_defconfig index

Re: [PATCH v2] board: gateworks: venice: enable DM_SERIAL

2022-04-13 Thread Michael Nazzareno Trimarchi
Hi Tim On Wed, Apr 13, 2022 at 5:47 PM Tim Harvey wrote: > > Enable DM_SERIAL. > > Signed-off-by: Tim Harvey > --- > v2: rebase on imx/master > --- > configs/imx8mm_venice_defconfig | 2 ++ > configs/imx8mn_venice_defconfig | 2 ++ > 2 files changed, 4 insertions(+) > > diff --git

[PATCH v2] arm: dts: imx8m*-venice: add gpio hog support

2022-04-13 Thread Tim Harvey
Add gpio hog support for board-specific gpio lines: - put hogs in u-boot.dtsi so as to keep the regular dts files in sync with the kernel. The hogs will not be put in the kernel as that makes them un-usable by userspace as well as re-initializes them to dt defaults overriding changes which

[PATCH v2] imx8m{m,n}-venice-gw7902: add support for GPY111 phy

2022-04-13 Thread Tim Harvey
The TI DP83867 phy has been replaced with the MaxLinear GPY111 phy due to part availability. Add support for it: - increase post-reset time to 300ms per datasheet - add tx-delay/rx-delay config Signed-off-by: Tim Harvey --- v2: rebase on imx/master ---

[PATCH] imx8m{m, n}_venice_defconfig: enable md5sum and crc32 commands

2022-04-13 Thread Tim Harvey
Enable the md5sum and crc32 commands. Signed-off-by: Tim Harvey --- configs/imx8mm_venice_defconfig | 4 +++- configs/imx8mn_venice_defconfig | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/configs/imx8mm_venice_defconfig b/configs/imx8mm_venice_defconfig index

Re: [PATCH v2 15/18] pci: Update dm_pci_bus_to_virt() parameters

2022-04-13 Thread Bin Meng
On Wed, Mar 30, 2022 at 12:59 AM Andrew Scull wrote: > > Add mask parameter and reorder length parameter to match the other PCI > address conversion functions. Using PCI_REGION_TYPE as the mask gives > the old behaviour. > > It's converted from a macro to an inline function as the length >

[PATCH v1 04/12] configs: stm32f769-disco: Rename stm32f769-disco_defconfig to stm32f769-disco_spl_defconfig

2022-04-13 Thread Patrice Chotard
The current stm32f769-disco_defconfig file supports SPL, rename it to stm32f769-disco_spl_defconfig to reflect the supported configuration. Signed-off-by: Patrice Chotard --- board/st/stm32f746-disco/MAINTAINERS | 1 + .../{stm32f769-disco_defconfig =>

[PATCH v1 03/12] configs: stm32f746-disco: Add stm32f746-disco_defconfig

2022-04-13 Thread Patrice Chotard
Add stm32f746-disco_defconfig for stm32f746 discovery board to build U-Boot proper. Signed-off-by: Patrice Chotard --- configs/stm32f746-disco_defconfig | 64 +++ 1 file changed, 64 insertions(+) create mode 100644 configs/stm32f746-disco_defconfig diff --git

[PATCH v1 01/12] configs: stm32f746-disco: Concatenate spl and u-boot binaries

2022-04-13 Thread Patrice Chotard
This allows to concatenate spl and u-boot binaries together. Previously, both binaries has to be flashed separately at the correct offset (spl at offset 0 and u-boot at offset 0x8000). With this patch, only one binary is generated (u-boot-with-spl.bin) and has to be copied in flash at offset 0

[PATCH v1 00/12] stm32: add new board support, defconfig and documentation

2022-04-13 Thread Patrice Chotard
Add new stm32746g-eval board support Add defconfig for SPL and none SPL mode for STM32F7 boards. Add documentation on how to build and flash STM32 MCUs. Patrice Chotard (12): configs: stm32f746-disco: Concatenate spl and u-boot binaries configs: stm32f746-disco: Rename

[PATCH v1 02/12] configs: stm32f746-disco: Rename stm32f746-disco_defconfig to stm32f746-disco_spl_defconfig

2022-04-13 Thread Patrice Chotard
The current stm32f746-disco_defconfig file supports SPL, rename it to stm32f746-disco_spl_defconfig to reflect the supported configuration. Signed-off-by: Patrice Chotard --- board/st/stm32f746-disco/MAINTAINERS | 1 + .../{stm32f746-disco_defconfig =>

  1   2   >