Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp378689rdb; Tue, 23 Jan 2024 02:31:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IHOldr8wxO81YC3PRRt9XIW7DRUksqo0JhAU9yQsQc2HuWfDs5v74oohG90+cBNRJBAVoCS X-Received: by 2002:a05:6358:7e4b:b0:170:17eb:b4c with SMTP id p11-20020a0563587e4b00b0017017eb0b4cmr4091063rwm.54.1706005859882; Tue, 23 Jan 2024 02:30:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706005859; cv=pass; d=google.com; s=arc-20160816; b=MyFD67u4AsQQ0g4eOOjobbLLqTJrqmU//Rj2ZMkM7ONST4K6+u26+HN7YnC/S4OGo1 lPd3RyWmhboX4V92oanNQEevdbQ9Hjm3hRatBJtb+9DWkF00upHXVZEt1wKQRj4RXJrP afIW1mAouDYAd5itw12j8FzknxC3xQDAIbAxn6Ln+i0N6MJAnupW9AdcJTQbLDpbZz2Y 39a7xhJDw7HWMj/KPlxH957DLmnrdqYAD0MojPVpiAPDL6tJfnpEo+ni9zBs+Xg/A2MG XWhkmBVj7Ttt0qXQv7UpK5n5cTaW98aATZ+mlyx4X03Ogf9ZWuBSV0m+mNKxozXFJY21 tGjw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date; bh=xi0RU9X8DUsJEwllcgU6283XV663MupYl+oBePMF8vw=; fh=4tkd9eTxbo2wxlGMQyq82BG82I843ilgVHOmrdyv6sw=; b=qanvSYV5jLZqgS5e2dGE6yx9RDCcc/s+bOUwSYb50QQheuJcQw4CknoWkt2/iyWdge V7Ju03sA2XzWB1wS+tFa7exyKAOlR5QD3PyHbYWxKx1jsVSZP4ohrIPtTm66GyL/CTNI uE30NDNRSHXqH9zERMr6qgo8oJ8cTTHHFVyRsvbdu41wg9qtK8np7tOggKJCQsV4BLhU qk4mdnK7i5KjcjV1VaahMBLbVcajPAUAZs9Cz5R0dzQr4XpzdAwkgikdUshaNodMg77a lX5p2ZvthvfGDkqdoaMhPyxjlgj4MdGMCmDNidALWnV2JUq3cO0zQUOLIHFBwe/OKjha VC8Q== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-35090-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35090-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id z25-20020a656659000000b005c661524f67si9822645pgv.26.2024.01.23.02.30.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 02:30:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-35090-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-35090-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35090-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 2D297B2148B for ; Tue, 23 Jan 2024 10:29:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B4D075C5F3; Tue, 23 Jan 2024 10:29:34 +0000 (UTC) Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EC8E75A784; Tue, 23 Jan 2024 10:29:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.176.79.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706005774; cv=none; b=DZm3euRVCNutT4SsZDJckjW7rhEd9Px/cqMUWydtEr6ieO+uj29rKgN/iNr0Az3oA9uDf5eCrpnZiOOguazKl2v/3BneMl0xdbQQjXGPrUUjzgfUXwGDoqPSdI7si0DmP17SmlTGapcj9Xl5N+JwJK7XpNbFy8jUxLMS1yZTUZc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706005774; c=relaxed/simple; bh=1z304UMB9iwNDgxznbQ/na098G6JM2egcJawzjYAgFU=; h=Date:From:To:CC:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ERhRc5Hb++LNIU/64VugtridSW1xiRX3h9nyNNc6zgvhBTxQcFtjDFfWUUyLKrhgvmffmBvrDCbEqqXaTBZ0IoCcvHLf/udcme9zLhCKyWR1LC+rJBeHHOkr5XFPIFAMiHB6y176sZmfIGUBCxeGqxhvyjTFHKndB9SoTAbSjNc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=Huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=185.176.79.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=Huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.18.186.216]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4TK3Ct523Lz6K91D; Tue, 23 Jan 2024 18:26:34 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id B7F05140A90; Tue, 23 Jan 2024 18:29:29 +0800 (CST) Received: from localhost (10.202.227.76) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 23 Jan 2024 10:29:29 +0000 Date: Tue, 23 Jan 2024 10:29:28 +0000 From: Jonathan Cameron To: "Russell King (Oracle)" CC: , , , , , , , , , , , , , , Salil Mehta , Jean-Philippe Brucker , , , James Morse Subject: Re: [PATCH RFC v3 18/21] ACPI: processor: Only call arch_unregister_cpu() if HOTPLUG_CPU is selected Message-ID: <20240123102928.0000270c@Huawei.com> In-Reply-To: References: <20231215165009.000035f2@Huawei.com> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: lhrpeml500004.china.huawei.com (7.191.163.9) To lhrpeml500005.china.huawei.com (7.191.163.240) On Mon, 18 Dec 2023 12:58:07 +0000 "Russell King (Oracle)" wrote: > On Fri, Dec 15, 2023 at 04:50:09PM +0000, Jonathan Cameron wrote: > > On Wed, 13 Dec 2023 12:50:43 +0000 > > Russell King (Oracle) wrote: > > > > > From: James Morse > > > > > > The kbuild robot points out that configurations without HOTPLUG_CPU > > > selected can try to build acpi_processor_post_eject() without success > > > as arch_unregister_cpu() is not defined. > > > > > > Check this explicitly. This will be merged into: > > > | ACPI: Add post_eject to struct acpi_scan_handler for cpu hotplug > > > for any subsequent posting. > > > > > > Reported-by: kbuild test robot > > > Signed-off-by: James Morse > > > Tested-by: Miguel Luis > > > Tested-by: Vishnu Pajjuri > > > Tested-by: Jianyong Wu > > > --- > > > This should probably be squashed into an earlier patch. > > > > Agreed. If not > > Reviewed-by: Jonathan Cameron > > I'm not convinced that "ACPI: Add post_eject to struct acpi_scan_handler > for cpu hotplug" is the correct commit to squash this into. > > As far as acpi_processor.c is concerned, This commit merely renames > acpi_processor_remove() to be acpi_processor_post_eject(). The function > references arch_unregister_cpu() before and after this change, and its > build is dependent on CONFIG_ACPI_HOTPLUG_PRESENT_CPU being defined. > > Commit "ACPI: convert acpi_processor_post_eject() to use IS_ENABLED()" > removed the ifdef CONFIG_ACPI_HOTPLUG_PRESENT_CPU surrounding > acpi_processor_post_eject, and that symbol depends on > CONFIG_HOTPLUG_CPU, so I think this commit is also fine. > > Commit "ACPI: Check _STA present bit before making CPUs not present" > rewrites the function - the original body gets called > acpi_processor_make_not_present() and a new acpi_processor_post_eject() > is created. At this point, it doesn't reference arch_unregister_cpu(). > > Commit "ACPI: add support to register CPUs based on the _STA enabled > bit" adds a reference to arch_unregister_cpu() in this new > acpi_processor_post_eject() - so I think this is the correct commit > this change should be merged into. That or where that change ends up given your earlier suggestion to move that change as well. I find it hard to care as long as the bisection issue is squashed by the change. If we make the code drop out before the build issue is introduced that's fine because we are arguing we shouldn't be running it anyway so such protection is fine if not necessary for build fix purposes. J >