Re: [PATCH 05/32] lib: Provide fdtdec_get_pci_bar32() only with PCI enabled

2025-02-05 Thread Matthias Brugger
On 03/02/2025 18:41, Simon Glass wrote: This function calls dm_pci_read_bar32() which is only available if PCI is enabled. Add this condition here too, so that the EFI app can build without needing --gc-sections Signed-off-by: Simon Glass Reviewed-by: Matthias Brugger --- lib

Re: [PATCH] rpi: Add identifiers for the new RPi 5 series

2025-01-03 Thread Matthias Brugger
On 29/12/2024 15:46, Peter Robinson wrote: The Raspberry Pi foundation have released the Raspberry Pi 500, CM5 an CM5 lite devices so add the assoicated revision identifers so we can detect them. Signed-off-by: Peter Robinson Acked-by: Matthias Brugger --- board/raspberrypi/rpi/rpi.c

Re: [PATCH v2 2/2] fdt: Swap the signature for board_fdt_blob_setup()

2024-11-11 Thread Matthias Brugger
; + + return 0; } int copy_property(void *dst, void *src, char *path, char *property) For Raspberry Pi: Reviewed-by: Matthias Brugger

Re: [PATCH v1 1/1] rpi: Only add frame buffer node if CONFIG_FDT_SIMPLEFB is set

2024-10-23 Thread Matthias Brugger
On 23/10/2024 15:09, Martin Stolpe wrote: The functions fdt_simplefb_add_node and fdt_simplefb_enable_and_mem_rsv are only available if CONFIG_FDT_SIMPLEFB is enabled. Signed-off-by: Martin Stolpe Acked-by: Matthias Brugger --- board/raspberrypi/rpi/rpi.c | 12 +++- 1 file

Re: [PATCH 2/2] fdt: Swap the signature for board_fdt_blob_setup()

2024-10-23 Thread Matthias Brugger
(void *)fw_dtb_pointer; + *fdtp = (void *)fw_dtb_pointer; + + return 0; } int copy_property(void *dst, void *src, char *path, char *property) Reviewed-by: Matthias Brugger

Re: [PATCH v2] board: rpi: Pass CMA through from firmware DT

2024-10-14 Thread Matthias Brugger
ff-by: Peter Robinson Acked-by: Matthias Brugger --- v2: Update the cma string board/raspberrypi/rpi/rpi.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c index ab5ea85cf9f..dd5a318d239 100644 --- a/

Re: [PATCH] board: rpi: Pass CMA through from firmware DT

2024-10-04 Thread Matthias Brugger
ff-by: Peter Robinson Acked-by: Matthias Brugger --- board/raspberrypi/rpi/rpi.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c index ab5ea85cf9f..d4dbd96bc96 100644 --- a/board/raspberrypi/rpi/rpi.c +++ b/

Re: [PATCH v4 27/35] arm: mach-bcm283x: Bring in some header files from tianocore

2024-09-19 Thread Matthias Brugger
-by: Simon Glass Cc: Matthias Brugger Cc: Peter Robinson Cc: Tom Rini Acked-by: Matthias Brugger --- .../mach-bcm283x/include/mach/acpi/bcm2711.h | 152 ++ .../mach-bcm283x/include/mach/acpi/bcm2836.h | 127 +++ .../include/mach/acpi/bcm2836_gpi

Re: [PATCH v4 26/35] arm: mach-bcm283x: Map the ARM local MMIO as well

2024-09-19 Thread Matthias Brugger
erals) for reference. TEST: Enabled CONFIG_GICV2 and accessed the GIC in C code without crash. 1: https://datasheets.raspberrypi.com/bcm2711/bcm2711-peripherals.pdf Signed-off-by: Patrick Rudolph Cc: Matthias Brugger Cc: Peter Robinson Acked-by: Matthias Brugger --- arch/arm/mach-bcm283x/

Re: [PATCH] board: rpi: Enable capsule updates

2024-09-13 Thread Matthias Brugger
On 11/09/2024 12:05, Ilias Apalodimas wrote: On Wed, 11 Sept 2024 at 12:50, Peter Robinson wrote: On Tue, 10 Sept 2024 at 08:29, Sughosh Ganu wrote: On Tue, 10 Sept 2024 at 12:09, Ilias Apalodimas wrote: Since RPI works well using EFI and has no size limitations with regards to U-Boot

Re: [PATCH] board: rpi: Enable capsule updates

2024-09-10 Thread Matthias Brugger
On 10/09/2024 08:39, Ilias Apalodimas wrote: Since RPI works well using EFI and has no size limitations with regards to U-Boot, add the needed structures and Kconfig options needed to enable capsule updates --- board/raspberrypi/rpi/rpi.c | 22 ++ configs/rpi_4_defconfig

Re: [PATCH] Revert "arm: dts: bcm283x: Add minimal smbios information"

2024-05-27 Thread Matthias Brugger
it. Signed-off-by: Peter Robinson Acked-by: Matthias Brugger --- arch/arm/dts/bcm283x-u-boot.dtsi | 19 --- 1 file changed, 19 deletions(-) diff --git a/arch/arm/dts/bcm283x-u-boot.dtsi b/arch/arm/dts/bcm283x-u-boot.dtsi index 8c17c6f6a52..ec0f93dd850 100644 --- a/arch/arm

Re: [PATCH 4/7] smbios: string table always needs two terminating NUL bytes

2024-01-31 Thread Matthias Brugger
cation. > > Signed-off-by: Heinrich Schuchardt I send the very same patch some years ago [1], unfortunately it got somehow lost. Happy to see you trying to fix the same problem, so: Reviewed-by: Matthias Brugger [1] https://patchwork.ozlabs.org/project/uboot/patch/20210406090435.19357-

