Re: [PATCH v3 00/19] Migration to using binman for bootloader

2023-04-26 Thread Tom Rini
On Fri, Apr 21, 2023 at 06:01:44PM +0530, Neha Malcom Francis wrote: > This series aims to eliminate the use of additional custom repositories > such as k3-image-gen (K3 Image Generation) repo and core-secdev-k3 (K3 > Security Development Tools) that was plumbed into the U-Boot build flow > to

Re: [PATCH] efi: Rename the base efi self-test

2023-04-26 Thread Heinrich Schuchardt
On 4/20/23 01:38, Simon Glass wrote: This function uses the same base name as all the others in this file, so it is not easy to run just that one test. Add a _base suffix so that it can be run on its own. Signed-off-by: Simon Glass Reviewed-by: Heinrich Schuchardt ---

Re: [PATCH v2] cosmetic:fix typo in 'mmc write' example

2023-04-26 Thread Heinrich Schuchardt
On 4/26/23 13:05, Shirokov Alexander wrote: On Tue, Apr 25, 2023 at 8:01 PM Simon Glass wrote: --- a/doc/usage/cmd/mmc.rst +++ b/doc/usage/cmd/mmc.rst @@ -216,7 +216,7 @@ The raw data can be read/written via 'mmc read/write' command: => mmc read 0x4000 0x5000 0x100 MMC read:

Re: Binman signing

2023-04-26 Thread Simon Glass
Hi Andy, On Wed, 26 Apr 2023 at 12:49, Andy Pandy wrote: > > Hi there, > > First of all, I would like to thank you for the tool, I like it a lot. Great! > > I've been trying to sign uboot by placing signature section into > configurations section. Something like: > > { > algo =

Binman signing

2023-04-26 Thread Andy Pandy
Hi there, First of all, I would like to thank you for the tool, I like it a lot. I've been trying to sign uboot by placing signature section into configurations section. Something like: { algo = "sha256,rsa2048"; key-name-hint = "dev"; sign-images = "fdt", "loadables"; } But I can't find how

Re: [PATCH v2 3/7] phy: rockchip: naneng-combphy: Add support for multiple resets

2023-04-26 Thread Kever Yang
On 2023/4/26 23:53, Eugen Hristev wrote: Some variants of the PHY have more than just one reset. To cover all cases, request the rests in bulk rather than just the reset at index 0. Co-developed-by: Ren Jianing Signed-off-by: Ren Jianing Signed-off-by: Eugen Hristev Reviewed-by: Kever

Re: [PATCH v2 4/7] phy: rockchip: naneng-combphy: Support rk3588

2023-04-26 Thread Kever Yang
On 2023/4/26 23:53, Eugen Hristev wrote: From: Jon Lin Add support for rk3588 phy variant. The PHY clock is fixed at 100MHz. Signed-off-by: Jon Lin [kever.y...@rock-chips.com: update pcie pll parameters] Co-developed-by: Kever Yang Signed-off-by: Kever Yang [eugen.hris...@collabora.com:

Re: [PATCH v2 2/7] pci: pcie_dw_rockchip: Support max_link_speed dts property

2023-04-26 Thread Kever Yang
On 2023/4/26 23:53, Eugen Hristev wrote: From: Jon Lin Add support for max_link_speed specified in the PCI DT binding. Signed-off-by: Jon Lin [eugen.hris...@collabora.com: port to latest API, set default correctly, align to 80 chars] Signed-off-by: Eugen Hristev [jo...@kwiboo.se: switch

Re: [PATCH v2 1/7] pci: pcie_dw_rockchip: Add rk3588 compatible

2023-04-26 Thread Kever Yang
On 2023/4/26 23:53, Eugen Hristev wrote: From: Jon Lin Add compatible for RK3588 SoC. Signed-off-by: Jon Lin Reviewed-by: Kever Yang Thanks, - Kever --- Changes in v2: - none drivers/pci/pcie_dw_rockchip.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 2/2] CI: Make use of buildman requirements.txt

2023-04-26 Thread Tom Rini
Now that buildman has a requirements.txt file we need to make use of it. Signed-off-by: Tom Rini --- .azure-pipelines.yml | 3 +++ .gitlab-ci.yml | 4 2 files changed, 7 insertions(+) diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index 76ffdeebd667..22d634f4aa7a 100644

[PATCH 1/2] buildman: Create a requirements.txt file

2023-04-26 Thread Tom Rini
At this point, buildman requires a few different modules and so we need a requirements.txt to track what modules are needed. Cc: Simon Glass Cc: Neha Malcom Francis Signed-off-by: Tom Rini --- tools/buildman/requirements.txt | 2 ++ 1 file changed, 2 insertions(+) create mode 100644

Re: A38x BootROM MMC_CMD_SEND_STATUS timeouts

2023-04-26 Thread Pali Rohár
PING? On Saturday 01 April 2023 18:43:45 Pali Rohár wrote: > Can anybody help with this? > > On Saturday 25 March 2023 13:25:06 Pali Rohár wrote: > > CCing MMC maintainers (Peng Fan & Jaehoon Chung). Could you help us with > > this issue? Expected usage is following: BootROM reads and execute

Re: [PATCH v2 u-boot-mvebu 4/4] arm: mvebu: clearfog: Update eMMC/SD/SATA instructions

2023-04-26 Thread Pali Rohár
On Thursday 13 April 2023 22:43:25 Martin Rowe wrote: > On Thu, 13 Apr 2023 at 20:58, Pali Rohár wrote: > > > > BootROM and neither SPL does not use eMMC boot acknowledgement or boot > > enable bits in EXT_CSD_PART_CONF eMMC register. And also fixed SATA disk > > sector 0x141 is not used at all.

Re: [PATCH v2 5/7] ARM: dts: rockchip: rk3588s-u-boot: add pcie2x1l2 with PHY

2023-04-26 Thread Kever Yang
Hi Eugen, On 2023/4/26 23:53, Eugen Hristev wrote: From: Joseph Chen Add the node for pciE 2x1l 2 device together with the corresponding Typo "pciE" in the patch 5-7? We use 'PCIe' in term or 'pcie' in code. Thanks, - Kever combphy. Signed-off-by: Joseph Chen

Should different versions of a patch be threaded to each other?

2023-04-26 Thread Ehsan Mohandesi
The following discusses the threading of patches. https://u-boot.readthedocs.io/en/latest/develop/sending_patches.html#sending-updated-patch-versions I see the following mentioned there. "Make sure that your mailer adds or keeps correct In-reply-to: and References: headers, so threading of

Re: [PATCH v10 0/9] bootstd: Convert rockchip and add various fixes and tweaks

2023-04-26 Thread Tom Rini
On Mon, 24 Apr 2023 13:49:43 +1200, Simon Glass wrote: > This series converts rockchip boards over to use standard boot. It also > fixes various problems which have come up recently, showing differences > between the current implementation and the distroboot scripts. > > This should get us

Re: [PATCH v5 14/14] smegw01: Convert CFG_EXTRA_ENV_SETTINGS to an env file

2023-04-26 Thread Tom Rini
On Wed, Apr 26, 2023 at 01:05:01PM -0300, Fabio Estevam wrote: > From: Fabio Estevam > > Currently, it is recommended to move from CFG_EXTRA_ENV_SETTINGS to > an env file, so do the conversion. > > Suggested-by: Tom Rini > Signed-off-by: Fabio Estevam Reviewed-by: Tom Rini -- Tom

[PATCH v2 0/2] Update mailmap ids

2023-04-26 Thread Ashok Reddy Soma
In this patch series - Sort mailmap ids according to dictionary order - Update all Xilinx users mail ids to AMD Changes in v2: - Updated the missing mailids - Removed the space after mail id - Added closing brace for Vikhyat Goyal email id Algapally Santosh Sagar (2): .mailmap: Sort the

[PATCH v2 2/2] .mailmap: Map all Xilinx users mail ids to AMD

2023-04-26 Thread Ashok Reddy Soma
From: Algapally Santosh Sagar The mail ids of all the current Xilinx users are to be mapped to AMD following the merger with AMD. The mailmap file is updated accordingly. The ids of Marek Behún and Michal Simek are taken as reference. Signed-off-by: Algapally Santosh Sagar Signed-off-by:

[PATCH v2 1/2] .mailmap: Sort the mailmap ids in dictionary order

2023-04-26 Thread Ashok Reddy Soma
From: Algapally Santosh Sagar The mailmap ids are not arranged in the dictionary order. So, sort the mailmap ids in the dictionary order. Signed-off-by: Algapally Santosh Sagar Signed-off-by: Ashok Reddy Soma --- (no changes since v1) .mailmap | 28 ++-- 1 file

Re: [PATCH 27/31] Makefile: Disable LTO when building with MSYS2

2023-04-26 Thread Pali Rohár
On Tuesday 25 April 2023 19:04:10 Simon Glass wrote: > Hi Pali, > > On Tue, 25 Apr 2023 at 10:28, Pali Rohár wrote: > > > > On Monday 24 April 2023 17:08:32 Simon Glass wrote: > > > This creates a lot of errors of the form: > > > > > > `__stack_chk_fail' referenced in section `.text' of

Re: [PATCH 10/31] sandbox: Provide a linker script for MSYS2

2023-04-26 Thread Pali Rohár
On Wednesday 26 April 2023 09:13:55 Pali Rohár wrote: > On Tuesday 25 April 2023 18:50:59 Simon Glass wrote: > > Hi Pali, > > > > On Tue, 25 Apr 2023 at 13:33, Pali Rohár wrote: > > > > > > On Tuesday 25 April 2023 13:23:04 Simon Glass wrote: > > > > Hi Pali, > > > > > > > > On Tue, 25 Apr 2023

Re: [PATCH V2 0/3] spi: cadence_qspi: Fixes for DTR ops and improve STIG support

2023-04-26 Thread Jagan Teki
On Wed, Apr 12, 2023 at 4:29 PM Dhruva Gole wrote: > > This series aims to address some critical bugs in the cadence qspi > driver like the need to Flush the CMDCTRL reg after the execution due to > a hardware limitation and also fixes the check conditions for DTR ops. > > previously posted: >

Re: [PATCH] scripts/Makefile.lib: also consider $(CONFIG_SYS_BOARD)-u-boot.dtsi

2023-04-26 Thread Rasmus Villemoes
On 25/04/2023 22.09, Tom Rini wrote: > On Tue, Apr 25, 2023 at 10:02:01PM +0200, Rasmus Villemoes wrote: >> On 25/04/2023 21.31, Tom Rini wrote: >>> On Fri, Mar 17, 2023 at 11:26:39AM +0100, Rasmus Villemoes wrote: >>> >> Now, the only way to be really sure is to build the world

Re: [PATCH v2] arch: arm: mach-k3: Delete tifs node in DT fixup

2023-04-26 Thread Neha Malcom Francis
Hi Udit On 20/04/23 13:41, Udit Kumar wrote: This patch deletes tifs DT node as part of fixup. TISCI API reported msmc_size, does not include 64KB reserved size for tifs aka MSMC comms memory. As part of fixup, original code uses TISCI API reported msmc_size as size for sram DT node. tifs

RE: [PATCH] Revert "spi: zynq_qspi: Use dummy buswidth in dummy byte calculation"

2023-04-26 Thread Soma, Ashok Reddy
Acked-by: Ashok Reddy Soma Hi Stefan, > -Original Message- > From: Stefan Herbrechtsmeier o...@weidmueller.com> > Sent: Tuesday, April 18, 2023 3:58 PM > To: Soma, Ashok Reddy ; Simek, Michal > ; u-boot@lists.denx.de > Cc: Stefan Herbrechtsmeier ; > Jagan Teki > Subject: Re: [PATCH]

Re: [PATCH 10/31] sandbox: Provide a linker script for MSYS2

2023-04-26 Thread Pali Rohár
On Tuesday 25 April 2023 18:50:59 Simon Glass wrote: > Hi Pali, > > On Tue, 25 Apr 2023 at 13:33, Pali Rohár wrote: > > > > On Tuesday 25 April 2023 13:23:04 Simon Glass wrote: > > > Hi Pali, > > > > > > On Tue, 25 Apr 2023 at 12:11, Pali Rohár wrote: > > > > > > > > On Tuesday 25 April 2023

[PATCH 02/10] arm: dts: Add support for AM62x LP SK

2023-04-26 Thread Nitin Yadav
The AM62x LP SK board is similar to the AM62x SK board, but has some significant changes that requires different device tree. The differences are mainly: - AM62x SoC in the AMC package that meets AECQ100 automotive standard. - LPDDR4 versus DDR4 on the AM62x SK. - TPS65219 PMIC instead of

rockpi-e sometimes fails to load u-boot.img

2023-04-26 Thread Belisko Marek
Hello, I'm using 2022.01 u-boot. Booting from SDcard sometimes shows up this log: U-Boot SPL 2022.01 (Jan 10 2022 - 18:46:34 +) Trying to boot from MMC2 Card did not respond to voltage select! : -110 spl: mmc init failed with error: -95 Trying to boot from MMC1 mmc_load_image_raw_sector: mmc

[PATCH 00/10] Add AM62x LP SK support

2023-04-26 Thread Nitin Yadav
This series adds support of AM62x LP SK. The AM62x LP SK board is similar to AM62x SK but has some significant changes that requires different set of device tree at each stage of bootloader. First 5 patches add support and sync device tree with linus master. Next 3 patches perform board

[PATCH 01/10] arm: dts: Makefile: Add AM62x LP SK device tree

2023-04-26 Thread Nitin Yadav
The AM62x LP SK board has separate set of device tree. Add k3-am625-generic device tree to have a common device tree for pre R5 SPl stages. Update Makefile with k3-am62-r5-lp-sk.dts and k3-am62-lp-sk device tree to include in same build with AM62x SK. Signed-off-by: Nitin Yadav ---

[PATCH 08/10] board: ti: am62x: Add support for detecting multiple device trees

2023-04-26 Thread Nitin Yadav
Update the board_fit_config_name_match() to choose the right dtb based on the board name read from EEPROM. Update the board_fit_config_name_match() to choose the right dtb based on the board name read from EEPROM. Also restrict multiple EEPROM reads by verifying if EEPROM is already read.

[PATCH 07/10] arm: mach-k3: am625_init: Update board specific API name to K3 generic API's

2023-04-26 Thread Nitin Yadav
Though the board_init_f API initializes the SoC, the API name is incorrectly specified and misleads the functionality. This file should only include k3-specific functionality. Change the API's name to something more K3-specific and separate the function to make it more modular. Add

[PATCH 09/10] configs: am62x_lpsk_a53_defconfig: Enable support for building multiple dtbs into FIT

2023-04-26 Thread Nitin Yadav
Enable configs for building multiple dtbs into a single fit image and load the right dtb for next stage. Add k3-am62-lp-sk board dtb along with evm dtb inside DTB FIT image. This helps to use same defconfig for both AM62x SK and AM62x LP SK. Enable I2C and EEPROM related defconfig to determine

[PATCH 10/10] configs: am62x_evm_r5_defconfig: Enable support for building multiple dtbs at R5 SPL

2023-04-26 Thread Nitin Yadav
Enable configs for building multiple dtbs into a single fit image and load the right dtb for next stage. Add k3-am625-generic dtb along with k3-am625-r5-sk dtb and k3-am62-r5-lp-sk DTB FIT image. This helps to use same defconfig for AM62x SK and AM62x LP SK board. Enable I2C and EEPROM related

Re: [PATCH] soc: soc_ti_k3: fix revision array bounds checks

2023-04-26 Thread Tom Rini
On Fri, Mar 24, 2023 at 08:44:29AM +0100, Rasmus Villemoes wrote: > If rev is equal to the array size, we'll access the array > one-past-the-end. > > Signed-off-by: Rasmus Villemoes > Reviewed-by: Bryan Brattlof Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

Re: [PATCH 06/10] board: ti: am62x: am62x_env: Update env to select correct dtb

2023-04-26 Thread Tom Rini
On Wed, Apr 26, 2023 at 03:09:02PM +0530, Nitin Yadav wrote: > Now that single defconfig is getting used to boot AM62x SK and > AM62x LP SK, the default device tree will not work for selecting > dtb for kernel. Update the findfdt env to select right dtb based > on board_name env variable. > >

Re: [PATCH 07/10] arm: mach-k3: am625_init: Update board specific API name to K3 generic API's

2023-04-26 Thread Tom Rini
On Wed, Apr 26, 2023 at 03:09:03PM +0530, Nitin Yadav wrote: > Though the board_init_f API initializes the SoC, the API > name is incorrectly specified and misleads the functionality. > This file should only include k3-specific functionality. > Change the API's name to something more K3-specific

Re: [PATCH] arch: mach-k3: j721s2_init: Disable the firewalls

2023-04-26 Thread Tom Rini
On Tue, Mar 28, 2023 at 06:32:01PM +0530, Jayesh Choudhary wrote: > Some firewalls enabled by ROM are still left on. So some > address space is inaccessible to the bootloader. For example, > in OSPI boot mode we get an exception and the system hangs. > Therefore, disable all the firewalls left on

Re: [PATCH 1/1] test: improve configuration for Kconfig test options

2023-04-26 Thread Tom Rini
On Mon, Apr 03, 2023 at 12:04:39PM +0200, Heinrich Schuchardt wrote: > * Fix dependencies > * Provide labels that are easier to grasp. > * Fix typo %s/whgch/which/ > * Fix type %s/Is/is/ > > Fixes: 29784d62eded ("test: Add some tests for kconfig.h") > Signed-off-by: Heinrich Schuchardt >

Re: [PATCH 1/1] pytest: Use --lazy with umount

2023-04-26 Thread Tom Rini
On Wed, Apr 05, 2023 at 10:19:39PM -0400, Tom Rini wrote: > Sometimes when doing tests on real hardware we sometimes run in to the > case where some of these mounts haven't been fully flushed. Using the > --lazy option with umount will allow us to continue while letting the OS > handle flushing

Re: [PATCH] arm64: interrupts: print FAR_ELx on sync exceptions

2023-04-26 Thread Tom Rini
On Sun, Apr 02, 2023 at 07:27:34PM +0300, Pavel Skripkin wrote: > Default synchronous exceptions handler prints only esr and register > dump. Sometimes it requiers to see an address which caused exceptions > to understand what's going on > > ARM ARM in section D13.2.41 states that FAR_EL2 will

Re: [PATCH 1/1] test: move unit tests into a sub-menu

2023-04-26 Thread Tom Rini
On Mon, Apr 03, 2023 at 08:27:43PM +0200, Heinrich Schuchardt wrote: > The main configuration menu should not contain detail settings. > > Signed-off-by: Heinrich Schuchardt > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v3] ata: pci: enable bus mastering

2023-04-26 Thread Tom Rini
On Tue, Apr 11, 2023 at 05:07:02PM +0200, Christian Gmeiner wrote: > The non DM code path already would enable pci bus mastering. Do the > same for the DM code path. > > Fixes AHCI problems I am seeing on an Intel Apollolake device. > > Signed-off-by: Christian Gmeiner > Reviewed-by: Bin Meng

Re: [PATCH] gpio-uclass: fix off-by-one in gpio_request_list_by_name_nodev()

2023-04-26 Thread Tom Rini
On Wed, Apr 19, 2023 at 12:10:13PM +0200, Rasmus Villemoes wrote: > By the time we jump to the err label, count represents the number of > gpios we've succesfully requested. So by subtracting one, we fail to > free the most recently requested. > > Signed-off-by: Rasmus Villemoes > Reviewed-by:

Re: [PATCH 3/3] sysreset: psci: add psci_sysreset_get_status

2023-04-26 Thread Tom Rini
On Thu, Apr 06, 2023 at 06:23:19PM +0800, Peng Fan (OSS) wrote: > From: Peng Fan > > Add weak function psci_sysreset_get_status for platform to define > their own reset status with CONFIG_SYSRESET enabled. > > Signed-off-by: Peng Fan Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [PATCH 2/3] sysreset: psci: enable DM_FLAG_PRE_RELOC

