From: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
To: Simon Glass <sjg@chromium.org>
Cc: Rick Chen <rick@andestech.com>, Leo <ycliang@andestech.com>,
Ilias Apalodimas <ilias.apalodimas@linaro.org>,
u-boot@lists.denx.de,
Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Subject: [PATCH 0/2] smbios: riscv: set correct SMBIOS processor family value
Date: Thu, 28 Dec 2023 08:30:22 +0100 [thread overview]
Message-ID: <20231228073024.6508-1-heinrich.schuchardt@canonical.com> (raw)
Many value of processor type exceed 0xff and have to be stored as u16
value. In the type 4 table set processor_family = 0xfe signaling that
field processor_family2 is used and write the actual value into the
processor_family2 field.
The values for RISC-V are:
* 0x200 for 32-bit
* 0x201 for 64-bit
With this series 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.
Heinrich Schuchardt (2):
smbios: enable setting processor family > 0xff
cpu: riscv: set correct SMBIOS processor family value
drivers/cpu/riscv_cpu.c | 4 ++++
lib/smbios.c | 4 ++--
2 files changed, 6 insertions(+), 2 deletions(-)
--
2.43.0
next reply other threads:[~2023-12-28 7:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-28 7:30 Heinrich Schuchardt [this message]
2023-12-28 7:30 ` [PATCH 1/2] smbios: enable setting processor family > 0xff Heinrich Schuchardt
2023-12-28 13:37 ` Simon Glass
2023-12-29 11:18 ` Heinrich Schuchardt
2023-12-28 7:30 ` [PATCH 2/2] cpu: riscv: set correct SMBIOS processor family value Heinrich Schuchardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231228073024.6508-1-heinrich.schuchardt@canonical.com \
--to=heinrich.schuchardt@canonical.com \
--cc=ilias.apalodimas@linaro.org \
--cc=rick@andestech.com \
--cc=sjg@chromium.org \
--cc=u-boot@lists.denx.de \
--cc=ycliang@andestech.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).