[PATCH] configs: am62ax: enable secure device configs by default

2023-03-17 Thread Bryan Brattlof
TI's security enforcing SoCs will authenticate each binary it loads by comparing it's signature with keys etched into the SoC during the boot up process. The am62ax family of SoCs by default will have some level of security enforcement checking. To keep things as simple as possible, enable the

[PATCH 0/3] rockchip: rk3588: Fix sdmmc clocks

2023-03-17 Thread Jonas Karlman
Booting from sdmmc on RK3588 currently works because of a workaround in the device tree, clocks are reordered so that the driver use ciu-sample instead of ciu, and the BootRom initializes sdmmc clocks before SPL is loaded into DRAM. The sdmmc clocks are normally controlled by TF-A using SCMI.

[BUG] Devices of uclass BLK are not listed on x86

2023-03-17 Thread Detlev Casanova
Hello, We have been having an issue with IDE and SCSI drives not being usable on the x86 architecture. After bisecting, it looks like commit f2ebaaa9f38defaf2e616a9fc489fe8b4021 (pci: Handle failed calloc in decode_regions()) is the culprit. Indeed, it was working when decode_regions()

[PATCH] gpio: allow passing NULL to gpio_request_by_line_name() to search all gpio controllers

2023-03-17 Thread Rasmus Villemoes
The API is more convenient to use if one doesn't have to know upfront which gpio controller has a line with the name one is searching for, and arrange to look that device up somehow. Or implement this loop oneself. Signed-off-by: Rasmus Villemoes --- drivers/gpio/gpio-uclass.c | 7 +++

[PATCH 2/3] rockchip: rk3588: Add support for sdmmc clocks in SPL

2023-03-17 Thread Jonas Karlman
Booting from sdmmc on RK3588 currently works because of a workaround in the device tree, clocks are reordered so that the driver use ciu-sample instead of ciu, and the BootRom initializes sdmmc clocks before SPL is loaded into DRAM. The sdmmc clocks are normally controlled by TF-A using SCMI.

[PATCH 3/3] rockchip: rk3588: Sync sdmmc node from linux-next

2023-03-17 Thread Jonas Karlman
Sync the sdmmc node from linux-next, include required nodes in SPL and imply Kconfig options required for functional sdmmc clk in SPL and U-Boot proper. This make it possible for both SPL and U-Boot proper to configure sdmmc clocks. In SPL, before TF-A is loaded, scru regs is configured, in

[PATCH 1/3] clk: scmi: Add Kconfig option for SPL

2023-03-17 Thread Jonas Karlman
Building U-Boot SPL with CLK_SCMI and SCMI_FIRMWARE Kconfig options enabled and SPL_FIRMWARE disabled result in the following error. drivers/clk/clk_scmi.o: in function `scmi_clk_gate': drivers/clk/clk_scmi.c:84: undefined reference to `devm_scmi_process_msg' drivers/clk/clk_scmi.c:88:

Rpi4 issue: Unexpected XHCI event TRB, skipping... (3af546a0 00000004 01000000 01008401)

2023-03-17 Thread Ajay Kaher
Hi All, Randomly observed following issue on RPi4 board, logs: U-Boot 2023.01 (Mar 17 2023 - 12:01:18 +) DRAM: 948 MiB (effective 7.9 GiB) RPI 4 Model B (0xd03114) Core: 211 devices, 17 uclasses, devicetree: board MMC: mmcnr@7e30: 1, mmc@7e34: 0 Loading

Re: [PATCH v2 0/5] Support the required clocks to enable USB on SAM9X60

2023-03-17 Thread Eugen Hristev
On 3/9/23 14:30, Eugen Hristev wrote: On 3/8/23 16:39, Claudiu Beznea wrote: This patch series originates from a bigger patch series: https://lists.denx.de/pipermail/u-boot/2022-December/502865.html A driver for clock operations on SAM9X60's USB clock has been added as well as its registration

Re: [PATCH v2 6/8] boot: Create a common BOOT_DEFAULTS for distro and bootstd

2023-03-17 Thread Tom Rini
On Fri, Mar 17, 2023 at 12:29:18PM -0600, Simon Glass wrote: > Hi Tom, > > On Fri, 17 Mar 2023 at 08:34, Tom Rini wrote: > > > > On Thu, Mar 16, 2023 at 11:25:17PM -0600, Simon Glass wrote: > > > Hi Tom, > > > > > > On Thu, 2 Mar 2023 at 08:14, Tom Rini wrote: > > > > > > > > On Wed, Mar 01,

Re: [PATCH 2/2] drivers: rtc: add max313xx series rtc driver