2023-04-26 Thread Tom Rini
On Thu, Apr 06, 2023 at 06:23:18PM +0800, Peng Fan (OSS) wrote: > From: Peng Fan > > It is possible that cpu core may reset before relocation with PSCI reset > > Signed-off-by: Peng Fan Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/3] firmware: psci: enable DM_FLAG_PRE_RELOC

2023-04-26 Thread Tom Rini
On Thu, Apr 06, 2023 at 06:23:17PM +0800, Peng Fan (OSS) wrote: > From: Peng Fan > > It is possible that cpu core may reset before relocation with PSCI reset > > Signed-off-by: Peng Fan Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] tools: env: update lock path in README

2023-04-26 Thread Tom Rini
On Wed, Apr 12, 2023 at 12:24:26PM +0100, John Keeping wrote: > Commit aeb40f1166 ("tools: env: use /run to store lockfile") updated the > path to the lockfile but did not update the documentation to match. > > Use the new path in the documentation. > > Fixes: aeb40f1166 ("tools: env: use /run

Re: [PATCH v2] arch: arm: mach-k3: Delete tifs node in DT fixup

2023-04-26 Thread Kumar, Udit
Hi Neha On 4/26/2023 2:56 PM, Neha Malcom Francis wrote: Hi Udit On 20/04/23 13:41, Udit Kumar wrote: This patch deletes tifs DT node as part of fixup. TISCI API reported msmc_size, does not include 64KB reserved size for tifs aka MSMC comms memory. As part of fixup, original code uses

RE: [PATCH v2] arch: arm: mach-k3: Delete tifs node in DT fixup

2023-04-26 Thread Kumar, Udit
Hi Neha, > Hi Udit, [..] >>> >>> I do have a general doubt; why do we have only atf-sram sub-node in >>> msmc_sram in all other devices (j721e, j7200 and am65) except j721s2? >> >> let me know, which source code you are referring to >> > >In U-Boot, for j721e, j7200 and am65; they *only*

command segmentation fault

2023-04-26 Thread harry_lockyer
Hello, this is my first time reporting anything.  I found a segmentation fault can be triggered when using the binary after compiling it for sandbox mode.  Example:$ sudo make sandbox_defconfig$ sudo make $. /u-boot -c ⧵0xef⧵0xbf⧵0xbd U-Boot 2023.04-rc1-00507-gc34009d5a9-dirty (Apr 25 2023

Re: [PATCH v2 1/2] xen: Add dependency on armv8

2023-04-26 Thread Tom Rini
On Tue, Apr 18, 2023 at 02:51:55PM +0200, Michal Simek wrote: > U-Boot currently implements hypervisor calls only for ARM64 that's why add > dependency on ARM64. The hardware functionality is also available on > ARMv7a, but currently not supported by U-Boot, hence it is not added to the > list of

Re: [PATCH v2 2/2] xen: Limit execution to EL1 only

2023-04-26 Thread Tom Rini
On Tue, Apr 18, 2023 at 02:51:56PM +0200, Michal Simek wrote: > Xen core_init() is calling HVC which should be called from EL1 level that's > why do Xen initialization only when U-Boot runs in EL1. > > Signed-off-by: Michal Simek Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [PATCH] xen: Fix Kconfig dependencies

2023-04-26 Thread Tom Rini
On Thu, Apr 06, 2023 at 10:04:15AM +0200, Michal Simek wrote: > XEN config can be enabled by other platforms (even it doesn't need to make > sense) that's why fix dependencies. XEN (xenbus.c) requires sscanf (also > pvblock needs it). And PVBLOCK is inside drivers/xen folder which requires > XEN

Re: [PATCH] fs: yaffs2: Make yaffsfs_deviceList static

2023-04-26 Thread Tom Rini
On Wed, Apr 05, 2023 at 10:40:22PM +0800, Bin Meng wrote: > yaffsfs_deviceList is only referenced in yaffsfs.c > > Signed-off-by: Bin Meng Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v2] arch: arm: mach-k3: Delete tifs node in DT fixup

2023-04-26 Thread Neha Malcom Francis
Hi Udit, On 26/04/23 15:35, Kumar, Udit wrote: Hi Neha On 4/26/2023 2:56 PM, Neha Malcom Francis wrote: Hi Udit On 20/04/23 13:41, Udit Kumar wrote: This patch deletes tifs DT node as part of fixup. TISCI API reported msmc_size, does not include 64KB reserved size for tifs aka MSMC comms

Re: [PATCH v2] arch: arm: mach-k3: Delete tifs node in DT fixup

2023-04-26 Thread Neha Malcom Francis
Hi Udit On 26/04/23 16:09, Kumar, Udit wrote: Hi Neha, Hi Udit, [..] I do have a general doubt; why do we have only atf-sram sub-node in msmc_sram in all other devices (j721e, j7200 and am65) except j721s2? let me know, which source code you are referring to In U-Boot, for j721e,

Re: [PATCH 2/3] arm64: Use level-2 for largest block mappings when FEAT_HAFDBS is present

2023-04-26 Thread Tom Rini
On Sat, Mar 18, 2023 at 12:22:52AM +0800, Ying-Chun Liu (PaulLiu) wrote: > From: Marc Zyngier > > In order to make invalidation by VA more efficient, set the largest > block mapping to 2MB, mapping it onto level-2. This has no material > impact on u-boot's runtime performance, and allows a huge

Re: [PATCH 3/3] configs: Create minimal vexpress_fvp_defconfig

2023-04-26 Thread Tom Rini
On Fri, Mar 31, 2023 at 09:58:13AM +0100, Peter Hoyes wrote: > From: Peter Hoyes > > The vexpress64 board family now relies on OF_CONTROL and > OF_HAS_PRIOR_STAGE, so platform-specific configuration requirements > are minimal. > > The vexpress_aemv8a_semi_defconfig file defines many flags that

Re: [PATCH 1/3] arm64: Use FEAT_HAFDBS to track dirty pages when available

2023-04-26 Thread Tom Rini
On Sat, Mar 18, 2023 at 12:22:51AM +0800, Ying-Chun Liu (PaulLiu) wrote: > From: Marc Zyngier > > Some recent arm64 cores have a facility that allows the page > table walker to track the dirty state of a page. This makes it > really efficient to perform CMOs by VA as we only need to look > at

Re: [PATCH 3/3] armv8: enable HAFDBS for other ELx when FEAT_HAFDBS is present

2023-04-26 Thread Tom Rini
On Sat, Mar 18, 2023 at 12:22:53AM +0800, Ying-Chun Liu (PaulLiu) wrote: > From: meitao > > u-boot could be run at EL1/EL2/EL3. so we set it as same as EL1 does. > otherwise it will hang when enable mmu, that is what we encounter > in our SOC. > > Signed-off-by: meitao > [ Paul: pick from the

Re: [PATCH 2/9] clang: Add $(CLANG_TARGET) to LDPPFLAGS

2023-04-26 Thread Tom Rini
On Wed, Apr 05, 2023 at 07:48:52PM -0400, Tom Rini wrote: > When we invoke $(CPP) to make u-boot.lds we have LDPPFLAGS available to > set other required flags here. As this file is for the target and not > the host, we must ensure that CPP knows what the target architecture is. > For this, pass

Re: [PATCH 4/9] arm: Centralize fixed register logic

2023-04-26 Thread Tom Rini
On Wed, Apr 05, 2023 at 07:48:54PM -0400, Tom Rini wrote: > When building for ARM64, we need to pass -ffixed-x18 and otherwise pass > -ffixed-r9. Rather than having this logic in two places, we can do this > once in arch/arm/config.mk. Further, while gcc will ignore being passed > both -ffixed-r9

Re: [PATCH 3/9] clang: Don't look for libgcc

2023-04-26 Thread Tom Rini
On Wed, Apr 05, 2023 at 07:48:53PM -0400, Tom Rini wrote: > In the case of using clang to build, and having not already enabled the > private libgcc, do not look for it, as it will not be found nor > required. > > Signed-off-by: Tom Rini > Reviewed-by: Simon Glass Applied to u-boot/master,

Re: [PATCH 5/9] armv7: Use isb/dsb directly in start.S

2023-04-26 Thread Tom Rini
On Wed, Apr 05, 2023 at 07:48:55PM -0400, Tom Rini wrote: > Toolchains which do not directly support using "isb" and "dsb" directly > are no longer functionally supported in U-Boot. Furthermore, clang has > for a long time warned about using the alternate form that we were. > Update the code. >

Re: [PATCH 1/9] arm: Only support ARM64_CRC32 when using GCC

2023-04-26 Thread Tom Rini
On Wed, Apr 05, 2023 at 07:48:51PM -0400, Tom Rini wrote: > Today, only gcc has __builtin_aarch64_crc32b (clang-16 does not, for > example). Make this option depend on CC_IS_GCC. > > Signed-off-by: Tom Rini > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [PATCH v2] cosmetic:fix typo in 'mmc write' example

2023-04-26 Thread Shirokov Alexander
On Tue, Apr 25, 2023 at 8:01 PM Simon Glass wrote: > > --- a/doc/usage/cmd/mmc.rst > > +++ b/doc/usage/cmd/mmc.rst > > @@ -216,7 +216,7 @@ The raw data can be read/written via 'mmc > read/write' command: > > => mmc read 0x4000 0x5000 0x100 > > MMC read: dev # 0, block # 20480,

[PATCH 04/10] arm: dts: Add support for AM62x LP SK at R5 SPL stage

2023-04-26 Thread Nitin Yadav
The AM62x LP SK board is similar to AM62x SK board, but has a own set of attributes that requires different device tree on each stage of bootloader. These dt changes add support for AM62x LP SK at R5 SPL. Signed-off-by: Nitin Yadav --- arch/arm/dts/k3-am62-r5-lp-sk.dts | 12 +

[PATCH 03/10] arm: dts: Sync DT to add support of AM62x LP SK

2023-04-26 Thread Nitin Yadav
To prepare for upcoming derivative boards based on the AM625 SK, sync the dts and dtsi files for this board so that the derivative boards will inherit and retain only those parts that are different in the current dts file. Signed-off-by: Nitin Yadav --- arch/arm/dts/k3-am62-main.dtsi |

[PATCH 06/10] board: ti: am62x: am62x_env: Update env to select correct dtb

2023-04-26 Thread Nitin Yadav
Now that single defconfig is getting used to boot AM62x SK and AM62x LP SK, the default device tree will not work for selecting dtb for kernel. Update the findfdt env to select right dtb based on board_name env variable. Signed-off-by: Nitin Yadav --- board/ti/am62x/am62x.env | 4 1 file

[PATCH 05/10] arm: dts: k3-am625-generic: Add generic DT for pre R5 SPL

2023-04-26 Thread Nitin Yadav
To add support of am62x lpsk as unified defconfig.A generic device tree need to add for pre R5 SPL stage with optimal nodes. Adding generic tree with I2C and uart nodes helps determine board model and board name at pre R5 SPL stage. Signed-off-by: Nitin Yadav ---

Re: [PATCH V2] include: configs: am64x_evm: Change to using .env

2023-04-26 Thread Tom Rini
On Thu, Mar 30, 2023 at 02:24:09PM +0530, Nikhil M Jain wrote: > Move to using .env file for setting up environment variables for am64x. > > Signed-off-by: Nikhil M Jain > Reviewed-By: Devarsh Thakkar Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 2/3] vexpress64: Enable VIRTIO_MMIO and RTC_PL031 in the base model

2023-04-26 Thread Tom Rini
On Fri, Mar 31, 2023 at 09:58:12AM +0100, Peter Hoyes wrote: > From: Peter Hoyes > > The Arm EBBR (Embedded Base Boot Requirements) require that the time > and basic networking EFI interfaces are available and working, so long > as the hardware has an RTC and network interface. > > Arm FVPs

Re: [PATCH u-boot] arm: omap3: Directly use SMC #1 in lowlevel_init.S

2023-04-26 Thread Tom Rini
On Thu, Apr 13, 2023 at 10:34:43PM +0200, Pali Rohár wrote: > Since commit de39dc71625d ("arm: armv7-a: Compile and tune for armv7-a > instead of armv5") is used -march=armv7-a option for Omap3 platforms. > > With directive ".arch_extension sec" it is possible for -march=armv7-a to > directly

Re: [PATCH 1/3] vexpress64: Use OF_HAS_PRIOR_STAGE for BASE_FVP variant

2023-04-26 Thread Tom Rini
On Fri, Mar 31, 2023 at 09:58:11AM +0100, Peter Hoyes wrote: > From: Peter Hoyes > > BASE_FVP now typically uses a devicetree provided by a prior boot stage > (typically Arm TF-A), so imply this option by default when > TARGET_VEXPRESS64_BASE_FVP is selected. > > OF_HAS_PRIOR_STAGE selects

Re: [PATCH] mpc8379erdb: Convert to using DM_SERIAL

2023-04-26 Thread Tom Rini
On Fri, Apr 07, 2023 at 06:03:44PM -0400, si...@writeme.com wrote: > From: Sinan Akman > > Convert to DM_SERIAL for mpc8379erdb. > > Signed-off-by: Sinan Akman Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] qemu: dfu: Correct memset call in set_dfu_alt_info

2023-04-26 Thread Tom Rini
On Thu, Apr 06, 2023 at 09:58:40AM -0400, Tom Rini wrote: > When building with clang, we see: > board/emulation/common/qemu_dfu.c:51:24: warning: 'memset' call operates on > objects of type 'char' while the size is based on a different type 'char *' > [-Wsizeof-pointer-memaccess] > > As we're

Re: [PATCH 6/9] boot/image-board.c: Silence warning in select_ramdisk

2023-04-26 Thread Tom Rini
On Wed, Apr 05, 2023 at 07:48:56PM -0400, Tom Rini wrote: > When building with clang we get a warning that rdaddr could be > uninitialized in one case. While this cannot functionally happen, we can > easily silence the warning. > > Signed-off-by: Tom Rini > Reviewed-by: Simon Glass Applied to

Re: [PATCH] api: Rework menu, and make it depend on CC_IS_GCC

2023-04-26 Thread Tom Rini
On Thu, Apr 06, 2023 at 09:48:58AM -0400, Tom Rini wrote: > We can only use the old U-Boot API for standalone applications when > building U-Boot with GCC as it relies upon the "gd is a register" trick > that only GCC supports. Further, rework the rest of the options so that > they are in the API

Re: [PATCH 7/9] usb: gadget: f_mass_storage: Rework do_request_sense slightly

2023-04-26 Thread Tom Rini
On Wed, Apr 05, 2023 at 07:48:57PM -0400, Tom Rini wrote: > When building with clang, it notes that sdinfo may be unused > uninitialized in some cases. This appears to be true from reading the > code, and we can simply set the variable to zero to start with and be as > correct as before. > >

[PATCH v4 07/14] smegw01: Enable EMMC boot from multiple partitions

2023-04-26 Thread Fabio Estevam
From: Eduard Strehlau GPT Partition labels are used for determining the right root filesystem to boot from. The U-Boot environment is configured to reside in the eMMC hardware boot partition we are currently booted from. This should enable a dual copy approach for upgrading the bootloader. One

[PATCH v4 10/14] smegw01: Add lockdown U-Boot env support

2023-04-26 Thread Fabio Estevam
From: Eduard Strehlau Add lockdown U-Boot env support so that only certain U-Boot environment variables are allowed to be modified. Signed-off-by: Eduard Strehlau Signed-off-by: Fabio Estevam --- Changes since v3: - None board/storopack/smegw01/Kconfig | 7 +

[PATCH v4 09/14] smegw01: Switch to fitImage

2023-04-26 Thread Fabio Estevam
From: Eduard Strehlau Instead of loading the zImage kernel and the devicetree separately, switch to the fitImage format, which is more convenient when working with secure boot, for example. Signed-off-by: Eduard Strehlau Signed-off-by: Fabio Estevam --- Changes since v3: - None

[PATCH v4 06/14] smegw01: Only commit to new partition if update was successful

2023-04-26 Thread Fabio Estevam
From: Eduard Strehlau When performing rootfs update via swupdate, it is convenient to check the 'ustate' variable to decide whether the update succeeded or not. Signed-off-by: Eduard Strehlau Signed-off-by: Fabio Estevam --- Changes since v3: - None include/configs/smegw01.h | 16

[PATCH v4 08/14] smegw01: Change default boot device to eMMC

2023-04-26 Thread Fabio Estevam
From: Eduard Strehlau Let eMMC be the default boot medium. Signed-off-by: Eduard Strehlau Signed-off-by: Fabio Estevam --- Changes since v3: - None include/configs/smegw01.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/smegw01.h

Re: [PATCH v2] arch: arm: mach-k3: Delete tifs node in DT fixup

2023-04-26 Thread Nishanth Menon
On 17:31-20230426, Neha Malcom Francis wrote: > Hi Udit > > On 26/04/23 16:09, Kumar, Udit wrote: > > Hi Neha, > > > > > Hi Udit, > > > > [..] > > > > > > > > > > > > I do have a general doubt; why do we have on

Re: [PATCH] Revert "spi: zynq_qspi: Use dummy buswidth in dummy byte calculation"

2023-04-26 Thread Michal Simek
On 3/31/23 16:44, Stefan Herbrechtsmeier wrote: From: Stefan Herbrechtsmeier This reverts commit e09784728689de7949d4cdd559a9590e0bfcc702. The commit wrongly divides the dummy bytes by dummy bus width to calculate the dummy bytes. The framework already converts the dummy cycles to the

[PATCH v4 01/14] smegw01: Enable setting additional boot params

2023-04-26 Thread Fabio Estevam
From: Eduard Strehlau Introduce EXTRA_BOOTPARAMS to allow passing additional parameters to kernel command line. This is useful for debugging purposes. Signed-off-by: Eduard Strehlau Signed-off-by: Fabio Estevam --- Changes since v3: - None include/configs/smegw01.h | 8 +++- 1 file

[PATCH v4 05/14] smegw01: Run altbootcmd in the case of failure

2023-04-26 Thread Fabio Estevam
From: Eduard Strehlau Run the altbootcmd script if any step of bootcmd fails. This ensures that always a valid image can be run. Signed-off-by: Eduard Strehlau Signed-off-by: Fabio Estevam --- Changes since v3: - None configs/smegw01_defconfig | 2 +- include/configs/smegw01.h | 8 +++-

[PATCH v4 02/14] smegw01: Select CONFIG_CMD_SQUASHFS

2023-04-26 Thread Fabio Estevam
From: Eduard Strehlau Select CONFIG_CMD_SQUASHFS so that the SquashFS U-Boot commands are available. Signed-off-by: Eduard Strehlau Signed-off-by: Fabio Estevam --- Changes since v3: - None configs/smegw01_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v4 03/14] smegw01: Select bootcount support

2023-04-26 Thread Fabio Estevam
From: Eduard Strehlau Add automatic boot counter that increases after every reset. After a power-on reset, it will be initialized with 1, and each reboot will increment the value by 1. By default it is disabled if bootlimit isn't set. Signed-off-by: Eduard Strehlau Signed-off-by: Fabio Estevam

[PATCH v4 04/14] smegw01: Add altbootcmd

2023-04-26 Thread Fabio Estevam
From: Eduard Strehlau Add an altbootcmd script, which is convenient way to integrate with swupdate and perform a roll back of the previous working version in the case of update failure. Signed-off-by: Eduard Strehlau Signed-off-by: Fabio Estevam --- Changes since v3: - None

Re: [PATCH v4 14/14] smegw01: Convert CFG_EXTRA_ENV_SETTINGS to an env file

2023-04-26 Thread Tom Rini
On Wed, Apr 26, 2023 at 10:25:33AM -0300, Fabio Estevam wrote: > From: Fabio Estevam > > Currently, it is recommended to move from CFG_EXTRA_ENV_SETTINGS to > an env file, so do the conversion. > > Suggested-by: Tom Rini > Signed-off-by: Fabio Estevam > --- > Changes since v3: > - New patch

Re: [PATCH v2] arch: arm: mach-k3: Delete tifs node in DT fixup

2023-04-26 Thread Kumar, Udit
Hi Neha, On 4/26/2023 5:31 PM, Neha Malcom Francis wrote: Hi Udit On 26/04/23 16:09, Kumar, Udit wrote: Hi Neha, Hi Udit, [..] I do have a general doubt; why do we have only atf-sram sub-node in msmc_sram in all other devices (j721e, j7200 and am65) except j721s2? let me know, which

[PATCH v3 1/2] mtd: cfi: respect reg address length

2023-04-26 Thread Nuno Sá
flash_get_size() will get the flash size from the device itself and go through all erase regions to read protection status. However, the device mappable region (eg: devicetree reg property) might be lower than the device full size which means that the above cycle will result in a data bus

[PATCH v3 2/2] mtd: cfi: change cfi_flash_bank_size() return type

2023-04-26 Thread Nuno Sá
Move return type to phys_size_t instead of plain unsigned long. Signed-off-by: Nuno Sá --- v2: * new patch. v3: * also make sure cfi_flash_bank_size() declaration (in cfi_flash.h) gets updated to phys_size_t. drivers/mtd/cfi_flash.c | 10 +- include/mtd/cfi_flash.h | 2 +- 2 files

[PATCH v4 14/14] smegw01: Convert CFG_EXTRA_ENV_SETTINGS to an env file

2023-04-26 Thread Fabio Estevam
From: Fabio Estevam Currently, it is recommended to move from CFG_EXTRA_ENV_SETTINGS to an env file, so do the conversion. Suggested-by: Tom Rini Signed-off-by: Fabio Estevam --- Changes since v3: - New patch added as per Tom Rini's suggestion. Cc: Tom Rini

[PATCH v4 13/14] smegw01: Fix fallback to altbootcmd

2023-04-26 Thread Fabio Estevam
From: Eduard Strehlau The bootcmd/altbootcmd mechanism is not invoked for bootmenus. Manually compare bootcount and bootlimit to implement fallback on all codepaths. Signed-off-by: Eduard Strehlau Signed-off-by: Fabio Estevam --- Changes since v3: - None configs/smegw01_defconfig | 2 +- 1

[PATCH v4 11/14] smegw01: Read the second MAC address

2023-04-26 Thread Fabio Estevam
From: Fabio Estevam Currently, only the first MAC address is read from the fuses. The second MAC address is not read and Linux assigns a random one. To prevent this behavior, read the second MAC address from the fuses and store it into the eth1addr environment variable so that it can be passed

  1   2   >