[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230705114251.661-4-cuiyunhui@bytedance.com>
Date: Wed, 5 Jul 2023 19:42:50 +0800
From: Yunhui Cui <cuiyunhui@...edance.com>
To: conor@...nel.org, sunilvl@...tanamicro.com, ardb@...nel.org,
palmer@...belt.com, paul.walmsley@...ive.com,
aou@...s.berkeley.edu, linux-riscv@...ts.infradead.org,
rminnich@...il.com, mark.rutland@....com, lpieralisi@...nel.org,
rafael@...nel.org, lenb@...nel.org, jdelvare@...e.com,
yc.hung@...iatek.com, angelogioacchino.delregno@...labora.com,
allen-kh.cheng@...iatek.com, pierre-louis.bossart@...ux.intel.com,
tinghan.shen@...iatek.com, linux-kernel@...r.kernel.org,
linux-acpi@...r.kernel.org, geshijian@...edance.com,
weidong.wd@...edance.com, cuiyunhui@...edance.com
Subject: [PATCH v3 3/4] riscv: obtain SMBIOS entry from FFI
On RISC-V, Coreboot does not support EFI booting, only supports
devicetree, and RISC-V does not have reserved address segments.
To support Coreboot on RISC-V platforms that require DMI
functionality, SMBIOS entry need to be passed through FFI.
Signed-off-by: Yunhui Cui <cuiyunhui@...edance.com>
---
arch/riscv/kernel/ffi.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/riscv/kernel/ffi.c b/arch/riscv/kernel/ffi.c
index 147d06a5acff..b959d16fe0b3 100644
--- a/arch/riscv/kernel/ffi.c
+++ b/arch/riscv/kernel/ffi.c
@@ -8,6 +8,7 @@
#include <linux/of.h>
#include <linux/of_fdt.h>
#include <linux/libfdt.h>
+#include <linux/ffi.h>
static u64 acpi_rsdp;
@@ -35,4 +36,5 @@ u64 __init riscv_acpi_rsdp(void)
void __init ffi_init(void)
{
ffi_acpi_root_pointer();
+ ffi_smbios_root_pointer();
}
--
2.20.1
Powered by blists - more mailing lists