Re: [PATCH v3 3/3] cmd: rng: Add rng list command

2024-01-31 Thread Matthias Brugger
On Wed, Jan 31, 2024 at 02:14:26PM +, Weizhao Ouyang wrote: > The 'rng list' command probes all RNG devices and list those devices > that are successfully probed. Also update the help info. > > Reviewed-by: Heinrich Schuchardt > Signed-off-by: Weizhao Ouyang Revi

Re: [PATCH v3 2/3] driver: rng: Fix SMCCC TRNG crash

2024-01-31 Thread Matthias Brugger
Weizhao Ouyang Reviewed-by: Matthias Brugger > --- > v3: add Fixes tag > --- > drivers/rng/smccc_trng.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/rng/smccc_trng.c b/drivers/rng/smccc_trng.c > index 3a4bb33941..3087cb991a 100644

[GIT PULL] rpi: updates for v2024.04

2024-01-31 Thread Matthias Brugger
Hi Tom, Here come a small set of patches for v2024.04 for the RaspberryPi. It adds basic support for RPi5 to be able to boot on a SD card. You can find the passing tests here: https://source.denx.de/u-boot/custodians/u-boot-raspberrypi/-/pipelines/19512 It's the same commit ID as the tag, altho

Re: [PATCH v4 0/6] rpi5: initial support

2024-01-22 Thread Matthias Brugger
_arm64: enable SDHCI BCMSTB driver In the meantime I was able to test this series. So here my: Tested-by: Matthias Brugger arch/arm/mach-bcm283x/include/mach/base.h | 5 +- arch/arm/mach-bcm283x/include/mach/mbox.h | 3 +- arch/arm/mach-bcm283x/include/mach/sdhci.h | 3 +- arch/ar

Re: [PATCH v4 4/6] bcm2835: Dynamically calculate bytes per pixel parameter

2024-01-10 Thread Matthias Brugger
. Signed-off-by: Ivan T. Ivanov Reviewed-by: Matthias Brugger --- drivers/video/bcm2835.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/drivers/video/bcm2835.c b/drivers/video/bcm2835.c index 14942526f1..63efa762db 100644 --- a/drivers/video/bcm2835.c

Re: [PATCH v3 7/7] pci: pcie-brcmstb: Add bcm2712 PCIe controller support

2023-12-22 Thread Matthias Brugger
On 18/12/2023 22:03, Ivan T. Ivanov wrote: PCIe controller have minor register map difference compared to bcm2711 variant. Handle this using device specific register offset. Signed-off-by: Ivan T. Ivanov Reviewed-by: Matthias Brugger --- drivers/pci/pcie_brcmstb.c | 23

Re: [PATCH v3 3/7] rpi5: Use devicetree to retrieve board revision

2023-12-22 Thread Matthias Brugger
revision = <0xc04170>; linux,serial = <0x6cf44e80 0x3c533ede>; }; Signed-off-by: Ivan T. Ivanov Reviewed-by: Matthias Brugger --- board/raspberrypi/rpi/rpi.c | 22 +++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/boa

Re: [PATCH v3 2/7] rpi5: Use devicetree as alternative way to read IO base addresses

2023-12-22 Thread Matthias Brugger
On 18/12/2023 22:03, Ivan T. Ivanov wrote: From: Dmitry Malkin MBOX and Watchdog on RPi5/bcm2712 has a different base IO offsets. Find them via devicetree blob passed by bootloader. Signed-off-by: Dmitry Malkin Signed-off-by: Ivan T. Ivanov Reviewed-by: Matthias Brugger --- arch

Re: [PATCH v3 0/7] rpi5: initial support

2023-12-21 Thread Matthias Brugger
On 21/12/2023 14:42, Stefan Agner wrote: Hi Ivan, On 2023-12-18 22:03, Ivan T. Ivanov wrote: Hi, These patches are adding basic support for RPi5. They are based on v2 series from Dmitry Malkin[1]. With them I am able to _start_ current openSUSE Tumbleweed without modification. They are sti

Re: [PATCH v3 4/7] bcm2835: brcm,bcm2708-fb device is using r5g6b5 format

