Re: [PATCH 09/16] board: traverse: ten64: init nvme devices in late boot to ensure bootflow availability

2023-07-21 Thread Peng Fan
On 7/21/2023 12:39 PM, Mathew McBride wrote: Ensure nvme devices are scanned before reaching the shell, otherwise extra user intervention ("nvme scan") is required before they are visible to bootdev/bootflow. Signed-off-by: Mathew McBride Reviewed-by: Peng Fan

Re: [PATCH 08/16] configs: ten64: enable NVME_PCI

2023-07-21 Thread Peng Fan
On 7/21/2023 12:39 PM, Mathew McBride wrote: This restores NVMe functionality after PCI(e) NVMe support was split out from the NVMe driver. Signed-off-by: Mathew McBride Reviewed-by: Peng Fan

Re: [PATCH 07/16] board: ten64: add a bootmenu entries for NAND-based entries

2023-07-21 Thread Peng Fan
On 7/21/2023 12:39 PM, Mathew McBride wrote: The recovery-firmware and OpenWrt-NAND do not yet have bootflow /bootstd entrypoints, so add bootmenu entries to make them accessible. Signed-off-by: Mathew McBride Reviewed-by: Peng Fan

Re: [PATCH 06/16] board: traverse: ten64: add NAND based OpenWrt bootcmd

2023-07-21 Thread Peng Fan
On 7/21/2023 12:39 PM, Mathew McBride wrote: The default Ten64 MTD configuration reserves two ubifs partitions for OpenWrt residing on NAND flash. Add the bootcmd for this system into the default environment. Signed-off-by: Mathew McBride Reviewed-by: Peng Fan

Re: [PATCH 05/16] board: traverse: ten64: specify bootargs for recovery environment

2023-07-21 Thread Peng Fan
. Ensure the bootargs are set correctly prior to booting recovery. Signed-off-by: Mathew McBride Reviewed-by: Peng Fan

Re: [PATCH 04/16] board: traverse: ten64: update DPAA2 (network) binary path on sdcards

2023-07-21 Thread Peng Fan
n installs a standard Linux distribution over the top of that sdcard, (in theory) it will be left alone by distribution boot tooling. Signed-off-by: Mathew McBride Reviewed-by: Peng Fan

Re: [PATCH 03/16] board: traverse: ten64: fix DPAA2 (network) DPL corruption issue

2023-07-21 Thread Peng Fan
Signed-off-by: Mathew McBride Reviewed-by: Peng Fan

Re: [PATCH 02/16] board: traverse: ten64: ensure retimer reset is done on new board revisions

2023-07-21 Thread Peng Fan
On 7/21/2023 12:39 PM, Mathew McBride wrote: Board revision C (production) and later require the SFP+ retimer to be turned on (or reset) on boot, by way of issuing a command to the board's microcontroller (via I2C). The comparison statement here was incorrect, as the board ID decrements

Re: [GIT PULL] Please pull fsl-qoirq-2023-7-6 for next

2023-07-13 Thread Peng Fan
Hi Tom, Hi Tom, Please pull fsl-qoriq-2023-7-6 for next - Enable DM Serial for ls1043ardb and ls1046ardb/afrwy Fixed secure boot on LS-CH2 platforms -

[GIT PULL] Please pull fsl-qoirq-2023-7-6 for next

2023-07-09 Thread Peng Fan
Hi Tom, Please pull fsl-qoriq-2023-7-6 for next - Enable DM Serial for ls1043ardb and ls1046ardb/afrwy Fixed secure boot on LS-CH2 platforms -

Re: [PATCH] ARM: dts: imx: Fix eMMC boot on Data Modul i.MX8M Plus eDM SBC

2023-07-06 Thread Peng Fan
spl_mmc_get_uboot_raw_sector() . Signed-off-by: Marek Vasut Reviewed-by: Peng Fan --- Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic --- board/data_modul/imx8mp_edm_sbc/spl.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/board/data_modul/imx8mp_edm_sbc/spl.c b

Re: [PATCH] ARM: imx: romapi: Fix signed integer bitwise ops misuse

2023-06-30 Thread Peng Fan
On 6/25/2023 6:34 PM, Marek Vasut wrote: Bitwise operations on signed integers are not defined, replace then with per-call checks. Typo: then->them Signed-off-by: Marek Vasut Reviewed-by: Peng Fan

Re: [PATCH] arm: imx: imx8m: add optee configuration to ft_system_setup

2023-06-26 Thread Peng Fan
On 6/27/2023 2:25 AM, Tim Harvey wrote: If optee is detected configure it in the Linux device-tree: - add /firmware/optee node - add /reserved-memory nodes for optee_core and optee_shm Signed-off-by: Tim Harvey Reviewed-by: Peng Fan

Re: [PATCH] ARM: imx: romapi: Fix signed integer bitwise ops misuse

2023-06-25 Thread Peng Fan
On 6/25/2023 6:34 PM, Marek Vasut wrote: Bitwise operations on signed integers are not defined, replace then with per-call checks. You mean C99 standard? Thanks, Peng. Signed-off-by: Marek Vasut --- Cc: "NXP i.MX U-Boot Team" Cc: Fabio Estevam Cc: Heiko Schocher Cc: Heinrich