2023-03-17 Thread Simon Glass
Hi Chris, On Thu, 16 Mar 2023 at 16:16, Chris Packham wrote: > > Adding support for Analog Devices MAX313XX series RTCs. > > This is ported from the Linux driver and adapted for use in u-boot. > Notable differences are > - handling of tm_year and tm_mon differ > - clock source support is omitted

Re: [PATCH v2 6/8] boot: Create a common BOOT_DEFAULTS for distro and bootstd

2023-03-17 Thread Simon Glass
Hi Tom, On Fri, 17 Mar 2023 at 08:34, Tom Rini wrote: > > On Thu, Mar 16, 2023 at 11:25:17PM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Thu, 2 Mar 2023 at 08:14, Tom Rini wrote: > > > > > > On Wed, Mar 01, 2023 at 08:39:27PM -0700, Simon Glass wrote: > > > > > > > These two features use a

Re: [PATCH] apple_m1_defconfig: Bump CONFIG_LMB_MAX_REGIONS to 64

2023-03-17 Thread Mark Kettenis
> Date: Fri, 17 Mar 2023 12:43:16 -0400 > From: Tom Rini > > On Mon, Mar 13, 2023 at 03:31:32PM +0100, Mark Kettenis wrote: > > > From: Janne Grunau > > > Date: Mon, 13 Mar 2023 14:54:32 +0100 > > > > > > Apple silicon SoCs have numerous embedded co-processors with pre-loaded > > > firmware.

Re: [PATCH] dfu: mtd: mark bad the MTD block on erase error

2023-03-17 Thread Patrick DELAUNAY
Hi, On 11/28/22 10:22, Patrick Delaunay wrote: In the MTD DFU backend, it is needed to mark the NAND block bad when the erase failed with the -EIO error, as it is done in UBI and JFFS2 code. This operation is not done in the MTD framework, but the bad block tag (in BBM or in BBT) is required

Re: [PATCH] fdt: Make fdt addr -q quieter

2023-03-17 Thread Peter Hoyes
On 17/03/2023 12:17, Marek Vasut wrote: On 3/16/23 17:34, Peter Hoyes wrote: From: Peter Hoyes 64597346 "fdt: Add -q option to fdt addr for distro_bootcmd" introduced the -q option for fdt addr, which sets the current working fdt address without printing any output. baf41410 "fdt: Show a

Re: [PATCH 2/2] drivers: rtc: add max313xx series rtc driver

2023-03-17 Thread Tom Rini
On Fri, Mar 17, 2023 at 11:16:25AM +1300, Chris Packham wrote: > Adding support for Analog Devices MAX313XX series RTCs. > > This is ported from the Linux driver and adapted for use in u-boot. > Notable differences are > - handling of tm_year and tm_mon differ > - clock source support is omitted

Re: [PATCH 2/2] CI: Allow a mirror to be specified for Docker Hub

2023-03-17 Thread Tom Rini
On Fri, Mar 10, 2023 at 09:53:03AM +, Peter Hoyes wrote: > From: Peter Hoyes > > To conserve bandwidth and potentially avoid rate limits, allow a local > mirror of Docker Hub to be specified globally. The default value is > unchanged. > > Signed-off-by: Peter Hoyes Oh neat. What we have

Re: [PATCH 1/2] CI: Allow job tag to be optionally set globally

2023-03-17 Thread Tom Rini
On Fri, Mar 10, 2023 at 09:53:02AM +, Peter Hoyes wrote: > From: Peter Hoyes > > The default behavior of Gitlab runners is to only run jobs which match > the configured tag, although there is an option to run untagged jobs > [1]. > > To support running the CI in more complex environments

Re: [PATCH] apple_m1_defconfig: Bump CONFIG_LMB_MAX_REGIONS to 64

2023-03-17 Thread Tom Rini
On Mon, Mar 13, 2023 at 03:31:32PM +0100, Mark Kettenis wrote: > > From: Janne Grunau > > Date: Mon, 13 Mar 2023 14:54:32 +0100 > > > > Apple silicon SoCs have numerous embedded co-processors with pre-loaded > > firmware. The co-processors text and data sections need to be mapped via > > DART

[PATCH v2 2/2] configs: rockchip: rock5b-rk3588: add pinctrl to SPL

2023-03-17 Thread Eugen Hristev
Add pinctrl driver in SPL. Do not remove pinctrl properties for SPL dtb. Signed-off-by: Eugen Hristev --- configs/rock5b-rk3588_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/rock5b-rk3588_defconfig b/configs/rock5b-rk3588_defconfig index

[PATCH v2 1/2] ARM: dts: rk3588-rock-5b-u-boot: add u-boot, dm-spl to pinctrl for sdmmc

2023-03-17 Thread Eugen Hristev
To be able to initialize the pinctrl correctly at SPL level and read u-boot proper from SD-Card, the pinctrl must be initialized. Signed-off-by: Eugen Hristev --- Changes in v2: - add u-boot,dm-spl to pull up nodes, to also setup the pull control correctly. Also, in the loop that initializes

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

2023-03-17 Thread Ying-Chun Liu (PaulLiu)
From: meitao u-boot could be run at EL1/EL2/EL3. so we set it as same as EL1 does. otherwise it will hang when enable mmu, that is what we encounter in our SOC. Signed-off-by: meitao [ Paul: pick from the Android tree. Rebase to the upstream ] Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Tom

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

2023-03-17 Thread Ying-Chun Liu (PaulLiu)
From: Marc Zyngier In order to make invalidation by VA more efficient, set the largest block mapping to 2MB, mapping it onto level-2. This has no material impact on u-boot's runtime performance, and allows a huge speedup when cleaning the cache. Signed-off-by: Marc Zyngier [ Paul: pick from

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

2023-03-17 Thread Ying-Chun Liu (PaulLiu)
From: Marc Zyngier Some recent arm64 cores have a facility that allows the page table walker to track the dirty state of a page. This makes it really efficient to perform CMOs by VA as we only need to look at dirty pages. Signed-off-by: Marc Zyngier [ Paul: pick from the Android tree. Rebase

[PATCH 0/3] Use FEAT_HAFDBS to track dirty pages

2023-03-17 Thread Ying-Chun Liu (PaulLiu)
For some ARM64 cores there is a facility that allows the page table walker to track the dirty state of a page. These commits enhances the performance of CMOs by VA. Marc Zyngier (2): arm64: Use FEAT_HAFDBS to track dirty pages when available arm64: Use level-2 for largest block mappings when

Re: [EXTERNAL] Re: [PATCH 0/2] add support for hs bootflows on am62 devices

2023-03-17 Thread Tom Rini
On Fri, Mar 17, 2023 at 02:21:16PM +0530, Kamlesh Gurudasani wrote: > Tom Rini writes: > ... > >> Hi Tom, > >> > >> Could you please review and merge this patches as these are bug fixes to > >> get HS devices working. > > > > Is this a regression fix vs v2023.01 or new feature support? Thanks. >

Re: [PATCH] arm: enable unaligned accesses by default if EFI is configured

2023-03-17 Thread Tom Rini
On Fri, Mar 17, 2023 at 04:01:58PM +0200, Ilias Apalodimas wrote: > Hi Heinrich, > > On Fri, Mar 17, 2023 at 02:56:02PM +0100, Heinrich Schuchardt wrote: > > On 3/17/23 14:42, Ilias Apalodimas wrote: > > > Heinrich reports that compiling with LTO & EFI breaks armv7 and arm11* > > > builds. The

Re: [PATCH v2 6/8] boot: Create a common BOOT_DEFAULTS for distro and bootstd

2023-03-17 Thread Tom Rini
On Thu, Mar 16, 2023 at 11:25:17PM -0600, Simon Glass wrote: > Hi Tom, > > On Thu, 2 Mar 2023 at 08:14, Tom Rini wrote: > > > > On Wed, Mar 01, 2023 at 08:39:27PM -0700, Simon Glass wrote: > > > > > These two features use a lot of common options. Move them into a common > > > CONFIG to reduce

[PATCH] rtc: m41t62: implements read8/write8 operations

2023-03-17 Thread thomas . perrot
From: Thomas Perrot These operations are required by dm_rtc_read and dm_bootcount_get helpers. Signed-off-by: Thomas Perrot --- drivers/rtc/m41t62.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/rtc/m41t62.c b/drivers/rtc/m41t62.c index 66a0faa0ecff..891fe09d311b

Re: [PATCH] arm: enable unaligned accesses by default if EFI is configured

2023-03-17 Thread Ilias Apalodimas
Hi Heinrich, On Fri, Mar 17, 2023 at 02:56:02PM +0100, Heinrich Schuchardt wrote: > On 3/17/23 14:42, Ilias Apalodimas wrote: > > Heinrich reports that compiling with LTO & EFI breaks armv7 and arm11* > > builds. The reason is that LTO (maybe a binutils bug?) replaces the > > asm version of

Re: [PATCH] arm: enable unaligned accesses by default if EFI is configured

2023-03-17 Thread Heinrich Schuchardt
On 3/17/23 14:42, Ilias Apalodimas wrote: Heinrich reports that compiling with LTO & EFI breaks armv7 and arm11* builds. The reason is that LTO (maybe a binutils bug?) replaces the asm version of allow_unaligned() with the __weak definition of the function. As a result EFI code ends up running

[PATCH] arm: enable unaligned accesses by default if EFI is configured

2023-03-17 Thread Ilias Apalodimas
Heinrich reports that compiling with LTO & EFI breaks armv7 and arm11* builds. The reason is that LTO (maybe a binutils bug?) replaces the asm version of allow_unaligned() with the __weak definition of the function. As a result EFI code ends up running with unaligned accesses disabled and

[PATCH] fs: ext4: fix files seen as symlink during deletion

2023-03-17 Thread Corentin GUILLEVIC
The deletion process handles special case for symlinks whose target are small enough that it fits in struct ext2_inode.b.symlink. So no block had been allocated. But the check of file type wrongly considered regular files as symlink. So, no block was freed. So, the EXT4 partition could be

Re: [PATCH] fdt: Make fdt addr -q quieter

2023-03-17 Thread Marek Vasut
On 3/16/23 17:34, Peter Hoyes wrote: From: Peter Hoyes 64597346 "fdt: Add -q option to fdt addr for distro_bootcmd" introduced the -q option for fdt addr, which sets the current working fdt address without printing any output. baf41410 "fdt: Show a message when the working FDT changes" made

[PATCH] fs: fat: do not mangle short filenames

2023-03-17 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Do not mangle lower or mixed case filenames which fit into the upper case 8.3 short filename. This ensures FAT standard compatible short filenames (SFN) to support systems without long filename (LFN) support like boot roms (ex. SFN BOOT.BIN instead of BOOT~1.BIN for

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

2023-03-17 Thread Rasmus Villemoes
I have a couple of boards, e.g. foo21, bar33, each with a few different revisions, so I have foo21-revA.dts foo21-revB.dts bar33-revA.dts bar33-revB.dts Now the necessary U-Boot specific additions for the foo21 boards doesn't depend on the revision (likely for bar33), so I just want to

Re: [EXTERNAL] Re: [PATCH 0/2] add support for hs bootflows on am62 devices

2023-03-17 Thread Kamlesh Gurudasani
Tom Rini writes: ... >> Hi Tom, >> >> Could you please review and merge this patches as these are bug fixes to >> get HS devices working. > > Is this a regression fix vs v2023.01 or new feature support? Thanks. Its regression fix vs 2023.01 for HS devices. Thanks. ~Kamlesh > > -- > Tom

Re: [PATCH 1/3] dm: adc: add iMX93 ADC support

2023-03-17 Thread Luca Ellero
On 17/03/2023 03:54, Bough Chen wrote: -Original Message- From: Luca Ellero Sent: 2023年3月15日 21:36 To: u-boot@lists.denx.de; sba...@denx.de; feste...@gmail.com; dl-uboot-imx ; luca.ell...@brickedbrain.com; Ye Li ; Peng Fan ; Bough Chen Cc: Luca Ellero Subject: [PATCH 1/3] dm: adc: add

Re: [PATCH 1/4] net: e1000: add and make use of NUM_RX_DESC macro

2023-03-17 Thread Christian Gmeiner
> > The call to DEFINE_ALIGN_BUFFER for the rx_desc array > conained an icnonsistency as 16 receive descriptors > were allocated when the remaining code would only use > 8 of them. > > Signed-off-by: Christian Gmeiner gentle ping -- greets -- Christian Gmeiner, MSc

Re: [PATCH v2 0/4] NFSv1 support

2023-03-17 Thread Christian Gmeiner
> > This patch series adds support for NFSv1 and is more > or less a rebased version of an older series. > > During V1 there was a discussion if it really makes sense > to bring more features into the network stack of U-Boot as it > is just a bootloader. As TCP support landed I thought I might >

Re: [PATCH 0/9] Enable splash screen

2023-03-17 Thread Nikhil M Jain
Hi Simon, On 16/03/23 10:10, Nikhil M Jain wrote: Hi Simon, On 15/03/23 19:38, Simon Glass wrote: Hi Nikhil, On Wed, 15 Mar 2023 at 00:07, Nikhil M Jain wrote: Hi Simon, On 15/03/23 03:38, Simon Glass wrote: Hi Nikhil, On Mon, 13 Mar 2023 at 04:15, Nikhil M Jain wrote: To enable

Re: [QUESTION] Device tree for gmii-to-rgmii phy driver

2023-03-17 Thread Michal Simek
Hi, On 3/16/23 17:52, Stefan Herbrechtsmeier wrote: Hi Siva Durga Prasad Paladugu, we want to add rgmii-id support to the gmiitorgmii phy driver. How does the correct device tree for the gmiitorgmii looks like? The converter sits between the MAC and the external PHY (MAC <==> GMII2RGMII <==>