Skip to content

Fixing SMP config for DeviceTree platforms

Saurabh Sengar linux-hyperv lkml 1 version Applied

Status from this message: The following commit has been merged into the x86/platform branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest4 patches 1 replyApplied

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4x86/hyperv/vtl: Correct parse_smp_cfg assignmentarch/x86/hyperv/hv_vtl.c+1 -11 reply
2/4x86/of: Set the parse_smp_cfg for all the DeviceTree platforms by defaultarch/x86/hyperv/hv_vtl.c arch/x86/include/asm/prom.h arch/x86/kernel/devicetree.c +1 more+6 -90 replies
3/4x86/of: Map NUMA node to CPUs as per DeviceTreearch/x86/kernel/devicetree.c+2 -00 replies
4/4x86/of: Change x86_dtb_parse_smp_config to staticarch/x86/include/asm/prom.h arch/x86/kernel/devicetree.c+9 -110 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchWei Liu
1/4A-b
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] Fixing SMP config for DeviceTree platforms

Original motivation for these changes was to fix an SMT warning observed in Hyper-V VTL platform. Check V1 for more details:
https://lore.kernel.org/lkml/[email protected]/

But on further review it was observed that x86 DeviceTree config has modified recently, and there is opportunity to improve the existing smp parsing for DeviceTree.

https://lore.kernel.org/lkml/[email protected]/

Changes are small but I have logically separated them into four patches. I am willing to merge them if there are too many

[V2]
- Modified the approch how to fix the SMT issue, this is patch 3 in this series. V1 for it is mentioned in above link.
- Added 2 more patches which are related to new SMP config parsing. These are patches 2 and 4 in this series.
- Fixed an issue with hv_vtl platform how it should use the smp parsing for DeviceTree with a fixes tag.

Saurabh Sengar (4):
x86/hyperv/vtl: Correct parse_smp_cfg assignment x86/of: Set the parse_smp_cfg for all the DeviceTree platforms by
default
x86/of: Map NUMA node to CPUs as per DeviceTree x86/of: Change x86_dtb_parse_smp_config to static

 arch/x86/hyperv/hv_vtl.c          |  1 -
 arch/x86/include/asm/prom.h       |  9 ++-------
 arch/x86/kernel/devicetree.c      | 24 ++++++++++++++----------
 arch/x86/platform/ce4100/ce4100.c |  1 -
 4 files changed, 16 insertions(+), 19 deletions(-)
Signature · 1 line
2.34.1