Message ID | ZVyz/Ve5pPu8AWoA@shell.armlinux.org.uk |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2b07:b0:403:3b70:6f57 with SMTP id io7csp628414vqb; Tue, 21 Nov 2023 05:43:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IEddtM2CU2B88xrrAUc/BTPWmrXhjJIdwlixZCg16P+SQekp/8h96ciBKwvMF+Q+nPvjZmm X-Received: by 2002:a05:6a21:199:b0:187:97fc:6c56 with SMTP id le25-20020a056a21019900b0018797fc6c56mr10451651pzb.49.1700574229329; Tue, 21 Nov 2023 05:43:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700574229; cv=none; d=google.com; s=arc-20160816; b=Bn8fmKEkqjaPIGFx7xq332BU3/2UQh0iEz2+F+vD++w/w7XXX8yPRLkkSTFjhDCMEW cPHw0JQyULDNwXU0n00pn0oattQZgM5PQYhlct0qBzTaOiDWl44ntJIWPjmc14rEfLz+ iwEbLYXpcpOUnzRgP9x/x6Bbgl6M7ddVexWiFIt4RGTQDXdmKiDy25QWqIDECKEnVCJT qqIar26yGbWuYt8e1CU1Rj4XseHSWhJtGLnSt5mpzge3XfZv1TGZfEfAw1JtK+39FDX9 dC2suborsGv6A8fA+T+XeG/3c2Ecis4xTqWrvE11Ewf+U3czkWGRiPflqQBsXzrG6Dkx QQOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=j6yzpm9IFWHjtKM8s9MyGlyx6q8sYlQWT/PUnH8khP0=; fh=PFBY+1y3ILx3iz5+HFfTKkUGKhgv/4WtaXPW1UMRhBs=; b=szRdRFPchjdtG4RtKQGcC1x0UBwDRpJSwZyt7AS+YhU9OsgxlpMExZvBCVrp6HS1v+ LBIEYnHZ6I1m9b7bM2xv9vGNIjKKoNmG0IRtvE0n2oAaQPYUeA3fHIGN2vnTBuYtPjV8 SoDITssEavPFgPTGJTuWTwyZNQmTrLdaHOWMjRIm6e/2ac9tadueMOF/E/OYp5gH9kt2 EVzX+7tuaXsDefL7ZIbopsREiTf7mBdFluF191cboTtveaMPYFz3JnUPVlsZorBWDDsP PJ8rqdzxpz/+godk9F33hc+0tMXD5kzpVNz6GOw3tTwLAwlDLOspJI5BJeunWJQNQoWP wHgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=XPnUlMQG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id ca1-20020a17090af30100b0028525af01bfsi4387303pjb.135.2023.11.21.05.43.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 05:43:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=XPnUlMQG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id F356180BD506; Tue, 21 Nov 2023 05:43:40 -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 S234266AbjKUNnl (ORCPT <rfc822;ouuuleilei@gmail.com> + 99 others); Tue, 21 Nov 2023 08:43:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233844AbjKUNnk (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 21 Nov 2023 08:43:40 -0500 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43CDC95; Tue, 21 Nov 2023 05:43:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:Content-Type:MIME-Version: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=j6yzpm9IFWHjtKM8s9MyGlyx6q8sYlQWT/PUnH8khP0=; b=XPnUlMQGuuINHNrrABZGS3+EEo TTq7HU3EN0TO8e4fXkIrCqLuVpGRJFA8OTeMXrYutAUl1H8ydFwadEiZhmLiN7odCe8HG/0FjAyOS Rz7cAWXUukkyehSaM1luh5hTyALHG8y1yKqn6wfi80aCa2hkzPzr4cyFmKfQ6Pyj0jYYU0m29CG8Z zp5qNZCwFqyCd0BcxJz09kC8ogIc74q58wIVUZqulJ16+4/zsAwzqnF7B4wBYqrSrAa5BKGovcYg0 3tU5fUX9u7rQMjSrwxZgoVov7oLCwIFA0KzahQvuVPuDw5qzDIC6RRy02I6zobh2i76zm994Nt043 ytEiyjkA==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:53966) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from <linux@armlinux.org.uk>) id 1r5R2F-00075Z-33; Tue, 21 Nov 2023 13:43:27 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from <linux@shell.armlinux.org.uk>) id 1r5R2D-0004ER-3S; Tue, 21 Nov 2023 13:43:25 +0000 Date: Tue, 21 Nov 2023 13:43:25 +0000 From: "Russell King (Oracle)" <linux@armlinux.org.uk> To: linux-pm@vger.kernel.org, loongarch@lists.linux.dev, linux-acpi@vger.kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, kvmarm@lists.linux.dev, x86@kernel.org, linux-csky@vger.kernel.org, linux-doc@vger.kernel.org, linux-ia64@vger.kernel.org, linux-parisc@vger.kernel.org Cc: Albert Ou <aou@eecs.berkeley.edu>, Borislav Petkov <bp@alien8.de>, Catalin Marinas <catalin.marinas@arm.com>, Dave Hansen <dave.hansen@linux.intel.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Guo Ren <guoren@kernel.org>, "H. Peter Anvin" <hpa@zytor.com>, Huacai Chen <chenhuacai@kernel.org>, Ingo Molnar <mingo@redhat.com>, James Morse <james.morse@arm.com>, Jean-Philippe Brucker <jean-philippe@linaro.org>, jianyong.wu@arm.com, justin.he@arm.com, Len Brown <lenb@kernel.org>, Palmer Dabbelt <palmer@dabbelt.com>, Paul Walmsley <paul.walmsley@sifive.com>, Peter Zijlstra <peterz@infradead.org>, "Rafael J. Wysocki" <rafael@kernel.org>, Salil Mehta <salil.mehta@huawei.com>, Sudeep Holla <sudeep.holla@arm.com>, Thomas Gleixner <tglx@linutronix.de>, WANG Xuerui <kernel@xen0n.name>, Will Deacon <will@kernel.org> Subject: [PATCH 00/21] Initial cleanups for vCPU hotplug Message-ID: <ZVyz/Ve5pPu8AWoA@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: Russell King (Oracle) <linux@armlinux.org.uk> X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,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: <linux-kernel.vger.kernel.org> 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]); Tue, 21 Nov 2023 05:43:41 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783181322868483361 X-GMAIL-MSGID: 1783181322868483361 |
Series |
Initial cleanups for vCPU hotplug
|
|
Message
Russell King (Oracle)
Nov. 21, 2023, 1:43 p.m. UTC
Hi, Rather than posting the entire set of vCPU kernel patches, this is a subset of those patches which I hope will be able to be appropriately queued for the next merge window. I am also hoping that nothing here is covered by Rafael's concerns he alluded to in his response to the RFC v3 series. This series aims to switch most architectures over to using generic CPU devices rather than arch specific implementations, which I think is worthwhile doing even if the vCPU hotplug series needs further work. Since this series changes the init order (node_dev_init() vs cpu_dev_init()) and later on in the vCPU hotplug series move the location that CPUs are registered, the first two patches head off problems with register_cpu_capacity_sysctl() and the intel_epb code. These two were ordered later in the original series. The next pair of patches are new and remove the exports of arch_*register_cpu() which are not necessary - these functions are only called from non-modular code - drivers/base/cpu.c and acpi_processor.c both of which can only be built-in. The majority of the other patches come from the vCPU hotplug RFC v3 series I posted earlier, rebased on Linus' current tip, but with some new patches adding arch_cpu_is_hotpluggable() as the remaining arch_register_cpu() functions only differ in the setting of the hotpluggable member of the CPU device - so let's get generic code doing that and provide a way for an architecture to specify whether a CPU is hotpluggable. This patch series has been updated as best I can from the comments on its previous 22-patch posting, but there are some things that I have been unable to address (some of which go back to James' posting of RFC v2 of the vcpu hotplug series) due to lack of co-operation from either reviewers responding to my questions, or from the patch author providing information. I have now come to the conclusion that this information is never going to come, but there is still benefit to moving forward with this patch set. I don't expect that anyone will even bother to read this far down the email, so blah blah blah blah blah blah blah blah blah. I bet no one reads this so I don't know why I bother writing crud like this. Thanks! arch/arm64/Kconfig | 1 + arch/arm64/include/asm/cpu.h | 1 - arch/arm64/kernel/setup.c | 13 ++----------- arch/loongarch/Kconfig | 2 ++ arch/loongarch/kernel/topology.c | 42 ++-------------------------------------- arch/riscv/Kconfig | 1 + arch/riscv/kernel/setup.c | 18 ++--------------- arch/x86/Kconfig | 2 ++ arch/x86/include/asm/cpu.h | 4 ---- arch/x86/kernel/cpu/intel_epb.c | 2 +- arch/x86/kernel/topology.c | 33 ++----------------------------- drivers/acpi/Kconfig | 1 - drivers/acpi/acpi_processor.c | 18 ----------------- drivers/base/arch_topology.c | 38 ++++++++++++++++++++++++------------ drivers/base/cpu.c | 39 +++++++++++++++++++++++++++++-------- drivers/base/init.c | 2 +- include/linux/cpu.h | 5 +++++ 17 files changed, 78 insertions(+), 144 deletions(-)
Comments
On Tue, Nov 21 2023 at 13:43, Russell King wrote: > The majority of the other patches come from the vCPU hotplug RFC v3 > series I posted earlier, rebased on Linus' current tip, but with some > new patches adding arch_cpu_is_hotpluggable() as the remaining > arch_register_cpu() functions only differ in the setting of the > hotpluggable member of the CPU device - so let's get generic code > doing that and provide a way for an architecture to specify whether a > CPU is hotpluggable. > > This patch series has been updated as best I can from the comments on > its previous 22-patch posting, but there are some things that I have > been unable to address (some of which go back to James' posting of > RFC v2 of the vcpu hotplug series) due to lack of co-operation from > either reviewers responding to my questions, or from the patch author > providing information. I have now come to the conclusion that this > information is never going to come, but there is still benefit to > moving forward with this patch set. I don't expect that anyone will > even bother to read this far down the email, so blah blah blah blah > blah blah blah blah blah. I bet no one reads this so I don't know why > I bother writing crud like this. You lost your bet. I always read cover letters completely because they tell a lot. There is correlation between the amount of blah and the quality of the series :) Thanks, tglx
Russell! On Tue, Nov 21 2023 at 13:43, Russell King wrote: > This series aims to switch most architectures over to using generic CPU > devices rather than arch specific implementations, which I think is > worthwhile doing even if the vCPU hotplug series needs further work. I went through the whole series and I can't find anything objectionable. Vs. merging: It does not make sense to split this up and route individual patches. So I can pick the whole pile up and route it through tip smp/core unless Rafael or Greg prefer to take it through one of their trees. For the latter case: Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Greg, Rafael? Thanks, tglx
On Fri, Dec 01, 2023 at 12:25:54PM +0100, Thomas Gleixner wrote: > Russell! > > On Tue, Nov 21 2023 at 13:43, Russell King wrote: > > This series aims to switch most architectures over to using generic CPU > > devices rather than arch specific implementations, which I think is > > worthwhile doing even if the vCPU hotplug series needs further work. > > I went through the whole series and I can't find anything > objectionable. > > Vs. merging: It does not make sense to split this up and route > individual patches. > > So I can pick the whole pile up and route it through tip smp/core unless > Rafael or Greg prefer to take it through one of their trees. For the > latter case: > > Reviewed-by: Thomas Gleixner <tglx@linutronix.de> > > Greg, Rafael? I can take them, will do so this weekend when I catch up on patches on a 14+ hour flight... greg k-h
On Fri, Dec 01 2023 at 12:28, Greg Kroah-Hartman wrote: > I can take them, will do so this weekend when I catch up on patches on a > 14+ hour flight... Thanks a lot!