Re: imx6ull: NAND boot fails when block 0x00000000 is bad

2022-05-13 Thread Thierry Bultel
Hi Michael, I am using version 2022.04 |Colibri iMX6ULL # nand erase.chip NAND erase.chip: device 0 whole chip Skipping bad block at 0x Skipping bad block at 0x1ff8| Thierry Le 13/05/2022 à 20:00, Michael Nazzareno Trimarchi a écrit : Hi Thierry Il ven 13 mag 2022, 19:56 Fabio

Re: [PATCH v2] sunxi: psci: Fix sunxi_power_switch on sun8i-r40 platform

2022-05-13 Thread qianfan
在 2022/5/14 11:52, Chen-Yu Tsai 写道: Hi, On Sat, May 14, 2022 at 11:19 AM wrote: From: qianfan Zhao linux system will die if we offline one of the cpu on R40 based board: eg: echo 0 > /sys/devices/system/cpu/cpu3/online Fixed sunxi_power_switch based on allwinner lichee 3.10 kernel

Re: [PATCH v2] sunxi: psci: Fix sunxi_power_switch on sun8i-r40 platform

2022-05-13 Thread Chen-Yu Tsai
Hi, On Sat, May 14, 2022 at 11:19 AM wrote: > > From: qianfan Zhao > > linux system will die if we offline one of the cpu on R40 based board: > eg: echo 0 > /sys/devices/system/cpu/cpu3/online > > Fixed sunxi_power_switch based on allwinner lichee 3.10 kernel driver. > > Signed-off-by: qianfan

[PATCH v2] sunxi: psci: Fix sunxi_power_switch on sun8i-r40 platform

2022-05-13 Thread qianfanguijin
From: qianfan Zhao linux system will die if we offline one of the cpu on R40 based board: eg: echo 0 > /sys/devices/system/cpu/cpu3/online Fixed sunxi_power_switch based on allwinner lichee 3.10 kernel driver. Signed-off-by: qianfan Zhao --- v2 changes: Fix the commit message, the source code

Broken support for 4GB DDR on 32-bit platforms

2022-05-13 Thread Pali Rohár
Hello! I tried to enable support for 2GB+ of DDR memory (with 4GB DDR3) on powerpc P2020 board in 32-bit addressing mode and U-Boot crashed during startup. I figured out that issue is not powerpc specific, but rather generic to all 32-bit platforms. U-Boot stores memory size into phys_size_t type

[PATCH] mtd: mtdpart: Change size type from fdt_addr_t to fdt_size_t

2022-05-13 Thread Pali Rohár
Set correct type for 3rd argument of ofnode_get_addr_size_index_notrans() function. It expects fdt_size_t * and not fdt_addr_t *. When these two types do not have same size then U-Boot throw compile warning: drivers/mtd/mtdpart.c: In function ‘add_mtd_partitions_of’:

[PATCH 2/2] tpm: add support for TPMv2.x I2C chips

2022-05-13 Thread Eddie James
Add the tpm2_tis_i2c driver that should support any TPMv2 compliant I2C chips, such as the NPCT75X chip. Signed-off-by: Eddie James --- drivers/tpm/Kconfig| 9 ++ drivers/tpm/Makefile | 1 + drivers/tpm/tpm2_tis_i2c.c | 171 + 3 files

[PATCH 1/2] tpm: core: Set timeouts before requesting locality

2022-05-13 Thread Eddie James
Requesting the locality uses the timeout values, so they need to be set beforehand. Signed-off-by: Eddie James --- drivers/tpm/tpm2_tis_core.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/tpm/tpm2_tis_core.c b/drivers/tpm/tpm2_tis_core.c index

[PATCH 0/2] tpm: Add support for TPMv2.x I2C chips

2022-05-13 Thread Eddie James
Add a tpm driver that should support any TPMv2 compliant I2C chips, such as the NPCT75X chip. In my testing I also noticed that the timeouts weren't set before requesting the locality so I have included a fix. Eddie James (2): tpm: core: Set timeouts before requesting locality tpm: add

Re: imx6ull: NAND boot fails when block 0x00000000 is bad

2022-05-13 Thread Michael Nazzareno Trimarchi
Hi Thierry Il ven 13 mag 2022, 19:56 Fabio Estevam ha scritto: > [Adding some more folks] > > On Fri, May 13, 2022 at 2:41 PM Thierry Bultel > wrote: > > > > Hi, > > > > I have a imx6ull module from Toradex, with NAND flash. U-boot does not > > have SPL. > > I does not boot from NAND flash

Re: imx6ull: NAND boot fails when block 0x00000000 is bad

2022-05-13 Thread Fabio Estevam
[Adding some more folks] On Fri, May 13, 2022 at 2:41 PM Thierry Bultel wrote: > > Hi, > > I have a imx6ull module from Toradex, with NAND flash. U-boot does not > have SPL. > I does not boot from NAND flash anymore, I was able to flash it several > times with tezi, as well as with > nandbcb

imx6ull: NAND boot fails when block 0x00000000 is bad

2022-05-13 Thread Thierry Bultel
Hi, I have a imx6ull module from Toradex, with NAND flash. U-boot does not have SPL. I does not boot from NAND flash anymore, I was able to flash it several times with tezi, as well as with nandbcb (that I discovered more recently). There are error messages complaining about some bad blocks,

Re: [PATCH v2 1/6] arm_ffa: introduce Arm FF-A low-level driver

2022-05-13 Thread Jens Wiklander
On Fri, Apr 15, 2022 at 01:27:58PM +0100, abdellatif.elkhl...@arm.com wrote: > From: Abdellatif El Khlifi > > Add the driver implementing Arm Firmware Framework for Armv8-A v1.0 > > The Firmware Framework for Arm A-profile processors (FF-A) > describes interfaces (ABIs) that standardize

Re: [PATCH v2 1/6] arm_ffa: introduce Arm FF-A low-level driver

2022-05-13 Thread Ilias Apalodimas
Hi Abdellatif On Fri, Apr 15, 2022 at 01:27:58PM +0100, abdellatif.elkhl...@arm.com wrote: > From: Abdellatif El Khlifi > > Add the driver implementing Arm Firmware Framework for Armv8-A v1.0 > > The Firmware Framework for Arm A-profile processors (FF-A) > describes interfaces (ABIs) that

Re: [PATCH] RockPi4: Add UEFI capsule update support

2022-05-13 Thread Jerome Forissier
On 5/13/22 08:50, Sughosh Ganu wrote: > Add support for updating the idbloader and u-boot images through the > UEFI capsule update functionality. Enable the modules required for > supporting the functionality. > > The implementation is for the updatable images placed on a GPT > partitioned

[PATCH v2] arm: socfpga: soc64: To notify SDM when U-Boot pass control to Linux

2022-05-13 Thread dinesh . maniyam
From: Dinesh Maniyam Prior U-Boot pass control to Linux, U-Boot will send a mailbox command "HPS_STAGE_NOTIFY" to notify Secure Device Manager (SDM) on HPS SW transition. Signed-off-by: Dinesh Maniyam --- v1->v2 Add space in title --- arch/arm/mach-socfpga/misc_soc64.c | 5 + 1 file

[PATCH v2] ddr: altera: soc64: Integer fix overflow that caused DDR size mismatched

2022-05-13 Thread dinesh . maniyam
From: Dinesh Maniyam Convert the constant integer to 'phys_size_t' to avoid overflow when calculating the SDRAM size. Signed-off-by: Dinesh Maniyam --- v1->v2 - Add space in title --- drivers/ddr/altera/sdram_soc64.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

Re: [PATCH v1] sunxi: psci: Fix sunxi_power_switch on sun8i-r40 platform