Re: [PATCH v2 0/7] Enable DM_SERIAL for the LS104xA RDB/FRWY boards

2023-06-25 Thread Peng Fan
the drivers are initialized before relocation. New board specific *-u-boot.dtsi files are created to store these properties. We do this in order to keep serial node descriptions in sync with Linux. Lastly, CONFIG_DM_SERIAL is enabled in the relevant defconfigs. For the patchset, Reviewed-by: Peng Fan

Re: [PATCH] mmc:Remove the legacy mode clock setting operation

2023-06-25 Thread Peng Fan
On 6/21/2023 11:11 AM, xf_...@163.com wrote: Caution: This is an external email. Please take care when clicking links or opening attachments. When in doubt, report the message using the 'Report this email' button From: xiefei Due to the need to read the register value before switching

Re: [PATCH v1] LFU-544: Kconfig.nxp: Fixed secure boot on LS-CH2 platforms

2023-06-25 Thread Peng Fan
Acked-by: Peng Fan

Re: [PATCH] arm: dts: imx8m: add OPTEE_LOAD_ADDRESS config and tee.bin

2023-06-25 Thread Peng Fan
boards moved away from using CONFIG_SPL_FIT_GENERATOR this was lost. This patch restores that functionality. A Kconfig option is added due to binman not being able to utilize env variables. Signed-off-by: Tim Harvey Reviewed-by: Peng Fan

Re: [PATCH] arm: dts: imx8m: move CAAM nodes into common u-boot.dtsi

2023-06-25 Thread Peng Fan
On 6/23/2023 2:52 AM, Tim Harvey wrote: Move the crypto and sec_jr* nodes from board-specific u-boot.dtsi files into the common files. Additionally protect the nodes with ifdef FSL_CAAM as they don't serve any purpose if that is not enabled. Signed-off-by: Tim Harvey Reviewed-by: Peng Fan

Re: [PATCH] board: gateworks: venice: switch to 2-bank dram config

2023-06-25 Thread Peng Fan
On 6/24/2023 12:44 AM, Tim Harvey wrote: Switch to a 2-bank dram config to properly support 4GiB. Signed-off-by: Tim Harvey Reviewed-by: Peng Fan

Re: [PATCH] configs: imx8m: Prepare imx8m-venice boards for HAB support

2023-06-25 Thread Peng Fan
arch_misc_init to probe the CAAM driver. Signed-off-by: Tim Harvey Reviewed-by: Peng Fan

Re: imx8m optee load address?

2023-06-25 Thread Peng Fan
 PM Tim Harvey wrote: On Thu, Jun 15, 2023 at 8:31 PM Peng Fan wrote: On 6/16/2023 9:56 AM, Tim Harvey wrote: Greetings, I've seen several IMX8M boards include a firmware/optee node in the U-Boot dt (git grep optee arch/arm/dts/imx8m*.dtsi) yet but none that I see configure binman

RE: [PATCH v3 3/3] mmc: renesas-sdhi: Send stop when MMC tuning command fails

2023-06-19 Thread Peng Fan
changes > --- > Cc: "Ying-Chun Liu (PaulLiu)" > Cc: Hai Pham > Cc: Jaehoon Chung > Cc: Loic Poulain > Cc: Peng Fan > Cc: Simon Glass > Cc: Takeshi Kihara > --- > drivers/mmc/renesas-sdhi.c | 11 +++ > 1 file changed, 11 insertions(+)

RE: [PATCH v3 2/3] mmc: Introduce mmc_send_stop_transmission()

2023-06-19 Thread Peng Fan
> Rename to mmc_send_stop_transmission(). > Remove tuning opcode check, this is controller driver specific. > Deduplicate part of mmc_read_blocks() using this function.] > --- > V2: Support both read and write transmission stop > V3: Update on previous patch changes > -

RE: [PATCH v3 1/3] mmc: Fix MMC_CMD_STOP_TRANSMISSION response type and add comment

2023-06-19 Thread Peng Fan
> -Original Message- > From: Marek Vasut > Sent: 2023年6月20日 6:38 > To: u-boot@lists.denx.de > Cc: Marek Vasut ; Ying-Chun Liu > (PaulLiu) ; Hai Pham ; > Jaehoon Chung ; Loic Poulain > ; Peng Fan ; Simon Glass > ; Takeshi Kihara > Su

RE: [PATCH] spl: spl_legacy: Add extra address checks

2023-06-19 Thread Peng Fan
gt; +75,9 @@ int spl_parse_legacy_header(struct spl_image_info *spl_image, > "payload image: %32s load addr: 0x%lx size: %d\n", > spl_image->name, spl_image->load_addr, spl_image->size); > > + spl_parse_legacy_validate(spl_image->load_addr, spl_image->size); > + spl_parse_legacy_validate(spl_image->entry_point, 0); > + > return 0; Reviewed-by: Peng Fan > } > > -- > 2.39.2

Re: imx8m optee load address?

