Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp163565lqj; Wed, 10 Apr 2024 07:10:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU2ZkNrzzEO9/8qyHBBZDr+xZWGoxz4Jqa3k9cV3iWFYdUgnAqRPX8jON3JkB5Acuh43rGzx4QhpmVpiMhtz7gOa9Qg+tHJIFDmEGAtuw== X-Google-Smtp-Source: AGHT+IH4gEnaqm4l7ckgyDxKDM/LTEf6MBwJ9s8cXE14jL75uUYcXiHEz6st5jIzouKTl8TQPfKH X-Received: by 2002:a17:902:ecd0:b0:1e2:a5b3:e5 with SMTP id a16-20020a170902ecd000b001e2a5b300e5mr3071969plh.32.1712758206182; Wed, 10 Apr 2024 07:10:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712758206; cv=pass; d=google.com; s=arc-20160816; b=WFi2APaGGW+tgv06ipleQy+yHiI5onoSjSW4LvNGwB/PewxEnz4FkRROMPjUQoSZDO UNIG9mHtzn2mTwskWlVLrvbSPvF6aUWAgGNM4VTomRI4a1Kvdn+aWeT6cTRCes5I3Mb+ +EmBlz+Dz1HvOxHcwV5IDjyxxYsvlpPWEmEaOs3/zuEUprLyOy3Ra5z2Z1AwHeuFJQo+ vspne9MB3mTxJ8XGnbjL93cC8xbrsp9PKzPfFoKYV+AUl5Tf0/Lr27wAfwKmXEMPjBLT mxmMWtNjlB6fHXj46jj5Y4CmGlo3X+Zr7hvuhhihLZdDBob+tAhIFYw38BQ56ryG3rhy kdSQ== 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=hfHp6tJu5ojOGnmzIoYjw1hCxqsV56qZj/FieMFbKSI=; fh=zEGmk4gArVX7ZXZHkgebk1BFRVO0MfMywHhteVOCv8w=; b=0TFuitofd0GgvTo3m/6zqfzqEzFYCcooE6GZRegMjgdSJ1tvO8wXaL4HPeNUogJPwt sKAuzN60ot+XsgcofIbvke5NOwTineSkPnenxq59awvxC/AW6W8akBbBDUaF5HSTVgML /47klUQ/EwekrWwdWChpbvh3cTArNrAfLHQQq/oHoq/80aJvbQxNEianR3xGEI36INVW uji+7LIBKDAPFeeFJoYG00Ka9+xFqPwY1Cn9ULUwCELUHC4FWG/Bqcsk8yN76luzNFjj c5b6S1wbPo9sKvAUq09EAbk8Ez29vdcVbtlp4u1t837C1JNciv7R9i58cpVfX4ESX6V/ 2kMA==; dara=google.com 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-138610-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138610-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 x2-20020a170902b40200b001e3e3adea66si7819165plr.641.2024.04.10.07.10.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 07:10:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138610-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-138610-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138610-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 1DA6BB2F390 for ; Wed, 10 Apr 2024 13:35:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6A1DB15EFA1; Wed, 10 Apr 2024 13:35:32 +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 9DCF415DBC4; Wed, 10 Apr 2024 13:35:29 +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=1712756131; cv=none; b=fNT0MHZ09/adnjNc98v6ZsM3XgHCC90GR6a18zLiyTokvi6KoMHjPa93vveYIcO4+3KNsaEOwULYci9nXxTTO11khGAhiAwcQ29glSBeuk/0+MuG7lxnsje/mmcaI/HOkJC27TyuCX11x/gycWgfppsC4ec9djxrH5JzMVTkXw8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712756131; c=relaxed/simple; bh=DEngBseA5QdXJf4v5A8FOKLkLRqL3wSCn7bc2Hv/DbU=; h=Date:From:To:CC:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=jO+0FXH25HHd5mKaDCgEQsO8Buetd22xqWObWZwDyfK72s3wShOiE0vJ900YiwplZXWEBsmCQyBhAZJsAO1sxkamms73eg8hxHbrkVfmeCS6IEfk4J6NLNwaZrIbB5YTfP85a+l3AGAKFC9khlHLyizP9N0h92Ql/DDIcEXkhkA= 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.231]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4VF3gw6K6yz6K64Y; Wed, 10 Apr 2024 21:33:48 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id B906F1400CA; Wed, 10 Apr 2024 21:35:26 +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_256_GCM_SHA384) id 15.1.2507.35; Wed, 10 Apr 2024 14:35:26 +0100 Date: Wed, 10 Apr 2024 14:35:25 +0100 From: Jonathan Cameron To: Miguel Luis CC: "Rafael J. Wysocki" , Len Brown , , , Subject: Re: [RFC PATCH 0/4] ACPI: processor: refactor acpi_processor_{get_info|remove} Message-ID: <20240410143525.0000620a@Huawei.com> In-Reply-To: <20240409150536.9933-1-miguel.luis@oracle.com> References: <20240409150536.9933-1-miguel.luis@oracle.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: lhrpeml500001.china.huawei.com (7.191.163.213) To lhrpeml500005.china.huawei.com (7.191.163.240) On Tue, 9 Apr 2024 15:05:29 +0000 Miguel Luis wrote: > Both acpi_processor_get_info and acpi_processor_remove functions have > architecture dependent functionality enabled via CONFIG_ACPI_HOTPLUG_CPU. > > Current pre-processor guards are restricting too much of functionality which > makes it dificult to integrate other features such as Virtual CPU > hotplug/unplug for arm64. > > This series, applied on top of v6.9-rc3, suggests a refactoring on these two > functions with the intent to understand them better and hopefully ease > integration of more functionality. > > Apart from patches 2/4 and 3/4, which could be squashed but left them separated > intentionally so it would ease reviewing, changes are self-contained. > > So far I've boot tested it successfully alone and as a prefix for vCPU hotplug/unplug > patches [1], on arm64. Hi Miguel, Great to see an attempt to keep this moving. My apologies that I've been rather quiet on this so far this cycle - a few things came up that ended up more urgent :( In the thread you link there was a discussion on whether to stub out these functions as a possible way forwards. I did some analysis of what was going on in https://lore.kernel.org/linux-arm-kernel/20240322185327.00002416@Huawei.com/ and my conclusion was that to do so would mostly be misleading. The flows for make present and make enabled are and should be different (though not as different as they were in v4!) Jonathan > > [1]: https://lore.kernel.org/linux-arm-kernel/Zbp5xzmFhKDAgHws@shell.armlinux.org.uk/ > > Miguel Luis (4): > ACPI: processor: refactor acpi_processor_get_info: evaluation of > processor declaration > ACPI: processor: refactor acpi_processor_get_info: isolate cpu hotpug > init delay > ACPI: processor: refactor acpi_processor_get_info: isolate > acpi_{map|unmap}_cpu under CONFIG_ACPI_HOTPLUG_CPU > ACPI: processor: refactor acpi_processor_remove: isolate > acpi_unmap_cpu under CONFIG_ACPI_HOTPLUG_CPU > > drivers/acpi/acpi_processor.c | 138 ++++++++++++++++++++++------------ > 1 file changed, 91 insertions(+), 47 deletions(-) > > -- > 2.43.0 >