2022-05-13 Thread Peter Robinson
On Fri, May 13, 2022 at 10:25 AM wrote: > > From: qianfan Zhao > > linux system will dead if we offline one of the cpu on R40 based board: Minor nit this should read "will die" not "will dead" > eg: echo 0 > /sys/devices/system/cpu/cpu3/online > > Fixed sunxi_power_switch based on allwinner

[PATCH v1] sunxi: psci: Fix sunxi_power_switch on sun8i-r40 platform

2022-05-13 Thread qianfanguijin
From: qianfan Zhao linux system will dead if we offline one of the cpu on R40 based board: eg: echo 0 > /sys/devices/system/cpu/cpu3/online Fixed sunxi_power_switch based on allwinner lichee 3.10 kernel driver. Signed-off-by: qianfan Zhao --- arch/arm/cpu/armv7/sunxi/psci.c | 24

[PATCH 1/1] config: ls2088ardb: Add config CONFIG_SYS_FLASH_CFI_WIDTH

2022-05-13 Thread Priyanka Singh
Add config CONFIG_SYS_FLASH_CFI_WIDTH as FLASH_CFI_16BIT to fix flash writing issue on ls2088ardb platform introduced by the commit '53879b1738' (cfi_flash: Fix detection of 8-bit bus flash devices via address shift) Signed-off-by: Priyanka Singh --- include/configs/ls2080ardb.h | 4 +++- 1

[PATCH] RockPi4: Add UEFI capsule update support

2022-05-13 Thread Sughosh Ganu
Add support for updating the idbloader and u-boot images through the UEFI capsule update functionality. Enable the modules required for supporting the functionality. The implementation is for the updatable images placed on a GPT partitioned storage device. With the GPT partition devices, the

[PATCH 12/14] power: regulator: scmi: support SCMI multi-channel

2022-05-13 Thread Etienne Carriere
Update SCMI regulator controller driver to get its assigned SCMI channel during initialization. This change allows SCMI voltage domain protocol to use a dedicated channel when defined in the DT. The reference is saved in SCMI regulator controller driver private data. Cc: Jaehoon Chung

[PATCH 14/14] firmware: scmi: use multi channel in mailbox, optee and smccc agents

2022-05-13 Thread Etienne Carriere
Updates .process_msg operators of the SCMI transport drivers that supports multi-channel to use it now that drivers do provide the reference through channel argument. These are the mailbox agent, the optee agent and the smccc agent. Signed-off-by: Etienne Carriere ---

[PATCH 13/14] power: regulator: scmi: simplify scmi_voltd_set_enable()

2022-05-13 Thread Etienne Carriere
Simplify scmi_voltd_set_enable() exit sequence. Cc: Jaehoon Chung Signed-off-by: Etienne Carriere --- drivers/power/regulator/scmi_regulator.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/power/regulator/scmi_regulator.c

[PATCH 11/14] reset: scmi: support SCMI multi-channel

2022-05-13 Thread Etienne Carriere
Update SCMI reset controller driver to get its assigned SCMI channel during initialization. This change allows SCMI reset domain protocol to use a dedicated channel when defined in the DT. The reference is saved in SCMI reset controller driver private data. Signed-off-by: Etienne Carriere ---

[PATCH 10/14] clk: scmi: support SCMI multi-channel

2022-05-13 Thread Etienne Carriere
Update SCMI clock driver to get its assigned SCMI channel during initialization. This change allows SCMI clock protocol to use a dedicated channel when defined in the DT. The reference is saved in SCMI clock driver private data. Cc: Lukasz Majewski Cc: Sean Anderson Signed-off-by: Etienne

[PATCH 08/14] firmware: scmi: smccc transport: implement multi-channel

