Re: [PATCH v10 1/4] cpu/SMT: Provide a default topology_is_primary_thread()

2024-12-19 Thread Yicong Yang
On 2024/12/20 15:53, Yicong Yang wrote: > From: Yicong Yang > > Currently if architectures want to support HOTPLUG_SMT they need to > provide a topology_is_primary_thread() telling the framework which > thread in the SMT cannot offline. However arm64 doesn't have a > restriction on which thread i

[PATCH v10 3/4] arm64: topology: Support SMT control on ACPI based system

2024-12-19 Thread Yicong Yang
From: Yicong Yang For ACPI we'll build the topology from PPTT and we cannot directly get the SMT number of each core. Instead using a temporary xarray to record the heterogeneous information (from ACPI_PPTT_ACPI_IDENTICAL) and SMT information of the first core in its heterogeneous CPU cluster whe

[PATCH v10 2/4] arch_topology: Support SMT control for OF based system

2024-12-19 Thread Yicong Yang
From: Yicong Yang On building the topology from the devicetree, we've already gotten the SMT thread number of each core. Update the largest SMT thread number and enable the SMT control by the end of topology parsing. The core's SMT control provides two interface to the users [1]: 1) enable/disab

[PATCH v10 1/4] cpu/SMT: Provide a default topology_is_primary_thread()

2024-12-19 Thread Yicong Yang
From: Yicong Yang Currently if architectures want to support HOTPLUG_SMT they need to provide a topology_is_primary_thread() telling the framework which thread in the SMT cannot offline. However arm64 doesn't have a restriction on which thread in the SMT cannot offline, a simplest choice is that

[PATCH v10 0/4] Support SMT control on arm64

2024-12-19 Thread Yicong Yang
From: Yicong Yang The core CPU control framework supports runtime SMT control which is not yet supported on arm64. Besides the general vulnerabilities concerns we want this runtime control on our arm64 server for: - better single CPU performance in some cases - saving overall power consumption

[PATCH v10 4/4] arm64: Kconfig: Enable HOTPLUG_SMT

2024-12-19 Thread Yicong Yang
From: Yicong Yang Enable HOTPLUG_SMT for SMT control. Signed-off-by: Yicong Yang --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 100570a048c5..1ee926e2252e 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -246,

[powerpc:next-test] BUILD SUCCESS d629d7a8efc33d05d62f4805c0ffb44727e3d99f

2024-12-19 Thread kernel test robot
allnoconfiggcc-13.2.0 arc allyesconfiggcc-13.2.0 arc randconfig-001-20241218gcc-13.2.0 arc randconfig-001-20241219gcc-13.2.0 arc randconfig-002-20241218gcc-13.2.0 arc

[powerpc:fixes-test] BUILD SUCCESS 05aa156e156ef3168e7ab8a68721945196495c17

2024-12-19 Thread kernel test robot
randconfig-001-20241219clang-18 powerpcrandconfig-002-20241218clang-15 powerpcrandconfig-002-20241219clang-16 powerpcrandconfig-003-20241218clang-17 powerpcrandconfig-003-20241219clang-20 powerpc64 randconfig-001-20241219gcc-14.2.0 powerpc64 randconfig-002