[PATCH 16/17] arm: mach-bcm283x: Enable ARMV8_MULTIENTRY

2024-07-27 Thread Patrick Rudolph
on real hardware do not enter U-Boot! To be investigated. Signed-off-by: Patrick Rudolph Cc: Matthias Brugger Cc: Peter Robinson Cc: Tom Rini --- arch/arm/mach-bcm283x/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-bcm283x/Kconfig b/arch/arm/mach-bcm283x/Kconfig

[PATCH 17/17] configs: Add RPI4 ACPI defconfig

2024-07-27 Thread Patrick Rudolph
Allows to build the RPi4 with ACPI enabled. TEST: - Boots on qemu-system-aarch64 -machine raspi4b - Boots on real hardware with arm_64bit=1 in config.txt Signed-off-by: Patrick Rudolph Cc: Simon Glass Cc: Matthias Brugger Cc: Peter Robinson --- configs/rpi_4_acpi_defconfig | 79

[PATCH 15/17] arm: mach-bcm283x: Add ARMV8_MULTIENTRY support

2024-07-27 Thread Patrick Rudolph
ed the APs are released from reset and will enter U-Boot after it has been relocated as well. By default ARMV8_MULTIENTRY is not selected, keeping existing behaviour. TEST: All APs enter U-Boot when run on qemu-system-aarch64 Signed-off-by: Patrick Rudolph Cc: Matthias Brugger Cc: Peter Robinson Cc

[PATCH 14/17] arm: cpu: Add ACPI parking protocol support

2024-07-27 Thread Patrick Rudolph
rms. TEST: Boots all CPUs on qemu-system-aarch64 -machine raspi4b Signed-off-by: Patrick Rudolph Cc: Simon Glass Cc: Tom Rini --- arch/arm/cpu/armv8/Makefile | 1 + arch/arm/cpu/armv8/parking_protocol_v8.S | 102 +++ arch/arm/cpu/armv8/start.S |

[PATCH 13/17] board: raspberrypi: Add ASL files from tianocore

2024-07-27 Thread Patrick Rudolph
9.0 without modifications, since it doesn't emulate PCIe yet. Signed-off-by: Simon Glass Signed-off-by: Patrick Rudolph Cc: Simon Glass Cc: Matthias Brugger Cc: Peter Robinson --- board/raspberrypi/rpi/.gitignore | 3 + board/raspberrypi/rpi/Makefile | 2 + board/raspberrypi/rpi

[PATCH 12/17] arm: bcm283x: Write ACPI tables

2024-07-27 Thread Patrick Rudolph
functions that needs to be implemented. When ACPI is not enabled the added code does nothing, keeping existing behaviour. TEST: Booted on RPi4 with only ACPI enabled, providing no FDT to the OS. Signed-off-by: Patrick Rudolph Cc: Simon Glass Cc: Matthias Brugger Cc: Peter Robinson Cc: Tom Rini

[PATCH 11/17] arm: mach-bcm283x: Bring in some header files from tianocore

2024-07-27 Thread Patrick Rudolph
From: Simon Glass These header files presumably duplicate things already in the U-Boot devicetree. For now, bring them in to get the ASL code and ACPI table code to compile. Signed-off-by: Simon Glass Signed-off-by: Patrick Rudolph Cc: Matthias Brugger Cc: Peter Robinson Cc: Tom Rini

[PATCH 10/17] arm: mach-bcm283x: Map the ARM local MMIO as well

2024-07-27 Thread Patrick Rudolph
d 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 --- arch/arm/mach-bcm283x/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arc

[PATCH 09/17] acpi: Add ACPITAB for PPTT and GTDT

2024-07-27 Thread Patrick Rudolph
Return the ACPI table revision in acpi_get_table_revision() for PPTT and GTDT. Match both to ACPI 6.2. Signed-off-by: Patrick Rudolph Cc: Simon Glass --- include/acpi/acpi_table.h | 2 ++ lib/acpi/acpi_table.c | 4 2 files changed, 6 insertions(+) diff --git a/include/acpi

[PATCH 08/17] acpi: acpi_table: Bump revisions

2024-07-27 Thread Patrick Rudolph
The FADT structure found in U-Boot represents FADT revision 6 and the GICC and GICD structures defined in U-Boot are based on ACPI revision 6.3. Bump the table revision to fix FWTS failures seen on aarch64. Signed-off-by: Patrick Rudolph Cc: Simon Glass Cc: Bin Meng --- arch/x86/cpu/tangier