2022-05-13 Thread Etienne Carriere
Updates SCMI SMCCC transport driver to get SCMI channel reference at initialization and use when posting SCMI messages. Signed-off-by: Etienne Carriere --- drivers/firmware/scmi/smccc_agent.c | 54 +++-- 1 file changed, 52 insertions(+), 2 deletions(-) diff --git

[PATCH 09/14] firmware: scmi: optee transport: implement multi-channel

2022-05-13 Thread Etienne Carriere
Implements multi SCMI channel support in OP-TEE SCMI transport. An SCMI protocol may use a dedicated channel, specified by the DT. Signed-off-by: Etienne Carriere --- drivers/firmware/scmi/optee_agent.c | 76 - 1 file changed, 63 insertions(+), 13 deletions(-) diff

[PATCH 06/14] firmware: scmi: add multi-channel support

2022-05-13 Thread Etienne Carriere
Adds resources for SCMI protocols to possibly use a dedicated SCMI channel instead of the default channel allocated by the SCMI agent during initialization. As per DT binding documentation, some SCMI transports can define a specific SCMI communication channel for given SCMI protocols. It allows

[PATCH 07/14] firmware: scmi: mailbox transport: implement multi-channel

2022-05-13 Thread Etienne Carriere
Updates SCMI mailbox transport driver to get SCMI channel reference at initialization and use when posting SCMI messages. Signed-off-by: Etienne Carriere --- drivers/firmware/scmi/mailbox_agent.c | 63 --- 1 file changed, 57 insertions(+), 6 deletions(-) diff --git

[PATCH 04/14] firmware: scmi: prepare uclass to pass channel reference

2022-05-13 Thread Etienne Carriere
Changes SCMI transport operator ::process_msg to pass the SCMI channel reference provided by caller SCMI protocol device. Signed-off-by: Etienne Carriere --- drivers/firmware/scmi/mailbox_agent.c | 4 +++- drivers/firmware/scmi/optee_agent.c| 4 +++-

[PATCH 05/14] firmware: scmi: factorize scmi transport look up

2022-05-13 Thread Etienne Carriere
Defines local helper function find_scmi_transport_device() with the instructions to find the SCMI transport device from a SCMI protocol device. Cc: Patrick Delaunay Signed-off-by: Etienne Carriere --- drivers/firmware/scmi/scmi_agent-uclass.c | 26 +++ 1 file changed, 17

[PATCH 03/14] firmware: scmi: prepare scmi uclass API to multi-channel

2022-05-13 Thread Etienne Carriere
Changes SCMI driver API function devm_scmi_process_msg() to add an SCMI channel reference argument for when SCMI agent supports SCMI protocol specific channels. First argument of devm_scmi_process_msg() is also change to point to the caller SCMI protocol device rather than its parent device (the

[PATCH 01/14] firmware: scmi: optee: use TEE shared memory for SCMI messages

2022-05-13 Thread Etienne Carriere
Changes implementation when using TEE dynamically allocated shared memory to synchronize with the Linux implementation where the legacy SMT protocol cannot be used with such memory since it is expected from device mapped memory whereas OP-TEE shared memory is cached and hence should not be

[PATCH 02/14] firmware: scmi: optee: fix inline description of PTA_SCMI_CMD_GET_CHANNEL

2022-05-13 Thread Etienne Carriere
Removes inaccurate inline description of OP-TEE SCMI PTA command PTA_SCMI_CMD_GET_CHANNEL. Signed-off-by: Etienne Carriere --- drivers/firmware/scmi/optee_agent.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/firmware/scmi/optee_agent.c b/drivers/firmware/scmi/optee_agent.c

[PATCH 00/14] SCMI multi-channel and optee shm

2022-05-13 Thread Etienne Carriere
Dear all, This series implements 2 features in driver/firmware/scmi. First, a single change adds support for SCMI OP-TEE transport to use OP-TEE native shared memory. See the 1st patch in this series: "firmware: scmi: optee: use TEE shared memory for SCMI messages". Then come changes for