[PATCH 06/12] fs: exfat: Import libexfat from fuse-exfat

2025-03-08 Thread Marek Vasut
Import most of libexfat from [1] except for log.c verbatim. The code does not even compile and further adjustments and integration into U-Boot filesystem code is in the next patch. [1] https://github.com/relan/exfat 0b41c6d3560d ("CI: bump FreeBSD to 13.1.") Signed-off-by: Marek Vasut --- Cc

[PATCH 0/2] sunxi: h616: fix DRAM size detection

2025-03-08 Thread Jernej Skrabec
I got multiple reports that DRAM size is occasionally misdetected on H616. Some analysis revealed that issues are the same as on currently WIP A523 DRAM driver. Namely: - size check might test outside H616 DRAM memory region - only one dword pattern is not enough for memory aliasing testing Follow

[PATCH 1/2] sunxi: h616: dram: Rework size detection

2025-03-08 Thread Jernej Skrabec
Since there is quite a few possible DRAM configurations in terms of bus width, rank and rows and columns count, size detection algorithm must be very careful not to test combination which would be bigger than H616 is actually capable of handling. Ideally, we should always detect memory aliasing, e

[PATCH 2/2] sunxi: H616: dram: Improve address wrapping detection

2025-03-08 Thread Jernej Skrabec
It turns out that checking just one write is not enough. Due to unexplained reasons scan procedure detected double the size. By making 16 dword writes and comparisons that never happens. New procedure is also inverted. Instead of writing two different values to base address and some offset and the

[PATCH 2/3] net: lwip: save struct netif in struct udevice

2025-03-08 Thread Jerome Forissier
Save the struct netif pointer in the corresponding struct udevice when the netif is created. This avoids needlessly re-creating devices each time the lwIP stack is entered. Replace functions net_lwip_new_netif() and net_lwip_new_netif_noip() with net_lwip_netif() and net_lwip_netif_noip() respecti

[PATCH] sunxi: mmc: Improve reset procedure

2025-03-08 Thread Jernej Skrabec
Cards should always be reset and threshold set. This fixes eMMC on H616. Signed-off-by: Jernej Skrabec --- drivers/mmc/sunxi_mmc.c | 28 ++-- drivers/mmc/sunxi_mmc.h | 15 +-- 2 files changed, 35 insertions(+), 8 deletions(-) diff --git a/drivers/mmc/sunxi_mm

Re: boottime->efi_allocate_pages() returning EFI_NOT_FOUND

2025-03-08 Thread Ben Schneider
On Wednesday, March 5th, 2025 at 12:20 AM, Heinrich Schuchardt wrote: > > On 3/5/25 09:13, Sughosh Ganu wrote: > > > > Can you check what is the address being asked for in the > > lmb_alloc_addr() function. > > maybe also add a call to lmb_dump_all_force() Thank you both! This was exactly wha

[PATCH] ARM: stm32mp: Fix dram_bank_mmu_setup() for ram_top=0

2025-03-08 Thread Marek Vasut
On STM32MP15xx with 1 GiB of DRAM, the gd->ram_top becomes 0, because DRAM base 0xc000 + DRAM size 0x4000 leads to gd->ram_top overflow which resets it to 0. Handle this special case simply by checking for gd->ram_top being zero, and if it is, assume there is no addr >= gd->ram_top . This

Re: [PATCH 01/10] clk: imx6q: Properly handle imx6qp ESPI clk_sels

2025-03-08 Thread Adam Ford
On Thu, Mar 6, 2025 at 9:57 AM Fabio Estevam wrote: > > On Sun, Mar 2, 2025 at 1:53 PM Adam Ford wrote: > > > > The ECSPI clock has the ability to select between pll3_60m and > > osc on the imx6qp, where it's fixed on other variants. Fix this > > by adding using a helper function to determine So

Re: [PATCH v3 00/30] upl: Prerequite patches for updated spec

2025-03-08 Thread Simon Glass
Hi Patrick, On Sun, 16 Feb 2025 at 05:56, Simon Glass wrote: > > Hi Patrick, > > On Sun, 16 Feb 2025 at 01:28, Patrick Rudolph > wrote: > > > > Hi Simon, > > On Thu, Jan 23, 2025 at 3:13 PM Tom Rini wrote: > > > > > > On Fri, 10 Jan 2025 16:59:59 -0700, Simon Glass wrote: > > > > > > > The curr

Re: [PATCH] net: miiphybb: Update documentation

2025-03-08 Thread Marek Vasut
On 3/8/25 3:50 PM, Paul Barker wrote: On 06/03/2025 22:12, Marek Vasut wrote: Update the miiphybb documentation to match current implementation. The static struct bb_miiphy_bus bb_miiphy_buses[] array is removed. The example is updated to match current Renesas RAVB driver, which is one of the mi

[PATCH v2] net: miiphybb: Update documentation

