Re: [PATCH v3 1/1] sunxi: H616: add LPDDR4 DRAM support

2023-11-10 Thread Jernej Škrabec
Dne sobota, 11. november 2023 ob 08:43:22 CET je Mikhail Kalashnikov napisal(a): > Hi Jernej, > > On 04.11.2023 11:31, Jernej Škrabec wrote: > > Hi Mikhail, > > > > I have some notes on LPDDR4 from a long time ago. It mostly matches to your > > code, but please take a look at comments below. > > >

Pull request doc-2024-01-rc3

2023-11-10 Thread Heinrich Schuchardt
Dear Tom, The following changes since commit da2e3196e4dc28298b58a018ace07f85eecd1652: Merge patch series "arm: dts: k3-am6: Fix Ethernet/DMA" (2023-11-10 15:25:47 -0500) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-efi.git tags/doc-2024-01-rc3 f

[PATCH 1/1] doc: add HiSilicon board documentation to HTML docs

2023-11-10 Thread Heinrich Schuchardt
Add the README files for the HiSilicon boards to the HTML documentation. This required a bit of reformatting. Signed-off-by: Heinrich Schuchardt --- board/hisilicon/hikey/MAINTAINERS| 1 + board/hisilicon/hikey/README | 227 board/hisilicon/hikey960/MAINTAINERS

[PATCH 1/1] tpm: remove superfluous check in tpm_tis_send()

2023-11-10 Thread Heinrich Schuchardt
Checking if variable chip is NULL after dereferencing it makes no sense. As discribed in [1] it is not expected that the variable can ever be NULL. [1] Re: [PATCH] tpm: avoid NULL pointer dereference in tpm_tis_send() https://lore.kernel.org/u-boot/yafwdtkkyrr7q...@apalos.home/ Signed-off-by:

[PATCH v5 3/3] arm64: boot: Support Flat Image Tree

2023-11-10 Thread Simon Glass
Add a script which produces a Flat Image Tree (FIT), a single file containing the built kernel and associated devicetree files. Compression defaults to gzip which gives a good balance of size and performance. The files compress from about 86MB to 24MB using this approach. The FIT can be used by b

[PATCH v5 2/3] arm: boot: Move the single quotes for image name

2023-11-10 Thread Simon Glass
Add quotes where UIMAGE_NAME is used, rather than where it is defined. This allows the UIMAGE_NAME variable to be set by the user. Signed-off-by: Simon Glass --- (no changes since v4) Changes in v4: - Add a patch to move the single quotes for image name scripts/Makefile.lib | 4 ++-- 1 file c

[PATCH v5 1/3] kbuild: arm64: Add BOOT_TARGETS variable

2023-11-10 Thread Simon Glass
Add a new variable containing a list of possible targets. Mark them as phony. This matches the approach taken for arch/arm Signed-off-by: Simon Glass --- (no changes since v1) arch/arm64/Makefile | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm64/Makefile b/arc

[PATCH v5 0/3] arm64: Add a build target for Flat Image Tree

2023-11-10 Thread Simon Glass
Flat Image Tree (FIT) is a widely used file format for packaging a kernel and associated devicetree files[1]. It is not specific to any one bootloader, as it is supported by U-Boot, coreboot, Linuxboot, Tianocore and Barebox. This series adds support for building a FIT as part of the kernel build.

Re: [PATCH] arm: dts: rockpro64: Add RockPro64 smbios

2023-11-10 Thread Tom Rini
On Fri, Nov 10, 2023 at 11:58:06PM +, Shantur Rathore wrote: > --- > arch/arm/dts/rk3399-rockpro64.dtsi | 20 > 1 file changed, 20 insertions(+) > > diff --git a/arch/arm/dts/rk3399-rockpro64.dtsi > b/arch/arm/dts/rk3399-rockpro64.dtsi > index 6bff8db7d3..cf850a69e6 100

[PATCH] configs: rockpro64: Enable SPI command and full BOOTSTD

2023-11-10 Thread Shantur Rathore
RockPro64 has a 16MB onboard SPI chip and current u-boot takes around 2MB, we can enable more features. Updating config to enable SPI commands and full BootSTD support. --- configs/rockpro64-rk3399_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/rockpro64-rk3399_defconfig

[PATCH] arm: dts: rockpro64: Add RockPro64 smbios

2023-11-10 Thread Shantur Rathore
--- arch/arm/dts/rk3399-rockpro64.dtsi | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/dts/rk3399-rockpro64.dtsi b/arch/arm/dts/rk3399-rockpro64.dtsi index 6bff8db7d3..cf850a69e6 100644 --- a/arch/arm/dts/rk3399-rockpro64.dtsi +++ b/arch/arm/dts/rk3399-rockpro64

Re: [PATCH v2 0/3] arm: dts: k3-am6: Fix Ethernet/DMA

2023-11-10 Thread Tom Rini
On Sat, 28 Oct 2023 20:36:00 +0300, Roger Quadros wrote: > Since commit [1], Ethernet is broken on TI AM62 and AM64 platforms. > > The commit [1] is not the culprit. It just unearths the problem by fixing > the error check in k3-udma.c. This issue was silently being ignored earlier > due to wrong

Re: [PATCH v5 1/2] arm: mediatek: add mt8195 SOC support

2023-11-10 Thread Marcel Ziswiler
Hi guys On Fri, 2023-08-04 at 19:04 +0800, Macpaul Lin wrote: > From: Fabien Parent > > The MediaTek MT8195 is a ARM64-based SoC with a quad-core Cortex-A73 and > a quad-core Cortex-A53. It is including UART, SPI, USB3.0 device and hosts, > SD and MMC cards, UFS, PWM, I2C, I2S, S/PDIF, and sever

Re: [PATCH 0/3] arm: Semihosting fixes/improvements for ARMv6 and older

2023-11-10 Thread Tom Rini
On Fri, 27 Oct 2023 16:40:12 -0400, Sean Anderson wrote: > This series has a few fixes for semihosting on ARMv6 and older CPUs. The > first two patches address problems regarding the stack pointer and link > register. U-Boot runs in supervisor mode, so taking a software interrupt > will clobber sp

[PATCH v2] clk: check parent_name in clk_register to avoid confusing log_error() output

2023-11-10 Thread Yang Xiwen via B4 Relay
From: Yang Xiwen For some gate clocks and fixed clocks without a parent, calling clk_register will print an useless error message indicating that parent is missing. Fix that by gaurding log_xxx() with an if-statement. Signed-off-by: Yang Xiwen Suggested-by: Sean Anderson --- It's found during

Re: [PATCH 2/4] serial: s5p: Use livetree API to get "id" property

2023-11-10 Thread Sam Protsenko
Hi Simon, On Tue, Nov 7, 2023 at 10:26 PM Simon Glass wrote: > > Hi Sam, > > On Tue, 7 Nov 2023 at 12:06, Sam Protsenko wrote: > > > > Use dev_read_u8_default() instead of fdtdec_get_int() to read the "id" > > property from device tree, as suggested in [1]. dev_* API is already > > used in this

Re: [PATCH 3/3] treewide: use linux/time.h for time conversion defines

2023-11-10 Thread Stefan Bosch
On 09.11.23 18:10, Igor Prusov wrote: Now that we have time conversion defines from in time.h there is no need for each driver to define their own version. Signed-off-by: Igor Prusov --- board/friendlyarm/nanopi2/onewire.c | 5 + drivers/clk/at91/clk-main.c

RE: [PATCH v7 2/2] schemas: Add some common reserved-memory usages

2023-11-10 Thread Chiu, Chasel
Just sharing some usage examples from UEFI/EDK2 scenario. To support ACPI S4/Hibernation, memory map must be consistent before entering and after resuming from S4, in this case payload may need to know previous memory map from bootloader (currently generic payload cannot access platform/bootlo

Re: [PATCH 5/5] test: dm: add scmi command test

2023-11-10 Thread Tom Rini
On Wed, Oct 25, 2023 at 02:14:27PM +0900, AKASHI Takahiro wrote: > 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

Re: [RFT PATCH 2/2] mmc: meson-gx: set 270 core phase during the identification

2023-11-10 Thread Jerome Brunet
On Thu 09 Nov 2023 at 16:49, Viacheslav wrote: > After running some tests, I've noticed inconsistent behavior with the eMMC: > On a cold boot (following a shutdown), the eMMC operates as expected within > U-Boot. > On a hot reboot (via the kernel's reboot command), the eMMC sometimes (not >

Re: [PATCH v4 0/5] Populate kaslr seed with RNG

2023-11-10 Thread Tom Rini
On Fri, Nov 03, 2023 at 11:38:39AM -0700, seanedm...@linux.microsoft.com wrote: > From: Sean Edmond > > This patch series creates a common API (fdt_fixup_kaslr_seed()) for > populating the kaslr seed in the DTB. Existing users (kaslrseed, > and ARMv8 sec firmware) have been updated to use this

Re: [PATCH] tree-wide: Replace http:// link with https:// link for ti.com

2023-11-10 Thread Tom Rini
On Wed, Nov 01, 2023 at 03:56:03PM -0500, Nishanth Menon wrote: > Replace instances of http://www.ti.com with https://www.ti.com > > Signed-off-by: Nishanth Menon Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] tools: gitignore: Fix tools/generated path

2023-11-10 Thread Tom Rini
On Thu, Oct 26, 2023 at 04:00:15PM -0500, Sam Protsenko wrote: > 'git status' shows 'tools/generated/' after running the build, which is > wrong. The corresponding .gitignore rule was already added in commit > c623642d29be ("Adjust gitignore for tools/generated/"), but because of > superfluous 'to

Re: [PATCH] boot: Fix syntax in fdt_overlay_apply_verbose() error message

2023-11-10 Thread Tom Rini
On Thu, Oct 26, 2023 at 03:54:49PM -0400, Hugo Villeneuve wrote: > From: Hugo Villeneuve > > Remove superfluous "did". > > Signed-off-by: Hugo Villeneuve Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v2] bootstd: Skip over bad device during bootflows scanning

