Re: [PATCH 2/3] arm: dts: am625_sk: Switch to OF_UPSTREAM

2024-06-07 Thread Mattijs Korpershoek
Hi Nishanth, Thank you for the patch. On mer., juin 05, 2024 at 10:27, Nishanth Menon wrote: > Enable OF_UPSTREAM for am625-sk board. Remove DT files that > are now available in dts/upstream. Update the appended files based on > version of latest OF_UPSTREAM sync point (v6.10-rc1). > > Signed-o

Re: [PATCH] arm64: zynqmp: Update rproc node

2024-06-07 Thread Michal Simek
On 5/30/24 12:39, Michal Simek wrote: remoteproc node should be updated to be aligned with the latest dt-schema. Signed-off-by: Michal Simek --- Once we push all dts to Linux we can change to OF_UPSTREAM but till that time we need to keep DTSes in sync. --- arch/arm/dts/zynqmp.dtsi

Re: [PATCH 1/3] xilinx: Enable SMBIOS command

2024-06-07 Thread Michal Simek
On 4/26/24 15:38, Michal Simek wrote: It is good to be aware what information is shared via smbios interface that's why enable it by default. Signed-off-by: Michal Simek --- configs/xilinx_versal_net_virt_defconfig | 1 + configs/xilinx_versal_virt_defconfig | 1 + configs/xilinx_zy

Re: [PATCH 0/3] lib: smbios: Extend driver with using sysinfo driver

2024-06-07 Thread Michal Simek
On 5/24/24 12:07, Ilias Apalodimas wrote: Hi Michal On Fri, 24 May 2024 at 12:45, Michal Simek wrote: Hi Ilias, On 4/26/24 15:38, Michal Simek wrote: Hi, currently only DT way is supported and it is added directly to lib/smbios.c but I think DT and env is only one way how information c

Re: [PATCH v3 05/12] net-lwip: add ping command

