Re: [PATCH v2 2/2] net: eth-uclass: Fix data abort when tftp get nonexistent file via usb

2022-04-13 Thread Ramon Fried
On Sat, Apr 2, 2022 at 5:58 AM wrote: > > From: qianfan Zhao > > tftp_handler do eth_halt when TFTP_ERROR, but eth_halt will remove eth > device if it is an usb network. usbeth's private data will be unaccessable > when usb_eth_free_pkt, touch it will trigger data abort. > > Next is the console

[PATCH] stm32mp: psci: Retain PLL3CR, PLL4CR, RCC_MSSCKSELR across suspend

2022-04-13 Thread Marek Vasut
The SoC seems to lose the values of PLL3CR, PLL4CR, RCC_MSSCKSELR during suspend/resume cycle, cache them and reinstate their values on resume. Signed-off-by: Marek Vasut Cc: Patrick Delaunay Cc: Patrice Chotard --- arch/arm/mach-stm32mp/psci.c | 13 + 1 file changed, 13

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

2022-04-13 Thread Bin Meng
On Thu, Apr 14, 2022 at 12:30 AM Andrew Scull wrote: > > > > diff --git a/drivers/pci/Kconfig b/drivers/pci/Kconfig > > > index 47cd074aa1..fd2203420c 100644 > > > --- a/drivers/pci/Kconfig > > > +++ b/drivers/pci/Kconfig > > > @@ -67,6 +67,13 @@ config PCI_SRIOV > > > if available on a

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

2022-04-13 Thread Marek Vasut
On 4/13/22 22:21, Stefano Babic wrote: Hi Tom, Hi, [...] So, I've applied this to master and pushed, and thanks for clearing out much of the backlog.  Is there still things left that aren't recently newly posted? There are still 3 big series that should flow in: - Marek's series about

Re: Please pull u-boot-net/next

2022-04-13 Thread Tom Rini
On Wed, Apr 13, 2022 at 06:10:40PM +0300, Ramon Fried wrote: > 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

[PATCH] pci: imx: remove weak overrides no longer used

2022-04-13 Thread Tim Harvey
There are no users of the imx6_pcie_toggle_power and imx6_pcie_toggle_reset weak overrides and as these functions are able to be handled now via dt properties lets remove these. Cc: Marek Vasut Signed-off-by: Tim Harvey --- arch/arm/include/asm/arch-mx6/sys_proto.h | 3 ---

[PATCH] pci: imx: use vpcie-supply if defined by device-tree

2022-04-13 Thread Tim Harvey
If vpcie-supply is defined by device-tree use that if CONFIG_PCIE_IMX_POWER_GPIO is not defined. Note that after this the following boards which define CONFIG_PCIE_IMX_POWER_GPIO in their board header file as well as their device-tree should be able to remove CONFIG_PCIE_IMX_PERST_GPIO without

Re: [PATCH u-boot-net v4 03/14] net: introduce helpers to get PHY ofnode from MAC

2022-04-13 Thread Tom Rini
On Thu, Apr 07, 2022 at 12:32:57AM +0200, Marek Behún wrote: > From: Marek Behún > > Add helpers ofnode_get_phy_node() and dev_get_phy_node() and use it in > net/mdio-uclass.c function dm_eth_connect_phy_handle(). Also add > corresponding UT test. > > This is useful because other part's of

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

2022-04-13 Thread Stefano Babic
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: https://gitlab.denx.de/u-boot/custodians/u-boot-imx.git tags/u-boot-imx-20220413

[UNTESTED PATCH] Nokia RX-51: Convert to CONFIG_DM_SERIAL

2022-04-13 Thread Pali Rohár
For CONFIG_DM_SERIAL it is required to increase CONFIG_SYS_MALLOC_F_LEN as default value is not enough for memory hungry CONFIG_DM_SERIAL code. Signed-off-by: Pali Rohár --- Who has serial console on the real device, please test this patch if serial console is still working. I do not have

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

2022-04-13 Thread Tim Harvey
On Wed, Apr 13, 2022 at 1:21 AM Stefano Babic wrote: > > 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