[PATCH 07/17] arm: acpi: Add generic ACPI methods

2024-07-27 Thread Patrick Rudolph
Add generic ACPI code to generate - MADT GICC - MADT GICD as commonly used on arm platforms. Signed-off-by: Patrick Rudolph Cc: Tom Rini Cc: Simon Glass --- arch/arm/include/asm/acpi_table.h | 18 + arch/arm/lib/Makefile | 1 + arch/arm/lib/acpi_table.c | 44

[PATCH 06/17] acpi: Add define for GTDT

2024-07-27 Thread Patrick Rudolph
Add the interrupt flag used in ACPI GTDT table as define. Signed-off-by: Patrick Rudolph Cc: Simon Glass --- include/acpi/acpi_table.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/acpi/acpi_table.h b/include/acpi/acpi_table.h index 0de3d3f439..19771c133a 100644 --- a/include

[PATCH 05/17] serial: serial_pl01x: Implement .getinfo() for PL01

2024-07-27 Thread Patrick Rudolph
From: Maximilian Brune When ACPI is enabled on arm it will use the getinfo function to fill the SPCR ACPI table. Signed-off-by: Maximilian Brune Cc: Simon Glass Cc: Tom Rini --- boot/bootflow.c | 8 ++-- drivers/serial/serial_pl01x.c | 24

[PATCH 04/17] acpi: Fix typo

2024-07-27 Thread Patrick Rudolph
Rename ACPI tables MADR to MADT. Signed-off-by: Patrick Rudolph Cc: Simon Glass --- include/acpi/acpi_table.h | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/acpi/acpi_table.h b/include/acpi/acpi_table.h index 904c54e38e..0de3d3f439 100644

[PATCH 03/17] acpi: x86: Move MADT to common code

2024-07-27 Thread Patrick Rudolph
Write MADT in common code and let the SoC fill out the body by calling acpi_fill_madt() which must be implemented at SoC level. Signed-off-by: Patrick Rudolph Cc: Simon Glass Cc: Bin Meng --- arch/sandbox/lib/Makefile | 9 +++--- arch/sandbox/lib/acpi_table.c | 7 + arch/x86

[PATCH 02/17] acpi: x86: Write FADT in common code

2024-07-27 Thread Patrick Rudolph
From: Maximilian Brune Write the FADT in common code since it's used on all architectures. Let the cpu code fill out the FADT body by introducing a new weak function acpi_fill_fadt(). Signed-off-by: Patrick Rudolph Cc: Simon Glass Cc: Bin Meng --- arch/x86/cpu/apollolake/acpi.c| 20

[PATCH 01/17] acpi: x86: Move SPCR and DBG2 into common code

2024-07-27 Thread Patrick Rudolph
From: Maximilian Brune This moves the SPCR and DBG2 table generation into common code, so that they can be used by architectures other than x86. Signed-off-by: Maximilian Brune Signed-off-by: Patrick Rudolph Cc: Simon Glass Cc: Bin Meng --- arch/x86/include/asm/acpi_table.h | 11 -- arch

[PATCH 00/17] Implement ACPI on aarch64

2024-07-27 Thread Patrick Rudolph
. - PCI isn't working on real hardware since the pcie_brcmstb Linux kernel module doesn't support ACPI yet. Maximilian Brune (3): acpi: x86: Move SPCR and DBG2 into common code acpi: x86: Write FADT in common code serial: serial_pl01x: Implement .getinfo() for PL01 Patrick Rudolph (12

Re: [PATCH] sbp1: Add support for IBM SBP1 board

2024-01-02 Thread Patrick Rudolph
Hi Tom, can you please clarify or point us to some documentation that explains the new DT setup? I thought the u-boot DT is only used for u-boot internal drivers. Do we need to upstream the kernel DT first? Do we need to provide a complete "kernel DT" to u-boot as well? Regards, Patri

[U-Boot] Using kernelCI infrastructure for firmware testing

2019-11-08 Thread Patrick Rudolph
reboot.org/ [2]: https://review.coreboot.org/ Kind Regards, Patrick Rudolph 9elements GmbH, Kortumstraße 19-21, 44787 Bochum, Germany Email: patrick.rudo...@9elements.com Phone: +49 234 / 68 94 188 Sitz der Gesellschaft: Bochum Handelsregister: Amtsgericht Bochum, HRB 13207 Geschäftsführung: