Debian Patches

Status for hwloc/2.12.0-4~bpo12+1

Patch Description Author Forwarded Bugs Origin Last update
doc-nopdf no
verbosity We don't really want to scare all people about missing rocm and zero drivers. no
fix-test-several-levels-same-type commit 9693e9f5f8ea3df749263faadc0eab77184dffb8 (HEAD -> master, mine/sscanf)

hwloc_type_sscanf: fix test when host has several levels with same type

E.g. with

HWLOC_SYNTHETIC="group:2 group:2 pu:2" ./tests/hwloc/hwloc_type_sscanf

The presence of the two group levels makes the check for level depth fail
for the hwloc_obj_type_string case which does not expose attributes
which allow to distinguish them.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Samuel Thibault <samuel.thibault@ens-lyon.org> no 2025-04-17
work_around_legacy_max_proc_being_0 commit 452765963af7532add7060edfefb06dd05a4cb26

x86: work around legacy_max_proc being 0 while HTT feature bit is set

The Intel manual says that legacy_max_proc (CPUID.1.EBX[16-23]) is valid
if CPUID.1.EDX.HTT[bit 28] is set.
AMD (at least recent ones) don't say anything about it being invalid.

Unfortunately some Qemu config may keep the former at 0 with the latter set.
At least this happens when libvirt passes -cpu EPYC-Rome,ht=on to Qemu
(which sets the HTT bit), and -smp 32,maxcpus=48,sockets=48,cores=1,threads=1
says each CPU is single threaded (which keeps legacy_max_log_proc to 0).
This config comes from https://bugzilla.opensuse.org/show_bug.cgi?id=1236038

Calling flsl on this invalid mask leads to undefined behavior and some division
by zero later (depending on the compiler).

Check whether legacy_max_proc is 0 before using it.
If 0, assume legacy_max_log_proc is 1, just like we did when HTT is unset.

Thanks to Georg Pfuetzenreuter for the report
and Anthony Iliopoulos for the debugging.

Refs #714

Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
(cherry picked from commit 77495cecad7178ccd73ad4962780328f079a0e65)

diff --git a/hwloc/topology-x86.c b/hwloc/topology-x86.c
index f442f7f00..42248f680 100644
Brice Goglin <Brice.Goglin@inria.fr> no 2025-04-24

All known versions for source package 'hwloc'

Links