Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2745445lqt; Mon, 22 Apr 2024 23:18:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV7B3dP9K11cZHJNsz4v9zVH5aL9PQs5dH6XQgJA2a3NctRjziSOdGcRWqg1G/Up1ae4rjx+lR0c7NHI7XyOdW+6basCGhDXZD2lkyO8g== X-Google-Smtp-Source: AGHT+IG6rbnJgJj0cSYO/Ik558Yxf3TgDBGsDRBK/+6Z3ClgKQFGGFFuZVUrhflE6p1SibRGe/wx X-Received: by 2002:a05:6870:ac26:b0:22e:dd4a:e0ae with SMTP id kw38-20020a056870ac2600b0022edd4ae0aemr17268549oab.23.1713853105310; Mon, 22 Apr 2024 23:18:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713853105; cv=pass; d=google.com; s=arc-20160816; b=B90JXItNcWFqhK8fnof0o1/3G69eFSU2aCxBAgHFu6Ofn1k8j3IFvnGkYOKtds6Gh1 tyuihowa18v2razkitE7m/+zFncY0ks9Voitp0drMc5Z3mqNW17jyDfH7Ba+VqpgdDXu fjq3mTmFMble6/ODlqO6QOVTyoF9XVeIXbpa1BhY9puIK3wr13G961gsl1Vr3bUj2YiE nd6kwSve7t5Ze1+9AXuo6vIjs8GP7Pscg67R8F3scvnIncR4+T7F1aZx22nAN62Z+YGZ SNkm29M/Cy6DLfS2u1ceo4+LnzgBxX1bF71FgYxRjdUrcwKcjcE7q6Y+S6md8mLl0YnF GhYw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:user-agent:date :message-id:from:references:cc:to:subject; bh=rN00TuzH/vHUf2fFX1RGaI46//e8z8MnFaHLEDvMTtM=; fh=S7HzysLzJEf2t9xHfpKwrx1jR0+E6OoCAaKUKAWYRPs=; b=a/wo57n9smNrB3ec2KKaW1jp5pWgs10HAnvdIKxJhBJ5olqTIgb8x5rsMNVWDJ8GFv AJN1xCElZiWpoi0oONZBry+Zdd+f9M18wxYXvHU98eF+ZdXYZFyUDTIQj19AfWpgWtx/ jcQAp0c2IjYd4wI7qE6vCdbv9jy8fZN8+HNrIPgYjdm1/QOHN9osiG+q8U7zIlWyuwDB V/x4ok931NjXBmXFK1obh+Z1Nvp4kRog3mBgmJJ6JYRj3SfIHXmWEiajqtNXqx8Im7jb LXh2OohWXkpcl5VxNKzHywVOa4QQ+t1VwRXzWTlItI1/Bc44DhIiGnxzP/Wpqt6xTFhV TBSw==; 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-154542-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154542-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. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id ko20-20020a056a00461400b006eaa98c88b5si9209166pfb.64.2024.04.22.23.18.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 23:18:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-154542-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; 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-154542-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154542-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 835D7B23203 for ; Tue, 23 Apr 2024 06:18:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5800723741; Tue, 23 Apr 2024 06:18:12 +0000 (UTC) Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) (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 8C00018AED; Tue, 23 Apr 2024 06:18:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.187 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713853091; cv=none; b=WwaQiRMCbqdjBBz1EBcgHdHqvGbEzVnyMe/Es2iZcXMLLOcSgVxtcr4j62th6qu+roR7L5LY5gCc/pg6mME1IXbU9FcVvECkxcvhzfmPvqshGOPbroDyB1HpL54ptfdmcT7nX0gcnnHJVfCOHI41ssbzT8ki8AhjG7e4J8wKmT4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713853091; c=relaxed/simple; bh=a7a1rN9kNf6WGRL3kJeNoPiIhGtMJivIOtqJ86BB3Tc=; h=Subject:To:CC:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=kGEYlDNMfAO6fbNcQ5lwfknLdPweZu2BGVYK/ESsPf5vZuhWXOJALkFS0YKo8yVA/YzMijYnheoqWkkY9hcenByXHo/608uVzRG/CHG/WlGjLfbYVahXQ3StoLeG6xKpeWzjsU2qYbACLc/Nt51sv+FTN8+auxerCICycpK9LnY= 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=45.249.212.187 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.19.163.252]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4VNsKk0zmqzvQ5C; Tue, 23 Apr 2024 14:15:06 +0800 (CST) Received: from dggpemm500002.china.huawei.com (unknown [7.185.36.229]) by mail.maildlp.com (Postfix) with ESMTPS id 3ED3018006B; Tue, 23 Apr 2024 14:18:06 +0800 (CST) Received: from [10.174.178.247] (10.174.178.247) by dggpemm500002.china.huawei.com (7.185.36.229) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Tue, 23 Apr 2024 14:18:05 +0800 Subject: Re: [PATCH v7 01/16] ACPI: processor: Simplify initial onlining to use same path for cold and hotplug To: Jonathan Cameron , Thomas Gleixner , Peter Zijlstra , , , , , , , , , Russell King , "Rafael J . Wysocki" , Miguel Luis , James Morse , Salil Mehta , Jean-Philippe Brucker , Catalin Marinas , Will Deacon CC: Ingo Molnar , Borislav Petkov , Dave Hansen , , , References: <20240418135412.14730-1-Jonathan.Cameron@huawei.com> <20240418135412.14730-2-Jonathan.Cameron@huawei.com> From: Hanjun Guo Message-ID: <0ec78ec2-636d-c7b1-4265-7cffa88765e1@huawei.com> Date: Tue, 23 Apr 2024 14:18:04 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <20240418135412.14730-2-Jonathan.Cameron@huawei.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpemm500002.china.huawei.com (7.185.36.229) On 2024/4/18 21:53, Jonathan Cameron wrote: > Separate code paths, combined with a flag set in acpi_processor.c to > indicate a struct acpi_processor was for a hotplugged CPU ensured that > per CPU data was only set up the first time that a CPU was initialized. > This appears to be unnecessary as the paths can be combined by letting > the online logic also handle any CPUs online at the time of driver load. > > Motivation for this change, beyond simplification, is that ARM64 > virtual CPU HP uses the same code paths for hotplug and cold path in > acpi_processor.c so had no easy way to set the flag for hotplug only. > Removing this necessity will enable ARM64 vCPU HP to reuse the existing > code paths. > > Leave noisy pr_info() in place but update it to not state the CPU > was hotplugged. > > Signed-off-by: Jonathan Cameron > > --- > v7: No change. > v6: New patch. > RFT: I have very limited test resources for x86 and other > architectures that may be affected by this change. > --- > drivers/acpi/acpi_processor.c | 1 - > drivers/acpi/processor_driver.c | 44 ++++++++++----------------------- > include/acpi/processor.h | 2 +- > 3 files changed, 14 insertions(+), 33 deletions(-) Nice simplification, Reviewed-by: Hanjun Guo Thanks Hanjun