[PATCH 6/6] arm: a37xx: pci: Increase PCIe MEM size from 16 MiB to 128 MiB - 64 KiB

2021-05-16 Thread Pali Rohár
For some configurations with more PCIe cards and PCIe bridges 16 MiB of PCIe MEM space is not enough. Since TF-A already allocates a 128 MiB CPU window for PCIe and IO port space is only 64 KiB in total, use all the remaining space for PCIe MEM. Signed-off-by: Pali Rohár Reviewed-by: Marek Behún

[PATCH 3/6] arm: a37xx: pci: Fix DT compatible string to Linux' DT compatible

2021-05-16 Thread Pali Rohár
Change DT compatible string for A3700 PCIe from 'marvell,armada-37xx-pcie' to 'marvell,armada-3700-pcie' to make U-Boot A3700 PCIe DT node compatible with Linux' DT node. Signed-off-by: Pali Rohár Reviewed-by: Marek Behún --- arch/arm/dts/armada-37xx.dtsi | 2 +- drivers/pci/pci-aardvark.c|

[PATCH 5/6] arm: a37xx: pci: Fix a3700_fdt_fix_pcie_regions() function

2021-05-16 Thread Pali Rohár
Current version of this function uses a lot of incorrect assumptions about the `ranges` DT property: * parent(#address-cells) == 2 * #size-cells == 2 * number of entries == 2 * address size of first entry == 0x100 * second child address entry == base + 0x100 Trying to increase PCIe M

[PATCH 4/6] arm: a37xx: pci: Find PCIe controller node by compatible instead of path

2021-05-16 Thread Pali Rohár
Find PCIe DT node by compatible string instead of retrieving it by using hardcoded DT path. Signed-off-by: Pali Rohár Reviewed-by: Marek Behún --- arch/arm/mach-mvebu/armada3700/cpu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/arm/mach-mvebu/armada3700/cpu.c b/

[PATCH 1/6] arm: a37xx: pci: Don't put link into LTSSM Recovery state during probe

2021-05-16 Thread Pali Rohár
During our debugging of the Aardvark driver in Linux we have discovered that the PCIE_CORE_LINK_CTRL_STAT_REG register in fact controls standard PCIe Link Control Register for PCIe Root Bridge. This led us to discover that the name of the PCIE_CORE_LINK_TRAINING macro and the corresponding comment

[PATCH 2/6] arm: a37xx: pci: Disable bus mastering when unloading driver

2021-05-16 Thread Pali Rohár
Disable Root Bridge I/O space, memory space and bus mastering in Aardvark's remove method, which is called before booting Linux kernel. This ensures that PCIe device which was initialized and used by U-Boot cannot do new DMA transfers until Linux initializes PCI subsystem and loads appropriate dri

Re: [PATCH 1/1] xilinx: disable Unicode capitalization

2021-05-16 Thread Michal Simek
On 5/16/21 11:17 AM, Heinrich Schuchardt wrote: > Save some KiB when building xilinx_versal_virt_defconfig by disabling > Unicode capitalization support. This avoids build failures when adding new > features for the UEFI sub-system. > > Signed-off-by: Heinrich Schuchardt > --- > It would be p

Re: [PATCH v2 4/4] test: Don't unmount not (yet) mounted system

2021-05-16 Thread Andy Shevchenko
On Thu, May 13, 2021 at 2:32 PM Heinrich Schuchardt wrote: > On 2/11/21 3:40 PM, Andy Shevchenko wrote: > > When test suite tries to create a file for a new filesystem test case and > > fails, > > the clean up of the exception tries to unmount the image, that has not yet > > been > > mounted. Wh

Re: [PATCH 1/1] test: revert Don't unmount not (yet) mounted system

2021-05-16 Thread Andy Shevchenko
On Thu, May 13, 2021 at 2:41 PM Heinrich Schuchardt wrote: > > Since commit 1ba21bb06b08 ("test: Don't unmount not (yet) mounted system") > the following tests are skipped: > > test/py/tests/test_fs/test_basic.py > test/py/tests/test_fs/test_ext.py > > SKIPPED [13] test/py/tests/test_fs/conftest.p

[PATCH 1/1] fs/squashfs: zero out unused fields in fs_dirent

2021-05-16 Thread Heinrich Schuchardt
When reading directories the UEFI sub-system must supply file attributes and timestamps. These fields will have to be added to struct fs_dirent. SquashFS should not fill these fields with random data. Ensure that they are zeroed out. Signed-off-by: Heinrich Schuchardt --- fs/squashfs/sqfs.c | 2

Re: [PATCH] tee: optee: sync cache on pre-reloc OP-TEE invocation

2021-05-16 Thread Jens Wiklander
On Wed, May 12, 2021 at 5:08 PM Etienne Carriere wrote: > > This change ensures both U-Boot and OP-TEE see the same content > from shared memory when OP-TEE is invoked prior U-Boot relocation. > > This change is required since U-Boot may execute with data cahce off > while OP-TEE always enables ca

Re: [PATCH 2/2] tee: optee: support session login as REE kernel

2021-05-16 Thread Jens Wiklander
On Wed, May 12, 2021 at 5:06 PM Etienne Carriere wrote: > > OP-TEE supports an API extension to allow client to open a TEE session > as REE kernel which OP-TEE uses to differentiate client application > services from system services that only the REE OS kernel can access. > > This change allows U-

Re: [PATCH 1/2] tee: define session login identifiers

2021-05-16 Thread Jens Wiklander
On Wed, May 12, 2021 at 5:06 PM Etienne Carriere wrote: > > TEE header file defines a clnt_login field in struct tee_open_session_arg > but does not define the values expected. This change define identifiers > for the field using a enumerated type. Back end TEE driver is expected to > convert thes

Please pull u-boot-marvell/master v2

2021-05-16 Thread Stefan Roese
please pull the next batch of Marvell Armada related patches. Here the summary log: - Add base support for Marvell OcteonTX2 CN9130 DB (mostly done by Kostya) - Sync Armada 8k MMU setup with Marvell version (misc Marvell authors

Re: FW: [PATCH v4 00/13] riscv: Switch to use binman to generate u-boot.itb

2021-05-16 Thread Bin Meng
Hi Rick, On Wed, May 12, 2021 at 11:25 AM Rick Chen wrote: > > HI Bin, > > > > > > Hi Rick, > > > > > > On Tue, May 11, 2021 at 8:49 AM Rick Chen wrote: > > > > > > > > Hi Bin, > > > > > > > > > Hi Rick, > > > > > > > > > > On Mon, May 10, 2021 at 3:22 PM Rick Chen > > > > > wrote: > > > > > >

Re: [PATCH 1/2] riscv: Fix memmove and optimise memcpy when misalign

2021-05-16 Thread Bin Meng
On Thu, May 13, 2021 at 4:46 PM Bin Meng wrote: > > At present U-Boot SPL fails to boot on SiFive Unleashed board, due > to a load address misaligned exception happens when loading the FIT > image in spl_load_simple_fit(). The exception happens in memmove() > which is called by fdt_splice_(). > >

Re: [PATCH v2 1/2] of: addr: Translate 'dma-ranges' for parent nodes missing 'dma-ranges'

2021-05-16 Thread Bin Meng
Hi Simon, On Fri, Apr 30, 2021 at 9:17 PM Bin Meng wrote: > > 'dma-ranges' frequently exists without parent nodes having 'dma-ranges'. > While this is an error for 'ranges', this is fine because DMA capable > devices always have a translatable DMA address. Also, with no > 'dma-ranges' at all, the

Re: [PATCH v2 27/28] fs/squashfs: sqfs_read: fragmented files are not supported

2021-05-16 Thread João Marcos Costa
Hello, Em ter., 11 de mai. de 2021 às 10:04, Richard Genoud < richard.gen...@posteo.net> escreveu: > Hi all, > > Le 08/05/2021 à 23:51, Simon Glass a écrit : > > Hi, > > > > On Thu, 4 Feb 2021 at 15:32, João Marcos Costa > wrote: > >> > >> Em qua., 27 de jan. de 2021 às 12:15, Simon Glass > esc

Re: [PATCH 03/26] imx8mm_evk: Switch to new imx8mm evk board

2021-05-16 Thread Peng Fan (OSS)
On 2021/5/13 5:47, ZHIZHIKIN Andrey wrote: Hello Peng, -Original Message- From: U-Boot On Behalf Of Peng Fan (OSS) Sent: Friday, March 19, 2021 8:57 AM To: sba...@denx.de; feste...@gmail.com Cc: u-boot@lists.denx.de; uboot-...@nxp.com; Ye Li Subject: [PATCH 03/26] imx8mm_evk: Switc

[PATCH 2/3] ARM: dts: imxrt1020-evk: move all u-boot, dm-spl to imxrt1020-evk-u-boot.dtsi file

2021-05-16 Thread Giulio Benetti
At the moment a lot of u-boot,dm-spl properties are present in board .dts file but this is not correct since u-boot,dm-spl property is u-boot specific and must be listed into the separate imrt1020-evk-u-boot.dtsi file. So let's move every u-boot,dm-spl property present in imxrt1020-evk.dts to imxrt

[PATCH 3/3] ARM: dts: imxrt1020: add gpio5 node to this SoC

2021-05-16 Thread Giulio Benetti
i.MXRT1020 supports gpio5, so let's add a node for it. Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1020.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/dts/imxrt1020.dtsi b/arch/arm/dts/imxrt1020.dtsi index 884d57f614..5ba314f995 100644 --- a/arch/arm/dts/i

[PATCH 1/3] ARM: dts: imxrt1050-evk: move all u-boot, dm-spl to imxrt1050-evk-u-boot.dtsi file

2021-05-16 Thread Giulio Benetti
At the moment a lot of u-boot,dm-spl properties are present in board .dts file but this is not correct since u-boot,dm-spl property is u-boot specific and must be listed into the separate imrt1050-evk-u-boot.dtsi file. So let's move every u-boot,dm-spl property present in imxrt1050-evk.dts to imxrt

Re: [PATCH] sandbox: cros-ec: Add tests for the cros-ec-pwm driver

2021-05-16 Thread Heinrich Schuchardt
Am 16. Mai 2021 17:41:44 MESZ schrieb Alper Nebi Yasak : >This patch lets sandbox-cros-ec emulate a limited pwm device which has >multiple channels but can only set a duty cycle for each, as the actual >EC doesn't expose any functionality or information other than that. >Mapping non-generic EC_PWM

[PULL] u-boot-usb/master

2021-05-16 Thread Marek Vasut
The following changes since commit e644dfbb1786a4a3308b068e1f61cd9e2dfac237: configs: Resync with savedefconfig (2021-05-15 08:10:13 -0400) are available in the Git repository at: git://source.denx.de/u-boot-usb.git master for you to fetch changes up to a5f9be1ed5a5e3a89478edd2f544e667046c

Re: [PATCH] env: Leave invalid env for nowhere location

2021-05-16 Thread Marek Vasut
On 5/12/21 4:09 PM, Kunihiko Hayashi wrote: When CONFIG_ENV_IS_NOWHERE is enabled, env_nowhere_init() sets ENV_INVALID to gd->env_valid, and sets default_environment before relocation to gd->env_addr. After that, env_init() switches gd->env_valid to ENV_VALID by the previous fix. If gd->env_vali

[PATCH] sandbox: cros-ec: Add tests for the cros-ec-pwm driver

2021-05-16 Thread Alper Nebi Yasak
This patch lets sandbox-cros-ec emulate a limited pwm device which has multiple channels but can only set a duty cycle for each, as the actual EC doesn't expose any functionality or information other than that. Mapping non-generic EC_PWM_TYPE_* values to these emulated pwm channels is not implement

RE: [PATCH 03/26] imx8mm_evk: Switch to new imx8mm evk board

2021-05-16 Thread ZHIZHIKIN Andrey
Hello Ricardo, > -Original Message- > From: Ricardo Salveti > Sent: Friday, May 14, 2021 5:29 PM > To: Fabio Estevam > Cc: ZHIZHIKIN Andrey ; Peng Fan > (OSS) ; sba...@denx.de; u-boot@lists.denx.de; uboot- > i...@nxp.com; Ye Li ; vanessa.maeg...@foundries.io; > igor.opan...@foundries.io

RE: [PATCH 03/26] imx8mm_evk: Switch to new imx8mm evk board

2021-05-16 Thread ZHIZHIKIN Andrey
Hello Fabio, > -Original Message- > From: Fabio Estevam > Sent: Friday, May 14, 2021 2:31 PM > To: ZHIZHIKIN Andrey > Cc: Peng Fan (OSS) ; sba...@denx.de; u- > b...@lists.denx.de; uboot-...@nxp.com; Ye Li > Subject: Re: [PATCH 03/26] imx8mm_evk: Switch to new imx8mm evk board > > > Hi

[PATCH 1/1] xilinx: disable Unicode capitalization

2021-05-16 Thread Heinrich Schuchardt
Save some KiB when building xilinx_versal_virt_defconfig by disabling Unicode capitalization support. This avoids build failures when adding new features for the UEFI sub-system. Signed-off-by: Heinrich Schuchardt --- It would be preferable to have a size check for the u-boot binary. This would