2023-12-20 Thread Matthias Brugger
On 19/12/2023 09:51, Ivan T. Ivanov wrote: On 12-18 23:32, Stefan Wahren wrote: static const struct udevice_id bcm2835_video_ids[] = { - { .compatible = "brcm,bcm2835-hdmi" }, - { .compatible = "brcm,bcm2711-hdmi0" }, - { .compatible = "brcm,bcm2708-fb" }, + { .com

Re: ELCE 2023 - Prague

2023-06-19 Thread Matthias Brugger
On 16/06/2023 14:13, Michal Simek wrote: Hi, I have had a chat with Marek that ELCE 2023 in Prague is coming. It is good opportunity to talk to each other in person. That's why we are interested to know who from U-Boot community is going. Me, Marek and Simon are going to be there. Who else i

Re: [PATCH v5 00/17] Basic StarFive JH7110 RISC-V SoC support

2023-05-02 Thread Matthias Brugger
On 02/05/2023 14:41, Andreas Schwab wrote: On Apr 14 2023, Matthias Brugger wrote: My opinion isIn my opinion user-friendlyness is more important then developer friendly that from an end-user point of view it's much easier to have one binary that works on all different board version

Re: [RFC] riscv: visionfive2: use OF_BOARD_SETUP

2023-04-20 Thread Matthias Brugger
Hi Torsten, On 20/04/2023 09:43, Torsten Duwe wrote: Hi Leo, thanks for the quick reply! On Thu, 20 Apr 2023 06:33:57 + Leo Liang wrote: Hi, Torsten, Matthias, On Wed, Apr 19, 2023 at 02:34:03PM +0200, Matthias Brugger wrote: On 19/04/2023 13:28, Torsten Duwe wrote: This is only

Re: [RFC] riscv: visionfive2: use OF_BOARD_SETUP

2023-04-19 Thread Matthias Brugger
On 19/04/2023 13:28, Torsten Duwe wrote: U-Boot already has a mechanism to fix up the DT before OS boot. This avoids the excessive duplication of data and work proposed by the explicit separation of 1.2a and 1.3b board revisions. It will also, to a good degree, improve the user experience, as

Re: [PATCH v5 00/17] Basic StarFive JH7110 RISC-V SoC support

2023-04-14 Thread Matthias Brugger
On 13/04/2023 12:05, yanhong wang wrote: On 2023/4/13 17:03, Torsten Duwe wrote: On Thu, 13 Apr 2023 10:05:28 +0800 yanhong wang wrote: the definition of DT refers to Linux and is consistent with the definition framework of Linux. This is one of the desired goals, to avoid confusion,

Re: [PATCH] rpi: Update the RPi Zero 2W DT filename

2023-03-01 Thread Matthias Brugger
On 28/02/2023 11:19, Peter Robinson wrote: Update the Raspberry Pi Zero 2W device tree file name to match what landed upstream. Signed-off-by: Peter Robinson Acked-by: Matthias Brugger Peter will you take care to push the patch? Regards, Matthias --- board/raspberrypi/rpi/rpi.c | 2

Re: [PATCH 117/171] Correct SPL uses of OF_BOARD

2023-01-31 Thread Matthias Brugger
_ENABLED(OF_CONTROL) || CONFIG_IS_ENABLED(OF_BOARD) +#if !CONFIG_IS_ENABLED(OF_CONTROL) || IS_ENABLED(CONFIG_OF_BOARD) .flags = DM_FLAG_PRE_RELOC, #endif .priv_auto = sizeof(struct pl01x_priv), For bcm283x: Reviewed-by: Matthias Brugger

Re: [PATCH] rpi: Set FDT for RPi CM4 to the IO Board one

2022-09-19 Thread Matthias Brugger
Hi Ariel, On 16/09/2022 17:13, Ariel D'Alessandro wrote: For the RPi CM4 (Compute Module 4), we currently try to load the dtb file bcm2711-rpi-cm4.dtb, which is not built by the upstream kernel. Instead, the only CM4 dtb file provided by linux upstream is the bcm2711-rpi-cm4-io.dtb, so let's us

Re: [PATCH v2 0/7] Add video damage tracking

2022-06-10 Thread Matthias Brugger
implements VIDEO_COPY using this mechanism, reducing its overhead compared to before as well. So even x86 systems should be faster with this now :). Series tested on RPi4, thanks a lot! Tested-by: Matthias Brugger Alternatives considered: 1) Lazy sync - Sandbox does this. It only calls

Re: Vulnerability Disclosure in net/

2022-05-26 Thread Matthias Brugger
Hi Ramon, On 26/05/2022 04:46, Ramon Fried wrote: On Wed, May 18, 2022 at 7:14 PM Nicolas Bidron wrote: Hello, We found a couple of bugs in net/net.s in the IP defragmentation function __net_defragment(). Below the writeup for the 2 bugs: ---BUG 1--- # Hole Descriptor Overw

Re: Raspberry Pi won’t boot from compressed subvolume (BTRFS)