2023-11-10 Thread Tom Rini
On Thu, Nov 02, 2023 at 11:51:15AM -0700, Tony Dinh wrote: > During bootstd scanning for bootdevs, if bootdev_hunt_drv() encounters > a device not found error (e.g. ENOENT), let it return a successful status > so that bootstd will continue scanning the next devices, not stopping > prematurely. >

Re: [PATCH] MAINTAINERS: Fix Sam Protsenko mail

2023-11-10 Thread Tom Rini
On Tue, Nov 07, 2023 at 02:45:04PM -0600, Sam Protsenko wrote: > Sam works for Linaro again. Use his work e-mail address for ANDROID AB > subsystem. > > Signed-off-by: Sam Protsenko Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] scsi: Have scsi_init_dev_desc_priv() use memset

2023-11-10 Thread Tom Rini
On Wed, Nov 08, 2023 at 02:28:11PM -0500, Tom Rini wrote: > When we do not have CONFIG_BOUNCE_BUFFER enabled, inside of > scsi_init_dev_desc_priv we never set the 'bb' field to false, we only > initialize it to true when CONFIG_BOUNCE_BUFFER is set. Given that we > have a number of other fields he

Re: [PATCH] test: cmd: mbr: Remove unreachable code

2023-11-10 Thread Tom Rini
On Wed, Nov 08, 2023 at 03:05:19AM +, Alexander Gendin wrote: > Fix Coverity (CID 467404): Control flow issues (DEADCODE). > Fix code indentation. > > Reported-by: Coverity (CID 467404) > Signed-off-by: Alexander Gendin Applied to u-boot/master, thanks! -- Tom signature.asc Description:

Re: [PATCH] firmware: scmi: correct a validity check against power domain id

2023-11-10 Thread Tom Rini
On Tue, Nov 07, 2023 at 09:05:47AM +0900, AKASHI Takahiro wrote: > A power domain id on sandbox should be in the range from zero to > ARRAY_SIZE(scmi_pwdom) - 1. Correct the validity check logic. > > Signed-off-by: AKASHI Takahiro > Fixes: CID 467401 > Fixes: CID 467405 Applied to u-boot/master

Re: Pull request: u-boot-rockchip-20231110

2023-11-10 Thread Tom Rini
(2023-11-07 > 10:36:23 -0500) > > are available in the Git repository at: > > https://source.denx.de/u-boot/custodians/u-boot-rockchip.git > tags/u-boot-rockchip-20231110 > > for you to fetch changes up to 4df4aea88fb99f413a0e3a2a96e176c6108939e3: > > rockchip: incl

[PATCH v2 6/6] doc: spl: Add info regarding memory reservation and missing Kconfigs

2023-11-10 Thread Devarsh Thakkar
Add information regarding memory reservation scheme in SPL and details regarding scheme which need to be followed while reserving those areas which need to be preserved across bootstages. Also add missing CONFIG_SPL Kconfigs and new ones which were added recently. Signed-off-by: Devarsh Thakkar

[PATCH v2 5/6] video: Fill video handoff in video post probe

2023-11-10 Thread Devarsh Thakkar
Fill video handoff fields in video_post_probe as at this point we have full framebuffer-related information. Also fill all the fields available in video hand-off struct as those were missing earlier and U-boot framework expects them to be filled for some of the functionalities. Reported-by: Simon

[PATCH v2 4/6] video: Skip framebuffer reservation if already reserved

2023-11-10 Thread Devarsh Thakkar
Skip framebufer reservation if it was already reserved from previous stage and whose information was passed using a bloblist. Signed-off-by: Devarsh Thakkar Reviewed-by: Simon Glass --- V2: - Add debug prints - Fix commenting style V3: - Fix commenting style --- drivers/video/video-uclass.c | 1

[PATCH v2 3/6] common/board_f: Catch bloblist before starting resevations

2023-11-10 Thread Devarsh Thakkar
Start reservations needed for init sequence only after catching bloblists from previous stage. This is to avoid catching bloblists in the middle causing gaps while u-boot is reserving. Adjust the relocaddr as per video hand-off information received from previous stage so that further reservations

[PATCH v2 2/6] board: ti: am62x: evm: Remove video_setup from spl_board_init

2023-11-10 Thread Devarsh Thakkar
Remove video_setup from evm_init sequence since video memory is getting called at an earlier place to make sure video memory is reserved at the end of RAM. Suggested-by: Simon Glass Signed-off-by: Devarsh Thakkar --- V2: No change V3: No change --- board/ti/am62x/evm.c | 18 --

[PATCH v2 0/6] Move framebuffer reservation for SPL to RAM end

2023-11-10 Thread Devarsh Thakkar
Move video memory reservation for SPL at end of RAM so that it does not interefere with reservations for next stage so that the next stage need not have holes in between for passed regions and instead it can maintain continuity in reservations. Also catch the bloblist before starting reservations

[PATCH v2 1/6] arm: mach-k3: common: Reserve video memory from end of the RAM

2023-11-10 Thread Devarsh Thakkar
Add function spl_reserve_video which is a wrapper around video_reserve to setup video memory and update the relocation address pointer. Setup video memory before page table reservation so that framebuffer memory gets reserved from the end of RAM. This is as per the new policy being discussed for

[PATCH] common: usb-hub: Reset hub port before scanning

2023-11-10 Thread Shantur Rathore
Currently when a hub is turned on, all the ports are powered on. This works well for hubs which have individual power control. For the hubs without individual power control this has no effect. Mostly in these scenarios the hub port is powered before the USB controller is enabled, this can lead to

[PATCH] common: usb-hub: Reset hub port before scanning

2023-11-10 Thread Shantur Rathore
Currently when a hub is turned on, all the ports are powered on. This works well for hubs which have individual power control. For the hubs without individual power control this has no effect. Mostly in these scenarios the hub port is powered before the USB controller is enabled, this can lead to

Re: [PULL] Pull request for u-boot master / v2024.01 = u-boot-stm32-20231110

2023-11-10 Thread Patrice CHOTARD
Add missing u-boot@lists.denx.de and patrick.delau...@foss.st.com On 11/10/23 14:48, Patrice CHOTARD wrote: > Hi Tom > > Please pull the STM32 related patches for u-boot/master, v2024.01: > u-boot-stm32-20231110 > > CI status: > https://source.denx.de/u-boot/custodians/u

Re: [PATCH] virtio: rng: gracefully handle 0 byte returns

2023-11-10 Thread Andre Przywara
On Fri, 10 Nov 2023 05:53:59 -0700 Simon Glass wrote: Hi Simon, > On Tue, 7 Nov 2023 at 09:09, Andre Przywara wrote: > > > > According to the virtio v1.x "entropy device" specification, a virtio-rng > > device is supposed to always return at least one byte of entropy. > > However the virtio v0.

Re: [PATCH v1 8/9] ARM: dts: stm32: Add STM32MP257F Evaluation board support

2023-11-10 Thread Patrice CHOTARD
On 11/9/23 10:17, Patrick DELAUNAY wrote: > Hi, > > On 10/27/23 16:43, Patrice Chotard wrote: >> Add STM32MP257F Evaluation board support. It embeds a STM32MP257FAI SoC, >> with 4GB of DDR4, TSN switch (2+1 ports), 2*USB typeA, 1*USB2 typeC, >> SNOR OctoSPI, mini PCIe, STPMIC2 for power distrib

Re: [PATCH v1 7/9] pinctrl: pinctrl_stm32: Add stm32mp2 support

2023-11-10 Thread Patrice CHOTARD
On 11/9/23 10:16, Patrick DELAUNAY wrote: > Hi, > > On 10/27/23 16:43, Patrice Chotard wrote: >> Add stm32mp2 compatible. >> >> Signed-off-by: Patrice Chotard >> --- >> >>   drivers/pinctrl/pinctrl_stm32.c | 2 ++ >>   1 file changed, 2 insertions(+) >> >> diff --git a/drivers/pinctrl/pinctrl_s

Re: [PATCH v1 9/9] stm32mp2: initial support

2023-11-10 Thread Patrice CHOTARD
On 11/9/23 10:41, Patrick DELAUNAY wrote: > Hi, > > On 10/27/23 16:43, Patrice Chotard wrote: >> Add initial support for STM32MP2 SoCs family. >> >> SoCs information are available here : >> https://www.st.com/content/st_com/en/campaigns/microprocessor-stm32mp2.html >> >> Migrate all MP1 related

Re: [PATCH v1 6/9] serial: stm32: Fix AARCH64 compilation warnings

