** Description changed:

  [ Impact ]
+ This is a change for hardware enablement.
  
- This patch fixes the Model Name as well as the grouping of the cpus
- to achieve a correct core per socket count.
+ 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 upload fixes this bug by applying the upstream patches to the
- branch in question. Regression tests from upstream run successfully.
- The following commits are included as a single patch (all from
- https://github.com/util-linux/util-linux):
- - a596a441ac6ef90d5fdfa14830d5c3c88885e4ec
- - b699f6ffa3f4d4188993647299e42b087fadfa58
- - eb6514b4c2618ff68abbafd36fc3520beed87812
- - 7a136d595f1b3b48128afdb9bd110a40aec771af
+ 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 ]
  
- To reproduce issue `lscpu` on an nvidia arm platform. The output
- differs from what it should be according to the attached files
- `lscpu.bad` and `lscpu.good`.
+ # 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 ]
- 
- This is a backport from upstream, so risk should be minimal.
- The modified functions are only used in files relevant for the
- lscpu command so other binaries provided by this package are
- uninvolved.
- 
- If however a regression occurs, this could lead to lscpu being
- nonfunctional or showing wrong/invalid information.
+ 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 ppa:
- https://launchpad.net/~aglinserer/+archive/ubuntu/lp2111723
+ 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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2111723

Title:
  lscpu wrong core report and Model name is unkown

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/2111723/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to