lscpu shows wrong L3 Cache size on NVIDIA Orin Nano
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
util-linux (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
For NVIDIA Orin Nano, L3 all cache size is 4M. But we got different result via lscpu comes from different version of util-linux:
lscpu from util-linux 2.34 which is the default version in Ubuntu focal (20.04) and shows wrong information:
# lscpu -C // lscpu bin from util-linux 2.34
NAME ONE-SIZE ALL-SIZE WAYS TYPE LEVEL
L1d 64K 384K 4 Data 1
L1i 64K 384K 4 Instruction 1
L2 256K 1.5M 8 Unified 2
L3 2M 2M 16 Unified 3
# lscpu
L1d cache: 384 KiB
L1i cache: 384 KiB
L2 cache: 1.5 MiB
L3 cache: 2 MiB
lscpu from util-linux 2.39 shows correct information, and this version is only packaged for Ubuntu mantic (23.10):
# lscpu -C // lscpu bin from util-linux 2.39
NAME ONE-SIZE ALL-SIZE WAYS TYPE LEVEL SETS PHY-LINE COHERENCY-SIZE
L1d 64K 384K 4 Data 1 256 64
L1i 64K 384K 4 Instruction 1 256 64
L2 256K 1.5M 8 Unified 2 512 64
L3 2M 4M 16 Unified 3 2048 64
# lscpu
Caches (sum of all):
L1d: 384 KiB (6 instances)
L1i: 384 KiB (6 instances)
L2: 1.5 MiB (6 instances)
L3: 4 MiB (2 instances)
Looks like there was a fix during version 2.34 to 2.39, but we need to use Ubuntu 20.04. Can you please backport the fix change to 2.34 then we can get correct information using default lscpu for Ubuntu 20.04?
We tried lscpu 2.37.2, and it could also show correct information. So the fix change should be merged during 2.34 to 2.37.
Please help on this issue to backport the fix change to 2.34 for Ubuntu focal.