]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lscpu-arm: Add "BIOS Vendor ID" and "BIOS Model name" to show the SMBIOS information.
authorMasayoshi Mizuma <m.mizuma@jp.fujitsu.com>
Fri, 13 Nov 2020 09:06:26 +0000 (10:06 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 13 Nov 2020 09:06:26 +0000 (10:06 +0100)
commit8014104bea78f6f82cb82e16329b562e60ecdc87
tree18b7aabd095caab2dac59b4bc867d88f81bbe90e
parentdbc27723057544f56e70a9c84202dc7053518556
lscpu-arm: Add "BIOS Vendor ID" and "BIOS Model name" to show the SMBIOS information.

After commit: 367c85c47 ("lscpu: use SMBIOS tables on ARM for lscpu"),
Model name for A64FX shows like as:

   Model name:       461F0010

That's because 367c85c47 changes to get the modelname from Processor
Version of SMBIOS.

To fix that, use the hard corded table to show the "Model name" and
add two new lines; "BIOS Vendor ID" and "BIOS Model name" to show the
SMBIOS information.

lscpu shows the SMBIOS information when root user runs it because
accessing the SMBIOS information requires root privilege.

[kzak@redhat.com: - port the patch to new lscpu code]

Signed-off-by: Masayoshi Mizuma <m.mizuma@jp.fujitsu.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/lscpu-arm.c
sys-utils/lscpu.c
sys-utils/lscpu.h