]> git.ipfire.org Git - thirdparty/u-boot.git/commit
cpu: riscv: set correct SMBIOS processor family value
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 28 Dec 2023 07:30:24 +0000 (08:30 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 9 Jan 2024 09:09:15 +0000 (10:09 +0100)
commit1b6228f28d9336620fb508ed198ad8be1eb7aa9c
tree2d96dfccbd6e88543ca29923e9293cc4915aebcb
parent0920bd50dc1d5e58a6afd74fcbd6aaf0405d7c65
cpu: riscv: set correct SMBIOS processor family value

The SMBIOS specification requires to set the processor family in the type 4
(Processor Information) table to specific values depending only on the
bitness of the system (0x200 for RV32 and 0x201 for RV64).

With this patch dmidecode shows

    Handle 0x0004, DMI type 4, 48 bytes
    Processor Information
Socket Designation: Not Specified
Type: Central Processor
Family: RV64

for qemu-riscv64_smode_defconfig.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
drivers/cpu/riscv_cpu.c