Re: [PATCHv7 00/15] net/lwip: add lwip library for the network stack

2023-09-07 Thread Michal Simek
On 9/7/23 21:23, Tom Rini wrote: On Thu, Sep 07, 2023 at 05:21:18PM +0200, Michal Simek wrote: Hi, út 22. 8. 2023 v 11:38 odesílatel Maxim Uvarov napsal: Hello, I'm sending v7, with all v6 comments getting fixed. The only thing left is a pointer to timeout callback which 2 applications

Re: [PATCH v2 4/7] drivers: firmware: ti_sci: Get SCI revision only if TIFS/SYSFW is up

2023-09-07 Thread Neha Malcom Francis
Hi Manorit On 08/09/23 10:47, Manorit Chawdhry wrote: Hi Neha, On 09:04-20230908, Neha Malcom Francis wrote: Hi Nishanth On 07/09/23 20:35, Nishanth Menon wrote: On 19:44-20230907, Neha Malcom Francis wrote: While setting up necessary dependent clocks and power domains, we end up probing

Re: [PATCH v2 4/7] drivers: firmware: ti_sci: Get SCI revision only if TIFS/SYSFW is up

2023-09-07 Thread Manorit Chawdhry
Hi Neha, On 09:04-20230908, Neha Malcom Francis wrote: > Hi Nishanth > > On 07/09/23 20:35, Nishanth Menon wrote: > > On 19:44-20230907, Neha Malcom Francis wrote: > > > While setting up necessary dependent clocks and power domains, we end up > > > probing the ti

Re: [RFC 4/6] gpio: add scmi driver based on pinctrl

2023-09-07 Thread AKASHI Takahiro
Hi Simon, On Thu, Sep 07, 2023 at 06:23:05AM -0600, Simon Glass wrote: > Hi AKASHI, > > On Tue, 5 Sept 2023 at 20:41, AKASHI Takahiro > wrote: > > > > This DM-compliant driver deals with SCMI pinctrl protocol and presents > > gpio devices exposed by SCMI firmware (server). > > > > Signed-off-by:

Re: [PATCH v2 5/7] configs: j721e: Remove HBMC_AM654 config

2023-09-07 Thread Neha Malcom Francis
Hi Nishanth On 07/09/23 20:37, Nishanth Menon wrote: On 19:44-20230907, Neha Malcom Francis wrote: Remove config as kernel commit d93036b47f35 ("arm64: dts: ti: k3-j721e-mcu-wakeup: Add HyperBus node") is impacting boot. Its dependent patch [1] has not yet been merged to kernel, s

Re: [PATCH v2 4/7] drivers: firmware: ti_sci: Get SCI revision only if TIFS/SYSFW is up

2023-09-07 Thread Neha Malcom Francis
Hi Nishanth On 07/09/23 20:35, Nishanth Menon wrote: On 19:44-20230907, Neha Malcom Francis wrote: While setting up necessary dependent clocks and power domains, we end up probing the ti_sci driver before TIFS/SYSFW has been loaded in the case of legacy boot flow devices. This leads to panic

Re: [PATCH v2 3/7] arm: mach-k3: j721e_init: Move clk_k3 probe before loading TIFS

2023-09-07 Thread Neha Malcom Francis
Hi Nishanth On 07/09/23 20:33, Nishanth Menon wrote: On 19:44-20230907, Neha Malcom Francis wrote: Since we need to configure required clocks before TIFS is loaded, move clk_k3 driver probe before k3_sysfw_loader. This needs further elaboration. what kind of clocks are we talking about? what

Re: [PATCH v2 1/7] drivers: misc: k3_avs: Add linux compatible to maintain sync

2023-09-07 Thread Neha Malcom Francis
Hi Reid On 07/09/23 23:39, reidt wrote: On 10:08-20230907, Nishanth Menon wrote: On 19:44-20230907, Neha Malcom Francis wrote: The U-Boot AVS driver works on the VTM (Voltage and Thermal Management) module, also used by the Linux TI Bandgap temperature sensor driver (drivers/thermal

[PATCH v3 13/13] test: dm: add scmi command test

2023-09-07 Thread AKASHI Takahiro
In this test, "scmi" command is tested against different sub-commands. Please note that scmi command is for debug purpose and is not intended in production system. Signed-off-by: AKASHI Takahiro Reviewed-by: Simon Glass Reviewed-by: Etienne Carriere --- v3 * change char to u8 in vendor/agent na

[PATCH v3 12/13] doc: cmd: add documentation for scmi

2023-09-07 Thread AKASHI Takahiro
This is a help text for scmi command. Signed-off-by: AKASHI Takahiro Reviewed-by: Simon Glass Reviewed-by: Etienne Carriere --- v2 * add more descriptions about SCMI --- doc/usage/cmd/scmi.rst | 126 + 1 file changed, 126 insertions(+) create mode 10064

[PATCH v3 11/13] cmd: add scmi command for SCMI firmware

2023-09-07 Thread AKASHI Takahiro
This command, "scmi", may provide a command line interface to various SCMI protocols. It supports at least initially SCMI base protocol and is intended mainly for debug purpose. Signed-off-by: AKASHI Takahiro Reviewed-by: Simon Glass Reviewed-by: Etienne Carriere --- v3 * describe that argument

[PATCH v3 10/13] test: dm: add SCMI base protocol test

2023-09-07 Thread AKASHI Takahiro
Added is a new unit test for SCMI base protocol, which will exercise all the commands provided by the protocol, except SCMI_BASE_NOTIFY_ERRORS. $ ut dm scmi_base It is assumed that test.dtb is used as sandbox's device tree. Signed-off-by: AKASHI Takahiro Reviewed-by: Etienne Carriere --- v3 *

[PATCH v3 09/13] test: dm: simplify SCMI unit test on sandbox

2023-09-07 Thread AKASHI Takahiro
Adding SCMI base protocol makes it inconvenient to hold the agent instance (udevice) locally since the agent device will be re-created per each test. Just remove it and simplify the test flows. The test scenario is not changed at all. Signed-off-by: AKASHI Takahiro Reviewed-by: Simon Glass Revie

[PATCH v3 08/13] firmware: scmi: fake base protocol commands on sandbox

2023-09-07 Thread AKASHI Takahiro
This is a simple implementation of SCMI base protocol for sandbox. The main use is in SCMI unit test. Signed-off-by: AKASHI Takahiro Reviewed-by: Simon Glass Reviewed-by: Etienne Carriere --- v3 * type fixes: s/udevice/dev/ in function descriptions --- drivers/firmware/scmi/sandbox-scmi_agent.

[PATCH v3 07/13] sandbox: remove SCMI base node definition from test.dts

2023-09-07 Thread AKASHI Takahiro
SCMI base protocol is mandatory and doesn't need to be listed in a device tree. Signed-off-by: AKASHI Takahiro Reviewed-by: Simon Glass Reviewed-by: Etienne Carriere --- arch/sandbox/dts/test.dts | 4 1 file changed, 4 deletions(-) diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dt

[PATCH v3 06/13] firmware: scmi: add a check against availability of protocols

2023-09-07 Thread AKASHI Takahiro
Now that we have Base protocol support, we will be able to check if a given protocol is really supported by the SCMI server (firmware). Signed-off-by: AKASHI Takahiro Reviewed-by: Etienne Carriere --- v3 * new; import this patch from my followup patch set --- drivers/firmware/scmi/scmi_agent-uc

[PATCH v3 05/13] firmware: scmi: install base protocol to SCMI agent

2023-09-07 Thread AKASHI Takahiro
SCMI base protocol is mandatory, and once SCMI node is found in a device tree, the protocol handle (udevice) is unconditionally installed to the agent. Then basic information will be retrieved from SCMI server via the protocol and saved into the agent instance's local storage. Signed-off-by: AKASH

[PATCH v3 04/13] firmware: scmi: framework for installing additional protocols

2023-09-07 Thread AKASHI Takahiro
This framework allows SCMI protocols to be installed and bound to the agent so that the agent can manage and utilize them later. Signed-off-by: AKASHI Takahiro Reviewed-by: Simon Glass Reviewed-by: Etienne Carriere --- v3 * move "per_device_plat_auto" from a earlier patch * fix comments in "scm

[PATCH v3 03/13] firmware: scmi: move scmi_bind_protocols() backward

2023-09-07 Thread AKASHI Takahiro
Move the location of scmi_bind_protocols() backward for changes in later patches. There is no change in functionality. Signed-off-by: AKASHI Takahiro Reviewed-by: Simon Glass Reviewed-by: Etienne Carriere --- drivers/firmware/scmi/scmi_agent-uclass.c | 59 +++ 1 file change

[PATCH v3 02/13] firmware: scmi: implement SCMI base protocol

2023-09-07 Thread AKASHI Takahiro
SCMI base protocol is mandatory according to the SCMI specification. With this patch, SCMI base protocol can be accessed via SCMI transport layers. All the commands, except SCMI_BASE_NOTIFY_ERRORS, are supported. This is because U-Boot doesn't support interrupts and the current transport layers ar

[PATCH v3 01/13] scmi: refactor the code to hide a channel from devices

2023-09-07 Thread AKASHI Takahiro
The commit 85dc58289238 ("firmware: scmi: prepare uclass to pass channel reference") added an explicit parameter, channel, but it seems to make the code complex. Hiding this parameter will allow for adding a generic (protocol-agnostic) helper function, i.e. for PROTOCOL_VERSION, in a later patch.

[PATCH v3 00/13] firmware: scmi: add SCMI base protocol support

2023-09-07 Thread AKASHI Takahiro
This patch series allows users to access SCMI base protocol provided by SCMI server (platform). It will also be utilized in separate patches in the future to add sanity/validity checks for other protocols. See SCMI specification document v3.2 beta[1] for more details about SCMI base protocol. What

Re: [PATCH] clk: Add GPIO-controlled clock gate driver

2023-09-07 Thread Sean Anderson
On 8/13/23 19:51, Marek Vasut wrote: Add driver which implements GPIO-controlled clock. The GPIO is used as a gate to enable/disable the clock. This matches linux clk-gpio.c driver, however this does not implement the GPIO mux part, which in U-Boot DM would be better fit in separate driver. Sign

Re: [RFC PATCH 0/4] mtd: ubi: Enable accessing RO filesystems in UBI vols

2023-09-07 Thread Sam Edwards
Hi Heiko and Simon, Thought I'd follow-up to keep this discussion going. The main thing I would like to decide first (as it lets me start relying on it in boot scripts) would be the UBI access syntax: => ls ubi 0:rootfs /boot => ls ubi 0:2 /boot Do those look good? Should I be trying to mimi

[PATCH v6 2/2] schemas: memory: Add ECC properties

2023-09-07 Thread Simon Glass
Some memories provide ECC detection and/or correction. For software which wants to check memory, it is helpful to see which regions provide this feature. Add this as a property of the /memory nodes, since it presumably follows the hardware-level memory system. Signed-off-by: Simon Glass --- Cha

[PATCH v6 1/2] schemas: Add some common reserved-memory usages

2023-09-07 Thread Simon Glass
It is common to split firmware into 'Platform Init', which does the initial hardware setup and a "Payload" which selects the OS to be booted. Thus an handover interface is required between these two pieces. This aims to provide an small schema addition for the memory mapping needed to keep these t

Re: [PATCH v5 3/4] schemas: Add some common reserved-memory usages

2023-09-07 Thread Simon Glass
Hi Ard, On Thu, 7 Sept 2023 at 10:19, Ard Biesheuvel wrote: > > On Thu, 7 Sept 2023 at 17:57, Simon Glass wrote: > > > > Hi Ard, > > > > On Thu, 7 Sept 2023 at 09:07, Ard Biesheuvel wrote: > > > > > > On Thu, 7 Sept 2023 at 16:50, Simon Glass wrote: > > > > > > > > Hi Ard, > > > > > > > > On T

[PATCH v2] bootstd: sata: Add bootstd support for ahci sata

2023-09-07 Thread Tony Dinh
Add ahci sata bootdev and corresponding hunting function. Signed-off-by: Tony Dinh --- Changes in v2: - set devtype to sata in bootmeth_script for non-scsi SATA device boot/bootmeth_script.c | 12 ++-- drivers/ata/Makefile | 1 + drivers/ata/sata.c | 25 +++

Re: [PATCH 7/7] fs: Fix a confusing error about overlapping regions

2023-09-07 Thread Simon Glass
Hi Tom, On Thu, 7 Sept 2023 at 13:40, Tom Rini wrote: > > On Thu, Sep 07, 2023 at 06:23:06AM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Wed, 6 Sept 2023 at 11:58, Tom Rini wrote: > > > > > > On Tue, Sep 05, 2023 at 12:16:56PM -0600, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Sun

[PATCH v1] doc: Update path to source_file_format.rst

2023-09-07 Thread Joao Marcos Costa
Previously, the file extension was .txt, and it referenced the uImage.FIT directory, which no longer exists. This commit updates the path accordingly. Signed-off-by: Joao Marcos Costa --- doc/usage/fit/howto.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/usage/fit/ho

Re: [PATCH 7/7] fs: Fix a confusing error about overlapping regions

2023-09-07 Thread Tom Rini
On Thu, Sep 07, 2023 at 06:23:06AM -0600, Simon Glass wrote: > Hi Tom, > > On Wed, 6 Sept 2023 at 11:58, Tom Rini wrote: > > > > On Tue, Sep 05, 2023 at 12:16:56PM -0600, Simon Glass wrote: > > > Hi Tom, > > > > > > On Sun, 3 Sept 2023 at 13:25, Tom Rini wrote: > > > > > > > > On Sun, Sep 03, 20

Re: [PATCHv7 00/15] net/lwip: add lwip library for the network stack

2023-09-07 Thread Tom Rini
On Thu, Sep 07, 2023 at 05:21:18PM +0200, Michal Simek wrote: > Hi, > > út 22. 8. 2023 v 11:38 odesílatel Maxim Uvarov > napsal: > > > > Hello, > > > > I'm sending v7, with all v6 comments getting fixed. The only thing left is > > a pointer > > to timeout callback which 2 applications use. I wi

Re: sandbox trace errors in CI loop

2023-09-07 Thread Tom Rini
On Thu, Sep 07, 2023 at 05:30:03PM +0200, Michal Simek wrote: > Hi Simon and Tom, > > I am preparing pull request and I see that CI loop is reporting issue with > sandbox trace and I have no idea what's going wrong here. > > This is the first problematic commit but have no clue what it has to do

Re: [PATCH v2 1/7] drivers: misc: k3_avs: Add linux compatible to maintain sync

2023-09-07 Thread reidt
On 10:08-20230907, Nishanth Menon wrote: > On 19:44-20230907, Neha Malcom Francis wrote: > > The U-Boot AVS driver works on the VTM (Voltage and Thermal Management) > > module, also used by the Linux TI Bandgap temperature sensor driver > > (drivers/thermal/k3_j72xx_ban

[PATCH] drivers: misc: k3_avs: Add Linux compatibles to maintain sync

2023-09-07 Thread Reid Tonking
The ti,j7200-vtm and ti,j721e-vtm compatibles are used for voltage and thermal monitoring (VTM) by (drivers/thermal/k3_j72xx_bandgap.c) in Linux, but the same hardware is used for adaptive voltage scaling (AVS) in u-boot, This brings both drivers in line with the same compatibles. Since the j7200

[PATCH 7/7] ARM: dts: stm32: add RNG node for STM32MP13x platforms

2023-09-07 Thread Gatien Chevallier
Add RNG node for STM32MP13x platforms. Signed-off-by: Gatien Chevallier --- arch/arm/dts/stm32mp131.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/dts/stm32mp131.dtsi b/arch/arm/dts/stm32mp131.dtsi index d23bbc3639..bd7285053d 100644 --- a/arch/arm/dts/stm32mp131.dtsi

[PATCH 5/7] rng: stm32: add error concealment sequence

2023-09-07 Thread Gatien Chevallier
Seed errors can occur when using the hardware RNG. Implement the sequences to handle them. This avoids irrecoverable RNG state. Try to conceal seed errors when possible. If, despite the error concealing tries, a seed error is still present, then return an error. A clock error does not compromise

[PATCH 6/7] rng: stm32: Implement custom RNG configuration support

2023-09-07 Thread Gatien Chevallier
STM32 RNG configuration should best fit the requirements of the platform. Therefore, put a platform-specific RNG configuration field in the platform data. Default RNG configuration for STM32MP13 is the NIST certified configuration [1]. While there, fix and the RNG init sequence to support all RNG

[PATCH 3/7] rng: stm32: Implement configurable RNG clock error detection

2023-09-07 Thread Gatien Chevallier
RNG clock error detection is now enabled if the "clock-error-detect" property is set in the device tree. Signed-off-by: Gatien Chevallier --- drivers/rng/stm32_rng.c | 22 +- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/drivers/rng/stm32_rng.c b/drivers/rng/

[PATCH 4/7] rng: stm32: add RNG clock frequency restraint

2023-09-07 Thread Gatien Chevallier
In order to ensure a good RNG quality and compatibility with certified RNG configuration, add RNG clock frequency restraint. Signed-off-by: Gatien Chevallier --- drivers/rng/stm32_rng.c | 43 - 1 file changed, 38 insertions(+), 5 deletions(-) diff --git a

[PATCH 1/7] rng: stm32: rename STM32 RNG driver

2023-09-07 Thread Gatien Chevallier
Rename the RNG driver as it is usable by other STM32 platforms than the STM32MP1x ones. Rename CONFIG_RNG_STM32MP1 to CONFIG_RNG_STM32 Signed-off-by: Gatien Chevallier --- MAINTAINERS | 2 +- configs/stm32mp15_basic_defconfig | 2 +- configs/stm32mp15_de

[PATCH 2/7] configs: default activate CONFIG_RNG_STM32 for STM32MP13x platforms

2023-09-07 Thread Gatien Chevallier
Default embed this configuration. If OP-TEE PTA RNG is present as well, the priority will be given to it instead of the U-Boot driver. Signed-off-by: Gatien Chevallier --- configs/stm32mp13_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/stm32mp13_defconfig b/configs/stm32m

Re: [PATCH v2 3/4] cmd: kaslrseed: Use common API to fixup FDT

2023-09-07 Thread Chris Morgan
On Thu, Aug 31, 2023 at 01:02:02PM -0600, Simon Glass wrote: > Hi Sean, > > On Tue, 29 Aug 2023 at 14:37, wrote: > > > > From: Sean Edmond > > > > Use the newly introduced common API fdt_fixup_kaslr_seed() in the > > kaslrseed command. > > > > Signed-off-by: Sean Edmond > > --- > > cmd/kaslrse

[PATCH v2 7/7] arm: dts: k3-j721e: Sync with v6.5-rc1

2023-09-07 Thread Neha Malcom Francis
Sync k3-j721e DTS with kernel.org v6.5-rc1. Signed-off-by: Neha Malcom Francis --- .../k3-j721e-common-proc-board-u-boot.dtsi| 146 +-- arch/arm/dts/k3-j721e-common-proc-board.dts | 483 ++--- arch/arm/dts/k3-j721e-main.dtsi | 974 -- arch/arm/dts/k3-j721e

Re: [PATCH v2 1/4] buildman: Keep all common output files

2023-09-07 Thread Tom Rini
On Thu, Sep 07, 2023 at 10:00:17AM -0600, Simon Glass wrote: > Make a list of common output extensions and use it to ensure that the -k > option preserves all of these. > > Signed-off-by: Simon Glass > Suggested-by: Tom Rini Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP sign

Re: [PATCH v5 4/4] memory: Add ECC properties

2023-09-07 Thread Rob Herring
On Wed, Aug 30, 2023 at 6:18 PM Simon Glass wrote: > > Some memories provide ECC detection and/or correction. For software which > wants to check memory, it is helpful to see which regions provide this > feature. > > Add this as a property of the /memory nodes, since it presumably follows > the ha

[PATCH 1/1] test: build dependency for event unit tests

2023-09-07 Thread Heinrich Schuchardt
The test_event_base and test_event_probe unit tests use function event_register() which depends on CONFIG_EVENT_DYNAMIC=y. Fixes: 7d02645fe4c0 ("event: Add a simple test") Signed-off-by: Heinrich Schuchardt --- test/common/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --gi

Re: [PATCH v5 1/4] Add reserved-memory

2023-09-07 Thread Rob Herring
On Wed, Aug 30, 2023 at 6:18 PM Simon Glass wrote: > > Bring in this file from Linux v6.5 > > Signed-off-by: Simon Glass > --- > > (no changes since v4) > > Changes in v4: > - New patch > > .../reserved-memory/reserved-memory.yaml | 181 ++ > 1 file changed, 181 insertions(+

Re: [PATCH v5 3/4] schemas: Add some common reserved-memory usages

2023-09-07 Thread Ard Biesheuvel
On Thu, 7 Sept 2023 at 17:57, Simon Glass wrote: > > Hi Ard, > > On Thu, 7 Sept 2023 at 09:07, Ard Biesheuvel wrote: > > > > On Thu, 7 Sept 2023 at 16:50, Simon Glass wrote: > > > > > > Hi Ard, > > > > > > On Thu, 7 Sept 2023 at 08:12, Ard Biesheuvel wrote: > > > > > > > > On Thu, 7 Sept 2023 a

[PATCH v2 4/4] kontron_sl28: Use u-boot-update.bin instead of u-boot.update

2023-09-07 Thread Simon Glass
A '.update' extension does not get preserved by buildman, so change it. Signed-off-by: Simon Glass Acked-by: Michael Walle --- (no changes since v1) arch/arm/dts/fsl-ls1028a-kontron-sl28-u-boot.dtsi | 2 +- doc/board/kontron/sl28.rst| 4 ++-- 2 files changed, 3 inserti

[PATCH v2 2/4] buildman: Show progress when regenerating the board.cfg file

2023-09-07 Thread Simon Glass
This can take a while, so show a message when starting. Signed-off-by: Simon Glass Reported-by Tom Rini --- (no changes since v1) tools/buildman/boards.py | 15 --- tools/buildman/control.py | 3 ++- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/tools/buildman/

[PATCH v2 1/4] buildman: Keep all common output files

2023-09-07 Thread Simon Glass
Make a list of common output extensions and use it to ensure that the -k option preserves all of these. Signed-off-by: Simon Glass Suggested-by: Tom Rini --- Changes in v2: - Redo patch based on dropping the binman restriction tools/buildman/builderthread.py | 12 1 file changed,

[PATCH v2 3/4] buildman: Start the clock when the build starts

2023-09-07 Thread Simon Glass
The Kconfig and maintainer processing can take a while, sometimes 5 seconds or more. This skews the timing printed by buildmand when the build completes. Start the clock when the threads start to avoid this problem. Signed-off-by: Simon Glass Suggested-by: Tom Rini --- (no changes since v1) t

[PATCH v2 0/4] Attempt to collect standard extensions for build output

2023-09-07 Thread Simon Glass
We would like 'buildman -k' to keep the build outputs. This series tries to do this by adding more common extensions to the list. It also includes a few minor fixes. Changes in v2: - Redo patch based on dropping the binman restriction Simon Glass (4): buildman: Keep all common output files b

[PATCH v4 22/22] boot: Join ARCH_FIXUP_FDT_MEMORY with related options

2023-09-07 Thread Simon Glass
Move this to be with the other devicetree-fixup options. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Drop patch 'Move SYS_RX_ETH_BUFFER into the network menu' boot/Kconfig | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/boot/Kconf

[PATCH v4 21/22] boot: Drop CMD_MTDPARTS condition for FDT_FIXUP_PARTITIONS

2023-09-07 Thread Simon Glass
This is not needed, so drop it. Also use a capital 'O' for the option, while we are here. Signed-off-by: Simon Glass Suggested-by: Tom Rini --- (no changes since v3) Changes in v3: - Add new patch to drop CMD_MTDPARTS condition for FDT_FIXUP_PARTITIONS boot/Kconfig | 3 +-- 1 file changed, 1

[PATCH v4 20/22] boot: Join FDT_FIXUP_PARTITIONS with related options

2023-09-07 Thread Simon Glass
Move this to be with the other devicetree-fixup options. Signed-off-by: Simon Glass --- (no changes since v1) boot/Kconfig | 8 lib/Kconfig | 9 - 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/boot/Kconfig b/boot/Kconfig index 2dd05e2e1661..a1592a74e624 10064

[PATCH v4 19/22] Make ARCH_FIXUP_FDT_MEMORY depend on OF_LIBFDT

2023-09-07 Thread Simon Glass
We need CONFIG_OF_LIBFDT to be able to do fdt fixups, so add that condition. Signed-off-by: Simon Glass --- Changes in v4: - Add new patch to make ARCH_FIXUP_FDT_MEMORY depend on OF_LIBFDT boot/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/Kconfig b/boot/Kcon

[PATCH v4 18/22] Mark DISTRO_DEFAULTS as deprecated

2023-09-07 Thread Simon Glass
Standard boot has been in place for a while now. Quite a few problems have been found and fixed. It seems like a good time to mark the script-based approach as deprecated and encourage people to use standard boot. Update the DISTRO_DEFAULTS Kconfig to encourage people to move to standard boot, whi

[PATCH v4 17/22] Kconfig: Move TEXT_BASE et al under general setup

2023-09-07 Thread Simon Glass
These don't relate to booting. Move them out of there and into the same place as the other related settings. Signed-off-by: Simon Glass --- (no changes since v1) Kconfig | 65 boot/Kconfig | 65 --

[PATCH v4 16/22] boot: Make standard boot a menu

2023-09-07 Thread Simon Glass
Collect these options into a menu for easier viewing. Signed-off-by: Simon Glass --- (no changes since v1) boot/Kconfig | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/boot/Kconfig b/boot/Kconfig index 9b09d636d057..a885fea692f6 100644 --- a/boot/Kconfig +++ b/bo

[PATCH v4 15/22] Kconfig: Move SPL_FIT under FIT

2023-09-07 Thread Simon Glass
This option already depends on FIT, so put it under the same umbrella, so that it appears in the FIT menu. Signed-off-by: Simon Glass --- (no changes since v1) boot/Kconfig | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/boot/Kconfig b/boot/Kconfig index f564cb8dd8

[PATCH v4 14/22] spl: Drop SPL/TPL_RAM_SUPPORT option for SPL_LOAD_FIT_ADDRESS

2023-09-07 Thread Simon Glass
All boards which actually define this address enable SPL_LOAD_FIT, or at least just rely on the default value of 0. So drop the dependency. Signed-off-by: Simon Glass --- Changes in v4: - Add new patch to drop SPL/TPL_RAM_SUPPORT option for SPL_LOAD_FIT_ADDRESS boot/Kconfig | 2 +- 1 file chan

[PATCH v4 11/22] boot: Rename Android-boot text

2023-09-07 Thread Simon Glass
Phrases like 'Enable support for' are pointless since this is an option which enables things. Drop that part so it is easier to follow. Signed-off-by: Simon Glass --- (no changes since v1) boot/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/Kconfig b/boot/Kcon

[PATCH v4 13/22] spl: Tidy up load address in spl_ram

2023-09-07 Thread Simon Glass
This CONFIG is used but is not given a value by some boards. Use a default value of 0 explicitly, rather than relying on the 0 value provided by CONFIG_SPL_LOAD_FIT_ADDRESS This will allow us to make SPL_LOAD_FIT_ADDRESS depend on SPL_LOAD_FIT as it should. Signed-off-by: Simon Glass --- (no ch

[PATCH v4 12/22] Kconfig: Create a menu for FIT

2023-09-07 Thread Simon Glass
This is a major feature with a lot of options. Give it its own menu to tidy up the 'make menuconfig' display. Drop the 'depends on FIT' pieces which are now unnecessary, since they are now bracketed by an 'if FIT'. Leave CONFIG_TIMESTAMP out since it affects legacy images too. Signed-off-by: Simo

[PATCH v4 10/22] boot: Move some other fdt-fixup options to the same menu

2023-09-07 Thread Simon Glass
Move more options relating to fixing up a device tree into the new devicetree-fixup menu. Signed-off-by: Simon Glass --- (no changes since v1) boot/Kconfig | 55 +--- 1 file changed, 26 insertions(+), 29 deletions(-) diff --git a/boot/Kconfig b/

[PATCH v4 09/22] Move fdt_simplefb to boot/

2023-09-07 Thread Simon Glass
This relates to booting, so move it there. Create a new Kconfig menu for things related to devicetree fixup. Signed-off-by: Simon Glass --- (no changes since v1) boot/Kconfig| 16 boot/Makefile | 1 + {common => boot}/fdt_simplefb.c | 0

[PATCH v4 08/22] boot: Move fdt_support to boot/

2023-09-07 Thread Simon Glass
This relates to booting since it fixes up the devicetree for the OS. Move it into the boot/ directory. Signed-off-by: Simon Glass --- (no changes since v1) boot/Makefile | 3 +++ {common => boot}/fdt_support.c | 0 common/Makefile| 2 -- 3 files changed, 3 inse

[PATCH v4 07/22] test: Move POST under a renamed Testing section

2023-09-07 Thread Simon Glass
Rename Unit tests to Testing, since it is a stretch to describe some of the tests as unit tests. Move POST there as well, so it doesn't show up by itself in the top-level menu. Signed-off-by: Simon Glass --- (no changes since v1) test/Kconfig | 12 ++-- 1 file changed, 6 insertions(+),

[PATCH v4 06/22] FWU: Avoid showing an unselectable menu option

2023-09-07 Thread Simon Glass
Use a menuconfig to avoid showing a menu which cannot be selected in many cases. Signed-off-by: Simon Glass Acked-by: Sughosh Ganu Reviewed-by: Tom Rini --- (no changes since v3) Changes in v3: - Drop comment about an update/ directory Changes in v2: - Fix FMU typo in the subject - Drop now-

[PATCH v4 05/22] video: Move BMP options and code to video directory

2023-09-07 Thread Simon Glass
Put the options and the common BMP code with the other related Kconfig options in the drivers/video directory. Signed-off-by: Simon Glass --- (no changes since v1) drivers/video/Kconfig | 11 +++ drivers/video/Makefile | 2 ++ 2 files changed, 13 insertions(+) diff --git a/drivers/v

[PATCH v4 04/22] video: Move the BMP options

2023-09-07 Thread Simon Glass
These appear prominently in the main menu at present. Move them to the video Kconfig where they belong. Signed-off-by: Simon Glass --- Changes in v4: - Just move these options to driver/video for later consideration common/Kconfig| 11 --- drivers/video/Kconfig | 16 +++

[PATCH v4 03/22] video: Move bmp code to drivers/video

2023-09-07 Thread Simon Glass
This relates to graphics which is only active when CONFIG_VIDEO is enabled. Move it into that directory. There is no harm in compiling it always, since it if not used it will be dropped by the linker. So drop use of the BMP Kconfig. Signed-off-by: Simon Glass --- (no changes since v2) Changes

[PATCH v4 01/22] lib: rational: Move the Kconfigs into the correct place

2023-09-07 Thread Simon Glass
These should not be part of the 'system tables' menu. Move them outside on their own. Signed-off-by: Simon Glass Fixes: 7d0f3fbb93c ("lib: rational: copy the rational fraction lib...") --- (no changes since v1) lib/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a

[PATCH v4 02/22] Kconfig: Move API into general setup

2023-09-07 Thread Simon Glass
This is perhaps not a commonly used feature so should not have its own option in the main menu. Move it under general setup. Signed-off-by: Simon Glass --- (no changes since v1) Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Kconfig b/Kconfig index 91170bf8d223

[PATCH v4 00/22] Kconfig: Tidy up some options

2023-09-07 Thread Simon Glass
The view from 'make menuconfig' is confusing in places. This series aims to improve the top-level menu and also the boot menu. It also groups FDT-fixup options tegether, at least the ones I could fine. Finally this series marks the distro scripts as deprecated, so people have a pointer to standar

[PATCH v2 9/9] x86: doc: Update the list of supported Chromebooks

2023-09-07 Thread Simon Glass
One is missing, so add it. Also mention the SoC used in each. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- (no changes since v1) doc/arch/x86.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/arch/x86.rst b/doc/arch/x86.rst index 725a1ae58639..89d3e7ba0e

[PATCH v2 8/9] x86: dm: Mark driver model as dead when disabling CAR

2023-09-07 Thread Simon Glass
When turning off CAR, set the flag to make sure that nothing tries to use driver model in SPL before jumping to U-Bot proper, since its tables are in CAR. Signed-off-by: Simon Glass --- Changes in v2: - Add new patch to mark driver model as dead when disabling CAR arch/x86/lib/spl.c | 3 +++ 1

[PATCH v2 4/9] x86: samus_tpl: Correct text base and alloc sizes

2023-09-07 Thread Simon Glass
Make sure that CONFIG_X86_OFFSET_U_BOOT is the same as CONFIG_TEXT_BASE as it is changing CONFIG_X86_OFFSET_U_BOOT Samus boots into U-Boot proper in flash, not RAM. Also expand the SPL malloc() size a little, to avoid an error. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2

[PATCH v2 7/9] x86: broadwell: Set up MTRRs

2023-09-07 Thread Simon Glass
The current condition does not handle the samus_tpl case where it sets up the RAM in SPL but needs to commit the MTRRs in U-Boot proper. Add another case to handle this and update the comment. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/lib/init_helpers.c | 7 +++ 1 file

[PATCH v2 6/9] x86: broadwell: Avoid initing the CPU twice

2023-09-07 Thread Simon Glass
When TPL has already set up the CPU, don't do it again. This existing code actually has this backwards, so fix it. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- (no changes since v1) arch/x86/cpu/broadwell/cpu.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --g

[PATCH v2 5/9] x86: spl: Change the condition for copying U-Boot to RAM

2023-09-07 Thread Simon Glass
Make this depend on whether the address matches the offset, rather than a particular board build. For samus_tpl we don't need to copy, for example. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- (no changes since v1) arch/x86/lib/spl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(

[PATCH v2 3/9] x86: Add some log categories

2023-09-07 Thread Simon Glass
Add some missing log categories to a few files. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- (no changes since v1) arch/x86/cpu/broadwell/sdram.c | 2 ++ arch/x86/lib/tpl.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/arch/x86/cpu/broadwell/sdram.c b/arch/x86/cpu

[PATCH v2 2/9] x86: broadwell: Show the memory delay

2023-09-07 Thread Simon Glass
Samus only takes 7 seconds but it is long enough to think it has hung. Add a message about what it is doing, similar to the approach on coral. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- (no changes since v1) arch/x86/cpu/intel_common/mrc.c | 18 +- arch/x86/dts/chr

[PATCH v2 1/9] dm: core: Allow marking driver model as dead

2023-09-07 Thread Simon Glass
On x86 devices we use CAR (Cache-As-RAM) to hold the malloc() region in SPL, since SDRAM is not set up yet. This means that driver model stores its tables in this region. When preparing to jump from SPL to U-Boot proper, we must disable CAR, so that the CPU can uses the caches normally. This means

[PATCH v2 0/9] x86: Fixes for chromebook_link64 and chromebook_samus_tpl

2023-09-07 Thread Simon Glass
These boards have various problems which prevent them from booting. In the case of link there was a recent regression with PCI probing added to SPL. For samus_tpl it needs a few tweaks to get things back up and running. This series resolves all known issues. For v2, the 'Avoid starting up PCI aut

Re: [PATCH 3/3] arm: dts: j7200: dtb sync with Linux 6.5-rc1

2023-09-07 Thread reidt
On 10:03-20230907, Manorit Chawdhry wrote: > Hi Reid, > > On 13:13-20230905, Reid Tonking wrote: > > Sync j7200 device tree files with Linux 6.5-rc1 > > > > - k3-j7200-r5-common-proc-board.dts now inherits from > > k3-j7200-common-proc-board.dts inst

Re: [PATCH v2 3/4] cmd: kaslrseed: Use common API to fixup FDT

2023-09-07 Thread Simon Glass
Hi Chris, On Thu, 7 Sept 2023 at 09:45, Chris Morgan wrote: > > On Thu, Aug 31, 2023 at 01:02:02PM -0600, Simon Glass wrote: > > Hi Sean, > > > > On Tue, 29 Aug 2023 at 14:37, wrote: > > > > > > From: Sean Edmond > > > > > > Use the newly introduced common API fdt_fixup_kaslr_seed() in the > >

Re: [PATCH] cmd: xxd: move xxd into shell commands

2023-09-07 Thread Simon Glass
On Thu, 7 Sept 2023 at 08:52, Roger Knecht wrote: > > Move xxd into shell command section. > > Signed-off-by: Roger Knecht > --- > cmd/Kconfig | 10 +- > 1 file changed, 5 insertions(+), 5 deletions(-) Reviewed-by: Simon Glass

Re: [PATCH] global: Use proper project name U-Boot (next2)

2023-09-07 Thread Simon Glass
On Thu, 7 Sept 2023 at 07:00, Michal Simek wrote: > > Use proper project name in README, rst and comment. > Done in connection to commit bb922ca3eb4b ("global: Use proper project name > U-Boot (next)"). > > Signed-off-by: Michal Simek > --- > > board/cobra5272/README | 18 ++

Re: [PATCH] sandbox: test: Fix typo in test.dts

2023-09-07 Thread Simon Glass
On Thu, 7 Sept 2023 at 06:56, Michal Simek wrote: > > s/parititon/partition/ > > Signed-off-by: Michal Simek > --- > > arch/sandbox/dts/test.dts | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Simon Glass

Re: [PATCH v2] bootstd: Make efi_mgr bootmeth work for non-sandbox setups

2023-09-07 Thread Simon Glass
Hi Mark, On Thu, 7 Sept 2023 at 07:08, Mark Kettenis wrote: > > > From: Simon Glass > > Date: Thu, 7 Sep 2023 06:23:10 -0600 > > > > Hi Mark, > > > > On Sun, 3 Sept 2023 at 14:40, Mark Kettenis wrote: > > > > > > Enable the bootflow based on this bootmeth if the BootOrder EFI > > > variable is

Re: [PATCH v5 3/4] schemas: Add some common reserved-memory usages

2023-09-07 Thread Simon Glass
Hi Ard, On Thu, 7 Sept 2023 at 09:07, Ard Biesheuvel wrote: > > On Thu, 7 Sept 2023 at 16:50, Simon Glass wrote: > > > > Hi Ard, > > > > On Thu, 7 Sept 2023 at 08:12, Ard Biesheuvel wrote: > > > > > > On Thu, 7 Sept 2023 at 15:56, Simon Glass wrote: > > > > > > > > Hi Ard, > > > > > > > > On T

Re: [PATCHv7 00/15] net/lwip: add lwip library for the network stack

2023-09-07 Thread Maxim Uvarov
On Thu, 7 Sept 2023 at 21:21, Michal Simek wrote: > Hi, > > út 22. 8. 2023 v 11:38 odesílatel Maxim Uvarov > napsal: > > > > Hello, > > > > I'm sending v7, with all v6 comments getting fixed. The only thing left > is a pointer > > to timeout callback which 2 applications use. I will rework this

Re: [PATCH v5 3/4] schemas: Add some common reserved-memory usages

2023-09-07 Thread Rob Herring
On Thu, Sep 7, 2023 at 8:56 AM Simon Glass wrote: > > Hi Ard, > > On Thu, 7 Sept 2023 at 07:31, Ard Biesheuvel wrote: > > > > On Wed, 6 Sept 2023 at 18:50, Simon Glass wrote: > > > > > > Hi Ard, > > > > > > On Wed, Sep 6, 2023, 10:09 Ard Biesheuvel wrote: > > >> > > >> On Wed, 6 Sept 2023 at 16

sandbox trace errors in CI loop

2023-09-07 Thread Michal Simek
Hi Simon and Tom, I am preparing pull request and I see that CI loop is reporting issue with sandbox trace and I have no idea what's going wrong here. This is the first problematic commit but have no clue what it has to do with trace. https://source.denx.de/u-boot/custodians/u-boot-microblaz

Re: [PATCHv7 00/15] net/lwip: add lwip library for the network stack

2023-09-07 Thread Michal Simek
Hi, út 22. 8. 2023 v 11:38 odesílatel Maxim Uvarov napsal: > > Hello, > > I'm sending v7, with all v6 comments getting fixed. The only thing left is a > pointer > to timeout callback which 2 applications use. I will rework this timeout > in next v8. I started take a look at it, and want to fix t

Re: [PATCH v2 1/7] drivers: misc: k3_avs: Add linux compatible to maintain sync

2023-09-07 Thread Nishanth Menon
On 19:44-20230907, Neha Malcom Francis wrote: > The U-Boot AVS driver works on the VTM (Voltage and Thermal Management) > module, also used by the Linux TI Bandgap temperature sensor driver > (drivers/thermal/k3_j72xx_bandgap.c). Although the purpose and > functionalities that these t

Re: [PATCH v5 3/4] schemas: Add some common reserved-memory usages

2023-09-07 Thread Ard Biesheuvel
On Thu, 7 Sept 2023 at 16:50, Simon Glass wrote: > > Hi Ard, > > On Thu, 7 Sept 2023 at 08:12, Ard Biesheuvel wrote: > > > > On Thu, 7 Sept 2023 at 15:56, Simon Glass wrote: > > > > > > Hi Ard, > > > > > > On Thu, 7 Sept 2023 at 07:31, Ard Biesheuvel wrote: > > > > > > > > On Wed, 6 Sept 2023 a

  1   2   >