Files
opensbi/platform/generic/Kconfig
Anup Patel 4339e85794 platform: generic: Keep some empty space in FDT passed to next stage
Leaving no empty space in the FDT passed to the next booting stage
causes the following U-Boot crash on Ventana internal platforms:

Unhandled exception: Load access fault
EPC: 00000000fffa6372 RA: 00000000fffa7418 TVAL: 0001746174730068
EPC: 0000000080245372 RA: 0000000080246418 reloc adjusted

SP:  00000000fef38440 GP:  00000000fef40e60 TP:  0000000000000000
T0:  00000000fef40a70 T1:  000000000000ff00 T2:  0000000000000000
S0:  00000000fffc17a8 S1:  00000000fef38d40 A0:  7375746174730068
A1:  00000000fffc17a8 A2:  0000000000000010 A3:  0000000000000010
A4:  0000000000000000 A5:  00000000fffc17b8 A6:  0000000000ff0000
A7:  000000000000b100 S2:  0000000000000000 S3:  0000000000000001
S4:  00000000fef38d40 S5:  7375746174730068 S6:  0000000000000000
S7:  00000000fef4eef0 S8:  00000000fef4ef90 S9:  0000000000000000
S10: 0000000000000000 S11: 00000000fef4efc0 T3:  00000000fef40ea8
T4:  0000000000ff0000 T5:  00000000fef40a60 T6:  00000000fef40a6c

To address the above issue, keep some minimal empty space in the
FDT instead of no empty space.

Fixes: bbe9a23060 ("platform: generic: Pack the FDT after applying fixups")
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Link: https://lore.kernel.org/r/20251209053130.407935-1-apatel@ventanamicro.com
Signed-off-by: Anup Patel <anup@brainfault.org>
2025-12-16 20:14:08 +05:30

104 lines
1.9 KiB
Plaintext

# SPDX-License-Identifier: BSD-2-Clause
config PLATFORM_GENERIC
bool
select FDT
select FDT_DOMAIN
select FDT_PMU
default y
if PLATFORM_GENERIC
config PLATFORM_GENERIC_NAME
string "Platform default name"
default "Generic"
config PLATFORM_GENERIC_MAJOR_VER
int "Platform major version"
range 0 65535
default 0
config PLATFORM_GENERIC_MINOR_VER
int "Platform minor version"
range 0 65535
default 1
config PLATFORM_GENERIC_FDT_EMPTY_SPACE
int "Platform FDT empty space (KB)"
range 0 1024
default 4
config PLATFORM_ALLWINNER_D1
bool "Allwinner D1 support"
depends on FDT_IRQCHIP_PLIC
select THEAD_C9XX_PMU
default n
config PLATFORM_ANDES_AE350
bool "Andes AE350 support"
select SYS_ATCSMU
select ANDES_PMU
select ANDES_PMA
default n
config PLATFORM_ANDES_QILAI
bool "Andes QiLai support"
select ANDES_PMU
select ANDES_PMA
select ANDES_SBI
default n
config PLATFORM_OPENHWGROUP_OPENPITON
bool "OpenHWGroup Openpiton support"
default n
config PLATFORM_OPENHWGROUP_ARIANE
bool "OpenHWGroup Ariane support"
default n
config PLATFORM_RENESAS_RZFIVE
bool "Renesas RZ/Five support"
select ANDES_PMA
select ANDES_SBI
select ANDES_PMU
default n
config PLATFORM_SIFIVE_FU540
bool "SiFive FU540 support"
default n
config PLATFORM_SIFIVE_FU740
bool "SiFive FU740 support"
depends on FDT_RESET && FDT_I2C
default n
config PLATFORM_SOPHGO_SG2042
bool "Sophgo sg2042 support"
select THEAD_C9XX_ERRATA
select THEAD_C9XX_PMU
default n
config PLATFORM_STARFIVE_JH7110
bool "StarFive JH7110 support"
default n
config PLATFORM_THEAD
bool "THEAD C9xx support"
select THEAD_C9XX_ERRATA
select THEAD_C9XX_PMU
default n
config PLATFORM_MIPS_P8700
bool "MIPS P8700 support"
default n
config PLATFORM_SPACEMIT_K1
bool "Spacemit K1 support"
select FDT_HSM_SPACEMIT
default n
source "$(OPENSBI_SRC_DIR)/platform/generic/andes/Kconfig"
source "$(OPENSBI_SRC_DIR)/platform/generic/thead/Kconfig"
endif