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

2023-06-01 Thread Peng Fan (OSS)
From: Ye Li 1. Implement bootaux for the M4 boot on i.MX8QM and QXP. Users need to download M4 image to any DDR address first. Then use the "bootaux [M4 core id]" to boot CM4_0 or CM4_1, the default core id is 0 for CM4_0. Since current M4 only supports running in TCM. The bootaux

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

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

[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

[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. Reviewed-by: Peng Fan

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

[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

Re: [PATCH v2 8/9] spi: bcmbca-hsspi: Add driver for newer HSSPI controller

2023-06-01 Thread Jagan Teki
On Wed, May 3, 2023 at 12:29 AM William Zhang wrote: > > The newer BCMBCA SoCs such as BCM6756, BCM4912 and BCM6855 include an > updated SPI controller that add the capability to allow the driver to > control chip select explicitly. Driver can control and keep cs low > between the transfers

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

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

[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 argument of type

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

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

2023-06-01 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/congatec/cgtqmx8/cgtqmx8.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/board/congatec/cgtqmx8/cgtqmx8.c b/board/congatec/cgtqmx8/cgtqmx8.c index

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

2023-06-01 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/advantech/imx8qm_dmsse20_a1/spl.c | 6 +++--- board/advantech/imx8qm_rom7720_a1/spl.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git

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

2023-06-01 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 03/30] imx: toradex/colibri-imx8x: correct SCU API usage

2023-06-01 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

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

2023-06-01 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 +-

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

2023-06-01 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

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

2023-06-01 Thread Peng Fan (OSS)
From: Peng Fan 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 fix - New ELE API to support secure fuse and

Re: [PATCH v2 6/9] spi: bcm63xx-hsspi: Fix multi-bit mode setting

2023-06-01 Thread Jagan Teki
On Wed, May 3, 2023 at 12:29 AM William Zhang wrote: > > Currently the driver always sets the controller to dual data bit mode > for both tx and rx data in the profile mode control register even for > single data bit transfer. Luckily the opcode is set correctly according > to SPI transfer data

Re: [PATCH v2 5/9] spi: bcm63xx-hsspi: Add new compatible string support

2023-06-01 Thread Jagan Teki
On Wed, May 3, 2023 at 12:29 AM William Zhang wrote: > > New compatible string brcm,bcmbca-hsspi-v1.0 is introduced based on > dts document brcm,bcm63xx-hsspi.yaml. Add it to the driver to support > this new binding. > > Port from linux patch: > Link: >

Re: [PATCH 4/4] spi: pl022: Add chip-select gpio support

2023-06-01 Thread Jagan Teki
On Fri, Apr 28, 2023 at 6:09 PM Stefan Herbrechtsmeier wrote: > > From: Lukas Funke > > Add support for an optional external chip-select gpio. > > Signed-off-by: Lukas Funke > Signed-off-by: Stefan Herbrechtsmeier > --- Reviewed-by: Jagan Teki

Re: [PATCH 3/4] spi: pl022: Remove platform data header

2023-06-01 Thread Jagan Teki
On Fri, Apr 28, 2023 at 6:09 PM Stefan Herbrechtsmeier wrote: > > From: Stefan Herbrechtsmeier > > Remove the platform data header because its content is only used by the > driver. > > Signed-off-by: Stefan Herbrechtsmeier > --- Reviewed-by: Jagan Teki

Re: [PATCH 2/4] spi: pl022: Rename flush into pl022_spi_flush

2023-06-01 Thread Jagan Teki
On Fri, Apr 28, 2023 at 6:09 PM Stefan Herbrechtsmeier wrote: > > From: Stefan Herbrechtsmeier > > Rename the flush function into pl022_spi_flush to avoid conflicting > types with previous declaration of the function in stdio.h header. > > Signed-off-by: Stefan Herbrechtsmeier > ---

Re: [PATCH 1/4] spi: pl022: Align compatible property with device tree binding

2023-06-01 Thread Jagan Teki
On Fri, Apr 28, 2023 at 6:09 PM Stefan Herbrechtsmeier wrote: > > From: Lukas Funke > > Align the compatible property with the kernel device tree binding [1] > by removing the '-spi' suffix. > > [1] > https://www.kernel.org/doc/Documentation/devicetree/bindings/spi/spi-pl022.yaml > >

Re: [PATCH 06/40] gpio: Avoid using an invalid ofnode

2023-06-01 Thread Heiko Schocher
Hello Simon, On 01.06.23 18:22, Simon Glass wrote: > Devices do not necessarily have nodes attached to them, since they can be > created from platdata. In SPL a devicetree may in fact not exist at all. > > Check the node before using it. This avoids failure when OF_CHECKS is > enabled. > >

Re: [EXTERNAL] Re: [PATCH 0/8] Updats SPL splashscreen framework for AM62x

2023-06-01 Thread Nikhil M Jain
Hi Tom, On 01/06/23 22:10, Tom Rini wrote: On Thu, May 11, 2023 at 03:29:50PM +0530, Nikhil M Jain wrote: This patch series aims at updating SPL splashscreen framework for AM62x. Nikhil M Jain (8): common: spl: spl: Update stack pointer address arch: arm: mach-k3: common: Return a

Re: [PATCH v4 00/11] Add ethernet driver for StarFive JH7110 SoC

2023-06-01 Thread yanhong wang
On 2023/6/2 1:44, Torsten Duwe wrote: > On Thu, 25 May 2023 17:36:26 +0800 > Yanhong Wang wrote: > [...] >> >> base-commit: 62df7a39442902a71259568c13a4d496d5a514f4 > > Have you tested this? > I also got the following error, which was caused by the recent submission [commit ID:

Re: Loading from squashfs with zstd compression slower than ext4

2023-06-01 Thread Tom Rini
On Fri, Jun 02, 2023 at 11:34:33AM +1000, Jonathan Liu wrote: > Hi Tom, > > On Fri, 2 Jun 2023 at 03:09, Tom Rini wrote: > > > > On Thu, Jun 01, 2023 at 02:10:21PM +1000, Jonathan Liu wrote: > > > Hi Simon, > > > > > > On Thu, 1 Jun 2023 at 11:27, Jonathan Liu wrote: > > > > > > > > Hi Simon, >

Re: Loading from squashfs with zstd compression slower than ext4

2023-06-01 Thread Jonathan Liu
Hi Tom, On Fri, 2 Jun 2023 at 03:09, Tom Rini wrote: > > On Thu, Jun 01, 2023 at 02:10:21PM +1000, Jonathan Liu wrote: > > Hi Simon, > > > > On Thu, 1 Jun 2023 at 11:27, Jonathan Liu wrote: > > > > > > Hi Simon, > > > > > > On Thu, 1 Jun 2023 at 03:13, Simon Glass wrote: > > > > > > > > Hi

Re: The latest U-boot reports an error when running on StarFive visionfive2 1.3B board

2023-06-01 Thread yanhong wang
On 2023/5/31 2:11, Simon Glass wrote: > Hi Yanhong, > > Please can you send this to the mailing list and cc me? > > Regards, > Simon > > On Tue, 16 May 2023 at 20:48, yanhong wang > wrote: >> >> Hi Simon Glass, >> >> Running the latest U-boot on the StarFive VisionFive 2 1.3B board prompts

Re: [PATCH v2 0/9] spi: bcm63xx-hsspi: driver and doc updates

2023-06-01 Thread William Zhang
Hi Jagan and Tom, Any chance to get this patch series into the u-boot? I haven't heard any feedback and comments but they are largely based on patch series for linux that was accepted in kernel stable release 6.3 and verified on Broadcom reference boards. Thanks, William On 05/02/2023

[PATCH] xhci: Add soft retry mechanism for control transaction

2023-06-01 Thread Роман Кузнецов
>From b887f8bb547b56f6a0c0c7102a9d232df6f174c6 Mon Sep 17 00:00:00 2001 From: cidlik Date: Thu, 1 Jun 2023 23:20:03 +0300 Subject: [PATCH] xhci: Add soft retry mechanism for control transaction A Soft Retry may effectively be used to recover from a USB Transaction Error that was due to a

Re: [PATCH 2/2] efi_selftest: check for deleted handles in the event notification list

2023-06-01 Thread Heinrich Schuchardt
Am 1. Juni 2023 21:32:04 MESZ schrieb Ilias Apalodimas : >Hi Heinrich, > >[...] >> > + * @event notified event >> > + * @context pointer to the notification count >> > + */ >> > +static void EFIAPI test_uninstall_notify(struct efi_event *event, void >> > *context) >> > +{ >> > +

Re: [PATCH 2/2] test/py: replace 'tpm2 init, startup, selftest' sequences

2023-06-01 Thread Simon Glass
On Thu, 1 Jun 2023 at 00:21, Ilias Apalodimas wrote: > > Instead of copy pasting the commands needed to start a TPM consisting > of: > - tpm init > - tpm startup TPM2_SU_CLEAR > - tpm2 self_test full > use the newly added 'autostart' which does the same thing and simplify > our python scripts > >

Re: [PATCH] test: fix comment indentation on tpm tests

2023-06-01 Thread Simon Glass
On Thu, 1 Jun 2023 at 00:18, Ilias Apalodimas wrote: > > One out comments is off by one, adjust it > > Signed-off-by: Ilias Apalodimas > --- > test/dm/tpm.c | 9 + > 1 file changed, 5 insertions(+), 4 deletions(-) > Reviewed-by: Simon Glass (I'm not sure I understand the commit

Re: [PATCH 1/2] tpm: Add 'tpm autostart' shell command

2023-06-01 Thread Simon Glass
Hi Ilias, On Thu, 1 Jun 2023 at 00:21, Ilias Apalodimas wrote: > > For a TPM device to be operational we need to initialize it and > perform its startup sequence. The 'tpm init' command currently calls > tpm_init() which ends up calling the ->open() per-device callback and > performs the

[RFC PATCH 4/4] sunxi: psci: implement PSCI on R528

2023-06-01 Thread Sam Edwards
This patch adds the necessary code to make nonsec booting and PSCI secondary core management functional on the R528/T113. Signed-off-by: Sam Edwards --- arch/arm/cpu/armv7/sunxi/psci.c | 47 - arch/arm/mach-sunxi/Kconfig | 2 ++

[RFC PATCH 3/4] sunxi: psci: refactor register access to separate functions

2023-06-01 Thread Sam Edwards
This is to prepare for R528, which does not have the typical "CPUCFG" block; it has a "CPUX" block which provides these same functions but is organized differently. Moving the hardware-access bits to their own functions separates the logic from the hardware so we can reuse the same logic.

[RFC PATCH 2/4] sunxi: psci: clean away preprocessor macros

2023-06-01 Thread Sam Edwards
This patch restructures psci.c to get away from the "many different function definitions switched by #ifdef" paradigm to the preferred style of having a single function definition with `if (IS_ENABLED(...))` to make the optimizer include only the appropriate function bodies instead. There are no

[RFC PATCH 1/4] SQUASH ME

2023-06-01 Thread Sam Edwards
This patch contains only register defs for cpu_sunxi_ncat2.h, and should be combined (as appropriate) into: sunxi: introduce NCAT2 generation model --- arch/arm/include/asm/arch-sunxi/cpu_sunxi_ncat2.h | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git

[RFC PATCH 0/4] Allwinner R528/T113s PSCI

2023-06-01 Thread Sam Edwards
Hi Andre (and list), Per our previous discussion, these are my patches to add PSCI support to your WIP R528/T113s series. I am sending it as RFC because I have CC'd the list and don't want these changes to be treated as patches against upstream. The first patch in this series provides a few more

Re: [PATCH] efi_loader: explicitly return EFI_UNSUPPORTED for TCG 1.0 compatibility

2023-06-01 Thread Stuart Yoder
On 6/1/23 1:30 AM, Heinrich Schuchardt wrote: Am 1. Juni 2023 01:35:01 MESZ schrieb Stuart Yoder : On 5/31/23 5:09 PM, Heinrich Schuchardt wrote: Am 31. Mai 2023 22:40:23 MESZ schrieb Stuart Yoder : On 5/31/23 3:10 PM, Heinrich Schuchardt wrote: On 5/31/23 21:37, Stuart Yoder

Re: [PATCH v1 2/2] doc: Add info for building Xen target with Clang

2023-06-01 Thread Tom Rini
On Thu, May 04, 2023 at 03:54:59PM +0800, Leo Yan wrote: > When build Xen target with Clang, the linker reports failure. > > This patch adds the related info in the documentation as a known issue > and gives details for how to dismiss the building failure with Clang. > > Signed-off-by: Leo Yan

Re: [PATCH v1 1/2] arm64: Remove duplicated symbols

2023-06-01 Thread Tom Rini
On Thu, May 04, 2023 at 03:54:58PM +0800, Leo Yan wrote: > When build U-boot with clang with using commands: > > $ make HOSTCC=clang xenguest_arm64_defconfig > $ make HOSTCC=clang CROSS_COMPILE=aarch64-linux-gnu- \ > CC="clang -target aarch64-linux-gnueabi" -j8 > > The

Re: [PATCH 1/1] axi: fix definition of axi_sandbox_get_emul()

2023-06-01 Thread Tom Rini
On Wed, May 10, 2023 at 11:59:20AM +0200, Heinrich Schuchardt wrote: > Compiling with gcc 13 results in an error: > > drivers/axi/axi-emul-uclass.c:16:5: warning: conflicting types for > ‘axi_sandbox_get_emul’ due to enum/integer mismatch; have > ‘int(struct udevice *, ulong, enum

Re: [PATCH v1] pinctrl: nuvoton: set output state before enabling the output

2023-06-01 Thread Tom Rini
On Tue, May 09, 2023 at 03:07:34PM +0800, Jim Liu wrote: > The default output state may be different to request, > change the configuration sequence to avoid glitch. > > Signed-off-by: Jim Liu Applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v2] arm: mach-k3: am625_init: Add Erratum WA for RTC startup

2023-06-01 Thread Tom Rini
On Tue, May 16, 2023 at 06:06:21PM -0500, Bryan Brattlof wrote: > From: Nishanth Menon > > In the first silicon revision of the am62x family of SoCs, the hardware > wakeup event cannot be used if software is unable to unlock the RTC > device within one second after boot. To work around this

Re: [PATCH] arm: baltos: switch to CONFIG_DM_I2C

2023-06-01 Thread Tom Rini
On Mon, May 15, 2023 at 04:26:44PM +0200, yegorsli...@googlemail.com wrote: > From: Yegor Yefremov > > Also use the TPS65910 driver directly. > > Signed-off-by: Yegor Yefremov Applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] phy: ti: phy-j721e-wiz: Add j721s2-wiz-10g module support

2023-06-01 Thread Tom Rini
On Mon, May 15, 2023 at 04:20:40PM +0530, Ravi Gunasekaran wrote: > Add support for j721s2-wiz-10g device to use clock-names interface > instead of explicitly defining clock nodes within device tree node. > > Signed-off-by: Ravi Gunasekaran Applied to u-boot/next, thanks! -- Tom

Re: [PATCH v2] arm: mach-k3: arm64-mmu: do not map ATF and OPTEE regions in A53 MMU

2023-06-01 Thread Tom Rini
On Fri, May 12, 2023 at 05:28:52PM +0530, kaml...@ti.com wrote: > From: Kamlesh Gurudasani > > ATF and OPTEE regions may be firewalled from non-secure entities. > If we still map them for non-secure A53, speculative access may happen, > which will not cause any faults and related error response

Re: [PATCH 2/2] arm: mach-k3: j7200: clk-data.c: Add main_uart1 clock data

2023-06-01 Thread Tom Rini
On Fri, May 12, 2023 at 03:32:53PM +0530, Bhavya Kapoor wrote: > Add main_uart1 clocks in clk-data.c for J7200. Now, > main_uart1 clocks will be set up while booting the J7200 SoC. > > Signed-off-by: Bhavya Kapoor Applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP

Re: [PATCH 1/2] arm: mach-k3: j7200: dev-data.c: Add main_uart1 device data

2023-06-01 Thread Tom Rini
On Fri, May 12, 2023 at 03:32:52PM +0530, Bhavya Kapoor wrote: > Add device data for main_uart1 in dev-data.c for J7200. Now, > main_uart1 will be powered on while booting the J7200 SoC. > > Signed-off-by: Bhavya Kapoor Applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP

Re: [PATCH v2 3/3] arch: arm: mach-k3: j721e: add support for UDA FS

2023-06-01 Thread Tom Rini
On Thu, May 11, 2023 at 02:47:50PM +0530, Udit Kumar wrote: > When selecting UDA partition for booting. MMC read > mode was selected as RAW. > > Due to growing/changing size of u-boot and tispl > images. > It will be better change to FS in case of UDA FS instead of > adjusting offsets with new

Re: [PATCH v2 2/3] configs: j7200: correct mmc offset

2023-06-01 Thread Tom Rini
On Thu, May 11, 2023 at 02:47:49PM +0530, Udit Kumar wrote: > This patch corrects the MMC raw mode sector offset. > > Current allocated size for tiboot3 is 1MB and 2MB for tispl. > > Without this correct offset eMMC boot will fail. > > Fixes: f8c1e893c82 (configs: j7200_evm_a72: Add Initial

Re: [PATCH v2 1/3] doc: board: ti: add documenation for j7200

2023-06-01 Thread Tom Rini
On Thu, May 11, 2023 at 02:47:48PM +0530, Udit Kumar wrote: > This patch adds documentation for j7200. > > TRM link > https://www.ti.com/lit/pdf/spruiu1 > > > Signed-off-by: Udit Kumar > Tested-by: Heinrich Schuchardt Applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP

Re: [PATCH 2/2] arm: mach-k3: j721s2: clk-data.c: Add main_uart5 clock data

2023-06-01 Thread Tom Rini
On Thu, May 11, 2023 at 02:42:52PM +0530, Bhavya Kapoor wrote: > Add main_uart5 clocks in clk-data.c for J721S2. Now, > main_uart5 clocks will be set up while booting the J721S2 SoC. > > Signed-off-by: Bhavya Kapoor > Reviewed-by: Bryan Brattlof Applied to u-boot/next, thanks! -- Tom

Re: [PATCH 1/2] arm: mach-k3: j721s2: dev-data.c: Add main_uart5 device data

2023-06-01 Thread Tom Rini
On Thu, May 11, 2023 at 02:42:51PM +0530, Bhavya Kapoor wrote: > Add device data for main_uart5 in dev-data.c for J721S2. Now, > main_uart5 will be powered on while booting the J721S2 SoC. > > Signed-off-by: Bhavya Kapoor > Reviewed-by: Bryan Brattlof Applied to u-boot/next, thanks! -- Tom

Re: [PATCH 2/2] arm: mach-k3: j721e: clk-data.c: Add main_uart2 clock data

2023-06-01 Thread Tom Rini
On Thu, May 11, 2023 at 01:14:15PM +0530, Bhavya Kapoor wrote: > Add main_uart2 clocks in clk-data.c for J721E. Now, > main_uart2 clocks will be set up while booting the J721E SoC. > > Signed-off-by: Bhavya Kapoor Applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP

Re: [PATCH 1/2] arm: mach-k3: j721e: dev-data.c: Add main_uart2 device data

2023-06-01 Thread Tom Rini
On Thu, May 11, 2023 at 01:14:14PM +0530, Bhavya Kapoor wrote: > Add device data for main_uart2 in dev-data.c for J721E. Now, > main_uart2 will be powered on while booting the J721E SoC. > > Signed-off-by: Bhavya Kapoor Applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP

Re: [PATCH] firmware: ti_sci: Add missing LF in error message

2023-06-01 Thread Tom Rini
On Tue, May 09, 2023 at 04:38:13PM -0500, Andreas Dannenberg wrote: > The "Message not acknowledged" error message is missing a line feed, > leading to the console log getting garbled and joined together with > whatever the next output is in case this error happens: > > "ti_sci

Re: [PATCH] configs: am62ax_evm_a53_defconfig: Enable YMODEM support at A53 SPL

2023-06-01 Thread Tom Rini
On Mon, May 08, 2023 at 10:13:32AM +0530, Vignesh Raghavendra wrote: > This is required for UART boot flow where u-boot.img needs to be > downloaded via YMODEM. > > Signed-off-by: Vignesh Raghavendra > Reviewed-by: Bryan Brattlof Applied to u-boot/next, thanks! -- Tom signature.asc

Re: [PATCH v2 2/2] arm: mach-k3: common: reorder removal of firewalls

2023-06-01 Thread Tom Rini
On Fri, May 05, 2023 at 03:54:00PM +0530, Manorit Chawdhry wrote: > K3 devices have some firewalls set up by ROM that we usually remove so > that the development is easy in HS devices. > > While removing the firewalls disabling a background region before > disabling the foreground regions keeps

Re: [PATCH v2 1/2] Revert "arm: mach-k3: common: don't reconfigure background firewalls"

2023-06-01 Thread Tom Rini
On Fri, May 05, 2023 at 03:53:59PM +0530, Manorit Chawdhry wrote: > This reverts commit b8ebf24e7f4afb5093a31bdf122e1ed0781e5c3c. > > This patch seems to be fundamentally wrong and requires a different way > on how the background firewalls should be configured so revert the patch > >

Re: [PATCH 1/2] efi_loader: delete handle from events when a protocol is uninstalled

2023-06-01 Thread Ilias Apalodimas
[...] > > > > +/** > > + * efi_handle_cleanup() - Clean the deleted handle from the various lists > > + * @handle: handle to remove > > + * @force: force removal even if protocols are still installed on the > > handle > > + * > > + * Return: status code > > + */ > > +static void

Re: [PATCH 2/2] efi_selftest: check for deleted handles in the event notification list

2023-06-01 Thread Ilias Apalodimas
Hi Heinrich, [...] > > + * @event notified event > > + * @contextpointer to the notification count > > + */ > > +static void EFIAPI test_uninstall_notify(struct efi_event *event, void > > *context) > > +{ > > + return; > > +} > > + > > /* > >* Setup unit test. > >* > > @@

Re: [PATCH v4 00/11] Add ethernet driver for StarFive JH7110 SoC

2023-06-01 Thread Torsten Duwe
On Thu, 25 May 2023 17:36:26 +0800 Yanhong Wang wrote: [...] > > base-commit: 62df7a39442902a71259568c13a4d496d5a514f4 Have you tested this? I get | U-Boot SPL 2023.07-rc2-00170-g62df7a3944 (Jun 01 2023 - 18:58:50 +0200) | DDR version: dc2e84f0. | Trying to boot from MMC2 | | | U-Boot

Re: [PATCH] ARM: dts: stm32: fix display pinmux for stm32f746-disco

2023-06-01 Thread Tom Rini
On Thu, Jun 01, 2023 at 07:06:02PM +0200, Dario Binacchi wrote: > As reported by the datasheet (DocID027590 Rev 4) for PG12: > - AF9 -> LCD_B4 > - AF14 -> LCD_B1 > > So replace AF14 with AF9 for PG12 in the dts. > > Fixes: fe63d3cfb77ef ("ARM: dts: stm32: Sync DT with v4.20 kernel for >

Re: Loading from squashfs with zstd compression slower than ext4

2023-06-01 Thread Tom Rini
On Thu, Jun 01, 2023 at 02:10:21PM +1000, Jonathan Liu wrote: > Hi Simon, > > On Thu, 1 Jun 2023 at 11:27, Jonathan Liu wrote: > > > > Hi Simon, > > > > On Thu, 1 Jun 2023 at 03:13, Simon Glass wrote: > > > > > > Hi Jonathan, > > > > > > On Wed, 31 May 2023 at 06:52, Jonathan Liu wrote: > > >

[PATCH] ARM: dts: stm32: fix display pinmux for stm32f746-disco

2023-06-01 Thread Dario Binacchi
As reported by the datasheet (DocID027590 Rev 4) for PG12: - AF9 -> LCD_B4 - AF14 -> LCD_B1 So replace AF14 with AF9 for PG12 in the dts. Fixes: fe63d3cfb77ef ("ARM: dts: stm32: Sync DT with v4.20 kernel for stm32f7") Signed-off-by: Dario Binacchi ---

Re: [PATCH v1 2/6] net: mv88e61xx: Configure PHY ports to also pass packets between them

2023-06-01 Thread Vladimir Oltean
Hi Lukasz, On Thu, Jun 01, 2023 at 01:44:30PM +0200, Marek Vasut wrote: > I think after two years, it would be good to drop the RB tags and do another > round of reviews. To expand on Marek's point. In those past 2 years, Tim Harvey has put in a considerable amount of effort to add another

Re: [PATCH 0/8] Updats SPL splashscreen framework for AM62x

2023-06-01 Thread Tom Rini
On Thu, May 11, 2023 at 03:29:50PM +0530, Nikhil M Jain wrote: > This patch series aims at updating SPL splashscreen framework for AM62x. > > Nikhil M Jain (8): > common: spl: spl: Update stack pointer address > arch: arm: mach-k3: common: Return a pointer after setting page table > board:

[PATCH 40/40] RFC: video: Update stb_truetype

2023-06-01 Thread Simon Glass
This was brought in in 2016 and a number of changes have been made since then. There does not seem to be much change in functionality, but it is a good idea to update from time to time. Bring in the latest version: 5736b15 ("re-add perlin noise again") Add a few necessary functions, with

Re: [PATCH] arm: dts: ast2600: Add I2C pinctrl

2023-06-01 Thread Tom Rini
On Wed, Jun 01, 2022 at 11:10:18AM -0500, Eddie James wrote: > Set the pinctrl groups for each I2C bus. These are essential to > I2C operating correctly. > > Signed-off-by: Eddie James > Reviewed-by: Joel Stanley > Reviewed-by: Ryan Chen > --- > arch/arm/dts/ast2600.dtsi | 33

Re: [PATCH 2/2] efi_selftest: check for deleted handles in the event notification list

2023-06-01 Thread Heinrich Schuchardt
On 6/1/23 14:06, Ilias Apalodimas wrote: A previous patch is fixing a problem where handles were added in an event notification list, but were never deleted when the handle got deleted. Add a test case which calls - RegisterProtocolNotify - IstallMultipleProtocolInterface -

[PATCH 39/40] expo: Add tests for the configuration editor

2023-06-01 Thread Simon Glass
Add some simple tests and a helpful script to make the configuration editor easier to set up. Signed-off-by: Simon Glass --- arch/sandbox/dts/sandbox.dtsi | 6 ++ arch/sandbox/dts/test.dts | 6 ++ test/boot/expo.c| 44 +++ test/boot/files/expo_layout.dts |

[PATCH 38/40] expo: Add a configuration editor

2023-06-01 Thread Simon Glass
Add a new 'cedit' command which allows editing configuration using an expo. The configuration items appear as menus on the display. This is extremely basic, only supporting menus and not providing any way to load or save the configuration. Signed-off-by: Simon Glass --- boot/Kconfig

[PATCH 37/40] expo: Support building an expo from a description file

2023-06-01 Thread Simon Glass
The only way to create an expo at present is by calling the functions to create each object. It is useful to have more data-driven approach, where the objects can be specified in a suitable file format and created from that. This makes testing easier as well. Add support for describing an expo in

[PATCH 36/40] expo: Add spacing around menus and items

2023-06-01 Thread Simon Glass
It looks better if menus have a bit of an inset, rather than be drawn hard up against the background. Also, menu items look better if they have a bit of spacing between them. Add theme options for these and implement the required changes. Signed-off-by: Simon Glass ---

[PATCH 35/40] expo: Implement the keypress logic for popup menus

2023-06-01 Thread Simon Glass
In 'popup' mode, the expo allows moving around the objects in a scene. When 'enter' is pressed on a menu, it opens and the user can move around the items in the menu. Implement this using keypress handles and actions. Signed-off-by: Simon Glass --- boot/scene.c | 80

[PATCH 32/40] expo: Rename EXPOACT_POINT to EXPOACT_POINT_ITEM

2023-06-01 Thread Simon Glass
At present we only support a single menu, so all that can be pointed to is the current menu item. Rename this action so that we can also add an action for pointing to an object. This will allow cycling through the objects in a scene. Signed-off-by: Simon Glass --- boot/scene_menu.c | 4 ++--

[PATCH 31/40] expo: Support drawing of popup menus

2023-06-01 Thread Simon Glass
At present only a single menu is supported. All items are shown and a pointer object points to the current item. Add support for multiple menus, one of which is highlighted, indicated by the highlight_id property in the scene. The highlighted menu item has a SCENEOF_POINT flag, indicating that

[PATCH 34/40] expo: Draw the current opened menu on top

2023-06-01 Thread Simon Glass
When a menu is opened, it must be displayed over all other objects in the scene, so that all its items are visible. Handle this by drawing the menu object a second time, after all other objects have been drawn. Draw all of the objects which are dependent on the menu object. Signed-off-by: Simon

[PATCH 33/40] expo: Draw popup menus in both opened and closed states

2023-06-01 Thread Simon Glass
When a popup menu is closed it shows only the selected item. When it is open it shows a background and all items, with a highlight that can be moved between the items. Add the drawing logic for this. Signed-off-by: Simon Glass --- boot/scene.c | 66

[PATCH 27/40] expo: Calculate text bounding-box correctly

2023-06-01 Thread Simon Glass
Rather than estimating, measure the text accurately, using the new vidconsole feature. This allows accurate placement of objects. Signed-off-by: Simon Glass --- boot/scene.c | 30 ++ 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/boot/scene.c

[PATCH 30/40] expo: Move menu-item selection into a function

2023-06-01 Thread Simon Glass
The current implementation supports a 'pointer' object which points to the currently highlighted menu item. We want to support highlighting the label of the menu item instead, e.g. with inverse video. In this case we will need to 'unhighlight' the old item and highlight the new one. As a first

[PATCH 28/40] expo: Set up the width and height of objects

2023-06-01 Thread Simon Glass
Provide a way to set the full dimensions of objects, i.e. including the width and height. For menus, calculate the bounding box of all objects in the menu. Set all labels to be the same size, so that highlighting works correct, once implemented. Signed-off-by: Simon Glass --- boot/expo.c

[PATCH 25/40] expo: Add width and height to objects

2023-06-01 Thread Simon Glass
At present objects only have a position so it is not possible to determine the amount of space they take up on the display. Add width and height properties, using a struct to keep all the dimensions together. For now this is not used. Future work will set up these new properties. Signed-off-by:

[PATCH 29/40] expo: Support simple themes

2023-06-01 Thread Simon Glass
It is a pain to manually set the fonts of all objects to be consistent. Some spacing settings are also better set globally than by manually positioning each object. Add a 'theme' to the expo, to hold this information. For now it includes only the font size. Signed-off-by: Simon Glass ---

[PATCH 23/40] expo: Allow setting the start of the dynamic-ID range

2023-06-01 Thread Simon Glass
Provide a way to set this value so that it is easy to separate the statically allocated IDs (generated by the caller) from those generated dynamically by expo itself. Signed-off-by: Simon Glass --- boot/expo.c | 15 +++ boot/scene.c | 10 --

[PATCH 21/40] video: Allow temporary colour changes

2023-06-01 Thread Simon Glass
It is sometimes necessary to highlight some text in a different colour. Add an easy way to do this and then restore the original console colours. Signed-off-by: Simon Glass --- drivers/video/vidconsole-uclass.c | 20 include/video_console.h | 30

[PATCH 22/40] console: Allow measuring the bounding box of text

2023-06-01 Thread Simon Glass
For laying out text accurately it is necessary to know the width and height of the text. Add a measure() method to the console API, so this can be supported. Add an implementation for truetype and a base implementation for the normal console. Signed-off-by: Simon Glass ---

[PATCH 19/40] bootstd: Add a separate log category for expo

2023-06-01 Thread Simon Glass
This feature is different enough from bootstd that it probably deserves its own log category. It cannot use a uclass since it is not a device. Add a new category. Signed-off-by: Simon Glass --- boot/expo.c | 2 ++ boot/scene.c | 2 ++ boot/scene_menu.c | 2 +- common/log.c | 1

[PATCH 20/40] video: Correct docs for video_index_to_colour()

2023-06-01 Thread Simon Glass
This uses the private data of the video uclass, not the console uclass (its child). Update the comment to avoid confusion. Signed-off-by: Simon Glass Fixes: a032e4b55ea ("video: Move console colours to the video uclass") --- include/video.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

  1   2   >