public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/4] Support SMT control on arm64
@ 2023-11-14  4:01 Yicong Yang
  2023-11-14  4:01 ` [PATCH v3 1/4] arch_topology: Support basic SMT control for the driver Yicong Yang
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Yicong Yang @ 2023-11-14  4:01 UTC (permalink / raw)
  To: catalin.marinas, will, sudeep.holla, linux-arm-kernel
  Cc: dietmar.eggemann, gregkh, rafael, jonathan.cameron, prime.zeng,
	linuxarm, yangyicong, linux-kernel

From: Yicong Yang <yangyicong@hisilicon.com>

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

This patchset implements it in the following aspects:

- implements the basic support in arch_topology driver
- support retrieve SMT thread number on OF based system
- support retrieve SMT thread number on ACPI based system
- select HOTPLUG_SMT for arm64

Tests has been done on our real ACPI based arm64 server and on
ACPI/OF based QEMU VMs.

The patchset is based on v6.7-rc1.

Change since v2:
- Detect SMT thread number at topology build from ACPI/DT, avoid looping CPUs
- Split patches into ACPI/OF/arch_topology path and enable the kconfig for arm64
Link: https://lore.kernel.org/linux-arm-kernel/20231010115335.13862-1-yangyicong@huawei.com/

Yicong Yang (4):
  arch_topology: Support basic SMT control for the driver
  arch_topology: Support SMT control for OF based system
  arm64: topology: Support SMT control on ACPI based system
  arm64: Kconfig: Enable HOTPLUG_SMT

 arch/arm64/Kconfig            |  1 +
 arch/arm64/kernel/topology.c  | 23 +++++++++++++++++++++
 drivers/base/arch_topology.c  | 39 +++++++++++++++++++++++++++++++++++
 include/linux/arch_topology.h |  9 ++++++++
 4 files changed, 72 insertions(+)

-- 
2.24.0


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

end of thread, other threads:[~2023-11-20  3:29 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-14  4:01 [PATCH v3 0/4] Support SMT control on arm64 Yicong Yang
2023-11-14  4:01 ` [PATCH v3 1/4] arch_topology: Support basic SMT control for the driver Yicong Yang
2023-11-14 13:42   ` kernel test robot
2023-11-15 15:23   ` kernel test robot
2023-11-20  3:29     ` Yicong Yang
2023-11-14  4:01 ` [PATCH v3 2/4] arch_topology: Support SMT control for OF based system Yicong Yang
2023-11-14  4:01 ` [PATCH v3 3/4] arm64: topology: Support SMT control on ACPI " Yicong Yang
2023-11-14  4:01 ` [PATCH v3 4/4] arm64: Kconfig: Enable HOTPLUG_SMT Yicong Yang
2023-11-16  4:59   ` kernel test robot
2023-11-20  3:27     ` Yicong Yang

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