2022-05-25 Thread Matthias Brugger
On 22/05/2022 17:36, Nathan Henrie wrote: Hello u-boot team, I’ve been experimenting for about a year with a NixOS-based Raspberry Pi image, with the end goal of a zstd-compressed image that uses BTRFS subvolumes, having the root filesystem at @ and boot at @boot (with several other subvolume

Re: [PATCH] rpi: always set fdt_addr to the correct value

2022-02-15 Thread Matthias Brugger
On 15/02/2022 15:55, Matthias Brugger wrote: On 18/02/2022 03:44, Jaehoon Chung wrote: On 22. 2. 14. 20:25, Marek Szyprowski wrote: The fdt_addr env have meaning only for the current runtime and it depends on the dtb size or firmware version. If one save the environment to disk and the

Re: [PATCH] rpi: always set fdt_addr to the correct value

2022-02-15 Thread Matthias Brugger
On 18/02/2022 03:44, Jaehoon Chung wrote: On 22. 2. 14. 20:25, Marek Szyprowski wrote: The fdt_addr env have meaning only for the current runtime and it depends on the dtb size or firmware version. If one save the environment to disk and the loads it on the latter boot, the fdt_addr might cha

Re: [PATCH 13/14] video: Convert CONFIG_VIDEO_BCM2835 to Kconfig

2022-01-24 Thread Matthias Brugger
On 23/01/2022 15:04, Simon Glass wrote: This converts the following to Kconfig: CONFIG_VIDEO_BCM2835 This is the final ad-hoc CONFIG_VIDEO_... to convert. Signed-off-by: Simon Glass Acked-by: Matthias Brugger --- configs/rpi_0_w_defconfig | 1 + configs/rpi_2_defconfig

Re: [PATCH] socfpga: enable EFI partition support for de0-nano-soc

2022-01-19 Thread Matthias Brugger
Hi Simon, On 28/10/2021 08:52, Matthias Brugger wrote: On 22/10/2021 19:59, Frank Kunz wrote: This fixes boot problems with distributions that use EFI boot like opensuse. Signed-off-by: Frank Kunz Reviewed-by: Matthias Brugger I can see that this patched got delegated to you in

[GIT PULL] rpi: updates for v2022.01

2021-12-15 Thread Matthias Brugger
Hi Tom, Here come a small set of patches for v2022.01 for the RaspberryPi. You can find the passing tests here: https://source.denx.de/u-boot/custodians/u-boot-raspberrypi/-/pipelines/10047 It's the same commit ID as the tag, although it's not the same test-run. Regards, Matthias --- The fol

Re: [PATCH] Fix MMC numbering issue for Raspberry Pi 3

2021-11-30 Thread Matthias Brugger
On Thu, Oct 28, 2021 at 09:44:09AM +0200, Emmanuel Vadot wrote: > On Wed, 27 Oct 2021 22:26:15 + > kar...@freebsd.org wrote: > > > From: Mike Karels > > > > Using mmc.dtbo from rpi-firmware to switch the controller for the SD > > card slot from sdhci to sdhost causes the numbering to change;

Re: [PATCH 2/2] rpi: Add identifier for the new RPi Zero 2 W

2021-11-30 Thread Matthias Brugger
On Sun, Nov 21, 2021 at 05:03:46PM +, Peter Robinson wrote: > The Raspberry Pi Foundation released the new Zero 2 W which we > want to detect, so we can detect the correct device tree file name. > > Signed-off-by: Peter Robinson Applied to rpi-next Thanks! > --- > board/raspberrypi/rpi/rp

Re: [PATCH 1/2] rpi: Update the Raspberry Pi doucmentation URL

2021-11-30 Thread Matthias Brugger
On Sun, Nov 21, 2021 at 05:03:45PM +, Peter Robinson wrote: > The Raspberry Pi Foundation has updated their documentation so update > the URL to the latest place to find the HW device revision codes. > > Signed-off-by: Peter Robinson Applied to rpi-next Thanks! > --- > board/raspberrypi/r

Re: [RESEND PATCH] rpi: Copy properties from firmware dtb to the loaded dtb

2021-11-26 Thread Matthias Brugger
On 25/11/2021 20:42, Sjoerd Simons wrote: The RPI firmware adjusts several property values in the dtb it passes to u-boot depending on the board/SoC revision. Inherit some of these when u-boot loads a dtb itself. Specificaly copy: * /model: The firmware provides a more specific string * /memr

Re: [PATCH 3/7] common: rename functions lcd_dt_simplefb to fdt_simplefb

2021-11-15 Thread Matthias Brugger
On 15/11/2021 16:32, Patrick Delaunay wrote: Rename the function named lcd_dt_simplefb* to fdt_simplefb* to be aligned with the associated file name fdt_simplefb.h/fdt_simplefb.c Signed-off-by: Patrick Delaunay Reviewed-by: Matthias Brugger --- board/raspberrypi/rpi/rpi.c | 2

Re: [PATCH 1/7] Convert CONFIG_LCD_DT_SIMPLEFB to Kconfig

2021-11-15 Thread Matthias Brugger
: Matthias Brugger --- common/Kconfig | 9 + common/Makefile| 2 +- configs/rpi_0_w_defconfig | 1 + configs/rpi_2_defconfig| 1 + configs/rpi_3_32b_defconfig| 1 + configs/rpi_3_b_plus_defconfig | 1 + configs/rpi_3_defconfig

Re: [PATCH 4/7] common: board_r: drop initr_addr_map wrapper

2021-11-03 Thread Matthias Brugger
, BCM2711_RPI4_PCIE_XHCI_MMIO_PHYS, For the bcm283x part: Reviewed-by: Matthias Brugger

Re: [PATCH v4 1/4] tools: Separate image types which depend on OpenSSL

2021-10-28 Thread Matthias Brugger
On 22/10/2021 17:09, Tom Rini wrote: On Fri, Oct 22, 2021 at 04:59:22PM +0200, Marek Behún wrote: On Fri, 22 Oct 2021 12:09:19 +0200 Heinrich Schuchardt wrote: On 10/21/21 15:00, Marek Behún wrote: BTW, wouldn't it be enough to simply imply TOOLS_LIBCRYPTO for mvebu platform in Kconfig?

Re: [PATCH] socfpga: enable EFI partition support for de0-nano-soc

2021-10-27 Thread Matthias Brugger
On 22/10/2021 19:59, Frank Kunz wrote: This fixes boot problems with distributions that use EFI boot like opensuse. Signed-off-by: Frank Kunz Reviewed-by: Matthias Brugger --- configs/socfpga_de0_nano_soc_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

Re: [ANN] U-Boot v2021.10 released

2021-10-05 Thread Matthias Brugger
Hi Wolfgang, On 05/10/2021 13:01, Wolfgang Denk wrote: Dear Tom, In message <20211004151108.GR31748@bill-the-cat> you wrote: In terms of a changelog, git log --merges v2021.10-rc4..v2021.10-rc5 contains what I've pulled since the last RC or: git log --merges v2021.07..v2021.10 for changes sin

Re: [PATCH] rpi: always set fdt_addr with firmware-provided FDT address

2021-09-29 Thread Matthias Brugger
On 29/09/2021 23:05, Ricardo Salveti wrote: On Wed, Sep 29, 2021 at 1:49 PM Matthias Brugger wrote: On 29/09/2021 14:19, Mauro Salvini wrote: Hi Matthias, On 29/09/21 13:41, Matthias Brugger wrote: Hi Mauro, On 29/09/2021 12:14, Mauro Salvini wrote: Hi Matthias On 15/09/21 13:16

Re: [PATCH] rpi: always set fdt_addr with firmware-provided FDT address

2021-09-29 Thread Matthias Brugger
On 29/09/2021 14:19, Mauro Salvini wrote: Hi Matthias, On 29/09/21 13:41, Matthias Brugger wrote: Hi Mauro, On 29/09/2021 12:14, Mauro Salvini wrote: Hi Matthias On 15/09/21 13:16, mbrugger at suse.com (Matthias Brugger) wrote: Hi Mauro, On 07/06/2021 11:27, Mauro Salvini wrote: On 12

[GIT PULL] rpi: updates for v2021.10 second round

2021-09-29 Thread Matthias Brugger
Hi Tom, Last minute changes for v2021.10 but I think they are small enough to get into the release. First we have a problem on RPi4 when you stop and start USB via the console commands. That is fixed. Second Nicolas has changed job and now uses a generic email address for his communication. I'

Re: [PATCH] rpi: always set fdt_addr with firmware-provided FDT address

2021-09-29 Thread Matthias Brugger
Hi Mauro, On 29/09/2021 12:14, Mauro Salvini wrote: Hi Matthias On 15/09/21 13:16, mbrugger at suse.com (Matthias Brugger) wrote: Hi Mauro, On 07/06/2021 11:27, Mauro Salvini wrote: On 12/05/21 14:39, Mauro Salvini wrote: Raspberry firmware prepares the FDT blob in memory at an address

Re: [PATCH] board: rpi: always set fdt_addr if provided by firmware

2021-09-27 Thread Matthias Brugger
Hi Oleksandr, Thanks for your patch. There was the very same patch posted already, please follow-up in that thread for any comments from your side: https://patchwork.ozlabs.org/project/uboot/patch/20210512123945.25649-1-m.salv...@koansoftware.com/ Regards, Matthias On 25/09/2021 12:22, Oleks

Re: [PATCH] arm: rpi: perform XHCI firmware upload only once

2021-09-17 Thread Matthias Brugger
On 17/09/2021 10:42, Matthias Brugger wrote: On 17/09/2021 10:19, Marek Szyprowski wrote: XHCI firmware upload must be performed only once after initializing the PCI bridge. This fixes USB stack initialization after calling "usb stop; usb start" on Raspberry Pi 4B. Signed-off

Re: [PATCH] arm: rpi: perform XHCI firmware upload only once

2021-09-17 Thread Matthias Brugger
On 17/09/2021 10:19, Marek Szyprowski wrote: XHCI firmware upload must be performed only once after initializing the PCI bridge. This fixes USB stack initialization after calling "usb stop; usb start" on Raspberry Pi 4B. Signed-off-by: Marek Szyprowski Looks good to me. I'll wait a bit mor

Re: [PATCH] mailmap: Update mail address for Nicolas Saenz julienne

2021-09-16 Thread Matthias Brugger
ng on. Reviewed-by: Matthias Brugger --- .mailmap | 1 + 1 file changed, 1 insertion(+) diff --git a/.mailmap b/.mailmap index b76f02283c..b09fc321bd 100644 --- a/.mailmap +++ b/.mailmap @@ -32,6 +32,7 @@ Jagan Teki Igor Opaniuk Igor Opaniuk Markus Klotzbuecher +Nicolas Saenz Jul

[GIT PULL] rpi: updates for v2021.10

2021-09-15 Thread Matthias Brugger
T. Ivanov (1): rpi: Conditionally add simple-framebuffer node Marek Szyprowski (1): ARM: bcm283x: change the virtual address of the XHCI PCI device base Matthias Brugger (2): arm: dts: bcm283x: Add minimal smbios information configs: rpi: Enable SMBIOS sysinfo driver

Re: [PATCH] rpi: Conditionally add simple-framebuffer node

2021-09-15 Thread Matthias Brugger
On 10/08/2021 16:31, Ivan T. Ivanov wrote: It appears that RPi firmware has already added framebuffer node under /chosen, at least on RPi 2 versions. So check for this and don't add duplicate node. Signed-off-by: Ivan T. Ivanov Applied to rpi-next now. Thanks, Matthias --- board/raspb

Re: [PATCH v2 1/2] arm: dts: bcm283x: Add minimal smbios information

2021-09-15 Thread Matthias Brugger
On 12/04/2021 15:38, matthias@kernel.org wrote: From: Matthias Brugger At present SMBIOS tables are empty, which breaks some use-cases that rely on that. Add some minimal information to fulfill this. Signed-off-by: Matthias Brugger Both patches now queued in rpi-next

Re: [PATCH] ARM: bcm283x: change the virtual address of the XHCI PCI device base

2021-09-15 Thread Matthias Brugger
On 17/06/2021 11:22, Marek Szyprowski wrote: Move the XHCI PCI device base up in the virtual address space. This fixes initialization failure observed with newer Raspberry Pi firmware, later than 63b1922311 ("firmware: arm_loader: Update armstubs with those from PR 117). It looks that chosing

Re: [PATCH] rpi: always set fdt_addr with firmware-provided FDT address

2021-09-15 Thread Matthias Brugger
ecause it can break other setups where people load a custom DTB to fdt_addr. I wonder why you can't erase fdt_addr from your persistent storage. There is a command called eraseenv that should to the job. Regards, Matthias Signed-off-by: Mauro Salvini Cc: Cédric Schieli Cc: Matth

Re: Bug: qemu_arm64: Cannot access the second flash bank

2021-09-13 Thread Matthias Brugger
On 13/09/2021 11:40, Peter Maydell wrote: On Mon, 13 Sept 2021 at 10:31, Matthias Brugger wrote: Hi Robin, It's a long long time that you reported this issue. I prepared a fix in qemu for it. Would you mind to try it out? You can find a branch with the fix on top here: https://githu

Re: Bug: qemu_arm64: Cannot access the second flash bank

2021-09-13 Thread Matthias Brugger
Hi Robin, It's a long long time that you reported this issue. I prepared a fix in qemu for it. Would you mind to try it out? You can find a branch with the fix on top here: https://github.com/mbgg/qemu/tree/vrit-flash-dtb-bug Basically I fix the reg property to reflect the fact that the size-

Re: [PATCH] btrfs: Use default subvolume as filesystem root

2021-09-01 Thread Matthias Brugger
On 01/09/2021 13:36, Tom Rini wrote: > On Wed, Sep 01, 2021 at 01:28:30PM +0200, Matthias Brugger wrote: >> Hi Tom, >> >> On 02/08/2021 01:06, Qu Wenruo wrote: >>> >>> >>> On 2021/8/2 上午4:52, Matwey V. Kornilov wrote: >>>> BTRFS vo

Re: [PATCH] btrfs: Use default subvolume as filesystem root

2021-09-01 Thread Matthias Brugger
Hi Tom, On 02/08/2021 01:06, Qu Wenruo wrote: > > > On 2021/8/2 上午4:52, Matwey V. Kornilov wrote: >> BTRFS volume consists of a number of subvolumes which can be mounted >> separately >> from each other. The top-level subvolume always exists even if no subvolumes >> were created manually. A sub

Re: [PATCH v3] usb: dfu: Migrate CONFIG_SYS_DFU_DATA_BUF_SIZE and CONFIG_SYS_DFU_MAX_FILE_SIZE to Kconfig

2021-06-01 Thread Matthias Brugger
ndr Suvorov For Raspberry Pi parts: Acked-by: Matthias Brugger > --- > > Changes since v2: > - Rebased the patch on top of current HEAD > - Picked up Oleksandr Suvorov's Acked-by > > Link to v2 patch, > https://patchwork.ozlabs.org/project/uboot/patch/2021022607184

Re: [PATCH] Add support for Raspberry Pi 3B+(32bit)

2021-04-20 Thread Matthias Brugger
On 20/04/2021 08:05, Toshifumi NISHINAGA wrote: > Hello all. > > I will add rpi_3_32b_plus_defconfig to easy to build u-boot for > Raspberry Pi 3B+(32bit). > Could you merge this patch? > This file is already present [1]. Please provide patches against the latest U-Boot tree. Is there anythin

Re: [PATCH 1/2] arm: dts: bcm283x: Add minimal smbios information

2021-04-12 Thread Matthias Brugger
On Fri, Apr 09, 2021 at 03:13:25PM +0200, Fabian Vogt wrote: > Am Freitag, 9. April 2021, 14:35:10 CEST schrieb matthias@kernel.org: > > From: Matthias Brugger > > > > At present SMBIOS tables are emtpy, > ^ typo > > > whic

Re: Running u-boot 2021.04 on Raspberry Pi 4

2021-04-10 Thread Matthias Brugger
On 09/04/2021 20:06, Roman Shaposhnik wrote: > On Fri, Apr 9, 2021 at 3:15 AM Matthias Brugger wrote: > >> >> >> On 09/04/2021 10:14, Nicolas Saenz Julienne wrote: >>> [ Adding Matthias for the SMBIOS part ] >>> >>> On Fri, 2021-04-09 at 00:0

Re: Running u-boot 2021.04 on Raspberry Pi 4

2021-04-09 Thread Matthias Brugger
On 09/04/2021 10:14, Nicolas Saenz Julienne wrote: > [ Adding Matthias for the SMBIOS part ] > > On Fri, 2021-04-09 at 00:00 -0700, Roman Shaposhnik wrote: >> On Thu, Apr 8, 2021 at 8:59 PM Sean Anderson wrote: >>> On 4/8/21 8:18 PM, Roman Shaposhnik wrote: Hi! first time poster

Re: [PATCH] smbios: Fix table when no string is present

2021-03-24 Thread Matthias Brugger
On 25/03/2021 01:38, Simon Glass wrote: > Hi Matthias, > > On Thu, 18 Mar 2021 at 00:30, wrote: >> >> From: Matthias Brugger >> >> When no string is present in a table, next_ptr points to the same >> location as eos. When calculating the string table

[GIT PULL] rpi: second round of updates for v2021.04

2021-03-02 Thread Matthias Brugger
Bharat Gooty (1): drivers: mmc: iproc_sdhci: enable HS200 mode Matthias Brugger (4): configs: RPi2: Disable EFI Grub workaround MAINTAINERS: Update info for Raspberry Pi rng: iproc_rng200: Enable support for RPi4 armv7 configs: rpi4_32: Enable iProc RNG200

Re: [PATCH] rng: iProc rng200: Rename ..._platdata variables to just ..._plat

2021-02-25 Thread Matthias Brugger
On Fri, Feb 19, 2021 at 04:00:50PM -0500, Tom Rini wrote: > On Thu, Feb 18, 2021 at 08:39:42PM +, Peter Robinson wrote: > > On Thu, Feb 18, 2021 at 8:36 PM Heinrich Schuchardt > > wrote: > > > > > > On 18.02.21 21:06, Peter Robinson wrote: > > > > In 8a8d24bd Simon dropped data from all the v

[GIT PULL] rpi: updates for v2021.04

2021-02-18 Thread Matthias Brugger
and RPi400 Marek Szyprowski (1): rpi: limit size of the RAM to the multiple of the MMU_SECTION_SIZE Matthias Brugger (2): rng: Add iProc RNG200 driver config: Enable iProc RNG200 driver in RPi4 configs Nicolas Saenz Ju

Re: [RFC PATCH] efi_loader: disable GRUB workaround by default

2021-02-09 Thread Matthias Brugger
On 09/02/2021 13:22, Heinrich Schuchardt wrote: > On 09.02.21 12:38, matthias@kernel.org wrote: >> From: Matthias Brugger >> >> GRUB version 2.04 was published over a year ago. We should expect that >> distros use this version now. So disable the workaround by

Re: [QUESTION] Kernel 5.10 image might be too big to be loaded by U-Boot on RPi 4B

2021-02-02 Thread Matthias Brugger
On Thu, Jan 28, 2021 at 04:54:03PM +0800, Jian-Hong Pan wrote: > Load u-Boot environment ... from mmc 0:2 > 622 bytes read in 24 ms (24.4 KiB/s) > Load device tree ... > 25693 bytes read in 30 ms (835.9 KiB/s) > fdt_addr_r @ 0x0260 , size= 645d > Load kernel and unzip it ... > 13013555 bytes r

Re: [PATCH v2 2/2] console: Don't start/stop console if stdio device invalid

2021-01-29 Thread Matthias Brugger
On 28/01/2021 16:52, Andy Shevchenko wrote: > On Thu, Jan 28, 2021 at 02:12:40PM +0100, Nicolas Saenz Julienne wrote: >> Don't start/stop an stdio device that might have been already freed. >> >> Signed-off-by: Nicolas Saenz Julienne >> Fixes: 70c2525c0d3c ("IOMUX: Stop dropped consoles") > >

Re: [PATCH v2 1/2] lib: uuid: use RNG device if present

2021-01-20 Thread Matthias Brugger
On Wed, Jan 20, 2021 at 12:50:56PM -0700, Simon Glass wrote: > Hi Matthias, > > On Wed, 20 Jan 2021 at 04:17, Matthias Brugger wrote: > > > > > > > > On 29/12/2020 04:32, Simon Glass wrote: > > > Hi guys, > > > > > > On Wed, 23 Dec 2020

Re: [PATCH v2 1/2] lib: uuid: use RNG device if present

2021-01-20 Thread Matthias Brugger
On 29/12/2020 04:32, Simon Glass wrote: > Hi guys, > > On Wed, 23 Dec 2020 at 03:24, Torsten Duwe wrote: >> >> On Sun, 20 Dec 2020 11:17:50 -0700 >> Simon Glass wrote: >> >>> Hi Torsten, >>> >>> On Sun, 20 Dec 2020 at 10:00, Torsten Duwe wrote: On Fri, 18 Dec 2020 19:29:12 -0700 >>

Re: [PATCH 1/2] timer: mtk_timer: initialize the timer before use

2021-01-19 Thread Matthias Brugger
On Mon, Jan 18, 2021 at 08:44:42AM +0800, Weijie Gao wrote: > On Fri, 2021-01-15 at 17:36 +0100, Matthias Brugger wrote: > > On Tue, Jan 12, 2021 at 01:44:02PM +0800, Weijie Gao wrote: > > > The timer being used by this driver may have already been used by first > > >

Re: [PATCH 1/2] timer: mtk_timer: initialize the timer before use

2021-01-15 Thread Matthias Brugger
On Tue, Jan 12, 2021 at 01:44:02PM +0800, Weijie Gao wrote: > The timer being used by this driver may have already been used by first > stage bootloader (e.g. ATF/preloader), and it's settings may differ from > what this driver is going to use. > > This may cause issues, such as inaccurate timer f

Re: [PATCH] board: mediatek: disable watchdog on BananaPi R2

2021-01-11 Thread Matthias Brugger
On 11/01/2021 09:57, Heinrich Schuchardt wrote: > On 11.01.21 08:48, Stefan Roese wrote: >> >> >> On 11.01.21 08:17, Heinrich Schuchardt wrote: >>> Am 11. Januar 2021 08:02:12 MEZ schrieb Stefan Roese : >>>> Added Heinrich to Cc. >>>> >&

Re: [PATCH] board: mediatek: disable watchdog on BananaPi R2

2021-01-10 Thread Matthias Brugger
On 10/01/2021 19:44, Matthias Brugger wrote: > > > On 09/01/2021 15:57, Stefan Roese wrote: >> On 09.01.21 03:32, Matthias Brugger wrote: >>> On 08/01/2021 08:39, Stefan Roese wrote: >>>> On 07.01.21 16:36, matthias@kernel.org wrote: >>>>> F

Re: [PATCH] board: mediatek: disable watchdog on BananaPi R2

2021-01-10 Thread Matthias Brugger
On 09/01/2021 15:57, Stefan Roese wrote: > On 09.01.21 03:32, Matthias Brugger wrote: >> On 08/01/2021 08:39, Stefan Roese wrote: >>> On 07.01.21 16:36, matthias@kernel.org wrote: >>>> From: Matthias Brugger >>>> >>>> Watchdog timeout c

Re: [PATCH] board: mediatek: disable watchdog on BananaPi R2

2021-01-08 Thread Matthias Brugger
On 08/01/2021 08:39, Stefan Roese wrote: > On 07.01.21 16:36, matthias@kernel.org wrote: >> From: Matthias Brugger >> >> Watchdog timeout comes in before we are able to load the >> kernel and reset the watchdog. Disable the watchdog late in the boot >> pro

Re: [PATCH v2 1/2] lib: uuid: use RNG device if present

2020-12-23 Thread Matthias Brugger
Hi Simon, On 19/12/2020 03:29, Simon Glass wrote: > Hi Mattias, > > On Wed, 16 Dec 2020 at 09:28, wrote: >> >> From: Matthias Brugger >> >> When calculating a random UUID we use a weak seed. >> Use a RNG device if present to increase entropy

Re: U-Boot failures on CM4 and Pi4-8Gb

2020-12-16 Thread Matthias Brugger
On 16/12/2020 17:20, Peter Robinson wrote: > On Wed, Dec 16, 2020 at 4:15 PM Matthias Brugger > wrote: >> >> Hi Dave, >> >> On 16/12/2020 15:23, Dave Jones wrote: >>> Hi, >>> >>> We've recently run across some failures with U-Boot

Re: U-Boot failures on CM4 and Pi4-8Gb

2020-12-16 Thread Matthias Brugger
Hi Dave, On 16/12/2020 15:23, Dave Jones wrote: > Hi, > > We've recently run across some failures with U-Boot on a couple of platforms, > specifically the relatively new Pi Compute Module 4, and the Pi 4 8GB of RAM. > On > the CM4, U-Boot failed to identify the eMMC storage, and on the Pi 4 8GB,

Re: [PATCH 2/2] net: Use NDRNG device in srand_mac()

2020-12-16 Thread Matthias Brugger
On 16/12/2020 14:20, Torsten Duwe wrote: > On Wed, 16 Dec 2020 11:41:17 +0100 > matthias@kernel.org wrote: > >> From: Matthias Brugger >> >> When calling srand_mac we use a weak seed dependent on the >> mac address. If present, use a RNG device instead

Re: [PATCH v2 4/8] dm: Introduce xxx_get_dma_range()

2020-12-10 Thread Matthias Brugger
On 10/12/2020 10:42, Nicolas Saenz Julienne wrote: > Add the following functions to get a specific device's DMA ranges: > - dev_get_dma_range() > - ofnode_get_dma_range() > - of_get_dma_range() > - fdt_get_dma_range() > They are specially useful in oder to be able validate a physical address

Re: [PATCH 4/8] dm: Introduce xxx_get_dma_range()

2020-12-09 Thread Matthias Brugger
On 19/11/2020 18:48, Nicolas Saenz Julienne wrote: > Add the follwing functions to get a specific device's DMA ranges: > - dev_get_dma_range() > - ofnode_get_dma_range() > - of_get_dma_range() > - fdt_get_dma_range() > They are specially useful in oder to be able validate a physical address

Re: [PATCH 2/8] rpi: Add identifier for the new CM4

2020-12-01 Thread Matthias Brugger
On 19/11/2020 18:48, Nicolas Saenz Julienne wrote: The Raspberry Pi Foundation released the new Compute Module 4which we "Module 4 which we " (missing space) want to detect, so we can enable Ethernet on it and know the correct device tree file name. Note that this sets the Ethernet option

Re: [PATCH 1/8] rpi: Add identifier for the new RPi400

2020-12-01 Thread Matthias Brugger
On 19/11/2020 18:48, Nicolas Saenz Julienne wrote: The Raspberry Pi Foundation released the new RPi400 which we want to detect, so we can enable Ethernet on it and know the correct device tree file name. So far the Raspberry Pi foundation is using the RPi4b device-tree file to boot RPi400. I

[GIT PULL] u-boot-rpi/rpi-next to next

2020-10-02 Thread Matthias Brugger
Hi Tom, I have a few patches for the next branch, please pull :) Regards, Matthias --- The following changes since commit 7e373a1a6ac27492ffebba146d70c4d39a9b9f36: Merge branch 'next' of git://git.denx.de/u-boot-usb into next (2020-10-01 14:52:56 -0400) are available in the Git repositor

Re: U-Boot issue

2020-09-28 Thread Matthias Brugger
/raspberrypi/rpi/MAINTAINERS file provides the right contact. Cc: Matthias Brugger Thanks Matteo Peruzzi

Re: [PATCH v2 1/1] examples: make examples/ optional

2020-09-25 Thread Matthias Brugger
ts to yes on ARCH_QEMU to ensure that we compile the API as part of our continuous integration. Cc: Matthias Brugger Signed-off-by: Heinrich Schuchardt Reviewed-by: Matthias Brugger --- v2: default=y on ARCH_QEMU only --- Kconfig | 8 examples/Makefile | 2 +- 2

Re: [PATCH 1/1] examples: make examples customizable

2020-09-23 Thread Matthias Brugger
e examples customizable via symbol CONFIG_EXAMPLES. It only defaults to yes to ensure that we compile it on Gitlab CI. Cc: Matthias Brugger Signed-off-by: Heinrich Schuchardt --- I wonder if we should not completely drop the standalone API. The UEFI API has enough to run a standalone application. ---

Re: [RFC 1/1] doc/build/gcc.rst: required packages for Suse

2020-09-22 Thread Matthias Brugger
Hi Heinrich, On 20/09/2020 12:09, Heinrich Schuchardt wrote: Describe the packages required to build U-Boot on Suse. Signed-off-by: Heinrich Schuchardt --- Hello Matthias, I would like to add a sub-chapter to our documentation describing what is needed to build U-Boot on Suse. Cf. https://u-b

Re: RPi4 U-Boot freeze

2020-09-14 Thread Matthias Brugger
On 10/09/2020 23:12, Stefan Agner wrote: On 2020-09-07 16:36, Peter Robinson wrote: Any thoughts on this issue? Any reason why you're using 2020.01 and not at least 2020.07, or at least seeing if it's reproducible on 2020.10-rc3? The RPi4 support has changed quite a bit since then I suspect

  1   2   3   4   >