2023-06-15 Thread Peng Fan
On 6/16/2023 9:56 AM, Tim Harvey wrote: Greetings, I've seen several IMX8M boards include a firmware/optee node in the U-Boot dt (git grep optee arch/arm/dts/imx8m*.dtsi) yet but none that I see configure binman to actually add the binary in the u-boot.dtsi, do anything to keep U-Boot from

Re: [PATCH v2] mx8m: csf.sh: use vars for keys to avoid file edits when signing

2023-06-15 Thread Peng Fan
.1/ +export CSF_KEY=$CST_DIR/crts/CSF1_1_sha256_4096_65537_v3_usr_crt.pem +export IMG_KEY=$CST_DIR/crts/IMG1_1_sha256_4096_65537_v3_usr_crt.pem +export SRK_TABLE=$CST_DIR/crts/SRK_1_2_3_4_table.bin +export PATH=$CST_DIR/linux64/bin:$PATH +/bin/sh doc/imx/habv4/csf_examples/mx8m/csf.sh +``` Reviewed-by: Peng Fan It will be better if add SRK programming fuse in guide. Thanks, Peng. 1.4 Closing the device --- -- 2.25.1

Re: [PATCH] menu: Re-enable the ANSI codes

2023-06-15 Thread Peng Fan
On 6/13/2023 4:14 AM, Simon Glass wrote: Caution: This is an external email. Please take care when clicking links or opening attachments. When in doubt, report the message using the 'Report this email' button The intent here was to allow ANSI codes to be disabled, since it was proving

Re: [PATCH 5/7] arch: arm: dts: ls1046a: tag serial nodes with bootph-all

2023-06-15 Thread Peng Fan
On 6/15/2023 8:37 PM, Camelia Groza wrote: Make sure the serial driver is initialized before relocation by tagging the serial nodes with "bootph-all". Add fsl-ls1046a-u-boot.dtsi for U-Boot specific changes. Thanks, Peng. Signed-off-by: Camelia Groza --- arch/arm/dts/fsl-ls1046a.dtsi

Re: [PATCH 4/7] arch: arm: dts: ls1046a: sync serial nodes with Linux

2023-06-15 Thread Peng Fan
On 6/15/2023 8:37 PM, Camelia Groza wrote: Pick up the serial node descriptions from Linux for the ls1046ardb and ls1046afrwy boards and their dependencies. Including the fsl,qoriq-clockgen.h and arm-gic.h headers forces us to change the include directives to explicitly go through the C

Re: [PATCH 2/7] arch: arm: dts: ls1043a: tag serial nodes with bootph-all

2023-06-15 Thread Peng Fan
On 6/15/2023 8:37 PM, Camelia Groza wrote: Make sure the serial driver is initialized before relocation by tagging the serial nodes with "bootph-all". Please add fsl-ls1043a-u-boot.dtsi for U-Boot specific changes. Regards, Peng. Signed-off-by: Camelia Groza ---

Re: [PATCH 1/7] arch: arm: dts: ls1043a: sync serial nodes with Linux

2023-06-15 Thread Peng Fan
boards in the ls1043a SoC family. Better add the tag or commit of linux kernel that you sync from. Other than that, Acked-by: Peng Fan Signed-off-by: Camelia Groza --- arch/arm/dts/fsl-ls1043a-qds.dtsi | 2 +- arch/arm/dts/fsl-ls1043a-rdb.dts | 6 +- arch/arm/dts/fsl-ls1043a.dtsi

[GIT PULL] please pull fsl-qoriq-2023-6-15 for next

2023-06-15 Thread Peng Fan
Hi Tom, Please pull fsl-qoriq-2023-6-15 for next. DM_MDIO/CMD for ls1046afrwy sync APIs for fsl-mc ldpaa_eth update lx2160ardb recv support. net: dsa fix of fallback lookup CI:

[PATCH V2 12/30] imx: ele_api: add DEK Blob generation

2023-06-15 Thread Peng Fan (OSS)
From: Peng Fan - Add crc computation. - Add ele_generate_dek_blob API for encrypted boot support. Signed-off-by: Clement Faure Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/ele_api.h | 2 +- drivers/misc/imx_ele/ele_api.c | 44 + 2 files changed

[PATCH V2 30/30] imx: fsl_sec: preprocessor casting issue with addresses involving math

2023-06-15 Thread Peng Fan (OSS)
arenthesis around the address "a" so that however the address is calculated, the casting is applied to the final calculated address. Reviewed-by: Horia Geanta Reviewed-by: Ye Li Signed-off-by: Utkarsh Gupta Signed-off-by: Peng Fan --- include/fsl_sec.h | 4 ++-- 1 file changed, 2 insert

[PATCH V2 29/30] imx: priblob: Update to use structure

2023-06-15 Thread Peng Fan (OSS)
From: Maximus Sun Use structure to avoid define CAAM_SCFGR for each platform Signed-off-by: Maximus Sun Signed-off-by: Peng Fan --- arch/arm/mach-imx/priblob.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-imx/priblob.c b/arch/arm/mach-imx

[PATCH V2 28/30] imx: imx8m: add CAAM_BASE_ADDR

2023-06-15 Thread Peng Fan (OSS)
From: Peng Fan Add CAAM_BASE_ADDR which will be used by priblob.c Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8m/imx-regs.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/include/asm/arch-imx8m/imx-regs.h b/arch/arm/include/asm/arch-imx8m/imx-regs.h index

[PATCH V2 26/30] imx: ahab: Update AHAB for iMX8 and iMX8ULP

2023-06-15 Thread Peng Fan (OSS)
From: Ye Li Abstract common interfaces for AHAB authentication operations. Then share some common codes for AHAB and SPL container authentication Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/ahab.h | 15 arch/arm/mach-imx/imx8/ahab.c| 129

[PATCH V2 27/30] imx: imx8: ahab: sha256: enable image verification using ARMv8 crypto extension

2023-06-15 Thread Peng Fan (OSS)
From: Gaurav Jain add support for SHA-256 secure hash algorithm using the ARM v8 SHA-256 instructions for verifying image hash. Signed-off-by: Gaurav Jain Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8/ahab.c | 28 1 file changed, 24 insertions(+), 4

[PATCH V2 25/30] imx: parse-container: Use malloc for container processing

2023-06-15 Thread Peng Fan (OSS)
From: Nitin Garg If the container has image which conflicts with spl_get_load_buffer address, there are processing failures. Use malloc instead of spl_get_load_buffer. Reviewed-by: Ye Li Signed-off-by: Nitin Garg Signed-off-by: Peng Fan --- arch/arm/mach-imx/parse-container.c | 38

[PATCH V2 24/30] imx: imx8m: clock: not configure reserved SRC register

2023-06-15 Thread Peng Fan (OSS)
From: Peng Fan i.MX8M[M,N,P] SRC not has 0x1004 offset register, so drop it. Reviewed-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/clock_imx8mm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mach-imx/imx8m/clock_imx8mm.c b/arch/arm/mach-imx/imx8m

[PATCH V2 23/30] imx: imx8: bootaux: Add i.MX8 M4 boot support

2023-06-15 Thread Peng Fan (OSS)
he bootaux will copy the M4 image from DDR to its TCML. 2. Implment bootaux for HIFI on QXP command: bootaux 0x8100 1 Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/sys_proto.h | 1 + arch/arm/mach-imx/Kconfig | 2 +- arch/arm/mach-im

[PATCH V2 22/30] imx: bootaux: Fix bootaux issue when running on ARM64

2023-06-15 Thread Peng Fan (OSS)
From: Ye Li The bootaux uses ulong to read private data and write to M4 TCM, this cause problem on ARM64 platform where the ulong is 8bytes. Fix it by using u32 to replace ulong. Reviewed-by: Peng Fan Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx_bootaux.c | 6

[PATCH V2 21/30] imx: bootaux: change names of MACROs used to boot MCU on iMX devices

2023-06-15 Thread Peng Fan (OSS)
From: Peng Fan The current bootaux supports i.MX8M and i.MX93, but the name "_M4_" implies that the SoCs have Cortex-M4. Actually i.MX8MM/Q use Cortex-M4, i.MX8MN/P use Cortex-M7, i.MX93 use Cortex-M33, so use "_MCU_" in place of "_M4_" to simplify the naming. Sign

[PATCH V2 20/30] imx: iamge-container: support secondary container

2023-06-15 Thread Peng Fan (OSS)
From: Peng Fan Add the support for loading image from secondary container set on iMX8QM B0, iMX8QXP C0. Using the SCFW API to get container set index, if it is the secondary boot, get the offset from fuse and apply to offset of current container set beginning for loading. Also override

[PATCH V2 19/30] imx: image-container: Fix container header checking

2023-06-15 Thread Peng Fan (OSS)
From: Ye Li Checking container header tag and version is wrong, it causes to fail to bypass invalid container Reviewed-by: Peng Fan Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/image-container.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch

[PATCH V2 18/30] imx: hab: Fix coverity issue in HAB event decoding

2023-06-15 Thread Peng Fan (OSS)
From: Ye Li Fix below coverity issues caused by get_idx function where "-1" is compared with uint8_t "element" 343336 Unsigned compared with neg 343337 Operands don't affect result Additional, this function returns "-1" will cause overflow to event string array.

[PATCH V2 17/30] imx: imx8ulp: start the ELE RNG at boot

2023-06-15 Thread Peng Fan (OSS)
From: Peng Fan On the imx8ulp A1 SoC, the ELE RNG needs to be manually started. Signed-off-by: Clement Faure Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/ele_api.h | 1 + board/freescale/imx8ulp_evk/spl.c | 10 ++ drivers/misc/imx_ele/ele_api.c | 25

[PATCH V2 16/30] imx: misc: ele_mu: Update ELE MU driver

2023-06-15 Thread Peng Fan (OSS)
From: Ye Li Extend the RX timeout value to 10s, because when authentication is failed the ELE needs long time (>2s for 28M image) to return the result. Print rx wait info per 1s. Also correct TX and RX status registers in debug. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/m

[PATCH V2 14/30] imx: cmd_dek: add ELE DEK Blob generation support

2023-06-15 Thread Peng Fan (OSS)
From: Clement Faure Add ELE DEK Blob generation for the cmd_dek command. Signed-off-by: Clement Faure Signed-off-by: Peng Fan --- arch/arm/mach-imx/Kconfig | 7 arch/arm/mach-imx/cmd_dek.c | 84 + 2 files changed, 91 insertions(+) diff --git

[PATCH V2 15/30] imx: misc: ele_mu: Update MU TR registers count

2023-06-15 Thread Peng Fan (OSS)
From: Ye Li According to SRM, the Sentinel MU has 8 TR and 4 RR registers. All of them are used for ELE message. So update TR count to 8 and fix a typo in receive msg Reviewed-by: Peng Fan Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/misc/imx_ele/ele_mu.c | 4 ++-- 1 file

[PATCH V2 13/30] imx: cmd_dek: Fix Uninitialized pointer read

2023-06-15 Thread Peng Fan (OSS)
From: Ye Li Fix Coverity (CID 21143558). When tee_shm_register returns failure, the shm_input pointer is invalid, should not free it. Same issue also exists on registering shm_output. Reviewed-by: Peng Fan Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/cmd_dek.c | 3

[PATCH V2 08/30] imx: use generic name ele(EdgeLockSecure Enclave)

2023-06-15 Thread Peng Fan (OSS)
From: Peng Fan Per NXP requirement, we rename all the NXP EdgeLock Secure Enclave code including comment, folder and API name to ELE to align. Signed-off-by: Peng Fan --- arch/arm/Kconfig | 4 +- arch/arm/include/asm/arch-imx9/ccm_regs.h | 2 +- arch/arm

[PATCH V2 11/30] imx: ele_api: support program secure fuse and return lifecycle

2023-06-15 Thread Peng Fan (OSS)
From: Peng Fan Add two ELE API: ele_return_lifecycle_update and ele_write_secure_fuse Add two cmd: ahab_return_lifecycle and ahab_sec_fuse_prog Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/ele_api.h | 2 + arch/arm/mach-imx/ele_ahab.c| 74

[PATCH V2 10/30] imx: ele_ahab: use hextoul

2023-06-15 Thread Peng Fan (OSS)
From: Peng Fan Use hextoul which looks a bit simpler. Signed-off-by: Peng Fan --- arch/arm/mach-imx/ele_ahab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/ele_ahab.c b/arch/arm/mach-imx/ele_ahab.c index 9bb37919638..5f23486304c 100644 --- a/arch/arm

[PATCH V2 09/30] imx: parse-container: fix build warning

2023-06-15 Thread Peng Fan (OSS)
From: Peng Fan Fix build warning: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘u64’ {aka ‘long long unsigned int’} [-Wformat=] printf("can't find memreg for image %d load address 0x%x, error %d\n", warning: format ‘%lx’ expects argume

[PATCH V2 07/30] imx: scu_api: update to version 1.16 and add more APIs

2023-06-15 Thread Peng Fan (OSS)
From: Peng Fan Upgrade SCFW API to 1.16 Add more APIs: sc_misc_get_button_status sc_pm_reboot sc_seco_v2x_build_info Signed-off-by: Peng Fan --- drivers/misc/imx8/scu_api.c | 78 include/firmware/imx/sci/rpc.h | 27 --- include/firmware/imx

[PATCH V2 06/30] imx: congatec/cgtqmx8: correct SCU API usage

2023-06-15 Thread Peng Fan (OSS)
From: Peng Fan The return value is int type, not sc_err_t(u8), correct the usage. Signed-off-by: Peng Fan Tested-by: Oliver Graute Reviewed-by: Oliver Graute --- board/congatec/cgtqmx8/cgtqmx8.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/board/congatec

[PATCH V2 05/30] imx: advantech: correct SCU API usage

2023-06-15 Thread Peng Fan (OSS)
From: Peng Fan The return value is int type, not sc_err_t(u8), correct the usage. Signed-off-by: Peng Fan Tested-by: Oliver Graute Reviewed-by: Oliver Graute --- board/advantech/imx8qm_dmsse20_a1/spl.c | 6 +++--- board/advantech/imx8qm_rom7720_a1/spl.c | 6 +++--- 2 files changed, 6

[PATCH V2 04/30] imx: siemens/capricorn: correct SCU API usage

2023-06-15 Thread Peng Fan (OSS)
From: Peng Fan The return value is int type, not sc_err_t(u8), correct the usage. Signed-off-by: Peng Fan --- board/siemens/capricorn/board.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/board/siemens/capricorn/board.c b/board/siemens/capricorn/board.c

[PATCH V2 03/30] imx: toradex/colibri-imx8x: correct SCU API usage

2023-06-15 Thread Peng Fan (OSS)
From: Peng Fan The return value is int type, not sc_err_t(u8), correct the usage. Signed-off-by: Peng Fan --- board/toradex/colibri-imx8x/colibri-imx8x.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/board/toradex/colibri-imx8x/colibri-imx8x.c b/board/toradex

[PATCH V2 01/30] imx: mach: correct SCU API usage

2023-06-15 Thread Peng Fan (OSS)
From: Peng Fan The return value is int type, not sc_err_t(u8), correct the usage. Signed-off-by: Peng Fan --- arch/arm/mach-imx/cmd_dek.c | 2 +- arch/arm/mach-imx/imx8/ahab.c | 10 +- arch/arm/mach-imx/imx8/cpu.c | 6 +- arch/arm/mach

[PATCH V2 02/30] imx: toradex/apalis-imx8: correct SCU API usage

2023-06-15 Thread Peng Fan (OSS)
From: Peng Fan The return value is int type, not sc_err_t(u8), correct the usage. Signed-off-by: Peng Fan --- board/toradex/apalis-imx8/apalis-imx8.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/board/toradex/apalis-imx8/apalis-imx8.c b/board/toradex/apalis

[PATCH V2 00/30] imx: misc update and fix

2023-06-15 Thread Peng Fan (OSS)
From: Peng Fan V2: Update commit log for patch 21 Per Marek This patchset includes some misc update and fix from NXP downstream - i.MX8 SCU API usage correction - Use ELE(EdgeLockSecure Enclave) public from NXP to replace S400 or Sentinel - Secondary container support and header checking

Re: [PATCH 2/2] board: fsl: lx2160ardb: add dts fixup function for RevC and newer

2023-06-15 Thread Peng Fan
On 6/3/2023 3:35 PM, Peng Fan (OSS) wrote: On 5/31/2023 11:02 PM, Ioana Ciornei wrote: From: Florin Chiculita Since the new RevC LX2160A-RDB board has its 10G Aquantia PHYs at different MDIO bus addresses, we must update both the kernel DTS and u-boot's DTS (in case of DM_ETH) in case

Re: [PATCH v2 1/3] mmc: Fix MMC_CMD_STOP_TRANSMISSION response type and add comment

2023-06-14 Thread Peng Fan
-Chun Liu (PaulLiu)" Cc: Hai Pham Cc: Jaehoon Chung Cc: Loic Poulain Cc: Peng Fan Cc: Simon Glass Cc: Takeshi Kihara --- drivers/mmc/mmc.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 965bc8f0dba..f9b2f940

Re: [PATCH 2/4] mmc: hi6220_dw_mmc: add compatible for HC2910 support

2023-06-14 Thread Peng Fan
On 4/1/2023 7:17 PM, Yang Xiwen wrote: It adds compatible "hisilicon,hi3798mv200-dw-mshc" for HC2910 SoC Hi3798MV200 to probe this mmc driver. It would be better if you could write more information, about why it reuse the data structure of hi6220_mmc_data. Regards, Peng. Signed-off-by:

Re: [PATCH] mmc: rpmb: realign frames before passing to MMC driver

2023-06-14 Thread Peng Fan
On 5/11/2023 11:07 PM, Pavel Löbl wrote: MMC driver requires request and response frame buffers to be properly aligned for DMA transfers. Fix already implemented reallocation for request frame and also add realigment for response frame if needed. Have you met any issues without your patch?

Re: [PATCH] mmc: rpmb: poll mmc status after sending rpmb request

2023-06-14 Thread Peng Fan
On 5/25/2023 1:45 PM, Ji Luo wrote: polling the mmc status to make sure the rpmb request has been sent and the mmc is not in BUSY state. This avoids potential rpmb request failure during rpmb data write. Signed-off-by: Ji Luo Reviewed-by: Peng Fan --- drivers/mmc/rpmb.c | 10

Re: [PATCH] mmc: Set clock when reverting to safe bus mode

2023-06-14 Thread Peng Fan
to legacy_speed] Signed-off-by: Hai Pham --- Cc: "Ying-Chun Liu (PaulLiu)" Cc: Hai Pham Cc: Jaehoon Chung Cc: Loic Poulain Cc: Peng Fan Cc: Simon Glass Cc: Takeshi Kihara Reviewed-by: Peng Fan --- drivers/mmc/mmc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/m

Re: [PATCH 1/2] mmc: Introduce mmc_send_stop_transmission()

2023-06-14 Thread Peng Fan
ction.] --- Cc: "Ying-Chun Liu (PaulLiu)" Cc: Hai Pham Cc: Jaehoon Chung Cc: Loic Poulain Cc: Peng Fan Cc: Simon Glass Cc: Takeshi Kihara --- drivers/mmc/mmc.c | 16 include/mmc.h | 2 ++ 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/dri

Re: [PATCH] mmc: Do not read eMMC partition access bits by default on OMAP2PLUS and BCM283X

2023-06-14 Thread Peng Fan
and ARCH_BCM283X; and selected for 32-bit mvebu mmc booting (which requires it). Signed-off-by: Pali Rohár Looks good to me. Reviewed-by: Peng Fan I expect Jaehoon will handle this patch. Regards, Peng. --- arch/arm/mach-mvebu/Kconfig | 1 + drivers/mmc/Kconfig | 12

Re: [PATCH 2/2] board: fsl: lx2160ardb: add dts fixup function for RevC and newer

2023-06-03 Thread Peng Fan
kernel's DTS and u-boot's DTS. Signed-off-by: Florin Chiculita Signed-off-by: Ioana Ciornei Reviewed-by: Peng Fan

Re: [PATCH 1/2] board: fsl: lx2160ardb: add api for obtaining board revision

2023-06-03 Thread Peng Fan
On 5/31/2023 11:02 PM, Ioana Ciornei wrote: From: Florin Chiculita Add new API for obtaining board revision and trigger the i2c node fixup with this new API. Signed-off-by: Florin Chiculita Signed-off-by: Ioana Ciornei Reviewed-by: Peng Fan

Re: [PATCH 21/30] imx: bootaux: change names of MACROs used to boot MCU on iMX devices

2023-06-03 Thread Peng Fan
On 6/2/2023 2:34 PM, Marek Vasut wrote: Caution: This is an external email. Please take care when clicking links or opening attachments. When in doubt, report the message using the 'Report this email' button On 6/2/23 08:45, Peng Fan (OSS) wrote: From: Peng Fan i.MX8MN/P has Cortex-M7

[PATCH 30/30] imx: fsl_sec: preprocessor casting issue with addresses involving math

2023-06-02 Thread Peng Fan (OSS)
arenthesis around the address "a" so that however the address is calculated, the casting is applied to the final calculated address. Reviewed-by: Horia Geanta Reviewed-by: Ye Li Signed-off-by: Utkarsh Gupta Signed-off-by: Peng Fan --- include/fsl_sec.h | 4 ++-- 1 file changed, 2 insert

[PATCH 29/30] imx: priblob: Update to use structure

2023-06-02 Thread Peng Fan (OSS)
From: Maximus Sun Use structure to avoid define CAAM_SCFGR for each platform Signed-off-by: Maximus Sun Signed-off-by: Peng Fan --- arch/arm/mach-imx/priblob.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-imx/priblob.c b/arch/arm/mach-imx

[PATCH 27/30] imx: imx8: ahab: sha256: enable image verification using ARMv8 crypto extension

2023-06-02 Thread Peng Fan (OSS)
From: Gaurav Jain add support for SHA-256 secure hash algorithm using the ARM v8 SHA-256 instructions for verifying image hash. Signed-off-by: Gaurav Jain Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8/ahab.c | 28 1 file changed, 24 insertions(+), 4

[PATCH 28/30] imx: imx8m: add CAAM_BASE_ADDR

2023-06-02 Thread Peng Fan (OSS)
From: Peng Fan Add CAAM_BASE_ADDR which will be used by priblob.c Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8m/imx-regs.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/include/asm/arch-imx8m/imx-regs.h b/arch/arm/include/asm/arch-imx8m/imx-regs.h index

[PATCH 26/30] imx: ahab: Update AHAB for iMX8 and iMX8ULP

2023-06-02 Thread Peng Fan (OSS)
From: Ye Li Abstract common interfaces for AHAB authentication operations. Then share some common codes for AHAB and SPL container authentication Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/ahab.h | 15 arch/arm/mach-imx/imx8/ahab.c| 129

[PATCH 25/30] imx: parse-container: Use malloc for container processing

2023-06-02 Thread Peng Fan (OSS)
From: Nitin Garg If the container has image which conflicts with spl_get_load_buffer address, there are processing failures. Use malloc instead of spl_get_load_buffer. Reviewed-by: Ye Li Signed-off-by: Nitin Garg Signed-off-by: Peng Fan --- arch/arm/mach-imx/parse-container.c | 38

[PATCH 24/30] imx: imx8m: clock: not configure reserved SRC register

2023-06-02 Thread Peng Fan (OSS)
From: Peng Fan i.MX8M[M,N,P] SRC not has 0x1004 offset register, so drop it. Reviewed-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/clock_imx8mm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mach-imx/imx8m/clock_imx8mm.c b/arch/arm/mach-imx/imx8m

[PATCH 23/30] imx: imx8: bootaux: Add i.MX8 M4 boot support

2023-06-01 Thread Peng Fan (OSS)
he bootaux will copy the M4 image from DDR to its TCML. 2. Implment bootaux for HIFI on QXP command: bootaux 0x8100 1 Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/sys_proto.h | 1 + arch/arm/mach-imx/Kconfig | 2 +- arch/arm/mach-im

[PATCH 22/30] imx: bootaux: Fix bootaux issue when running on ARM64

2023-06-01 Thread Peng Fan (OSS)
From: Ye Li The bootaux uses ulong to read private data and write to M4 TCM, this cause problem on ARM64 platform where the ulong is 8bytes. Fix it by using u32 to replace ulong. Reviewed-by: Peng Fan Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx_bootaux.c | 6

[PATCH 21/30] imx: bootaux: change names of MACROs used to boot MCU on iMX devices

2023-06-01 Thread Peng Fan (OSS)
From: Peng Fan i.MX8MN/P has Cortex-M7, i.MX93 has Cortex-M33, so use "M4" is a bit misleading, so update the name of the macro Signed-off-by: faqiang.zhu Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8m/imx-regs.h | 2 +- arch/arm/include/asm/arch-mx6/imx-regs.h |

[PATCH 20/30] imx: iamge-container: support secondary container

2023-06-01 Thread Peng Fan (OSS)
From: Peng Fan Add the support for loading image from secondary container set on iMX8QM B0, iMX8QXP C0. Using the SCFW API to get container set index, if it is the secondary boot, get the offset from fuse and apply to offset of current container set beginning for loading. Also override

[PATCH 19/30] imx: image-container: Fix container header checking

2023-06-01 Thread Peng Fan (OSS)
From: Ye Li Checking container header tag and version is wrong, it causes to fail to bypass invalid container Reviewed-by: Peng Fan Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/image-container.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch

[PATCH 18/30] imx: hab: Fix coverity issue in HAB event decoding

2023-06-01 Thread Peng Fan (OSS)
From: Ye Li Fix below coverity issues caused by get_idx function where "-1" is compared with uint8_t "element" 343336 Unsigned compared with neg 343337 Operands don't affect result Additional, this function returns "-1" will cause overflow to event string array.

[PATCH 17/30] imx: imx8ulp: start the ELE RNG at boot

2023-06-01 Thread Peng Fan (OSS)
From: Peng Fan On the imx8ulp A1 SoC, the ELE RNG needs to be manually started. Signed-off-by: Clement Faure Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/ele_api.h | 1 + board/freescale/imx8ulp_evk/spl.c | 10 ++ drivers/misc/imx_ele/ele_api.c | 25

[PATCH 16/30] imx: misc: ele_mu: Update ELE MU driver

2023-06-01 Thread Peng Fan (OSS)
From: Ye Li Extend the RX timeout value to 10s, because when authentication is failed the ELE needs long time (>2s for 28M image) to return the result. Print rx wait info per 1s. Also correct TX and RX status registers in debug. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/m

[PATCH 15/30] imx: misc: ele_mu: Update MU TR registers count

2023-06-01 Thread Peng Fan (OSS)
From: Ye Li According to SRM, the Sentinel MU has 8 TR and 4 RR registers. All of them are used for ELE message. So update TR count to 8 and fix a typo in receive msg Reviewed-by: Peng Fan Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/misc/imx_ele/ele_mu.c | 4 ++-- 1 file

[PATCH 14/30] imx: cmd_dek: add ELE DEK Blob generation support

2023-06-01 Thread Peng Fan (OSS)
From: Clement Faure Add ELE DEK Blob generation for the cmd_dek command. Signed-off-by: Clement Faure Signed-off-by: Peng Fan --- arch/arm/mach-imx/Kconfig | 7 arch/arm/mach-imx/cmd_dek.c | 84 + 2 files changed, 91 insertions(+) diff --git

[PATCH 13/30] imx: cmd_dek: Fix Uninitialized pointer read

2023-06-01 Thread Peng Fan (OSS)
From: Ye Li Fix Coverity (CID 21143558). When tee_shm_register returns failure, the shm_input pointer is invalid, should not free it. Same issue also exists on registering shm_output. Reviewed-by: Peng Fan Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/cmd_dek.c | 3

[PATCH 12/30] imx: ele_api: add DEK Blob generation

2023-06-01 Thread Peng Fan (OSS)
From: Peng Fan - Add crc computation. - Add ele_generate_dek_blob API for encrypted boot support. Signed-off-by: Clement Faure Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/ele_api.h | 2 +- drivers/misc/imx_ele/ele_api.c | 44 + 2 files changed

[PATCH 11/30] imx: ele_api: support program secure fuse and return lifecycle

2023-06-01 Thread Peng Fan (OSS)
From: Peng Fan Add two ELE API: ele_return_lifecycle_update and ele_write_secure_fuse Add two cmd: ahab_return_lifecycle and ahab_sec_fuse_prog Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/ele_api.h | 2 + arch/arm/mach-imx/ele_ahab.c| 74

[PATCH 10/30] imx: ele_ahab: use hextoul

2023-06-01 Thread Peng Fan (OSS)
From: Peng Fan Use hextoul which looks a bit simpler. Signed-off-by: Peng Fan --- arch/arm/mach-imx/ele_ahab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/ele_ahab.c b/arch/arm/mach-imx/ele_ahab.c index 9bb37919638..5f23486304c 100644 --- a/arch/arm

[PATCH 08/30] imx: use generic name ele(EdgeLockSecure Enclave)

2023-06-01 Thread Peng Fan (OSS)
From: Peng Fan Per NXP requirement, we rename all the NXP EdgeLock Secure Enclave code including comment, folder and API name to ELE to align. Signed-off-by: Peng Fan --- arch/arm/Kconfig | 4 +- arch/arm/include/asm/arch-imx9/ccm_regs.h | 2 +- arch/arm

[PATCH 09/30] imx: parse-container: fix build warning

2023-06-01 Thread Peng Fan (OSS)
From: Peng Fan Fix build warning: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘u64’ {aka ‘long long unsigned int’} [-Wformat=] printf("can't find memreg for image %d load address 0x%x, error %d\n", warning: format ‘%lx’ expects argume

[PATCH 07/30] imx: scu_api: update to version 1.16 and add more APIs

2023-06-01 Thread Peng Fan (OSS)
From: Peng Fan Upgrade SCFW API to 1.16 Add more APIs: sc_misc_get_button_status sc_pm_reboot sc_seco_v2x_build_info Signed-off-by: Peng Fan --- drivers/misc/imx8/scu_api.c | 78 include/firmware/imx/sci/rpc.h | 27 --- include/firmware/imx

<    1   2   3   4   5   6   7   8   9   10   >