Bug 2182169 - lscpu: backport ARM human-readable names from upstream
Summary: lscpu: backport ARM human-readable names from upstream
Keywords:
Status: MODIFIED
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: util-linux
Version: 9.2
Hardware: aarch64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Karel Zak
QA Contact: Radka Brychtova
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-27 18:35 UTC by Chen Shi
Modified: 2023-08-10 09:28 UTC (History)
2 users (show)

Fixed In Version: util-linux-2.37.4-12.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-153203 0 None None None 2023-03-27 18:37:40 UTC

Description Chen Shi 2023-03-27 18:35:07 UTC
Description of problem:

The qdrive3 boards are systems with multiple CPU modules.

$ grep "CPU part" /proc/cpuinfo | sort -u
CPU part    : 0xd4b
CPU part    : 0xd4c

The hex code is converted by lscpu to human readable name. Unfortunately, lscpu in RHEL9 is too old and it has no clue about 0xd4c aka "Cortex-X1C", so it prints "-" instead of the name.

This issue will impact many scripts that uses lscpu from collecting accurate information about the test environment.
 
Version-Release number of selected component (if applicable):
util-linux 2.37.4

How reproducible:
100%

Steps to Reproduce:
1. Run Linux on a qdrive3 board.
2. Install util-linux in the Linux.
3. Run and check the result of `lscpu`.

Actual results:
lscpu cannot convert 0xd4c to Cortex-X1C and include that information in the outputs. So the output looks confusing.

Expected results:
lscpu can display all CPU modules in its output.

Additional info:
1. The initial discuss about this issue can be found at https://issues.redhat.com/browse/AUTOBUG-230

Comment 1 Chen Shi 2023-03-27 18:40:28 UTC
Thanks to Jiri Hladky for bringing this up, and to Karel and Radka for debugging!

Comment 2 Karel Zak 2023-03-29 10:02:59 UTC
I guess we can backport all human-readable ARM names from upstream. The number of new CPU identifiers (the hex) is huge:

$ git diff HEAD^ upstream -- sys-utils/lscpu-arm.c | grep -c '+.*0x'
76


Note You need to log in before you can comment on or make changes to this bug.