[PATCH v2 2/2] board: gateworks: venice: add imx8mp-venice-gw740x support

2022-04-13 Thread Tim Harvey
The GW74xx is based on the i.MX 8M Plus SoC featuring: - LPDDR4 DRAM - eMMC FLASH - Gateworks System Controller - PCIe Gen 3.0 switch (build option) - USB 3.0 HUB - USB Type-C front panel connector - GPS - 3-axis accelerometer - CAN bus - 6x GbE RJ45 front-panel jacks - 1x IMX8M FEC

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

2022-04-13 Thread Tim Harvey
Gateworks produces many products from a single PCB with subloaded components. Add an additional two levels of dtb name matching so that for example a GW7400-A matches the dtb name of gw74xx.dtb Signed-off-by: Tim Harvey --- v2: - rebase on imx/master --- board/gateworks/venice/eeprom.c | 8

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

2022-04-13 Thread Sudeep Holla
On Wed, Apr 13, 2022 at 12:46:07PM -0400, Tom Rini wrote: > On Wed, Apr 13, 2022 at 03:20:23PM +0100, Abdellatif El Khlifi wrote: [...] > > Since we can not add an FFA node in the device tree, we will make FFA a > > discoverable bus. > > So, we will manually create the udevice, binding it to

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

2022-04-13 Thread Michael Nazzareno Trimarchi
Hi On Wed, Apr 13, 2022 at 6:09 PM Tim Harvey wrote: > > On Wed, Apr 13, 2022 at 8:56 AM Michael Nazzareno Trimarchi > wrote: > > > > Hi Tim > > > > On Wed, Apr 13, 2022 at 5:47 PM Tim Harvey wrote: > > > > > > Enable DM_SERIAL. > > > > > > Signed-off-by: Tim Harvey > > > --- > > > v2: rebase

[PATCH 0/4] mmc: add support for bcm63158

2022-04-13 Thread Philippe Reynes
This serie adds the support of mmc for bcm63158. The first commit adds a driver that support sdhci on bcm63158. The two next commits add support of mmc in the device tree, and the last one enables the support of mmc and gpt for the reference board bcm963158. Philippe Reynes (4): drivers: mmc:

[PATCH 1/4] drivers: mmc: bcm63158_sdhci: initial support

2022-04-13 Thread Philippe Reynes
Adds a driver to support shdci on bcm63158. Signed-off-by: Philippe Reynes --- drivers/mmc/Kconfig | 12 +++ drivers/mmc/Makefile | 1 + drivers/mmc/bcm63158_sdhci.c | 153 +++ 3 files changed, 166 insertions(+) create mode 100644

[PATCH 2/4] arch: arm: dts: bcm63158.dtsi: add mmc support

2022-04-13 Thread Philippe Reynes
Adds the support of sdhci on bcm63158. Signed-off-by: Philippe Reynes --- arch/arm/dts/bcm63158.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/dts/bcm63158.dtsi b/arch/arm/dts/bcm63158.dtsi index 7dd2858438..4e0f5f2dbd 100644 --- a/arch/arm/dts/bcm63158.dtsi +++

[PATCH 4/4] configs: bcm963158_ram_defconfig: enable mmc and gpt support

2022-04-13 Thread Philippe Reynes
Enable the support of emmc and gpt on bcm63158 Signed-off-by: Philippe Reynes --- configs/bcm963158_ram_defconfig | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/configs/bcm963158_ram_defconfig b/configs/bcm963158_ram_defconfig index 642faf511f..5fc89fc99d 100644 ---

[PATCH 3/4] arch: arm: dts: bcm963158.dts: enable sdhci support

2022-04-13 Thread Philippe Reynes
Enable the support of sdhci on bcm63158. Signed-off-by: Philippe Reynes --- arch/arm/dts/bcm963158.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/bcm963158.dts b/arch/arm/dts/bcm963158.dts index c2bdd33274..c96fa60841 100644 --- a/arch/arm/dts/bcm963158.dts +++

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

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 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: 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: > > >

[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 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: &

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, > >

[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

[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 ---

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

2022-04-13 Thread Tim Harvey
On Wed, Apr 13, 2022 at 8:56 AM Michael Nazzareno Trimarchi wrote: > > 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 ++ > >

[PATCH v2] imx8m{m,n}_venice_defconfig: add DT overlay support

2022-04-13 Thread Tim Harvey
enable CONFIG_OF_LIBFDT_OVERLAY to support applying dt overlays in U-Boot. Signed-off-by: Tim Harvey --- v2: rebase on imx/master --- configs/imx8mm_venice_defconfig | 1 + configs/imx8mn_venice_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/imx8mm_venice_defconfig

[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] board: gateworks: venice: use common GSC driver

2022-04-13 Thread Tim Harvey
Use the common GSC driver. This allows us to do some additional cleanup: - rename gsc{.c,.h} to eeprom{.c.h} for clarity - collapse eeprom_get_dev - remove unnecessary header files and alphabatize includes Signed-off-by: Tim Harvey --- v2: rebase on imx/master ---

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] 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

[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] imx8m{m,n}_venice: update env memory layout

2022-04-13 Thread Tim Harvey
Update distro config env memory layout: - loadaddr=0x4820 allows for 130MB area for uncompressing (ie FIT images, kernel_comp_addr_r) - fdt_addr_r = loadaddr + 128MB - allows for 128MB kernel - scriptaddr = fdt_addr_r + 512KB - allows for 512KB fdt - ramdisk_addr_r = scriptaddr + 512KB

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

Re: [PATCH v2 18/18] virtio: pci: Make use of dm_pci_map_bar()

2022-04-13 Thread Bin Meng
On Wed, Mar 30, 2022 at 12:59 AM Andrew Scull wrote: > > The virtio PCI capabilities describe regions of memory that should be > mapped. Map those with dm_pci_map_bar() which will ensure they are valid > PCI regions. > > Signed-off-by: Andrew Scull > --- > drivers/virtio/virtio_pci_modern.c |

Re: [PATCH v2 17/18] virtio: pci: Check virtio configs are mapped

2022-04-13 Thread Bin Meng
On Wed, Mar 30, 2022 at 12:59 AM Andrew Scull wrote: > > Prepare for calls to `virtio_pci_map_capability()` failing by returning > NULL on error. If this happens, later accesses to the pointers would be > unsafe so cause the probe to fail if such an error occurs. > > Signed-off-by: Andrew Scull

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

[PATCH v1 12/12] doc: Add documentation for STM32 MCUs

2022-04-13 Thread Patrice Chotard
Add documentation for STM32 MCUs (F4, F7 and H7 series). Signed-off-by: Patrice Chotard --- board/st/stm32f429-discovery/MAINTAINERS | 1 + board/st/stm32f429-evaluation/MAINTAINERS | 1 + board/st/stm32f469-discovery/MAINTAINERS | 1 + board/st/stm32f746-disco/MAINTAINERS | 1

[PATCH v1 11/12] configs: stm32746g-eval: Add stm32746g-eval_spl_defconfig

2022-04-13 Thread Patrice Chotard
Add stm32746g-eval_spl_defconfig for stm32746g evaluation board to build SPL. Signed-off-by: Patrice Chotard --- board/st/stm32f746-disco/MAINTAINERS | 1 + configs/stm32746g-eval_spl_defconfig | 86 2 files changed, 87 insertions(+) create mode 100644

[PATCH v1 10/12] configs: stm32746g-eval: Add stm32746g-eval_defconfig

2022-04-13 Thread Patrice Chotard
Add stm32746g-eval_defconfig for stm32746g evaluation board to build U-Boot proper. Full board description can be found here : https://www.st.com/en/evaluation-tools/stm32746g-eval.html Signed-off-by: Patrice Chotard --- board/st/stm32f746-disco/MAINTAINERS | 1 +

[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 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

[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 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 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 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 =>

[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 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

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 >

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

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] 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

[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

[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 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 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 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 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 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 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

[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(-)

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] 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

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 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 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 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 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,

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

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.

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.

[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 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] 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:

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

[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 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

[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 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 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.

[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 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 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

[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 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 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 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] 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 -- =

  1   2   >