debcrafters-packages team mailing list archive
-
debcrafters-packages team
-
Mailing list archive
-
Message #02391
[Bug 2111723] Re: lscpu wrong core report and Model name is unkown
Sounds good, thanks
--
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/2111723
Title:
lscpu wrong core report and Model name is unkown
Status in util-linux package in Ubuntu:
New
Status in util-linux source package in Noble:
In Progress
Status in util-linux source package in Oracular:
In Progress
Status in util-linux source package in Plucky:
In Progress
Status in util-linux source package in Questing:
New
Bug description:
[ Impact ]
This is a change for hardware enablement.
The current state shows wrong information when issuing the lscpu
command. It does not correctly detect which CPU Cores belong to which
CPU socket and therefore falsifies the shown information. It also
miscounts the CPU sockets present. Furthermore it does not display a
correct CPU model name. All of these deliver wrong information of the
system and confusion as to what is actually present to the user.
This patch fixes the displayed model name and adds the required
functionality for grouping the CPUs to their respective sockets. This
leads to a correct socket count being displayed. This is achieved by
adding a deduplication step after the parser is run and reducing the
amount of sockets present. The compare function is also modified to
check multiple fields for equivalence instead of only a selected one.
In essence these patches are a backport from upstream. The following [upstream](https://github.com/util-linux/util-linux) commits are used:
- 7a136d595f lscpu: New Arm Cortex part numbers - (for noble backport only)
- a596a441ac lscpu: use CPU types de-duplication - the change in question
- b699f6ffa3 tests: update lscpu vmware_fpe output - autopkgtest fix
- eb6514b4c2 tests: add dump from ARM with A510+A710+A715+X3 - testdata
[ Test Plan ]
# ARM
Example of the broken output: https://pastebin.com/acqeBUrw
Example of the fixed output: https://pastebin.com/vG87SHXz
Reproduction steps:
- Execute `lscpu` on an affected system (e.g. ARM platform with Cortex-X925 and Cortex-A725)
- The output shows 4 sockets with 5 cores each
- The model name is only a '-'
Doing this with the patched utils-linux:
- Execute patched `lscpu` on an affected system
- The output shows 2 sockets with 10 cores each
- The model name is Cortex-X925 and Cortex-A725 for their sockets respectively
# x86
Running the old version of `lscpu` on an x86 system shows no
difference to the new version.
# Additional
Adapted autpkg tests were also pulled from upstream, which test the
deduplication feature and new CPUs. Regression tests run without
issues.
[ Where problems could occur ]
The added functionality is located in the lscpu sources. Any potential of regressions would lead to the lscpu command not running correctly or showing false information.
Additional functionality added in the strutils header is only used by the lscpu files. So errors in those do only affect the lscpu command.
[ Other Info ]
These patches are for enabling the correct information on new nvidia hardware.
Link to a ppa with the applied patches:
[https://launchpad.net/~aglinserer/+archive/ubuntu/lp2111723](https://launchpad.net/~aglinserer/+archive/ubuntu/lp2111723)
---
Edit 18.06.2025 - rework the initial description
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/2111723/+subscriptions
References