]> www.infradead.org Git - users/jedix/linux-maple.git/commit
riscv: dmi: Add SMBIOS/DMI support
authorHaibo Xu <haibo1.xu@intel.com>
Thu, 13 Jun 2024 06:55:07 +0000 (14:55 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 26 Jun 2024 15:02:33 +0000 (08:02 -0700)
commitd6ecd188937fcddeffb37efc61b67a56809b266a
tree044fe8d41d16b042193baf2aa72772951c4c1684
parent50b5bae5be1b5f0a778e1b1a0a4dcda54c76cdce
riscv: dmi: Add SMBIOS/DMI support

Enable the dmi driver for riscv which would allow access the
SMBIOS info through some userspace file(/sys/firmware/dmi/*).

The change was based on that of arm64 and has been verified
by dmidecode tool.

Signed-off-by: Haibo Xu <haibo1.xu@intel.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Link: https://lore.kernel.org/r/20240613065507.287577-1-haibo1.xu@intel.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/Kconfig
arch/riscv/include/asm/dmi.h [new file with mode: 0644]
drivers/firmware/efi/riscv-runtime.c