2024-06-07 Thread Jerome Forissier
On 6/6/24 19:45, Ilias Apalodimas wrote: > On Thu, 6 Jun 2024 at 20:02, Ilias Apalodimas > wrote: >> >> On Thu, 6 Jun 2024 at 19:53, Ilias Apalodimas >> wrote: >>> >>> [...] >>> +static int ping_raw_init(void *recv_arg) +{ + ping_pcb = raw_new(IP_PROTO_ICMP); +

Re: [PATCH] board: rockchip: Add FriendlyElec NanoPi R6C

2024-06-07 Thread Quentin Schulz
Hi Sebastian, On 6/6/24 6:25 PM, Sebastian Kropatsch wrote: [You don't often get email from seb-...@mail.de. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] Hi Quentin, thanks for your feedback! Am 06.06.2024 um 16:53 schrieb Quentin Schulz: Hi Sebastian, On

[PATCH 1/1] riscv: add RISC-V fields to bdinfo command

2024-06-07 Thread Heinrich Schuchardt
The firmware invoking main U-Boot uses * a0 to pass the boot hart * a1 to pass a device-tree Let the bdinfo command print this information, e.g. boot hart = 0x001b firmware fdt= 0x87e0 The firmware fdt field will only be printed if it is non-zero. Signed-off-b

Re: [PATCH v2 4/8] led: status_led: add new activity LED config and functions

2024-06-07 Thread Quentin Schulz
Hi Christian, On 6/6/24 4:29 PM, Christian Marangi wrote: Add a new activity LED config and additional functions to implement a simple software blink feature to signal activity of any kind. Usual activity might be a file transfer with TFTP, a flash write... User of this API will call status_le

[PATCH 0/2] binman: am62a/62p: add support for signing TIFSStub

2024-06-07 Thread Dhruva Gole
Add support for signing of TIFSSTUB images for HSSE, HSFS and GP devices and include them in tispl.bin and tispl.bin_unsigned in AM62A. AM62P doesn't have any GP support, hence not applicable. These changes are required for Low Power Mode features to work on these SoCs as this TIFS Stub gets used

[PATCH 1/2] arm: dts: k3: binman: am62a: add support for signing TIFSStub Images

2024-06-07 Thread Dhruva Gole
Add support for signing of TIFSSTUB images for HSSE, HSFS and GP devices and include them in tispl.bin and tispl.bin_unsigned. This implements the same change as commit 128f81290b7d ("arm: dts: k3: binman: am625: add support for signing TIFSSTUB Images") did for TI AM62 SK board. Signed-off-by: V

[PATCH 2/2] arm: dts: k3: binman: am62p: add support for signing TIFSStub images

2024-06-07 Thread Dhruva Gole
Adds TIFS stub binaries, this is required for deepsleep functionality. This implements the same change as commit 128f81290b7d ("arm: dts: k3: binman: am625: add support for signing TIFSSTUB Images") did for TI AM62 SK board. Signed-off-by: Vibhore Vardhan Signed-off-by: Dhruva Gole --- arch/ar

Re: [PATCH v3 00/12] Introduce the lwIP network stack

2024-06-07 Thread Jerome Forissier
On 6/6/24 18:56, Tom Rini wrote: > On Thu, Jun 06, 2024 at 03:35:55PM +0200, Jerome Forissier wrote: > >> This is a rework of a patch series by Maxim Uvarov: "net/lwip: add lwip >> library for the network stack" [1]. The goal is to introduce the lwIP TCP/IP >> stack [2] [3] as an alternative to

Re: [PATCH v3 07/12] net-lwip: add wget command

2024-06-07 Thread Jerome Forissier
On 6/6/24 17:41, Ilias Apalodimas wrote: > Hi Jerome, > > Can we split this in 2 patches instead? > A preparatory one, with split the net-common etc and one that adds wget? Sure, done in v4. > Thanks > /Ilias > > On Thu, 6 Jun 2024 at 16:37, Jerome Forissier > wrote: >> >> Add support for t

[PATCH v3 0/1] Enable reset_cpu() in SPL for ZynqMP

2024-06-07 Thread lukas . funke-oss
From: Lukas Funke This series enables the CPU reset in the SPL for ZynqMP based platforms. This only works if CONFIG_SYSRESET is disabled. This is usually the case since the the regular sysreset requires bl31 firmware to be loaded in order to hand the sysreset over to PMU firmware. In SPL we can

[PATCH v3 1/1] xilinx: zynqmp: Enable reset_cpu() in SPL

2024-06-07 Thread lukas . funke-oss
From: Lukas Funke This commit enables SPL to reset the CPU via PMU-firmware. The usual reset mechanism requires bl31 to be loaded which may not be the case in SPL. Signed-off-by: Lukas Funke --- Changes in v3: - Use 'ZYNQMP_PM_RESET_SOFT' directly - Add comment on what happens if CONFIG_ZYNQMP

Re: [PATCH 3/4] rockchip: rk3568-rock-3a: Drop PCIe reset-gpios workaround

2024-06-07 Thread Kever Yang
Hi Jonas, On 2024/5/11 19:28, Jonas Karlman wrote: The GPIO2_D6 pin is changed to use func-4 using pcie30x2m1_pins during probe of pcie3x2. This cause the device to lock-up when pci driver use the reset-gpios unless the pin is first changed to use gpio pinmux. The reset-gpio for PCIe is for sure

Re: [PATCH 1/9] pinctrl: rockchip: rk3188: Fix support for IOMUX_GPIO_ONLY flag

2024-06-07 Thread Kever Yang
On 2024/5/12 20:16, Jonas Karlman wrote: GPIO0_A0-A7 on RK3188 is IOMUX_GPIO_ONLY, however, trying to set gpio mux return an -ENOTSUPP error code. Fix this by validating using the mux function type and not the iomux flag. Based on Linux commit c4a532dee6b6 ("pinctrl: rockchip: handle first hal

Re: [PATCH 2/9] pinctrl: rockchip: rv1126: Fix support for IOMUX_L_SOURCE_PMU flag

2024-06-07 Thread Kever Yang
On 2024/5/12 20:16, Jonas Karlman wrote: GPIO0_C0-C4 iomux is set using PMUGRF_GPIO0C_IOMUX_L reg on RV1126. This is indicated using the IOMUX_L_SOURCE_PMU flag. Fix reading current mux by fully adopting the IOMUX_L_SOURCE_PMU related code in Linux kernel. Based on Linux commit fd4ea48688c6 ("

Re: [PATCH 3/9] pinctrl: rockchip: rk3588: Fix support for rockchip_get_mux()

2024-06-07 Thread Kever Yang
On 2024/5/12 20:16, Jonas Karlman wrote: GPIO IOMUX control is located at PMU2_IOC or BUS_IOC offset on RK3588. Based on Linux commit fdc33eba11c5 ("pinctrl/rockchip: add rk3588 support"). Compared to the Linux commit, this include a fix so that the iomux of GPIO0_B4-D7 is reported correctly.

Re: [PATCH 4/9] pinctrl: rockchip: Use syscon_regmap_lookup_by_phandle()

2024-06-07 Thread Kever Yang
On 2024/5/12 20:16, Jonas Karlman wrote: Use syscon_regmap_lookup_by_phandle() to simplify the code. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever --- .../pinctrl/rockchip/pinctrl-rockchip-core.c | 39 ++- 1 file changed, 12 insertions(+), 27 del

Re: [PATCH 0/9] rockchip: pinctrl: Minor fixes and add support for pinmux status cmd

2024-06-07 Thread Kever Yang
Hi Jonas,     Could you spit this patch in two part, one with fixes only, which I can merge it for master directly, and another part for new feature and together with "Add gpio request" for next? Thanks, - Kever On 2024/5/12 20:16, Jonas Karlman wrote: This series includes some minor fi

[PATCH] usb: kbd: Add probe quirk for some generic USB mini keyboard

2024-06-07 Thread Dang Huynh
IRK_POLL_NO_REPORT_IDLE; break; --- base-commit: 1ebd659cf020843fd8e8ef90d85a66941cbab6ec change-id: 20240607-generic-minikbd-probe-c3ebc96bf8d3 Best regards, -- Dang Huynh

Re: [PATCH v4 00/10] add ArmSoM Sige7 Rk3588 board

2024-06-07 Thread Quentin Schulz
Hi Jianfeng, For the whole series: Reviewed-by: Quentin Schulz Thanks! Quentin On 5/28/24 7:03 PM, Jianfeng Liu wrote: This series also introduces dts commits of rk3588s.dtsi and rk3588.dtsi from v6.10-rc1-dts. Then dts of ArmSoM Sige7 is picked from upstream. I also remove obsolete usb3 nod

Re: [PATCH] usb: kbd: Add probe quirk for some generic USB mini keyboard

2024-06-07 Thread Marek Vasut
On 6/7/24 11:19 AM, Dang Huynh wrote: This adds a probe quirk to some generic USB mini keyboard, those uses Elan's USB vendor ID and 0x1213 as product ID. Those keyboards does not report current device state and would fail to initialize under U-Boot with the following error: "Failed to get keyb

Re: [PATCH] arm: mvebu: Enable bootstd and other modernization for Synology DS414 (Armada XP) board

2024-06-07 Thread Phil Sutter
Hi Tony, On Thu, Jun 06, 2024 at 04:44:36PM -0700, Tony Dinh wrote: > - Switch to standard boot (in include/configs/ds414.h and > configs/ds414_defconfig) > - Implement board_late_init() to ensure successful enumeration > of USB3 devices Oh, this makes the rear USB3 ports usable? I had failed to

Re: [PATCH v3 00/12] Introduce the lwIP network stack

2024-06-07 Thread Tom Rini
On Fri, Jun 07, 2024 at 11:11:49AM +0200, Jerome Forissier wrote: > > > On 6/6/24 18:56, Tom Rini wrote: > > On Thu, Jun 06, 2024 at 03:35:55PM +0200, Jerome Forissier wrote: > > > >> This is a rework of a patch series by Maxim Uvarov: "net/lwip: add lwip > >> library for the network stack" [1].

[PATCH] spmi: msm: disable read/write log

2024-06-07 Thread Caleb Connolly
Most devices have buttons exposed via the PMIC, the button polling therefore triggers a log spam if debug logging is enabled. Someone would only ever want to log SPMI read/writes to debug very specific issues, they can then uncomment these debug logs. Signed-off-by: Caleb Connolly --- drivers/s

Re: [PATCH] spmi: msm: disable read/write log

2024-06-07 Thread Neil Armstrong
On 07/06/2024 16:22, Caleb Connolly wrote: Most devices have buttons exposed via the PMIC, the button polling therefore triggers a log spam if debug logging is enabled. Someone would only ever want to log SPMI read/writes to debug very specific issues, they can then uncomment these debug logs.

Re: [PATCH] doc: board: sophgo: milkv_duo: Update Milk-V Duo documentation

2024-06-07 Thread Heinrich Schuchardt
On 23.05.24 08:40, Kongyang Liu wrote: Add detailed steps for compiling U-Boot and OpenSBI, generating the firmware package with fiptool, and booting the board. Signed-off-by: Kongyang Liu --- doc/board/sophgo/milkv_duo.rst | 41 +- 1 file changed, 30 inserti

[PATCH 0/2] arm64: add a software pagetable walker

2024-06-07 Thread Caleb Connolly
files changed, 258 insertions(+), 1 deletion(-) --- change-id: 20240607-caleb-upstreaming-82744a2786b3 base-commit: 22ca7e13dc02be83c29450aeadd8e150ebdd // Caleb (they/them)

[PATCH 1/2] arm64: mmu.h: fix PTE_TABLE_AP

2024-06-07 Thread Caleb Connolly
The APTable attribute is two bits wide according to the ARMv8-A architecture reference manual. Fix the macro accordingly. Signed-off-by: Caleb Connolly --- arch/arm/include/asm/armv8/mmu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/include/asm/armv8/mmu.h b/arch

[PATCH 2/2] arm64: add software pagetable walker

2024-06-07 Thread Caleb Connolly
Add a basic software implementation of the ARM64 pagetable walker. This can be used for debugging U-Boot's pagetable, as well as dumping the pagetable from the previous bootloader stage if it used one (by reading out the ttbr address). One can either call dump_pagetable() to print the pagetable to

Re: [PATCH 2/2] arm64: add software pagetable walker

2024-06-07 Thread Tom Rini
On Fri, Jun 07, 2024 at 06:51:20PM +0200, Caleb Connolly wrote: > Add a basic software implementation of the ARM64 pagetable walker. This > can be used for debugging U-Boot's pagetable, as well as dumping the > pagetable from the previous bootloader stage if it used one (by reading > out the ttbr

Re: [PATCH 0/7] MIPS: Enable EFI support

2024-06-07 Thread Heinrich Schuchardt
On 17.05.24 18:32, Jiaxun Yang wrote: Hi all, This series enabled EFI support to MIPS platform. Although MIPS is not defined by UEFI specification, there are quite a few firmware implementations available, including MIPS-EFI[1] for Loongson-2F, Lemote's proprietary EDK2 implementation on Loongs

Re: [PATCH] doc: Add UEFI supplement document

2024-06-07 Thread Heinrich Schuchardt
On 29.05.24 15:36, Jiaxun Yang wrote: Add UEFI supplement document to define some behaviours on architectures not covered by the original specification. Signed-off-by: Jiaxun Yang --- Hi all, This document is in response to discussion at [1]. It is produced based on my attempt to port U-Boot U

[RFC PATCH 00/31] Make U-Boot memory reservations coherent

2024-06-07 Thread Sughosh Ganu
The aim of this patch series is to fix the current state of incoherence between modules when it comes to memory usage. The primary issue that this series is trying to fix is that the EFI memory module which is responsible for allocating and freeing memory, does not have any visibility of the memo

[RFC PATCH 01/31] lmb: remove the unused lmb_is_reserved() function

2024-06-07 Thread Sughosh Ganu
The lmb_is_reserved() API is not used. There is another API, lmb_is_reserved_flags() which can be used to check if a particular memory region is reserved. Remove the unused API. Signed-off-by: Sughosh Ganu --- include/lmb.h | 11 --- lib/lmb.c | 5 - 2 files changed, 16 deletion

[RFC PATCH 02/31] lmb: staticize __lmb_alloc_base()

2024-06-07 Thread Sughosh Ganu
The __lmb_alloc_base() function is only called from within the lmb module. Moreover, the lmb_alloc() and lmb_alloc_base() API's are good enough for the allocation API calls. Make the __lmb_alloc_base() function static. Signed-off-by: Sughosh Ganu --- include/lmb.h | 2 -- lib/lmb.c | 39 +++

[RFC PATCH 03/31] lmb: make the lmb reservations persistent

2024-06-07 Thread Sughosh Ganu
The current LMB API's for allocating and reserving memory use a per-caller based memory view. Memory allocated by a caller can then be overwritten by another caller. Make these allocations and reservations persistent. With this, memory allocated or reserved will not be overwritten. Signed-off-by:

[RFC PATCH 05/31] lmb: pass a flag to image_setup_libfdt() for lmb reservations

2024-06-07 Thread Sughosh Ganu
The image_setup_libfdt() function optionally calls the LMB API to reserve the region of memory occupied by the FDT blob. This was earlier determined through the presence of the pointer to the lmb structure, which is no longer present. Pass a flag to the image_setup_libfdt() function to indicate if

[RFC PATCH 04/31] lmb: remove local instances of the lmb structure variable

2024-06-07 Thread Sughosh Ganu
With the move of the LMB structure to a persistent state, there is no need to declare the variable locally, and pass it as part of the LMB API's. Remove all local variable instances and change the API's correspondingly. Signed-off-by: Sughosh Ganu --- arch/arc/lib/cache.c | 4 +

[RFC PATCH 06/31] lmb: reserve and add common memory regions post relocation

2024-06-07 Thread Sughosh Ganu
The LMB module provides API's for allocating chunks of memory. The LMB module should not be allocating memory regions that are in use, or that might be occupied by the U-Boot image. Prevent allocations of memory areas used by the U-Boot image by reserving these regions once U-Boot has been relocate

[RFC PATCH 07/31] lmb: remove lmb_init_and_reserve_range() function

2024-06-07 Thread Sughosh Ganu
With the move to make the LMB allocations persistent and the common memory regions being reserved during board init, the lmb_init_and_reserve_range() API can be replaced with a simple lmb_add() call. Signed-off-by: Sughosh Ganu --- boot/bootm.c | 2 +- include/lmb.h | 2 -- lib/lmb.c | 8 --

[RFC PATCH 08/31] lmb: replcace the lmb_init_and_reserve() function

2024-06-07 Thread Sughosh Ganu
With the changes to make the Logical Memory Block(LMB) allocations persistent and with the common memory regions being reserved during board init, the lmb_init_and_reserve() API can be removed and replaced with a lmb_add_memory() API, which adds all the available memory to the LMB pool. Signed-off

[RFC PATCH 09/31] lmb: allow for resizing lmb regions

2024-06-07 Thread Sughosh Ganu
Allow for resizing of LMB regions if the region attributes match. The current code returns a failure status on detecting an overlapping address. This worked up until now since the LMB calls were not persistent and global -- the LMB memory map was specific and private to a given caller of the LMB AP

[RFC PATCH 10/31] event: add events to notify memory map changes

2024-06-07 Thread Sughosh Ganu
Add events which would be used for notifying changes in the respective modules' memory map. This is to be used for having a synchronous view of the memory that is currently in use, and that is available for allocations. Signed-off-by: Sughosh Ganu --- common/event.c | 4 include/event.h |

[RFC PATCH 11/31] lib: Kconfig: add a config symbol for getting memory map updates

2024-06-07 Thread Sughosh Ganu
Add a Kconfig symbol to enable getting updates on any memory map changes that might be done by some other module. This notification mechanism can then be used to have a synchronous view of allocated and free memory. Signed-off-by: Sughosh Ganu --- lib/Kconfig | 9 + 1 file changed, 9 ins

[RFC PATCH 12/31] add a function to check if an address is in RAM memory

2024-06-07 Thread Sughosh Ganu
Add a function to check if a given address falls within the RAM address used by U-Boot. This will be used to notify other modules if the address gets allocated, so as to not get re-allocated by some other module. Signed-off-by: Sughosh Ganu --- arch/sandbox/cpu/cpu.c | 5 + common/board_r.c

[RFC PATCH 13/31] efi_memory: notify of any changes to the EFI memory map

2024-06-07 Thread Sughosh Ganu
In U-Boot, LMB and EFI are two primary modules who provide memory allocation and reservation API's. Both these modules operate with the same regions of memory for allocations. Use the EFI memory map update event to notify other interested listeners about a change in the EFI memory map. This can the

[RFC PATCH 14/31] lmb: notify of any changes to the LMB memory map

2024-06-07 Thread Sughosh Ganu
In U-Boot, LMB and EFI are two primary modules who provide memory allocation and reservation API's. Both these modules operate with the same regions of memory for allocations. Use the LMB memory map update event to notify other interested listeners about a change in it's memory map. This can then b

[RFC PATCH 15/31] efi_memory: add an event handler to update memory map

2024-06-07 Thread Sughosh Ganu
There are events that would be used to notify other interested modules of any changes in available and occupied memory. This would happen when a module allocates or reserves memory, or frees up memory. These changes in memory map should be notified to other interested modules so that the allocated

[RFC PATCH 16/31] lmb: add an event handler to update memory map

2024-06-07 Thread Sughosh Ganu
There are events that would be used to notify other interested modules of any changes in available and occupied memory. This would happen when a module allocates or reserves memory, or frees up memory. These changes in memory map should be notified to other interested modules so that the allocated

[RFC PATCH 17/31] lmb: remove call to efi_lmb_reserve()

2024-06-07 Thread Sughosh Ganu
The changes in the EFI memory map are now notified to the LMB module. There is therefore no need to explicitly get the efi memory map and set aside the EFI allocated memory. Signed-off-by: Sughosh Ganu --- lib/lmb.c | 35 --- 1 file changed, 35 deletions(-) diff

[RFC PATCH 18/31] sandbox: iommu: remove lmb allocation in the driver

2024-06-07 Thread Sughosh Ganu
The sandbox iommu driver uses the LMB module to allocate a particular range of memory for the device virtual address(DVA). This used to work earlier since the LMB memory map was caller specific and not global. But with the change to make the LMB allocations global and persistent, adding this memory

[RFC PATCH 19/31] zynq: lmb: do not add to lmb map before relocation

2024-06-07 Thread Sughosh Ganu
The LMB memory is typically not needed very early in the platform's boot. Do not add memory to the LMB map before relocation. Reservation of common areas and adding of memory is done after relocation. Signed-off-by: Sughosh Ganu --- board/xilinx/common/board.c | 31 --

[RFC PATCH 20/31] test: cedit: use allocated address for reading file

2024-06-07 Thread Sughosh Ganu
Instead of a randomly selected address, use an LMB allocated one for reading the file into memory. With the LMB map now being persistent and global, the address used for reading the file might be already allocated as non-overwritable, resulting in a failure. Get a valid address from LMB and then re

[RFC PATCH 21/31] test: event: update the expected event dump output

2024-06-07 Thread Sughosh Ganu
With the addition of two events for notification of any changes to memory that is occupied and is free, the output of the event_dump.py script has changed. Update the expected event log to incorporate this change. Signed-off-by: Sughosh Ganu --- test/py/tests/test_event_dump.py | 2 ++ 1 file ch

[RFC PATCH 22/31] test: lmb: run the LMB tests only on sandbox

2024-06-07 Thread Sughosh Ganu
The LMB memory map is now persistent and global. Running the tests for the LMB module will result in the memory map getting reset, and this will have side-effects on the rest of the working of the platform. Run the LMB tests only on the sandbox platform, which is meant for running such kinds of tes

[RFC PATCH 23/31] test: lmb: initialise the lmb structure before tests

2024-06-07 Thread Sughosh Ganu
The LMB allocations are now persistent and global, and with that all the local instances of the structure variable have been removed. Every LMB test cases that are run require a clean slate of the structure -- facilitate that by adding an initialisation function which gets called at the start of ev

[RFC PATCH 24/31] test: lmb: add a test case for checking overlapping region add

2024-06-07 Thread Sughosh Ganu
Memory managed by LMB is now persistent and global. With that, it could be possible for multiple callers to try to add memory that has already been added. Add a test case to check that the LMB module handles it as expected. Signed-off-by: Sughosh Ganu --- test/lib/lmb.c | 16 1

[RFC PATCH 25/31] test: lmb: adjust the test case to handle overlapping regions

2024-06-07 Thread Sughosh Ganu
The LMB code can now accept reserving and adding overlapping regions of memory. Adjust the test for checking the reservation of overlapping memory regions to work with this corresponding change in the LMB code. Signed-off-by: Sughosh Ganu --- test/lib/lmb.c | 8 1 file changed, 4 insert

[RFC PATCH 26/31] test: lmb: run lmb tests only manually

2024-06-07 Thread Sughosh Ganu
The LMB code has been changed so that the memory reservations and allocations are now persistent and global. With this change, the design of the LMB tests needs to be changed accordingly. For now, mark the LMB tests to be run only manually. The tests won't be run as part of the unit test suite, and

[RFC PATCH 27/31] test: bdinfo: dump the global LMB memory map

2024-06-07 Thread Sughosh Ganu
The LMB code has been changed to make the memory reservations persistent and global. Make corresponding change the the lmb_test_dump_all() function to print the global LMB added and reserved memory. Signed-off-by: Sughosh Ganu --- test/cmd/bdinfo.c | 12 ++-- 1 file changed, 6 insertions

Re: [PATCH 1/3] arm: dts: k3-am642-evm-u-boot: Add remoteproc-name for PRU cores

2024-06-07 Thread Andrew Davis
On 5/23/24 1:33 AM, Anwar, Md Danish wrote: Hi Andrew, On 5/22/2024 9:38 PM, Andrew Davis wrote: On 5/22/24 1:36 AM, MD Danish Anwar wrote: Add remoteproc-name property for PRU cores. Signed-off-by: MD Danish Anwar ---   arch/arm/dts/k3-am642-evm-u-boot.dtsi | 44 +++

[RFC PATCH 28/31] cmd: bdinfo: only dump the current LMB memory

2024-06-07 Thread Sughosh Ganu
The LMB memory map is now persistent and global. There is therefore no need to add memory to the LMB memory map as part of the bdinfo command. Only dump the current available and reserved memory as part of the bdinfo command. Signed-off-by: Sughosh Ganu --- cmd/bdinfo.c | 1 - 1 file changed, 1

[RFC PATCH 29/31] temp: mx6sabresd: bump up the size limit of the board

2024-06-07 Thread Sughosh Ganu
With the changes to add notifications for any changes to the LMB map, the size of the image exceeds the limit set. Bump up the image size limit for now to get the platform to build. This is not for committing. Signed-off-by: Sughosh Ganu --- Note: @Fabio Estevam, please check if it would be okay

[RFC PATCH 30/31] temp: cmd: efi_mem: add a command to test efi alloc/free

2024-06-07 Thread Sughosh Ganu
Not for committing. Signed-off-by: Sughosh Ganu --- cmd/Makefile | 1 + cmd/efi_memory.c | 155 +++ 2 files changed, 156 insertions(+) create mode 100644 cmd/efi_memory.c diff --git a/cmd/Makefile b/cmd/Makefile index 87133cc27a..35fcc4af5a 100

[RFC PATCH 31/31] temp: cmd: efi: add a command to dump EFI memory map

2024-06-07 Thread Sughosh Ganu
Add a command to dump the EFI memory map. Not for committing. Signed-off-by: Sughosh Ganu --- cmd/Makefile| 1 + cmd/efi_map_dump.c | 28 include/efi_loader.h| 2 ++ lib/efi_loader/efi_memory.c | 32

Re: [PATCH 00/11] 'eeprom' command improvements

2024-06-07 Thread Tom Rini
On Tue, 21 May 2024 09:13:24 +0200, Marek Behún wrote: > this series contains improvements for the 'eeprom' command: > - refactors > - fixes > - improvements > - ability to use driver model EEPROMs (uclass UCLASS_I2C_EEPROM) > - more flexible EEPROM layout support > > [...] Applied to u-boot/nex

Re: [PATCH 2/2] arm64: add software pagetable walker

2024-06-07 Thread Caleb Connolly
On 07/06/2024 19:00, Tom Rini wrote: On Fri, Jun 07, 2024 at 06:51:20PM +0200, Caleb Connolly wrote: Add a basic software implementation of the ARM64 pagetable walker. This can be used for debugging U-Boot's pagetable, as well as dumping the pagetable from the previous bootloader stage if it

[PATCH v2 2/2] board: rockchip: Add FriendlyElec NanoPi R6S

2024-06-07 Thread Sebastian Kropatsch
The NanoPi R6S is a SBC by FriendlyElec based on the Rockchip RK3588s. It comes with 4GB or 8GB of RAM, a microSD card slot, 32GB eMMC storage, one RTL8211F 1GbE and two RTL8125 2.5GbE Ethernet ports, one USB 2.0 Type-A and one USB 3.0 Type-A port, a HDMI port, a 12-pin GPIO FPC connector, a fan co

[PATCH v2 1/2] board: rockchip: Add FriendlyElec NanoPi R6C

2024-06-07 Thread Sebastian Kropatsch
The NanoPi R6C is a SBC by FriendlyElec based on the Rockchip RK3588s. It comes with 4GB or 8GB of RAM, a microSD card slot, optional 32GB eMMC storage, one M.2 M-Key connector, one RTL8211F 1GbE and one RTL8125 2.5GbE Ethernet port, one USB 2.0 Type-A and one USB 3.0 Type-A port, a HDMI port, a 30

[PATCH v2 0/3] arm64: add a software pagetable walker

2024-06-07 Thread Caleb Connolly
0 - 0x17dfa] | Pages | Normal| Inner-shareable --- Changes in v2: - Document the MMU debugging features in doc/arch/arm64.rst - Mention that functions are stripped out when unused. - Link to v1: https://lore.kernel.org/r/20240607-caleb-upstreaming-v1-0-99094dabb...@linaro.org ---

[PATCH v2 1/3] arm64: mmu.h: fix PTE_TABLE_AP

2024-06-07 Thread Caleb Connolly
The APTable attribute is two bits wide according to the ARMv8-A architecture reference manual. Fix the macro accordingly. Signed-off-by: Caleb Connolly --- arch/arm/include/asm/armv8/mmu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/include/asm/armv8/mmu.h b/arch

[PATCH v2 2/3] arm64: add software pagetable walker

2024-06-07 Thread Caleb Connolly
Add a basic software implementation of the ARM64 pagetable walker. This can be used for debugging U-Boot's pagetable, as well as dumping the pagetable from the previous bootloader stage if it used one (by reading out the ttbr address). One can either call dump_pagetable() to print the pagetable to

[PATCH v2 3/3] doc: arch: arm64: describe pagetable debugging

2024-06-07 Thread Caleb Connolly
Add some brief documentation on using dump_pagetables() to print out U-Boot's pagetables during boot. Signed-off-by: Caleb Connolly --- doc/arch/arm64.rst | 37 + 1 file changed, 37 insertions(+) diff --git a/doc/arch/arm64.rst b/doc/arch/arm64.rst index 7c07

Re: [PATCH v2 3/3] doc: arch: arm64: describe pagetable debugging

2024-06-07 Thread Tom Rini
On Fri, Jun 07, 2024 at 10:42:51PM +0200, Caleb Connolly wrote: > Add some brief documentation on using dump_pagetables() to print out > U-Boot's pagetables during boot. > > Signed-off-by: Caleb Connolly > --- > doc/arch/arm64.rst | 37 + > 1 file changed, 37

Re: [PATCH v1 0/2] arm: dts: k3-am625-verdin: Enable LPDDR4 WDQS control

2024-06-07 Thread Tom Rini
On Wed, 15 May 2024 10:00:56 +0200, Emanuele Ghidoli wrote: > From: Emanuele Ghidoli > > Manually, since SysConfig tool do not have the relevant option, > set PHY_LP4_WDQS_OE_EXTEND to 1. > Since WDQS control mode is required on our modules LPDDR4, > this enables WDQS control mode 1. > > [...]

Re: [PATCH 0/3] k3-j721e: Enable OF_UPSTREAM for J721E

2024-06-07 Thread Tom Rini
On Mon, 20 May 2024 15:29:13 +0530, Neha Malcom Francis wrote: > This series was plucked out from the larger series [1] that did some > templating reformatting and also enabled OF_UPSTREAM for J721E. The > former has been kept aside till all the platforms affected have moved to > using OF_UPSTREAM

Re: [PATCH 0/4] Adding support to load secure firmware for HS devices

2024-06-07 Thread Tom Rini
On Tue, 21 May 2024 16:26:44 +0530, Udit Kumar wrote: > Some use case needs rproc firmware to be loaded at u-boot stage, > using following commands at u-boot shell, firmware could be loaded > > => setenv dorprocboot 1 > => run boot_rprocs > > For Secure devices, secure version of rproc firmware

Re: [PATCH 0/2] Add remoteproc support for J784S4 SoCs

2024-06-07 Thread Tom Rini
On Wed, 22 May 2024 10:23:29 +0530, Beleswar Padhi wrote: > This series adds remoteproc support for TI's J784S4 SoCs. The K3 J784S4 > SoCs have four dual-core R5F subsystems and four C71x DSP subsystems. > Enable the remoteproc drivers in defconfig and set the rproc firmware > names to add remotep

Re: [PATCH 0/6] PHYTEC SOM Detection API v3

2024-06-07 Thread Tom Rini
On Tue, 21 May 2024 23:18:21 -0700, Daniel Schultz wrote: > This patch series adds support for the EEPROM v3 API. > > V3 is backwards compatible to V2 and therefore, the V2 image still > exists at the beginning. Only the API version changed from 2 to 3. > > V3 is a block-based memory layout orga

Re: [PATCH v2 0/5] *** phyCORE-AM62x: DDR detection / Inject DDR timing deltas ***

2024-06-07 Thread Tom Rini
On Wed, 22 May 2024 09:55:00 +0200, Wadim Egorov wrote: > Changes in v2: > - Reabse to current next > - Add Tested-by: John Ma > - Add Kconfig option to select RAM size statically > - Make board/phytec/common/k3 always compile for CONFIG_ARCH_K3 > > v1: https://lists.denx.de/pipermail/u-

Re: [PATCH] include: extension_board: Increase overlay file name size

2024-06-07 Thread Tom Rini
On Wed, 22 May 2024 00:21:00 -0700, Daniel Schultz wrote: > Upstream overlays like the ARM64 TI > k3-am625-beagleplay-csi2-tevi-ov5640.dtso can easily have more then > 32 characters. Increase the overlay length to 64 characters to > apply overlays with longer names. > > Applied to u-boot/next,

Re: [PATCH] memory: ti-gpmc: use printf to dump settings/timings

2024-06-07 Thread Tom Rini
On Wed, 15 May 2024 15:20:08 +0300, Roger Quadros wrote: > pr_info() depends on CONFIG_LOGLEVEL > 6. If user has > enabled CONFIG_TI_GPMC_DEBUG then we should print the > GPMC settings/timings regardless of CONFIG_LOGLEVEL. > > So use printf() instead of pr_info(). > > > [...] Applied to u-boo

[PATCH v4 2/2] configs: add defconfigs for the am625-lp-sk

2024-06-07 Thread Bryan Brattlof
The am62x-lp-sk is a package and reference board spin of the am62x-sk to showcase the low-power features of the am62x SoC family. Because it so closely resembles the am62x-sk board, use the preprocessor to inherit its configuration making the needed changes for this board where necessary. Reviewed

[PATCH v4 0/2] introduce basic support for TI's am625-lp-sk

2024-06-07 Thread Bryan Brattlof
Hello Again Everyone! The am625-lp-sk is a variant of the am625-sk showcasing the low-power features of the am625 SoC Family. Because it's essentially a board and package spin of the am625-sk I've inherited the am625 configuration and overridden what was needed. This is a new spin of Nitin's orig

[PATCH v4 1/2] arm: dts: add U-Boot dtbs for the am625-lp-sk

2024-06-07 Thread Bryan Brattlof
From: Nitin Yadav Add the U-Boot device tree overrides for the am62x-lp-sk reference board. Signed-off-by: Nitin Yadav Reviewed-by: Dhruva Gole Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am62-lp-sk-binman.dtsi | 21 + arch/arm/dts/k3-am62-lp-sk-u-boot.dtsi | 17 + arch/arm/dts

[PATCH v6 02/24] doc: ti: k3: Correct spelling mistakes and improve clarity

2024-06-07 Thread Jonathan Humphreys
Few cosmetic fixes for clarity and spelling mistakes. Signed-off-by: Jonathan Humphreys --- doc/board/ti/k3.rst | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/board/ti/k3.rst b/doc/board/ti/k3.rst index a1c01d1cf02..927f3976d34 100644 --- a/doc/board/ti/k3.rst

[PATCH v6 00/24] EFI: ti: Enable EFI capsule updates

2024-06-07 Thread Jonathan Humphreys
Enable on disk capsule updates, which includes defining the firmware components (tiboot3, spl, u-boot) and enabling processing of raw capsule updates. This is enabled for several TI SoC based platforms: AM64, AM62, AM62p, AM69, BeaglePlay, J7, and BeagleboneAI. The configs to enable this are in a

[PATCH v6 11/24] configs: beagleplay: Enable DFU for MMC

2024-06-07 Thread Jonathan Humphreys
MMC DFU is required for capsule updates. Signed-off-by: Jonathan Humphreys --- configs/am62x_beagleplay_a53_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/am62x_beagleplay_a53_defconfig b/configs/am62x_beagleplay_a53_defconfig index ec62670d55d..dbdbaf98348 100644 ---

[PATCH v6 01/24] doc: uefi: capsules: Add Capsule Update porting section

2024-06-07 Thread Jonathan Humphreys
Created a capsule update porting section in the documentation that outlines the steps a board developer must do when porting from an existing reference board implementation. In particular, added a big warning that new capsule GUID's need to be defined. Signed-off-by: Jonathan Humphreys --- doc/

[PATCH v6 07/24] board: j721e: Define capsule update firmware info

2024-06-07 Thread Jonathan Humphreys
Define the firmware components updatable via EFI capsule update, including defining capsule GUIDs for the various firmware components for the SK-TDA4VM. Signed-off-by: Jonathan Humphreys --- board/ti/j721e/evm.c| 40 + include/configs/j721e_evm.h | 29

[PATCH v6 21/24] configs: j784s4_evm: Enable serial flash DFU support

2024-06-07 Thread Jonathan Humphreys
Enable serial flash DFU support for capsule update of firmware. Signed-off-by: Jonathan Humphreys --- configs/j784s4_evm_a72_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/j784s4_evm_a72_defconfig b/configs/j784s4_evm_a72_defconfig index e999a25319d..d7709f554fd 100644

[PATCH v6 14/24] configs: am62x: Enable EFI capsule update

2024-06-07 Thread Jonathan Humphreys
Enable on disk, raw capsule update. Signed-off-by: Jonathan Humphreys --- configs/am62x_evm_a53_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am62x_evm_a53_defconfig b/configs/am62x_evm_a53_defconfig index 16294a6a794..aea9aa205c9 100644 --- a/configs/am62x_evm_a53_defcon

[PATCH v6 20/24] configs: beagleboneai64: Enable EFI capsule update

2024-06-07 Thread Jonathan Humphreys
Enable on disk, raw capsule update. Signed-off-by: Jonathan Humphreys --- configs/j721e_beagleboneai64_a72_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/j721e_beagleboneai64_a72_defconfig b/configs/j721e_beagleboneai64_a72_defconfig index a354876f8c2..86c565a9211 10064

[PATCH v6 17/24] configs: am62px: Enable EFI capsule update

2024-06-07 Thread Jonathan Humphreys
Enable on disk, raw capsule update. Signed-off-by: Jonathan Humphreys --- configs/am62px_evm_a53_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/am62px_evm_a53_defconfig b/configs/am62px_evm_a53_defconfig index 9f40c9a0b3c..e1c9c8535e4 100644 --- a/configs/am62px_evm_a53_

[PATCH v6 23/24] configs: j784s4: Enable EFI capsule update

2024-06-07 Thread Jonathan Humphreys
Enable on disk, raw capsule update. Signed-off-by: Jonathan Humphreys --- configs/j784s4_evm_a72_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/j784s4_evm_a72_defconfig b/configs/j784s4_evm_a72_defconfig index d7709f554fd..c14765163f8 100644 --- a/configs/j784s4_evm_a72_

[PATCH v6 18/24] doc: board: ti: am62px: document OSPI layout

2024-06-07 Thread Jonathan Humphreys
Added OSPI flash layout diagram, as well as example commands to flash firmware to it. Signed-off-by: Jonathan Humphreys --- doc/board/ti/am62px_sk.rst | 24 1 file changed, 24 insertions(+) diff --git a/doc/board/ti/am62px_sk.rst b/doc/board/ti/am62px_sk.rst index 1f298

[PATCH v6 10/24] board: beagleplay: Define capsule update firmware info

2024-06-07 Thread Jonathan Humphreys
Define the firmware components updatable via EFI capsule update, including defining capsule GUIDs for the various firmware components for the BeaglePlay. Note this involved creating BeaglePlay's own beagleplay.h board header file instead of reusing am62_evm's. Signed-off-by: Jonathan Humphreys -

  1   2   >