public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [patch V6 11/19] x86/cpu: Use common topology code for AMD
@ 2024-03-14 10:21 Yuezhang.Mo
  2024-03-14 12:07 ` Borislav Petkov
  2024-05-08 19:53 ` [patch] x86/topology/amd: Ensure that LLC ID is initialized Thomas Gleixner
  0 siblings, 2 replies; 4+ messages in thread
From: Yuezhang.Mo @ 2024-03-14 10:21 UTC (permalink / raw)
  To: tglx@linutronix.de
  Cc: andrew.cooper3@citrix.com, andy@infradead.org,
	arjan@linux.intel.com, dimitri.sivanich@hpe.com,
	feng.tang@intel.com, jgross@suse.com, kan.liang@linux.intel.com,
	kprateek.nayak@amd.com, linux-kernel@vger.kernel.org,
	mhklinux@outlook.com, paulmck@kernel.org, peterz@infradead.org,
	ray.huang@amd.com, rui.zhang@intel.com, sohil.mehta@intel.com,
	thomas.lendacky@amd.com, wendy.wang@intel.com, x86@kernel.org

I ran xfstests generic/650 and found that it failed.

The reason for the failure is that this appears in dmesg:

[  649.590421] smpboot: CPU 2 is now offline
[  650.132920] smpboot: Booting Node 0 Processor 3 APIC 0x13
[  650.133432] LVT offset 0 assigned for vector 0x400
[  650.148931] ACPI: \_PR_.P003: Found 2 idle states
[  650.149478] BUG: arch topology borken
[  650.149483]      the CLS domain not a subset of the MC domain
[  650.149486] BUG: arch topology borken
[  650.149487]      the CLS domain not a subset of the MC domain

I prepared the following script to reproduce this issue.

#! /bin/sh

sysfs_cpu_dir="/sys/devices/system/cpu"
nrcpus=$(getconf _NPROCESSORS_CONF)
hotplug_cpus=()
for ((i = 0; i < nrcpus; i++ )); do
	test -e "$sysfs_cpu_dir/cpu$i/online" && hotplug_cpus+=("$i")
done

nr_hotplug_cpus="${#hotplug_cpus[@]}"

for ((i=0; i<20;i++)); do
	idx=$(( RANDOM % nr_hotplug_cpus ))
	cpu="${hotplug_cpus[$idx]}"
	action=$(( RANDOM % 2 ))

	echo "$action" > "$sysfs_cpu_dir/cpu$cpu/online" 2>/dev/null
	sleep 0.5
done

If run the script without this commit, the issue cannot be reproduced.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-05-10  8:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-14 10:21 [patch V6 11/19] x86/cpu: Use common topology code for AMD Yuezhang.Mo
2024-03-14 12:07 ` Borislav Petkov
2024-05-08 19:53 ` [patch] x86/topology/amd: Ensure that LLC ID is initialized Thomas Gleixner
2024-05-10  8:56   ` Yuezhang.Mo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox