Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp111780rdb; Wed, 29 Nov 2023 22:57:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IGEHCx1+0HI0TUJ0yVIKV8LpY1AOsJNxs0KqApnDDTtf/+xl5zYtv6pHQCVQnCBuI8uE4wm X-Received: by 2002:a17:90a:1dd:b0:285:9940:1bac with SMTP id 29-20020a17090a01dd00b0028599401bacmr19697909pjd.2.1701327435197; Wed, 29 Nov 2023 22:57:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701327435; cv=none; d=google.com; s=arc-20160816; b=aPkSFi7i5Fm5gnRO34rGiBFV09hMFBGqoDhFD3EUkL43Bm57t9vmvMDzcuYCDHMDMe iIv8ZaqIz+ORqrY7AYhTf1ulRFsYBD+z6w6UjFGL4EOHc3qzJ7U64T379F0hs4blXlhK RKF+4UeEC3ATfuSBwO8A9/XY5v10NqXf0ifcF5ruM2swFnJmHUuwVHS12FzU4v3rteDf ZUD7M9ze1GWKWqsFJK5FRmpypiT03rKjSk120oP2rsX3rujmfmAgbCxRLIN0rprue8zf 7O5KpvP0LtVpmisa/jg7vwu5j7bvyfCnH4GGeENQ22HlYgcQRCsViAMXUQGW5Ol0kzuB fd4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:to:subject :cc; bh=0ldZ6mFg4niij4n745pGBk3bnNCvCVggvttUVULk+U0=; fh=4nCarWvjj9BsDftEiGISIiYo3fCUOfjOZg6kLpLoPMk=; b=jbfDSMpqcdS5zQoFZ4XWnfsWs15XfpTSx0WyL2IquwtI2LL3ikSmGRUUG9ErupC4qX QYANGnMt6c29oCNbiGkhc7dyYn1UwdiLYlJBh1pNTOEy5Z8/KphWIVo5ikO/2AAWzQt8 UUgUXOpLFd1LvcmYw23pYKWOZ+cBhZEa/dhVIiG1+vkSgc/teeE3f8OqBiJrMZcjmDz4 dfLVgiQ22n6qKxscC7qhBaOJsbpzfUjjZCnGeiKWug/zSsUMbJi8IfSdhUnpcg+1Kn3m ijkBDa7c4wnqwuH0cdOxLnI+PayvwjKsnb7QsBK78NNz9U/TUttf1U7/tXJJdHSrenbm bfeA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id x1-20020a17090a6c0100b00285256a3127si2958874pjj.132.2023.11.29.22.57.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 22:57:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id EDF0C8082DD0; Wed, 29 Nov 2023 22:56:48 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344635AbjK3G4b (ORCPT + 99 others); Thu, 30 Nov 2023 01:56:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229596AbjK3G4a (ORCPT ); Thu, 30 Nov 2023 01:56:30 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2ADB01AD for ; Wed, 29 Nov 2023 22:56:36 -0800 (PST) Received: from canpemm500009.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Sgn5s1kMszvRM8; Thu, 30 Nov 2023 14:56:01 +0800 (CST) Received: from [10.67.121.177] (10.67.121.177) by canpemm500009.china.huawei.com (7.192.105.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 30 Nov 2023 14:56:33 +0800 CC: , , , , , , , Subject: Re: [PATCH v4 0/4] Support SMT control on arm64 To: , , , References: <20231121092602.47792-1-yangyicong@huawei.com> From: Yicong Yang Message-ID: <5b4f8398-f508-86b1-b454-4a7c5a53496f@huawei.com> Date: Thu, 30 Nov 2023 14:56:33 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.5.1 MIME-Version: 1.0 In-Reply-To: <20231121092602.47792-1-yangyicong@huawei.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.121.177] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To canpemm500009.china.huawei.com (7.192.105.203) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-2.9 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 29 Nov 2023 22:56:49 -0800 (PST) Hi Sudeep, Catalin, Will and ARM folks, Any comments? Appreciate for any feedbacks. Thanks. On 2023/11/21 17:25, Yicong Yang wrote: > 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 > > 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 > 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(+) >