Public bug reported:
Summary
Please Note: Upgrading the operating system to Ubuntu 24.04 is not
currently an option for this environment.
Ubuntu 22.04 with kernel 6.8.0-149-generic incorrectly identifies an
Intel Core Ultra 9 285H processor as containing 16 physical CPU
packages, each with one core.
The processor actually contains one physical package with 16 cores and
16 logical CPUs.
All 16 CPUs are discovered and operational. The problem is specifically
with the kernel's package topology and CPU sibling masks.
System information
Hardware: Dell Pro Max 16 MC16250
Processor: Intel Core Ultra 9 285H
BIOS: Dell 1.21.0
Operating system: Ubuntu 22.04 LTS
Kernel: 6.8.0-149-generic
Kernel source package: linux-hwe-6.8
Kernel source version: 6.8.0-149.149~22.04.1
The issue persisted after upgrading the Dell BIOS from 1.9.1 to 1.21.0.
Expected behavior
Linux should report:
CPU(s): 16
Thread(s) per core: 1
Core(s) per socket: 16
Socket(s): 1
The package_cpus_list for each CPU should contain 0-15.
Actual behavior
Running lscpu reports:
CPU(s): 16
On-line CPU(s) list: 0-15
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 16
NUMA node0 CPU(s): 0-15
All CPUs report:
physical_package_id: 0
However, each CPU's package_cpus_list contains only that CPU.
For example:
CPU 0: package_cpus_list = 0
CPU 1: package_cpus_list = 1
CPU 6: package_cpus_list = 6
CPU 14: package_cpus_list = 14
Additionally, /proc/cpuinfo reports:
siblings: 1
cpu cores: 1
for all 16 logical CPUs.
CPUID investigation
CPUID leaf 0x1F exposes a hierarchy containing a module level.
For CPU 0:
Subleaf 0:
EAX=0x1 EBX=0x1 ECX=0x100
Subleaf 1:
EAX=0x3 EBX=0x1 ECX=0x201
Subleaf 2:
EAX=0x7 EBX=0x10 ECX=0x302
Subleaf 2 reports 16 logical processors at the module topology level,
with a seven-bit x2APIC ID shift.
The older CPUID leaf 0xB also reports 16 logical processors at its core
topology level.
The observed topology is consistent with all 16 CPUs belonging to one
processor package.
Kernel source investigation
I downloaded and inspected the exact Ubuntu kernel source version:
6.8.0-149.149~22.04.1
In arch/x86/kernel/cpu/topology.c, the kernel contains:
c->x86_max_cores =
(core_level_siblings / smp_num_siblings);
For the boot CPU, the reported core-level logical processor count is
one.
This suggests x86_max_cores may be initialized to one despite the higher
topology level describing 16 logical processors.
In arch/x86/kernel/smpboot.c, set_cpu_sibling_map() contains:
bool has_smt = smp_num_siblings > 1;
bool has_mp = has_smt ||
boot_cpu_data.x86_max_cores > 1;
When has_mp is false, the function initializes the topology sibling
masks with the current CPU and returns early.
This appears consistent with the observed singleton package membership
masks.
The precise runtime branch has not been instrumented, so this remains a
suspected failure mechanism rather than a proven root cause.
Impact
The incorrect package topology affects applications that perform
hardware discovery or topology-aware resource allocation.
For example, hwloc 2.14.0 reports 16 separate Package objects, despite
the processor physically containing only one package.
This can lead to incorrect CPU socket locality and scheduling decisions.
Requested resolution
Please investigate Intel Core Ultra 9 285H CPU topology enumeration in
the Ubuntu 22.04 Linux 6.8 HWE kernel.
In particular, please examine the interaction between CPUID leaf 0x1F
module-level topology, x86_max_cores, and set_cpu_sibling_map().
If the issue is addressed by the newer upstream x86 topology
infrastructure, please consider an appropriate fix or backport for the
Ubuntu 22.04 HWE kernel.
Upgrading the operating system to Ubuntu 24.04 is not currently an
option for this environment.
** Affects: linux (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2175075
Title:
Intel Core Ultra 9 285H incorrectly detected as 16 CPU sockets instead
of 1 on Ubuntu 22.04 kernel 6.8
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2175075/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs