From: Yicong Yang <yangyicong@huawei.com>
To: <catalin.marinas@arm.com>, <will@kernel.org>,
<sudeep.holla@arm.com>, <linux-arm-kernel@lists.infradead.org>
Cc: <dietmar.eggemann@arm.com>, <gregkh@linuxfoundation.org>,
<rafael@kernel.org>, <jonathan.cameron@huawei.com>,
<prime.zeng@hisilicon.com>, <linuxarm@huawei.com>,
<yangyicong@hisilicon.com>, <linux-kernel@vger.kernel.org>
Subject: [PATCH v4 0/4] Support SMT control on arm64
Date: Tue, 21 Nov 2023 17:25:58 +0800 [thread overview]
Message-ID: <20231121092602.47792-1-yangyicong@huawei.com> (raw)
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 v3:
- Fix some build and kconfig error reported by kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/linux-arm-kernel/20231114040110.54590-1-yangyicong@huawei.com/
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 | 45 +++++++++++++++++++++++++++++++++++
include/linux/arch_topology.h | 14 +++++++++++
4 files changed, 83 insertions(+)
--
2.24.0
next reply other threads:[~2023-11-21 9:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-21 9:25 Yicong Yang [this message]
2023-11-21 9:25 ` [PATCH v4 1/4] arch_topology: Support basic SMT control for the driver Yicong Yang
2023-11-21 9:26 ` [PATCH v4 2/4] arch_topology: Support SMT control for OF based system Yicong Yang
2023-11-21 9:26 ` [PATCH v4 3/4] arm64: topology: Support SMT control on ACPI " Yicong Yang
2023-11-21 9:26 ` [PATCH v4 4/4] arm64: Kconfig: Enable HOTPLUG_SMT Yicong Yang
2023-11-30 6:56 ` [PATCH v4 0/4] Support SMT control on arm64 Yicong Yang
2023-12-11 13:16 ` Will Deacon
2023-12-14 11:39 ` Yicong Yang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231121092602.47792-1-yangyicong@huawei.com \
--to=yangyicong@huawei.com \
--cc=catalin.marinas@arm.com \
--cc=dietmar.eggemann@arm.com \
--cc=gregkh@linuxfoundation.org \
--cc=jonathan.cameron@huawei.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxarm@huawei.com \
--cc=prime.zeng@hisilicon.com \
--cc=rafael@kernel.org \
--cc=sudeep.holla@arm.com \
--cc=will@kernel.org \
--cc=yangyicong@hisilicon.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®