2023-11-10 Thread Patrice CHOTARD
On 11/9/23 10:15, Patrick DELAUNAY wrote: > Hi, > > On 10/27/23 16:43, Patrice Chotard wrote: >> From: Patrice Chotard >> >> When building with AARCH64 defconfig, we got warnings, fix them >> by using registers base address defined as void __iomem * instead of >> fdt_addr_t. >> >> Signed-off-b

Re: [PATCH v1 5/9] stm32mp: bsec: Fix AARCH64 compilation warnings

2023-11-10 Thread Patrice CHOTARD
On 11/9/23 10:14, Patrick DELAUNAY wrote: > Hi, > > On 10/27/23 16:43, Patrice Chotard wrote: >> When building with AARCH64 defconfig, we got warnings, fix them. >> >> Signed-off-by: Patrice Chotard >> --- >> >>   arch/arm/mach-stm32mp/bsec.c | 29 +++-- >>   1 file chan

Re: [PATCH v1 4/9] stm32mp: dram_init: Limit DDR usage under 4GB boundary for STM32MP

2023-11-10 Thread Patrice CHOTARD
On 11/9/23 10:13, Patrick DELAUNAY wrote: > Hi, > > On 10/27/23 16:42, Patrice Chotard wrote: >> Limit DDR usage under 4GB boundary on STM32MP regardless of >> memory size declared in device tree. >> >> Signed-off-by: Patrice Chotard >> --- >> >>   arch/arm/mach-stm32mp/dram_init.c | 8 +++

Re: [PATCH v1 3/9] stm32mp: dram_init: Fix AARCH64 compilation warnings

2023-11-10 Thread Patrice CHOTARD
On 11/9/23 10:13, Patrick DELAUNAY wrote: > Hi, > > > On 10/27/23 16:42, Patrice Chotard wrote: >> From: Patrick Delaunay >> >> When building with AARCH64 defconfig, we got warnings for debug >> message >> - format '%x' expects argument of type 'unsigned int', >>     but argument 3 has type '

Re: [PATCH v1 3/9] stm32mp: dram_init: Fix AARCH64 compilation warnings

2023-11-10 Thread Patrice CHOTARD
On 10/27/23 16:42, Patrice Chotard wrote: > From: Patrick Delaunay > > When building with AARCH64 defconfig, we got warnings for debug > message > - format '%x' expects argument of type 'unsigned int', >but argument 3 has type 'size_t' {aka 'long unsigned int'}). > - format '%lx' expects a

Re: [PATCH v1 2/9] stm32mp: dram_init: Get RAM size from DT if no RAM driver found

2023-11-10 Thread Patrice CHOTARD
On 11/9/23 10:11, Patrick DELAUNAY wrote: > Hi, > > On 10/27/23 16:42, Patrice Chotard wrote: >> From: Patrice Chotard >> >> In case there is no RAM driver retrieve RAM size from DT as fallback. >> >> Signed-off-by: Patrice Chotard >> Signed-off-by: Patrice Chotard >> --- >> >>   arch/arm/ma

Re: [PATCH v1 1/9] arm: caches: Make DCACHE_DEFAULT_OPTION accessible for ARM64 arch

2023-11-10 Thread Patrice CHOTARD
On 11/9/23 10:11, Patrick DELAUNAY wrote: > Hi, > > On 10/27/23 16:42, Patrice Chotard wrote: >> This fixes the following compilation error in ARM64: >> arch/arm/mach-stm32mp/dram_init.c: In function ‘board_get_usable_ram_top’: >> arch/arm/mach-stm32mp/dram_init.c:59:45: error: ‘DCACHE_DEFAULT_

Re: [PATCH] efi_loader: Fix UEFI variable error handling

2023-11-10 Thread Heinrich Schuchardt
Am 10. November 2023 11:04:24 MEZ schrieb Ilias Apalodimas : >Hi Heinrich, Weizhao > >On Thu, 9 Nov 2023 at 15:57, Heinrich Schuchardt wrote: >> >> On 11/9/23 04:55, Weizhao Ouyang wrote: >> > Correct some UEFI variable error handing code paths. >> > >> > Signed-off-by: Weizhao Ouyang >> > --

Re: [PATCH 3/3] treewide: use linux/time.h for time conversion defines

2023-11-10 Thread Caleb Connolly
On 09/11/2023 17:10, Igor Prusov wrote: > Now that we have time conversion defines from in time.h there is no need > for each driver to define their own version. > > Signed-off-by: Igor Prusov Reviewed-by: Caleb Connolly #qcom geni > --- > > board/friendlyarm/nanopi2/onewire.c

Re: [PATCH] virtio: rng: gracefully handle 0 byte returns

2023-11-10 Thread Simon Glass
Hi Andre, On Tue, 7 Nov 2023 at 09:09, Andre Przywara wrote: > > According to the virtio v1.x "entropy device" specification, a virtio-rng > device is supposed to always return at least one byte of entropy. > However the virtio v0.9 spec does not mention such a requirement. > > The Arm Fixed Virt

[PATCH] arm64: zynqmp: Add multiboot support for SPL/SPI offset calculation

2023-11-10 Thread Michal Simek
In case of A/B update systems there should be an option to load the same binary/binaries to different location and they should work. Before this patch boot.bin with U-Boot SPL can be added to whatever 32k offset in SPI and SPL finds u-boot.itb at CONFIG_SYS_SPI_U_BOOT_OFFS offset. In case of A/B up

Re: [Uboot-stm32] [PATCH v1] stm32mp1: read auth stats and boot_partition from tamp

2023-11-10 Thread Patrice CHOTARD
On 11/9/23 08:47, Patrice CHOTARD wrote: > > > On 11/6/23 11:41, Igor Opaniuk wrote: >> Obtain from TAMP backup register information about image authorization >> status and partition id used for booting. Store this info in >> environmental variables ("boot_auth" and "boot_part" correspondingly

Re: [PATCH 2/2] arm: stm32: Limit u-boot.itb size to 0x160000 bytes on DH STM32MP15 DHSOM

2023-11-10 Thread Patrice CHOTARD
On 11/9/23 08:19, Patrice CHOTARD wrote: > > > On 11/4/23 17:31, Marek Vasut wrote: >> The maximum size of u-boot.itb in SPI NOR on DH STM32MP15 DHSOM is >> 0x16 . Define this size in U-Boot config to prevent misconfigured >> builds from emitting larger u-boot.itb than the one which fits t

Re: [PATCH 1/2] arm: stm32: Enable TCP, IPv6, wget on DH STM32MP15 DHSOM

2023-11-10 Thread Patrice CHOTARD
On 11/9/23 08:18, Patrice CHOTARD wrote: > > > On 11/4/23 17:31, Marek Vasut wrote: >> Enable support for TCP protocol, wget, and IPv6 on this platform. >> The former two allow users download payload into the U-Boot from >> a web server, which may be more convenient or easier to set up >> than

Re: [Uboot-stm32] [PATCH] ARM: dts: stm32mp: Repair damage from alignment with v6.3

2023-11-10 Thread Patrice CHOTARD
On 10/10/23 15:04, Patrice CHOTARD wrote: > On 10/10/23 01:15, Marek Vasut wrote: >> The patch fixed by this commit renders ST STM32MP15xx EV1 board and >> all DHSOM SoM based boards unbootable from SPI NOR. Fix the damage >> by updating -u-boot.dtsi to match the stm32mp15-pinctrl.dtsi update. >

Re: [PATCH v2 1/2] arm: stm32mp: Really fix compilation issue when SYS_DCACHE_OFF and/or SYS_DCACHE_SYS are enabled

2023-11-10 Thread Patrice CHOTARD
On 8/25/23 10:53, Patrice CHOTARD wrote: > > > On 8/22/23 09:51, Bhupesh Sharma wrote: >> While 23e20b2fa6 ("arm: stm32mp: Fix compilation issue when >> SYS_DCACHE_OFF and/or SYS_DCACHE_SYS are enabled") tried fixing >> this issue, fix it really by adding #if checks for SYS_ICACHE_OFF >> and S

Re: [RFC PATCH 1/1] arm: mach-k3: Enable icache on am625 to boot faster

2023-11-10 Thread Nishanth Menon
On 09:59-20231110, Francesco Dolcini wrote: > On Thu, Nov 09, 2023 at 01:51:19PM -0500, Tom Rini wrote: > > On Thu, Nov 09, 2023 at 12:44:56PM -0600, Andrew Davis wrote: > > > On 11/9/23 11:37 AM, Nishanth Menon wrote: > > > > On 11:09-20231109, Joao Paulo Goncalv

Re: [PATCH] acpi: move acpi_get_rsdp_addr() to acpi/acpi_table.h

2023-11-10 Thread Simon Glass
Hi Tom, Heinrich, On Thu, 9 Nov 2023 at 13:42, Tom Rini wrote: > > On Thu, Nov 09, 2023 at 12:28:26PM -0800, Heinrich Schuchardt wrote: > > On 11/9/23 11:24, Tom Rini wrote: > > > On Thu, Nov 09, 2023 at 09:23:02AM -0800, Heinrich Schuchardt wrote: > > > > > > > Function acpi_get_rsdp_addr() is n

Re: [PATCH] acpi: move acpi_get_rsdp_addr() to acpi/acpi_table.h

2023-11-10 Thread Simon Glass
On Thu, 9 Nov 2023 at 10:23, Heinrich Schuchardt wrote: > > Function acpi_get_rsdp_addr() is needed on all architectures which > write ACPI tables. Move the definition from the x86 include to an > architecture independent one. > > Signed-off-by: Heinrich Schuchardt > --- > arch/x86/include/asm/a

Re: [PATCH 3/3] treewide: use linux/time.h for time conversion defines

2023-11-10 Thread Eugen Hristev
On 11/9/23 19:10, Igor Prusov wrote: Now that we have time conversion defines from in time.h there is no need for each driver to define their own version. Signed-off-by: Igor Prusov --- board/friendlyarm/nanopi2/onewire.c | 5 + drivers/clk/at91/clk-main.c

Re: [PATCH 3/3] treewide: use linux/time.h for time conversion defines

2023-11-10 Thread Svyatoslav Ryhel
чт, 9 лист. 2023 р. о 19:10 Igor Prusov пише: > > Now that we have time conversion defines from in time.h there is no need > for each driver to define their own version. > > Signed-off-by: Igor Prusov > --- > > board/friendlyarm/nanopi2/onewire.c | 5 + > drivers/clk/at91/clk-m

Lichee Pi 4A GMAC driver

2023-11-10 Thread Gilbert Gilbs
Hi, I'm the happy owner of a Lichee Pi 4A by Sipeed, a RISC-V SBC based on the TH1520 SoC by Alibaba. Very basic support for this board was added in 5f3a7fdb. For now it's just able to chainload mainline U-Boot from vendor's fork of U-Boot. As an experiment, I started porting the glue layer for t

Re: [PATCH 1/3] linux/time.h: Add Linux time conversion defines

2023-11-10 Thread Simon Glass
On Thu, 9 Nov 2023 at 10:10, Igor Prusov wrote: > > Currently there are no defines for time conversion in time.h, which > leads to drivers declaring those locally or not using defines at all, so > add them from Linux. > > Signed-off-by: Igor Prusov > --- > > include/linux/time.h | 9 + >

Re: [PATCH] doc: typo 'form' in qfw.rst

2023-11-10 Thread Simon Glass
On Thu, 9 Nov 2023 at 09:35, Heinrich Schuchardt wrote: > > %s/form/from/ > > Fixes: d46bee8c2d24 ("doc: qfw man-page") > Signed-off-by: Heinrich Schuchardt > --- > doc/usage/cmd/qfw.rst | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Simon Glass

Re: [PATCH] pci: ecm generic: use dev_read_() interface

2023-11-10 Thread Simon Glass
Hi, On Mon, 8 May 2023 at 09:08, Tom Rini wrote: > > On Mon, May 08, 2023 at 08:30:15PM +0530, Mayuresh Chitale wrote: > > On Thu, May 4, 2023 at 2:04 AM Tom Rini wrote: > > > > > > On Sat, Feb 18, 2023 at 05:55:25PM +0530, Mayuresh Chitale wrote: > > > > > > > Use dev_read_() api instead of the

Re: [PATCH] riscv: binman: fix the load field format

2023-11-10 Thread Simon Glass
Hi Randolph, On Wed, Nov 8, 2023, 20:15 Randolph wrote: > > The #address-cells is now equal to 2. The format of the load field for > the Linux kernel doesn't match. > > Signed-off-by: Randolph > --- > arch/riscv/dts/binman.dtsi | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff

Re: [PATCH v3 0/2] rng: Provide a RNG based on the RISC-V Zkr ISA extension

2023-11-10 Thread Simon Glass
Hi, On Wed, 8 Nov 2023 at 10:38, Palmer Dabbelt wrote: > > On Tue, 07 Nov 2023 15:12:16 PST (-0800), Conor Dooley wrote: > > +CC Palmer > > > > On Tue, Nov 07, 2023 at 05:38:37PM -0500, Tom Rini wrote: > >> On Tue, Nov 07, 2023 at 10:27:50PM +, Conor Dooley wrote: > >> > On Tue, Nov 07, 2023

PCIe layerscape ATU

2023-11-10 Thread Fabian Cenedese
Hello I have a question to this code (drivers/pci/pcie_layerscape.c): void ls_pcie_atu_outbound_set(struct ls_pcie *pcie, int idx, int type, u64 phys, u64 bus_addr, u64 size) { dbi_writel(pcie, PCIE_ATU_REGION_OUTBOUND | idx, PCIE_ATU_VIEWPORT); dbi_w

Re: [PATCH 6/6] rockchip: ringneck-px30: fix modified boot_targets detection

2023-11-10 Thread Quentin Schulz
Hi Tom, On 11/9/23 22:28, Tom Rini wrote: On Wed, Nov 08, 2023 at 03:20:35PM +0100, Quentin Schulz wrote: From: Quentin Schulz U-Boot proper automatically modifies boot_targets to swap the order in which MMC storage media are used for standard boot based on which MMC storage medium was used

Re: [PATCH] efi_loader: Fix UEFI variable error handling

2023-11-10 Thread Ilias Apalodimas
Hi Heinrich, Weizhao On Thu, 9 Nov 2023 at 15:57, Heinrich Schuchardt wrote: > > On 11/9/23 04:55, Weizhao Ouyang wrote: > > Correct some UEFI variable error handing code paths. > > > > Signed-off-by: Weizhao Ouyang > > --- > > lib/efi_loader/efi_var_file.c | 1 + > > lib/efi_loader/efi_varia

[PATCH v2 5/5] fs: fat: add bootsector validity check

2023-11-10 Thread christian . taedcke-oss
From: Christian Taedcke The performed checks are similar to the checks performed by the Linux kernel in the function fat_read_bpb() in the file fs/fat/inode.c. Signed-off-by: Christian Taedcke --- Changes in v2: - Add validity checks for boot sector fs/fat/fat.c | 53

[PATCH v2 3/5] fs: fat: calculate FAT type based on cluster count

2023-11-10 Thread christian . taedcke-oss
From: Christian Taedcke This fixes an issue where the FAT type (FAT12, FAT16) is not correctly detected, e.g. when the BPB field BS_FilSysType contains the valid value "FAT ". According to the FAT spec the field BS_FilSysType has only informational character and does not determine the FAT ty

[PATCH v2 4/5] fs: fat: simplify gotos from read_bootsectandvi

2023-11-10 Thread christian . taedcke-oss
From: Christian Taedcke This simplifies the code a little bit. Signed-off-by: Christian Taedcke --- Changes in v2: - Keep one goto label instead of removing both - Move changing gotos from read_bootsectandvi() into separate commit fs/fat/fat.c | 9 - 1 file changed, 4 insertions(+),

[PATCH v2 2/5] test: spl: Remove usage of FAT32_SIGN

2023-11-10 Thread christian . taedcke-oss
From: Christian Taedcke FAT32_SIGN is removed in the following commits. Signed-off-by: Christian Taedcke --- Changes in v2: - Move code change in test/image/spl_load_fs.c into separate commit test/image/spl_load_fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/im

[PATCH v2 0/5] fs: fat: calculate FAT type based on cluster count

2023-11-10 Thread christian . taedcke-oss
From: Christian Taedcke This series fixes an issue where the FAT type (FAT12, FAT16) is not correctly detected, e.g. when the BPB field BS_FilSysType contains the valid value "FAT ". This issue occures, for example, if a partition is formatted by swupdate using its diskformat handler. swupd

[PATCH v2 1/5] fs: fat: use get_unaligned_le16 to convert u8[2] to u16

2023-11-10 Thread christian . taedcke-oss
From: Christian Taedcke This reduces code duplications. Signed-off-by: Christian Taedcke --- Changes in v2: - Use get_unaligned_le16 instead of custom macro fs/fat/fat.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/fat/fat.c b/fs/fat/fat.c index 8ff1fd0ec8..

Pull request: u-boot-rockchip-20231110

2023-11-10 Thread Kever Yang
t-rockchip-20231110 for you to fetch changes up to 4df4aea88fb99f413a0e3a2a96e176c6108939e3: rockchip: include: asm: fix entering download mode rk3066 (2023-11-09 18:07:21 +0800) Johan Jonker (1): rockchip: include: asm: fi

Re: [PATCH v1 0/5] Implement fastboot multiresponce

2023-11-10 Thread Svyatoslav Ryhel
чт, 9 лист. 2023 р. о 13:00 Mattijs Korpershoek пише: > > Hi Svyatoslav, > > On jeu., nov. 09, 2023 at 11:01, Svyatoslav Ryhel wrote: > > > 9 листопада 2023 р. 10:41:30 GMT+02:00, Mattijs Korpershoek > > написав(-ла): > >>Hi Svyatoslav, Ion, > >> > >>Thank you for these series. > >> > >>On mar.

Re: [RFC PATCH 1/1] arm: mach-k3: Enable icache on am625 to boot faster

2023-11-10 Thread Francesco Dolcini
On Thu, Nov 09, 2023 at 01:51:19PM -0500, Tom Rini wrote: > On Thu, Nov 09, 2023 at 12:44:56PM -0600, Andrew Davis wrote: > > On 11/9/23 11:37 AM, Nishanth Menon wrote: > > > On 11:09-20231109, Joao Paulo Goncalves wrote: > > > > Enable the am625 instruction cache on SPL and U-boot earlier for the