2025-03-08 Thread Marek Vasut
Update the miiphybb documentation to match current implementation. The static struct bb_miiphy_bus bb_miiphy_buses[] array is removed. The example is updated to match current Renesas RAVB driver, which is one of the miiphybb users. Reviewed-by: Paul Barker Signed-off-by: Marek Vasut --- Cc: Jim

[RFC][PATCH] net: miiphybb: Convert documentation to rst

2025-03-08 Thread Marek Vasut
Convert the current miiphybb documentation to rst. Rename the README.bitbangMII to bitbangmii.rst in the process. Signed-off-by: Marek Vasut --- Cc: Jim Liu Cc: Joe Hershberger Cc: Mario Six Cc: Michael Chang Cc: Nobuhiro Iwamatsu Cc: Parvathi Bhogaraju Cc: Paul Barker Cc: Ramon Fried Cc:

[PATCH 02/12] cmd: fs: Add generic rm implementation

2025-03-08 Thread Marek Vasut
Add generic implementation of the 'rm' command to delete files from filesystems using the generic filesystem API. Signed-off-by: Marek Vasut --- Cc: Baruch Siach Cc: Francesco Dolcini Cc: Heinrich Schuchardt Cc: Hiago De Franco Cc: Ilias Apalodimas Cc: Nam Cao Cc: Simon Glass Cc: Sughosh G

[PATCH 05/12] fs: Add generic fs_devread() implementation

2025-03-08 Thread Marek Vasut
Add generic implementation of write into a block device to be used by filesystem implementations. This is a pair function for already existing fs_devread(). Signed-off-by: Marek Vasut --- Cc: Baruch Siach Cc: Francesco Dolcini Cc: Heinrich Schuchardt Cc: Hiago De Franco Cc: Ilias Apalodimas

[PATCH 09/12] fs: exfat: Demote filesystem detection failure message to debug()

2025-03-08 Thread Marek Vasut
Demote "exFAT file system is not found" message to debug(). This is printed when U-Boot attempts to auto-detect the filesystem via generic filesystem API by attempting to mount the device, and fails to do so because there is another filesystem in place. The libexfat-fuse code prints this an error,

[PATCH 10/12] configs: sandbox: Enable exfat support

2025-03-08 Thread Marek Vasut
Enable exfat support in sandbox and sandbox64 to assure build and test coverage of this filesystem on both 32bit and 64bit builds. Signed-off-by: Marek Vasut --- Cc: Baruch Siach Cc: Francesco Dolcini Cc: Heinrich Schuchardt Cc: Hiago De Franco Cc: Ilias Apalodimas Cc: Nam Cao Cc: Simon Gla

[PATCH 12/12] test_fs: Add exfat tests

2025-03-08 Thread Marek Vasut
Add tests for the exfat filesystem. These tests are largely an extension of the FS_GENERIC tests with the following notable exceptions. The filesystem image for exfat tests is generated using combination of exfatutils mkfs.exfat and python fattools. The fattols are capable of generating exfat file

[PATCH 11/12] pytest: requirements.txt: Include setuptools

2025-03-08 Thread Marek Vasut
This seems to be needed for filesystem tests at least on ubuntu 22.04 machines. Add setuptools into requirements.txt . Signed-off-by: Marek Vasut --- Cc: Baruch Siach Cc: Francesco Dolcini Cc: Heinrich Schuchardt Cc: Hiago De Franco Cc: Ilias Apalodimas Cc: Nam Cao Cc: Simon Glass Cc: Sugh

[PATCH 08/12] fs: exfat: Fix conversion overflow errors

2025-03-08 Thread Marek Vasut
Fix the following conversion overflow errors. The input field is already limited to 3/2/1 bits using the bitwise and, move the parenthesis around to avoid the bogus warning: " fs/exfat/utf.c: In function ‘utf8_to_wchar’: fs/exfat/utf.c:165:23: warning: overflow in conversion from ‘int’ to ‘wchar_t

[PATCH 07/12] fs: exfat: Add U-Boot porting layer

2025-03-08 Thread Marek Vasut
Add U-Boot adjustments to the libexfat code and integrate the result into U-Boot filesystem layer. This provides full read-write exfat support for U-Boot available via generic filesystem interface. FS_DIRENT_NAME_LEN is increased to 1024 in case exfat is enabled, because EXFAT can use UTF16 names,

[PATCH 04/12] linux: Add generic struct stat {}

2025-03-08 Thread Marek Vasut
Add generic implementation of struct stat {} imported from Linux 6.13.y commit 27560b371ab8 ("fs: pack struct kstat better"). This can be used by filesystem code imported from elsewhere. Now struct stat {} becomes available on all supported architectures. Signed-off-by: Marek Vasut --- Cc: Baruch

[PATCH 03/12] test_fs: Allow testing FS_GENERIC

2025-03-08 Thread Marek Vasut
The generic filesystem interface was so far untested. The interface is similar to the FS specific interfaces with FS specific prefixes, like ext4ls, fatmkdir, ... but it does not have any prefixes, i.e. it provides plain ls, mkdir, ... commands. Extend the test parameters to include 'fs_cmd_prefix

[PATCH 01/12] cmd: fs: Add generic mkdir implementation

2025-03-08 Thread Marek Vasut
Add generic implementation of the 'mkdir' command to create directories in filesystems using the generic filesystem API. Signed-off-by: Marek Vasut --- Cc: Baruch Siach Cc: Francesco Dolcini Cc: Heinrich Schuchardt Cc: Hiago De Franco Cc: Ilias Apalodimas Cc: Nam Cao Cc: Simon Glass Cc: Su

[PATCH 00/12] fs: exfat: Add exfat port based on exfat-fuse

2025-03-08 Thread Marek Vasut
Import exfat-fuse libexfat, add U-Boot filesystem layer porting glue code and wire exfat support into generic filesystem support code. This adds exfat support to U-Boot. Fill in generic filesystem interface for mkdir and rm commands. Make filesystem tests test the generic interface as well as exfa

Re: [PATCH 01/10] clk: imx6q: Properly handle imx6qp ESPI clk_sels

2025-03-08 Thread Fabio Estevam
Hi Adam, On Sat, Mar 8, 2025 at 4:07 PM Adam Ford wrote: > Thanks for the review. I will make the updates to the two patches you > requested. Is there anything else you want changed before I submit > V2? The rest looks good, thanks.

[PATCH v2 1/1] sandbox: remap memory load addresses

2025-03-08 Thread Svyatoslav Ryhel
The existing memory layout places the bloblist at 0xb000 and the fdt at 0x100, resulting in a 0xaf00 size constraint for the fdt. This constraint has been reached. Lets modify the layout by moving the bloblist to 0x100, device tree to 0x1000 and placing early memory allocation after pre-console buf

[PATCH v2 0/1] sandbox: swap bloblist and fdt loading address sequence

2025-03-08 Thread Svyatoslav Ryhel
The existing memory layout places the bloblist at 0xb000 and the fdt at 0x100, resulting in a 0xaf00 size constraint for the fdt. This constraint has been reached. Lets modify the layout by moving the bloblist to 0x100, device tree to 0x1000 and placing early memory allocation after pre-console buf

Re: [PATCH 1/5] reset: rzg2l-usbphy-ctrl: Add new driver

2025-03-08 Thread Paul Barker
On 05/03/2025 20:05, Marek Vasut wrote: > On 3/4/25 5:37 PM, Paul Barker wrote: > > [...] > >> +static int rzg2l_usbphy_ctrl_assert(struct reset_ctl *reset_ctl) >> +{ >> +struct rzg2l_usbphy_ctrl_priv *priv = dev_get_priv(reset_ctl->dev); >> +u32 val; >> + >> +val = readl(priv->regs +

Re: [PATCH] net: miiphybb: Update documentation

2025-03-08 Thread Paul Barker
On 06/03/2025 22:12, Marek Vasut wrote: > Update the miiphybb documentation to match current implementation. > The static struct bb_miiphy_bus bb_miiphy_buses[] array is removed. > The example is updated to match current Renesas RAVB driver, which > is one of the miiphybb users. > > Signed-off-by:

Re: Building separate SPL with U-boot

2025-03-08 Thread Yao Zi
On Sat, Mar 08, 2025 at 03:07:19PM +0500, Ali Tariq wrote: > Hello everyone, > > I am trying to build a separate SPL for u-boot (which would produce a file > named FSBL.bin - first stage boot loader after the build) for testing > purposes. I am using bananapi-f3_defconfig as the config file. iirc

Re: [PATCH v2 0/6] This series adds support for file renaming to EFI_FILE_PROTOCOL.SetInfo().

2025-03-08 Thread Tom Rini
On Mon, 17 Feb 2025 13:26:41 -0500, Gabriel Dalimonte wrote: > This series adds support for file renaming to EFI_FILE_PROTOCOL.SetInfo(). > One of the use cases for renaming in EFI is to facilitate boot loader > boot counting. > > No existing filesystems in U-Boot currently include file renaming,

Building separate SPL with U-boot

2025-03-08 Thread Ali Tariq
Hello everyone, I am trying to build a separate SPL for u-boot (which would produce a file named FSBL.bin - first stage boot loader after the build) for testing purposes. I am using bananapi-f3_defconfig as the config file. But I want to know how to produce a separate SPL for any SoC or board. Is

Re: [PATCH 4/5] configs: stm32mp13: Enable MFD timer and PWM for stm32mp13_defconfig

2025-03-08 Thread Patrice CHOTARD
On 3/6/25 11:56, Cheick Traore wrote: > Enable the following configs: > > * CONFIG_MFD_STM32_TIMERS: enables support for the STM32 multifunction >timer > * CONFIG_DM_PWM: enables support for pulse-width modulation devices > * CONFIG_CMD_PWM: enables 'pwm' command to