Re: [PATCH 2/4 v2] efi_loader: check the status of disconnected drivers

2023-06-19 Thread Heinrich Schuchardt
Am 20. Juni 2023 08:19:29 MESZ schrieb Ilias Apalodimas : >efi_uninstall_protocol() calls efi_disconnect_all_drivers() but never >checks the return value. Instead it tries to identify protocols that >are still open after closing the ones that were opened with >EFI_OPEN_PROTOCOL_BY_HANDLE_PROTO

Re: [UBOOT PATCH 1/3] usb: dwc3: core: improve reset sequence

2023-06-19 Thread Michal Simek
On 6/19/23 19:04, Eugen Hristev wrote: On 6/19/23 19:07, Marek Vasut wrote: On 6/19/23 15:26, Eugen Hristev wrote: On 5/8/23 06:00, Venkatesh Yadav Abbarapu wrote: [ Felipe: Ported from Linux kernel commit   f59dcab17629 ("usb: dwc3: core: improve reset sequence") ] According to Synops

[PATCH 4/4 v2] efi_selftests: add extra testcases on controller handling

2023-06-19 Thread Ilias Apalodimas
We recently fixed a few issues wrt to controller handling. Add a few test cases to cover the new code. - return EFI_DEVICE_ERROR the first time the protocol interface of the controller is uninstalled, after all the children have been disconnected. This should make the drivers reconnect - add

[PATCH 2/4 v2] efi_loader: check the status of disconnected drivers

2023-06-19 Thread Ilias Apalodimas
efi_uninstall_protocol() calls efi_disconnect_all_drivers() but never checks the return value. Instead it tries to identify protocols that are still open after closing the ones that were opened with EFI_OPEN_PROTOCOL_BY_HANDLE_PROTOCOL, EFI_OPEN_PROTOCOL_GET_PROTOCOL and EFI_OPEN_PROTOCOL_TEST_PRO

[PATCH 3/4 v2] efi_loader: fix the return codes of UninstallProtocol

2023-06-19 Thread Ilias Apalodimas
Up to now we did not check the return value of DisconnectController. A previous patch is fixing that taking into account what happened during the controller disconnect. But that check takes place before our code is trying to figure out if the interface exists to begin with. In case a driver is no

[PATCH 1/4 v2] efi_loader: reconnect drivers on failure

2023-06-19 Thread Ilias Apalodimas
efi_disconnect_controller() doesn't reconnect drivers in case of failure. Reconnect the disconnected drivers properly Signed-off-by: Ilias Apalodimas --- lib/efi_loader/efi_boottime.c | 31 ++- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/lib/efi_lo

[PATCH 0/4 v2] Reconnect controllers on failues

2023-06-19 Thread Ilias Apalodimas
Hi, This is a resend of [0] trying to reconnect drivers gracefully in case of a protocol removal failure. Changes since v1: - Fix an existing memory leak when uninstalling a protocol. The opened protocol information was never released - Drop a patch that was incorrectly trying to free protocols

[PATCH] ci: riscv: Update OpenSBI to v1.2

2023-06-19 Thread Bin Meng
Use the latest OpenSBI v1.2 release binaries for the RISC-V CI. Signed-off-by: Bin Meng --- .azure-pipelines.yml | 8 .gitlab-ci.yml | 8 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index 3c1846a5bc..39536e1d

Re: [PATCH 1/2] imx: hab: Fix a couple of build warnings with DEBUG enabled

2023-06-19 Thread Heiko Schocher
Hello Marek, On 20.06.23 00:45, Marek Vasut wrote: > In case the DEBUG is enabled, these three lines warn about cast of > pointer to integer of different size, add the missing casts to fix > the warnings. > > Signed-off-by: Marek Vasut > --- > Cc: "NXP i.MX U-Boot Team" > Cc: Fabio Estevam > C

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

2023-06-19 Thread Heiko Schocher
Hello Marek, On 20.06.23 00:41, Marek Vasut wrote: > Check whether the loaded image or entry point does not overlap SPL. > > Signed-off-by: Marek Vasut > --- > Cc: "NXP i.MX U-Boot Team" > Cc: Fabio Estevam > Cc: Heiko Schocher > Cc: Heinrich Schuchardt > Cc: Rasmus Villemoes > Cc: Simon Gl

Re: [PATCH 1/3] riscv: timer: Update the sifive clint timer driver to support aclint

2023-06-19 Thread Bin Meng
Hi Rick, On Tue, Jun 13, 2023 at 9:46 AM Rick Chen wrote: > > Hi Bin, > > > From: Bin Meng > > Sent: Monday, June 12, 2023 3:36 PM > > To: u-boot@lists.denx.de > > Cc: Anup Patel ; Atish Patra ; > > Bin Meng ; Palmer Dabbelt ; Paul > > Walmsley ; Rick Jian-Zhi Chen(陳建志) > > > > Subject: [PAT

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

2023-06-19 Thread Peng Fan
> Subject: [PATCH v3 3/3] mmc: renesas-sdhi: Send stop when MMC tuning > command fails > > From: Hai Pham > > When tuning command (CMD21) fails with command error, call > mmc_send_stop_transmission() to send stop command (CMD12). > > Reviewed-by: Takeshi Kihara > Reviewed-by: Marek Vasut > Si

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

2023-06-19 Thread Peng Fan
> Subject: [PATCH v3 2/3] mmc: Introduce mmc_send_stop_transmission() > > From: Hai Pham > > If a tuning command times out, the card could still be processing it, which > will cause problems for recovery. The eMMC specification section > 6.6 Data transfer mode (cont’d) claims that CMD12 can be u

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

2023-06-19 Thread Peng Fan
> -Original Message- > From: Marek Vasut > Sent: 2023年6月20日 6:38 > To: u-boot@lists.denx.de > Cc: Marek Vasut ; Ying-Chun Liu > (PaulLiu) ; Hai Pham ; > Jaehoon Chung ; Loic Poulain > ; Peng Fan ; Simon Glass > ; Takeshi Kihara > Subject: [PATCH v3 1/3] mmc: Fix MMC_CMD_STOP_TRANSMISSIO

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

2023-06-19 Thread Peng Fan
> Subject: [PATCH] spl: spl_legacy: Add extra address checks > > Check whether the loaded image or entry point does not overlap SPL. > > Signed-off-by: Marek Vasut > --- > Cc: "NXP i.MX U-Boot Team" > Cc: Fabio Estevam > Cc: Heiko Schocher > Cc: Heinrich Schuchardt > Cc: Rasmus Villemoes >

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

2023-06-19 Thread Fabio Estevam
On Mon, Jun 19, 2023 at 7:41 PM Marek Vasut wrote: > > Check whether the loaded image or entry point does not overlap SPL. > > Signed-off-by: Marek Vasut Reviewed-by: Fabio Estevam

Re: [PATCH 2/2] imx: hab: Simplify the mechanism

2023-06-19 Thread Fabio Estevam
On Mon, Jun 19, 2023 at 7:45 PM Marek Vasut wrote: > > The current mechanism is unnecessarily complex. Simplify the whole mechanism > such that the entire fitImage is signed, IVT is placed at the end, followed > by CSF, and this entire bundle is also authenticated. This makes the signing > scripti

Re: [PATCH 1/2] imx: hab: Fix a couple of build warnings with DEBUG enabled

2023-06-19 Thread Fabio Estevam
On Mon, Jun 19, 2023 at 7:45 PM Marek Vasut wrote: > > In case the DEBUG is enabled, these three lines warn about cast of > pointer to integer of different size, add the missing casts to fix > the warnings. > > Signed-off-by: Marek Vasut Reviewed-by: Fabio Estevam

Re: [SPAM] Re: [PATCH] cmd: usb: Prevent reset in usb tree/info command

2023-06-19 Thread Marek Vasut
On 6/13/23 08:52, Xavier Drudis Ferran wrote: Ok. New test. This uses yesterday morning's next branch. commit 5b589e139620214f Merge: cc5a940923 32d2461e04 Merge branch 'next_net/phy_connect_dev' USB2 does not work for rk3399 in next (fixes are in master, thanks), but USB3 is enough. I com

[PATCH v4 1/1] CI: add test/usage_of_is_enabled_check.sh

2023-06-19 Thread Troy Kisky
Add script usage_of_is_enabled_check to print any configs that use CONFIG_IS_ENABLED instead of IS_ENABLED and vice versa. Add usage_of_is_enabled_commit.sh to generate commits to fix the above issues. You can remove entries from test/usage_of_is_enabled_todo.txt or the entire file and then run t

[PATCH v4 0/1] CONFIG_IS_ENABLED vs IS_ENABLED

2023-06-19 Thread Troy Kisky
This patch set gets ready to checks the usage of CONFIG_IS_ENABLED/IS_ENABLED. After the set has been applied, you can delete test/usage_of_is_enabled_todo.txt and run test/usage_of_is_enabled_commit.sh The script test/usage_of_is_enabled_check.sh checks for new questionable uses of CONFIG_IS_E

[PATCH 2/2] net: phy: Release PHY from GPIO reset if applicable

2023-06-19 Thread Marek Vasut
In case the PHY DT node describes GPIO reset and no other method of detecting the PHY succeeded, release the PHY from reset using its reset GPIO before reading out the PHY IDs as a last resort. This way there is slightly better chance of successful PHY ID readout. Signed-off-by: Marek Vasut --- C

[PATCH 1/2] net: phy: Factor out PHY GPIO reset code

2023-06-19 Thread Marek Vasut
Pull the PHY GPIO reset code into separate function, since this is and will be reused multiple times. Set up default reset assert and deassert timing to generous 20ms and 1ms for maximum compatibility in case those DT properties are missing. Signed-off-by: Marek Vasut --- Cc: Joe Hershberger Cc:

[PATCH 2/2] imx: hab: Simplify the mechanism

2023-06-19 Thread Marek Vasut
The current mechanism is unnecessarily complex. Simplify the whole mechanism such that the entire fitImage is signed, IVT is placed at the end, followed by CSF, and this entire bundle is also authenticated. This makes the signing scripting far simpler. Signed-off-by: Marek Vasut --- Cc: "NXP i.MX

[PATCH 1/2] imx: hab: Fix a couple of build warnings with DEBUG enabled

2023-06-19 Thread Marek Vasut
In case the DEBUG is enabled, these three lines warn about cast of pointer to integer of different size, add the missing casts to fix the warnings. Signed-off-by: Marek Vasut --- Cc: "NXP i.MX U-Boot Team" Cc: Fabio Estevam Cc: Heiko Schocher Cc: Heinrich Schuchardt Cc: Rasmus Villemoes Cc:

[PATCH] ARM: rmobile: Update little‐endian byte order option in srec_cat command

2023-06-19 Thread Marek Vasut
From: Hai Pham Since srecord v1.60, option "-Little_Endian_CONSTant" is deprecated. Fix the build warnings by updating little‐endian byte order option in srec_cat command when generating loader header. Reviewed-by: Marek Vasut Signed-off-by: Hai Pham Signed-off-by: Marek Vasut --- arch/arm/m

[PATCH] clk: renesas: Tear clock controller down last before booting OS

2023-06-19 Thread Marek Vasut
Once all the other drivers got torn down in preparation for the OS to start, tear down the clock controller last. The clock controller must be torn down last as some of the clock which get turned off might have still been needed during the teardown stage of the other drivers. Signed-off-by: Marek

[PATCH v2 6/6] test: Find leftovers after clean/mrproper

2023-06-19 Thread Tobias Deiminger
Docs describe 'make clean' to delete most generated files, 'make mrproper' to delete current configuration and all generated files. This test tries to assert it. Idea is to search remaining files by patterns in copies of the initial out-of-source build, which has two advantages: - looking in an ou

[PATCH v2 5/6] Kbuild: Fix cleanup of *.dtbo for sandbox

2023-06-19 Thread Tobias Deiminger
sandbox can generate DT overlays, but they were not cleaned. Extend the explicit clean-files list accordingly. Fixes: 95300f203f32 ("pytest: add sandbox test for "extension" command") Signed-off-by: Tobias Deiminger --- arch/sandbox/dts/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[PATCH v2 4/6] Kbuild: Fix cleanup of *.dtb for some archs

2023-06-19 Thread Tobias Deiminger
'make clean' did not descend into arch/$ARCH/dts for arc, m68k, nios2, sh, xtensa. Fix it by adding the missing archs to the explicit clean-dirs list. Signed-off-by: Tobias Deiminger --- dts/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dts/Makefile b/dts/Makef

[PATCH v2 3/6] Kbuild: Fix cleanup of VPL

2023-06-19 Thread Tobias Deiminger
VPL artifacts like example vpl/u-boot-vpl are currently not removed by 'make clean'. We can clean them just as it's already done for SPL and TPL. Fixes: f86ca5ad8f78 ("Introduce Verifying Program Loader (VPL)") Signed-off-by: Tobias Deiminger --- Makefile | 4 ++-- 1 file changed, 2 insertions(

[PATCH v2 2/6] Adjust gitignore for tools/generated/

2023-06-19 Thread Tobias Deiminger
Tell git that auto-generated C sources are now exclusively expected under tools/generated/. Signed-off-by: Tobias Deiminger --- tools/.gitignore | 1 + tools/env/.gitignore | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/.gitignore b/tools/.gitignore index cda3ea628

[PATCH v2 1/6] Kbuild: Fix cleanup of generated sources in tools

2023-06-19 Thread Tobias Deiminger
On 'make clean', generated C files in tools/env/ and tools/boot/ are currently not removed, but they should. Auto-generation for shared sources was first introduced with ad80c4a3220b ("kbuild, tools: generate wrapper C sources automatically by Makefile"). Cleanup later regressed (see Fixes:), beca

[PATCH v2 0/6] Kbuild: Fix cleanup of generated sources in tools (and more)

2023-06-19 Thread Tobias Deiminger
This patch series fixes various unexpected leftovers after running make clean and make mrproper. The test suggested during review of v1 [0] revealed more cleanup related issues. I thought it's best to fix them all together in a somewhat extended v2, to let the new test pass without cheating. Chan

[PATCH 2/2] ARM: dts: renesas: Disable RPC driver on R8A779G0 V4H White Hawk board

2023-06-19 Thread Marek Vasut
From: Cong Dang As requirement of CR side, QSPI Flash usage via RPC driver shall be disabled and leaving the control of this module to CR side. Perform DT modification to disable the RPC SPI. Reviewed-by: Marek Vasut Signed-off-by: Cong Dang Signed-off-by: Marek Vasut [Marek: Do not modify de

[PATCH 1/2] ARM: dts: renesas: Clean up R8A779G0 V4H RPC SPI DT node

2023-06-19 Thread Marek Vasut
Use the phandle reference to &rpc node in arch/arm/dts/r8a779g0.dtsi and remove properties which are already in arch/arm/dts/r8a779g0.dtsi. No functional change and no resulting DT change. Signed-off-by: Marek Vasut --- arch/arm/dts/r8a779g0-u-boot.dtsi | 18 -- 1 file changed, 4

[PATCH] spl: spl_legacy: Add extra address checks

2023-06-19 Thread Marek Vasut
Check whether the loaded image or entry point does not overlap SPL. Signed-off-by: Marek Vasut --- Cc: "NXP i.MX U-Boot Team" Cc: Fabio Estevam Cc: Heiko Schocher Cc: Heinrich Schuchardt Cc: Rasmus Villemoes Cc: Simon Glass Cc: Stefano Babic Cc: Tom Rini Cc: Ye Li --- common/spl/spl_leg

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

2023-06-19 Thread Marek Vasut
From: Hai Pham When tuning command (CMD21) fails with command error, call mmc_send_stop_transmission() to send stop command (CMD12). Reviewed-by: Takeshi Kihara Reviewed-by: Marek Vasut Signed-off-by: Hai Pham Signed-off-by: Marek Vasut [Marek: Add dev_dbg() message in case tuning abort fail

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

2023-06-19 Thread Marek Vasut
From: Hai Pham If a tuning command times out, the card could still be processing it, which will cause problems for recovery. The eMMC specification section 6.6 Data transfer mode (cont’d) claims that CMD12 can be used to stop CMD21: " The relationship between the various data transfer modes is su

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

2023-06-19 Thread Marek Vasut
For MMC/eMMC, the MMC_CMD_STOP_TRANSMISSION response is R1 for read transfers and R1b for write transfers per JEDEC Standard No. 84-B51 Page 126 . The response is R1b unconditionally per Physical Layer Simplified Specification Version 9.00. Correct the response type and add a comment about it. Si

Re: [PATCH v1 3/4] sysinfo: rcar3: Implement BOARD_ID and BOARD_REVISION

2023-06-19 Thread Marek Vasut
On 6/19/23 20:27, Detlev Casanova wrote: On Monday, June 19, 2023 12:11:18 P.M. EDT Marek Vasut wrote: On 6/19/23 16:42, Detlev Casanova wrote: On Friday, June 16, 2023 8:43:33 P.M. EDT Marek Vasut wrote: On 6/16/23 17:21, Detlev Casanova wrote: Expose that information to the command shell to

Re: [PATCH] cmd: usb: Prevent reset in usb tree/info command

2023-06-19 Thread Marek Vasut
On 6/19/23 12:12, Xavier Drudis Ferran wrote: It seems the email addresses are being constantly corrupted in each email. This time the ML address is wrong and missing an e at the end. There is some e@ nonexistent address which I have to keep removing. When DISTRO_DEFAULTS is not set, the def

Re: [UBOOT PATCH 1/3] usb: dwc3: core: improve reset sequence

2023-06-19 Thread Marek Vasut
On 6/19/23 19:04, Eugen Hristev wrote: On 6/19/23 19:07, Marek Vasut wrote: On 6/19/23 15:26, Eugen Hristev wrote: On 5/8/23 06:00, Venkatesh Yadav Abbarapu wrote: [ Felipe: Ported from Linux kernel commit   f59dcab17629 ("usb: dwc3: core: improve reset sequence") ] According to Synopsys

[PATCH v10 4/4] Load option with short device path for boot vars

2023-06-19 Thread Raymond Mao
The boot variables automatically generated for removable medias should be with short form of device path without device nodes. This is a requirement for the case that a removable media is plugged into a different port but is still able to work with the existing boot variables. Signed-off-by: Raymo

[PATCH v10 3/4] Boot var automatic management for removable medias

2023-06-19 Thread Raymond Mao
Changes for complying to EFI spec §3.5.1.1 'Removable Media Boot Behavior'. Boot variables can be automatically generated during a removable media is probed. At the same time, unused boot variables will be detected and removed. Please note that currently the function 'efi_disk_remove' has no abili

[PATCH v10 2/4] Fix incorrect return code of boot option update

2023-06-19 Thread Raymond Mao
Correct the return code for out-of-memory and no boot option found Signed-off-by: Raymond Mao Reviewed-by: Ilias Apalodimas --- Changes in v7 - new patch file created cmd/bootmenu.c | 2 +- cmd/eficonfig.c | 2 +- lib/efi_loader/efi_bootmgr.c | 8 ++-- 3 files ch

[PATCH v10 1/4] Move bootorder and bootoption apis to lib

2023-06-19 Thread Raymond Mao
Rename and move bootorder and bootoption apis from cmd to lib for re-use between eficonfig and bootmgr Fix 'unexpected indentation' when 'make htmldocs' after functions are moved Signed-off-by: Raymond Mao Reviewed-by: Ilias Apalodimas --- Changes in v3 - Split the patch into moving and renaming

[PATCH v10 0/4] Boot variables management for removable media

2023-06-19 Thread Raymond Mao
Major changes: 1.Rename and move bootorder and bootoption apis from cmd to lib for re-use between eficonfig and bootmgr 2.Fix incorrect return code of boot option update Correct the return code for out-of-memory and no boot option found 3.Changes for complying to EFI spec §3.5.1.1 'Removable

Re: [PATCH v3 0/6] corstone1000: fwu metadata and GPT

2023-06-19 Thread Tom Rini
On Mon, 12 Jun 2023 09:09:14 +0100, Rui Miguel Silva wrote: > Now that the nvmxip block driver is merged we can add on top > of it the platform code to use GPT and FWU metadata in the > Corstone1000. > > But first, push 2 fixes that are needed to make all this work: > - move nvmxip header to inc

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

2023-06-19 Thread Tom Rini
On Mon, 05 Jun 2023 13:58:59 +0200, Michal Simek wrote: > Use proper project name in DTs, messages and READMEs. > > To get the most testing time on this one, applied to u-boot/next, thanks! -- Tom

Re: imx8m optee load address?

2023-06-19 Thread Tim Harvey
On Fri, Jun 16, 2023 at 4:52 PM Tim Harvey wrote: > > On Thu, Jun 15, 2023 at 8:31 PM Peng Fan wrote: > > > > > > > > On 6/16/2023 9:56 AM, Tim Harvey wrote: > > > Greetings, > > > > > > I've seen several IMX8M boards include a firmware/optee node in the > > > U-Boot dt (git grep optee arch/arm/d

[PATCH] axi: fix a warning

2023-06-19 Thread Sergei Antonov
Fix an enum/integer mismatch encountered in 'sandbox_defconfig' build. .../u-boot/drivers/axi/axi-emul-uclass.c:16:5: warning: conflicting types for ‘axi_sandbox_get_emul’ due to enum/integer mismatch; have ‘int(struct udevice *, ulong, enum axi_size_t, struct udevice **)’ {aka ‘int(struct ude

CFP open for RISC-V MC at Linux Plumbers Conference 2023

2023-06-19 Thread Atish Patra
The CFP for topic proposals for the RISC-V micro conference[1] 2023 is open now. Please submit your proposal before it's too late! The Linux plumbers event will be both in person and remote (hybrid)virtual this year. More details can be found here [2]. We will start accepting proposals after 15th

Re: [PATCH v1 3/4] sysinfo: rcar3: Implement BOARD_ID and BOARD_REVISION

2023-06-19 Thread Detlev Casanova
On Monday, June 19, 2023 12:11:18 P.M. EDT Marek Vasut wrote: > On 6/19/23 16:42, Detlev Casanova wrote: > > On Friday, June 16, 2023 8:43:33 P.M. EDT Marek Vasut wrote: > >> On 6/16/23 17:21, Detlev Casanova wrote: > >>> Expose that information to the command shell to let scripts select the > >>>

Re: [BUG] bind command leads to invalid state where plaform data is NULL

2023-06-19 Thread Heinrich Schuchardt
On 6/19/23 14:57, Simon Glass wrote: I suggest a simple device that needs no setup. The original commit[1] suggests using USB - does that worK? Regards, Simon [1] 49c752c93a78 ("cmd: Add bind/unbind commands to bind a device to a driver from the command line") I see devices listed after bind

Re: [UBOOT PATCH 1/3] usb: dwc3: core: improve reset sequence

2023-06-19 Thread Eugen Hristev
On 6/19/23 19:07, Marek Vasut wrote: On 6/19/23 15:26, Eugen Hristev wrote: On 5/8/23 06:00, Venkatesh Yadav Abbarapu wrote: [ Felipe: Ported from Linux kernel commit   f59dcab17629 ("usb: dwc3: core: improve reset sequence") ] According to Synopsys Databook, we shouldn't be relying on GCT

[PATCH] mkimage: Use PATH_MAX for path length

2023-06-19 Thread mingli.yu
From: Mingli Yu Fixed when build xilinx_zynqmp in long directory ( >256): | /buildarea1/testtest/wr_build/wr1023test_secureboot/test1-what/test2-what/test3-what/test4-what/test5-what/test6-what/test7-what/test8-what/test9-what/test10-what/test11-what/test12-what/build/tmp-glibc/work/xilinx_zy

Re: [PATCH] lib: sparse: allocate blkcnt instead of arbitrary small number

2023-06-19 Thread qianfan
在 2023/6/16 21:26, Mattijs Korpershoek 写道: Commit 62649165cb02 ("lib: sparse: Make CHUNK_TYPE_RAW buffer aligned") fixed cache alignment for systems with a D-CACHE. However it introduced some performance regressions [1] on system flashing huge images, such as Android. On AM62x SK EVM, we als

[PATCH] mkimage: Use PATH_MAX for path length

2023-06-19 Thread mingli.yu
From: Mingli Yu Fixed when build xilinx_zynqmp in long directory ( >256): | /buildarea1/testtest/wr_build/wr1023test_secureboot/test1-what/test2-what/test3-what/test4-what/test5-what/test6-what/test7-what/test8-what/test9-what/test10-what/test11-what/test12-what/build/tmp-glibc/work/xilinx_zy

[PATCH] net: zynq_gem: Don't hardcode the MDC clock divisor

2023-06-19 Thread Venkatesh Yadav Abbarapu
As per spec MDC must not exceed 2.5MHz, read the pclk clock from the device tree and update the MDC clock divisor. GEM devices support larger clock divisors and have a different range of divisors. Program the MDIO clock divisors based on the clock rate of the pclk clock. Signed-off-by: Venkatesh

Re: [PATCH v6 0/6] FWU: Add support for mtd backed feature on DeveloperBox

2023-06-19 Thread Jassi Brar
Hi Michal, On Mon, 19 Jun 2023 at 10:02, Michal Simek wrote: > > Hi Jassi, > > On 5/31/23 07:28, jaswinder.si...@linaro.org wrote: > > From: Jassi Brar > > > > Introduce support for mtd backed storage for FWU feature and enable it on > > Synquacer platform based DeveloperBox. > > > > This revisi

Re: [PATCH v1 3/4] sysinfo: rcar3: Implement BOARD_ID and BOARD_REVISION

2023-06-19 Thread Marek Vasut
On 6/19/23 16:42, Detlev Casanova wrote: On Friday, June 16, 2023 8:43:33 P.M. EDT Marek Vasut wrote: On 6/16/23 17:21, Detlev Casanova wrote: Expose that information to the command shell to let scripts select the correct devicetree name. Signed-off-by: Detlev Casanova --- drivers/sysinfo

Re: [UBOOT PATCH 1/3] usb: dwc3: core: improve reset sequence

2023-06-19 Thread Marek Vasut
On 6/19/23 15:26, Eugen Hristev wrote: On 5/8/23 06:00, Venkatesh Yadav Abbarapu wrote: [ Felipe: Ported from Linux kernel commit   f59dcab17629 ("usb: dwc3: core: improve reset sequence") ] According to Synopsys Databook, we shouldn't be relying on GCTL.CORESOFTRESET bit as that's only for

Re: [PATCH 1/3] binman: Allow to define custom arguments

2023-06-19 Thread Jan Kiszka
On 19.06.23 16:09, Simon Glass wrote: > Hi Jan, > > On Mon, 19 Jun 2023 at 14:28, Jan Kiszka wrote: >> >> On 19.06.23 14:36, Simon Glass wrote: >>> Hi Jan, >>> >>> On Fri, 16 Jun 2023 at 16:42, Jan Kiszka wrote: On 15.06.23 13:46, Jan Kiszka wrote: > On 15.06.23 13:38, Simon Glass

Re: [PATCH 2/2] common: splash_source: Fix type casting errors.

2023-06-19 Thread Devarsh Thakkar
Hi Nikhil, On 19/06/23 15:14, Nikhil M Jain wrote: > During compilation splash_source puts out below warning for type > conversion in splash_load_fit for bmp_load_addr and fit_header, Below should be separate sentence. Also remove fullstop from subject line. change > their type to uintptr_t to m

Re: [PATCH 5/7] Makefile: Add a target for building capsules

2023-06-19 Thread Simon Glass
Hi Sughosh, On Thu, 15 Jun 2023 at 17:25, Sughosh Ganu wrote: > > hi Simon, > > On Thu, 15 Jun 2023 at 14:44, Simon Glass wrote: > > > > Hi Sughosh, > > > > On Tue, 13 Jun 2023 at 11:39, Sughosh Ganu wrote: > > > > > > Add a target for building EFI capsules. The capsule parameters are > > > spe

Re: [PATCH RESEND] spl: spl_fit: add weak prototype for fpga_load

2023-06-19 Thread Simon Glass
Hi Eugen, On Mon, 19 Jun 2023 at 11:29, Eugen Hristev wrote: > > In case OPTIMIZE_DEBUG is set, unused code will not be optimized out, hence > the reference to fpga_load will be compiled. > if DM_FPGA and SPL_FPGA are not set, the build will fail with : > > aarch64-none-linux-gnu-ld.bfd: common/s

Re: [BUG] bind command leads to invalid state where plaform data is NULL

2023-06-19 Thread Simon Glass
Hi Heinrich, On Sun, 18 Jun 2023 at 11:12, Heinrich Schuchardt wrote: > > Hello Simon, > > from origin/next I build qemu_arm64_defconfig with CONFIG_CMD_BIND=yes. > > I ran the image with: > > qemu-system-aarch64 -semihosting \ > -machine virt,gic-version=max -accel $(ACCEL) -m 1G -smp cores

Re: [PATCH v6 0/6] FWU: Add support for mtd backed feature on DeveloperBox

2023-06-19 Thread Michal Simek
Hi Jassi, On 5/31/23 07:28, jaswinder.si...@linaro.org wrote: From: Jassi Brar Introduce support for mtd backed storage for FWU feature and enable it on Synquacer platform based DeveloperBox. This revision is rebased onto patchset that trims the FWU api https://lore.kernel.org/u-boot/20230

Re: [PATCH] doc: qemu: switch swtpm instruction to 'tpm autostart'

2023-06-19 Thread Simon Glass
On Fri, 16 Jun 2023 at 09:43, Ilias Apalodimas wrote: > > We don't have a documentation page for our TPM subsystem. I plan > on sending one in the future, but in the meantime document the > new 'tpm autostart' command in the QEMU instructions while using > a SWTPM > > Signed-off-by: Ilias Apalod

Re: [PATCH 1/3] binman: Allow to define custom arguments

2023-06-19 Thread Simon Glass
Hi Jan, On Fri, 16 Jun 2023 at 16:42, Jan Kiszka wrote: > > On 15.06.23 13:46, Jan Kiszka wrote: > > On 15.06.23 13:38, Simon Glass wrote: > >> Hi Jan, > >> > >> On Thu, 15 Jun 2023 at 12:21, Jan Kiszka wrote: > >>> > >>> On 15.06.23 13:19, Simon Glass wrote: > Hi Jan, > > On Thu,

Re: [PATCH 1/1] doc: unbind man-page

2023-06-19 Thread Simon Glass
On Fri, 16 Jun 2023 at 16:15, Heinrich Schuchardt wrote: > > Provide a man-page for the unbind command. > > Signed-off-by: Heinrich Schuchardt > --- > doc/usage/cmd/unbind.rst | 95 > doc/usage/index.rst | 1 + > 2 files changed, 96 insertions(+) >

[v3 2/2] mtd: spi-nor-ids: add xtxtech part#

2023-06-19 Thread bruce_s...@163.com
add following XTX part numbers to the list: xt25f08: 3V QSPI, 8Mbit xt25f16: 3V QSPI, 16Mbit xt25f32: 3V QSPI, 32Mbit xt25f64: 3V QSPI, 64Mbit xt25f128: 3V QSPI, 128Mbit xt25f256: 3V QSPI, 256Mbit xt25q08: 1.8V QSPI, 8Mbit xt25q16: 1.8V QSPI, 16Mbit xt25q32: 1.8V QSPI, 32Mbit xt25q64: 1.8V QSPI, 6

Re: [PATCH] board_f: Relocate fdt if SKIP_RELOC and fdt is in bss

2023-06-19 Thread Simon Glass
Hi Kunihiko, On Fri, 16 Jun 2023 at 00:59, Kunihiko Hayashi wrote: > > Hi Simon, > > Thank you for your comment. > > On 2023/06/13 6:17, Simon Glass wrote: > > Hi Kunihiko, > > > > On Thu, 8 Jun 2023 at 07:53, Kunihiko Hayashi > > wrote: > >> > >> There are cases that the devicetree blob is plac

Re: [PULL] u-boot-at91-fixes-2023.07-a

2023-06-19 Thread Tom Rini
On Mon, Jun 19, 2023 at 01:21:32PM +0300, Eugen Hristev wrote: > Hello Tom, > > Please pull tag u-boot-at91-fixes-2023.07-a , the first set of at91 fixes > for the 2023.07 cycle. > > This small fixes set includes one init fix for scmi clocks and a missing > gpio_request for pm9g45. > > Thanks,

Re: [PATCH 0/2] Mitigate warnings occurred during compilation

2023-06-19 Thread Tom Rini
On Mon, Jun 19, 2023 at 03:14:01PM +0530, Nikhil M Jain wrote: > This patch series aims at mitigating warnings occurred during > compilation by including required header files and using appropriate > types for variables which are typecasted. > > Nikhil M Jain (2): > board: ti: am62x: evm: Includ

Re: [PATCH 1/7] capsule: authenticate: Embed capsule public key in platform's dtb

2023-06-19 Thread Simon Glass
Hi Sughosh, On Thu, 15 Jun 2023 at 17:11, Sughosh Ganu wrote: > > hi Simon, > > On Thu, 15 Jun 2023 at 14:44, Simon Glass wrote: > > > > Hi Sughosh, > > > > On Tue, 13 Jun 2023 at 11:41, Sughosh Ganu wrote: > > > > > > The EFI capsule authentication logic in u-boot expects the public key > > >

Re: [PATCH v1 4/4] configs: rcar3: Add shell function to select the linux devicetree

2023-06-19 Thread Detlev Casanova
On Friday, June 16, 2023 8:45:31 P.M. EDT Marek Vasut wrote: > On 6/16/23 17:21, Detlev Casanova wrote: > > This function uses the sysinfo command to determine which linux device > > tree is selected for the running board. > > > > Signed-off-by: Detlev Casanova > > --- > > > > configs/rcar3_ul

Re: [PATCH v1 3/4] sysinfo: rcar3: Implement BOARD_ID and BOARD_REVISION

2023-06-19 Thread Detlev Casanova
On Friday, June 16, 2023 8:43:33 P.M. EDT Marek Vasut wrote: > On 6/16/23 17:21, Detlev Casanova wrote: > > Expose that information to the command shell to let scripts select the > > correct devicetree name. > > > > Signed-off-by: Detlev Casanova > > --- > > > > drivers/sysinfo/rcar3.c | 46 ++

Re: [BUG] bind command leads to invalid state where plaform data is NULL

2023-06-19 Thread Simon Glass
Hi Heinrich, On Mon, 19 Jun 2023 at 13:48, Heinrich Schuchardt wrote: > > On 6/19/23 14:37, Simon Glass wrote: > > Hi Heinrich, > > > > On Sun, 18 Jun 2023 at 11:12, Heinrich Schuchardt > > wrote: > >> > >> Hello Simon, > >> > >> from origin/next I build qemu_arm64_defconfig with CONFIG_CMD_BIN

Re: [PATCH V4 9/9] doc: board: ti: am62x_sk: Add A53 SPL DDR layout

2023-06-19 Thread Tom Rini
On Mon, Jun 19, 2023 at 01:36:16PM +0530, Nikhil M Jain wrote: > Hi Tom, > > On 16/06/23 20:24, Tom Rini wrote: > > On Fri, Jun 16, 2023 at 04:22:38PM +0530, Nikhil M Jain wrote: > > > To understand usage of DDR in A53 SPL stage, add a table showing region > > > and space used by major components

Re: [UBOOT PATCH 1/3] usb: dwc3: core: improve reset sequence

2023-06-19 Thread Eugen Hristev
On 5/8/23 06:00, Venkatesh Yadav Abbarapu wrote: [ Felipe: Ported from Linux kernel commit f59dcab17629 ("usb: dwc3: core: improve reset sequence") ] According to Synopsys Databook, we shouldn't be relying on GCTL.CORESOFTRESET bit as that's only for debugging purposes. Instead, let's

Re: [PATCH 1/3] binman: Allow to define custom arguments

2023-06-19 Thread Simon Glass
Hi Jan, On Mon, 19 Jun 2023 at 14:28, Jan Kiszka wrote: > > On 19.06.23 14:36, Simon Glass wrote: > > Hi Jan, > > > > On Fri, 16 Jun 2023 at 16:42, Jan Kiszka wrote: > >> > >> On 15.06.23 13:46, Jan Kiszka wrote: > >>> On 15.06.23 13:38, Simon Glass wrote: > Hi Jan, > > On Thu, 15

Re: [BUG] bind command leads to invalid state where plaform data is NULL

2023-06-19 Thread Heinrich Schuchardt
On 6/19/23 14:37, Simon Glass wrote: Hi Heinrich, On Sun, 18 Jun 2023 at 11:12, Heinrich Schuchardt wrote: Hello Simon, from origin/next I build qemu_arm64_defconfig with CONFIG_CMD_BIND=yes. I ran the image with: qemu-system-aarch64 -semihosting \ -machine virt,gic-version=max -acce

Re: [PATCH 1/3] binman: Allow to define custom arguments

2023-06-19 Thread Jan Kiszka
On 19.06.23 14:36, Simon Glass wrote: > Hi Jan, > > On Fri, 16 Jun 2023 at 16:42, Jan Kiszka wrote: >> >> On 15.06.23 13:46, Jan Kiszka wrote: >>> On 15.06.23 13:38, Simon Glass wrote: Hi Jan, On Thu, 15 Jun 2023 at 12:21, Jan Kiszka wrote: > > On 15.06.23 13:19, Simon Gla

[PATCH v4 44/45] x86: video: Add a driver for QEMU bochs emulation

2023-06-19 Thread Simon Glass
Bochs is convenient with QEMU on x86 since it does not require a video BIOS. Add a driver for it. Signed-off-by: Simon Glass --- (no changes since v2) Changes in v2: - Bring in to qemu series - Rebase to -next - Drop unused of_match - Fix Boschs typo - Rename bochs_init_linear_fb() function to

[PATCH v4 43/45] efi: Use the installed ACPI tables

2023-06-19 Thread Simon Glass
U-Boot sets up the ACPI tables during startup. Rather than creating a new set, install the existing ones. Create a memory-map record to cover the tables. Signed-off-by: Simon Glass --- Changes in v4: - Drop patch "video: Allow building video drivers for SPL" Changes in v2: - Drop patch to set h

[PATCH v4 35/45] x86: Record the start and end of the tables

2023-06-19 Thread Simon Glass
The ACPI tables are special in that they are passed to EFI as a separate piece, independent of other tables. Also they can be spread over two areas of memory, e.g. with QEMU we end up with tables kept in high memory as well. Add new global_data fields to hold this information and update the bdinf

[PATCH v4 33/45] x86: Enable useful options for qemu-86_64

2023-06-19 Thread Simon Glass
This build can be used to boot standard distro builds, since these are mostly 64-bit these days. Enable some more options, so that all possible EFI UUIDs are decoded, we get a proper printf() in SPL, can search memory for tables, support the full set of standard-boot features, have full logging and

[PATCH v4 30/45] x86: Allow logging to be used in SPL reliably

2023-06-19 Thread Simon Glass
When global_data is relocated, log_head moves in memory, meaning that the items in that list point to the wrong place. Disable logging when making the change, then reenable it afterwards, so that logging works normally. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/lib/spl.c |

[PATCH v5 0/2 RESEND] imx93: add ADC support

2023-06-19 Thread Luca Ellero
Add ADC support for NXP iMX93 Changes for v2: - add "static" to functions - enable ADC in iMX93 EVK Changes for v3: - split in 3 commits - keep dts file in sync with Linux devicetree - add comments to commits Changes for v4: - add imx93_adc_power_down() in imx93_adc_stop() Changes for v5: - sim

[PATCH v4 42/45] sandbox: Install ACPI tables on startup

2023-06-19 Thread Simon Glass
With x86 we set up the ACPI tables on startup so they can be examined. Do the same with sandbox, so it is consistent. Signed-off-by: Simon Glass --- (no changes since v1) board/sandbox/sandbox.c | 16 1 file changed, 16 insertions(+) diff --git a/board/sandbox/sandbox.c b/boa

[PATCH v4 40/45] log: Support outputing function names in SPL

2023-06-19 Thread Simon Glass
The output is garbled when tiny printf() is used. Correct this by adding a special case. Signed-off-by: Simon Glass --- (no changes since v2) Changes in v2: - Add new patch to support outputing function names in SPL common/log_console.c | 10 -- 1 file changed, 8 insertions(+), 2 dele

[PATCH v4 45/45] x86: Switch QEMU over to use the bochs driver

2023-06-19 Thread Simon Glass
This is more convenient since it does not require a video BIOS. Enable it for QEMU. Also drop use of video in SPL for the 64-bit qmeu, since it not needed now. Signed-off-by: Simon Glass --- Changes in v4: - Drop use of video in SPL - Bring in bochs patch to this series arch/x86/cpu/qemu/Kcon

[PATCH v4 41/45] sandbox: Correct header order in board file

2023-06-19 Thread Simon Glass
Fix the header order in this file. Signed-off-by: Simon Glass --- (no changes since v1) board/sandbox/sandbox.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/board/sandbox/sandbox.c b/board/sandbox/sandbox.c index c7b6cb78fff5..54c119daeeeb 100644 --- a/board/sandbo

[PATCH v4 16/45] qfw: Set the address of the ACPI tables

2023-06-19 Thread Simon Glass
Once the ACPI tables have been set up, record their address so that it is possible to list them with 'acpi list'. Signed-off-by: Simon Glass --- (no changes since v1) drivers/misc/qfw.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/misc/qfw.c b/drivers/misc/qfw.c index 9ef95c

[PATCH v4 34/45] x86: Refactor table-writing code a litlle

2023-06-19 Thread Simon Glass
The implementation of write_tables() is confusing because it uses the rom_table_start variable as the address pointer as it progresses. Rename it to rom_addr to make the code clearer. Move the rom_table_end variable into the block where it is used. Also update logging to use the ACPI category, no

[PATCH v4 32/45] fs: fat: Support reading from a larger block size

2023-06-19 Thread Simon Glass
At present it is not possible to read from some CDROM drives since the FAT sector size does not match the media's block size. Add a conversion option for this, so that reading is possible. This does increase SPL size for read-only FAT support by 25 bytes but all but 6 are covered by the previous p

[PATCH v4 31/45] fs: fat: Shrink the size of a few strings

2023-06-19 Thread Simon Glass
To save a few bytes, replace Error with ** and try to use the same string for multiple messages where possible. Signed-off-by: Simon Glass --- (no changes since v2) Changes in v2: - Drop ** in strings and use log_err() for messages fs/fat/fat.c | 20 +++- fs/fat/fat_writ

[PATCH 2/2] imx93_evk: defconfig: add adc support

2023-06-19 Thread Luca Ellero
iMX93 ADC features: - 4 channels - 12 bit resolution Signed-off-by: Luca Ellero --- configs/imx93_11x11_evk_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/imx93_11x11_evk_defconfig b/configs/imx93_11x11_evk_defconfig index 89edebc4c6..30ef460c80 100644 --- a/confi

  1   2   >