Skip to content

x86: Adapt CPU topology detection for AMD Magny-Cours

Andreas Herrmann lkml 6 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest5 patches 0 repliesNew
  2. v58 patches 2 repliesSuperseded
  3. v45 patches 9 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v35 patches4 repliesSuperseded
v23 patches3 repliesSuperseded
v13 patches13 repliesSuperseded

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5x86, smpboot: use zalloc_cpumask_var instead of alloc/cleararch/x86/kernel/smpboot.c+3 -60 replies
2/5x86: Store CPU topology information for multi-node processorsarch/x86/include/asm/processor.h arch/x86/include/asm/smp.h arch/x86/kernel/smpboot.c+20 -00 replies
3/5x86: Fill cpu_node information for AMD Magny-Coursarch/x86/include/asm/cpufeature.h arch/x86/kernel/cpu/amd.c+66 -30 replies
4/5x86, cacheinfo: Fixup L3 cache information for AMD multi-node processorsarch/x86/kernel/cpu/intel_cacheinfo.c+20 -100 replies
5/5x86, mcheck: Make use of cpu_node_mask instead of cpu_core_maskarch/x86/kernel/cpu/mcheck/mce_amd.c+3 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v6 yet.

Read the v6 thread

Cover letter [PATCH 0/5 v6] x86: Adapt CPU topology detection for AMD Magny-Cours

Hi,

Another version of patches to fix topology issues for AMD multi-node processors. This time w/o introduction of new /sysfs attributes or additional log messages.
It is just the pure stuff that is needed to fix some oddities that occur when Linux is booted on Magny-Cours.

Please apply the patches. They should go into .32.

Users who are interested in which CPUs belong to the same internal node have to check shared_cpu_map of L3 cache (i.e. /sys/devices/system/cpu/cpuXY/cache/index3/shared_cpu_map or /sys/devices/system/cpu/cpuXY/cache/index3/shared_cpu_list)

Boris might be interested in cpuinfo_x86->cpu_node_id. I use it to store the entire NodeId of AMD CPUs. That should be convenient enough to find out the northbridge of a CPU in the EDAC driver.

The scheduler stuff is in flux in general and I don't expect that scheduler gets fixed for Magny-Cours with .32. So be aware that changing to power savings scheduling might bring down your multi-node processor system.

Regards,
Andreas

Signature · 5 lines
Operating | Advanced Micro Devices GmbH
  System  | Karl-Hammerschmidt-Str. 34, 85609 Dornach b. München, Germany
 Research | Geschäftsführer: Andrew Bowd, Thomas M. McCoy, Giuliano Meroni
  Center  | Sitz: Dornach, Gemeinde Aschheim, Landkreis München
  (OSRC)  | Registergericht München, HRB Nr. 43632