Received: by 2002:ab2:3c46:0:b0:1f5:f2ab:c469 with SMTP id x6csp147297lqf; Fri, 26 Apr 2024 02:23:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWdBMbzrH16laA7IlWv5vkasCaSckLTY3WEFZWlSnKzPuDYKq7m0s4jlSkUkrNw7VBdxyo55+A4/BPzQW/wPdybypugi/UbVTi4waqxog== X-Google-Smtp-Source: AGHT+IFBx5sc3tkW8Ba9YNNxQh7jhN8ImeFdCiYP6bly1Fi+ecQobDCUS22i60GBL23BMcZL1lea X-Received: by 2002:a05:620a:40cf:b0:790:99d8:e6a with SMTP id g15-20020a05620a40cf00b0079099d80e6amr2197934qko.58.1714123424772; Fri, 26 Apr 2024 02:23:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714123424; cv=pass; d=google.com; s=arc-20160816; b=PGBNlWbd8FCUIarF66/cvS+Fp/04+fRH1Npouq2LyVyfC7jDgi7rM5CcgMrDsm4kl2 MLcskCNICWV38+nEvz7Y6ffHtDlYbPUrXW8ppqn0WPoFooW1YhhsgRMB/uJ7RPxBIE7p 2smpUQ4RWmsUdpQvWsuC6y+VzNZWvbrFUBgjJ3/dFkqqked/O/c2agR22ZBkVaRqJRk8 P4chsa0U4CVGN1Ft60qviooZ3OUIqgzCXmEs5zfru5ky4/8lmkakntzRqPuqBksK377h qj8btmFxCYmnG9lFTgq/HacVyRcgBTzR2ZPeXv6zwHJWrfjRdzxE18jqQi/mTIwk5b1K JfgQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=iRAd8wfnSBnkmuLuRNYN/BGd3qvtIlEXRV1WTPss9aM=; fh=CjFNPPJnIB0DfX9Su2dlxArlcWMk5wJEZggCIpNJhqQ=; b=kIh11MJmw2JNB03V54fFCY4JDkp9gx/ucQdwLW0KXMYFYbd7ZmwzxO4IXf2yjAow6V 1klYIL4B45kSjWqiNI+hKHrDrP0Tv1Vx4Wu2VeBbwROqhIopDLebA3XSYKoO6vgS7xbO sQ41wBOysobTrVuVQwLyCFdw6IJAPHnMohdb5E42TuCjEIV7NxDZQ/WBypHo1AMx7sGp rkiFQr8YB4l0GAzud7if4A+ZH23a4/cwS3Pn48KRy3f+5qE/Jebm+ieAkOdFKLiXmVfA ILSP0ETRxTXDcAl4R13ChtzlR7Q22fKbb5lReHx0nWY5HG95uTJDRjmd4wd58xUFoNtE /UWQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZSfzzAQA; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-159778-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159778-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id a21-20020a05620a439500b0078fd6159c10si17556288qkp.7.2024.04.26.02.23.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 02:23:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-159778-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZSfzzAQA; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-159778-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159778-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 7F6A91C2267F for ; Fri, 26 Apr 2024 09:23:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 853B013EFEE; Fri, 26 Apr 2024 09:23:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="ZSfzzAQA" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 548FB13DDD5 for ; Fri, 26 Apr 2024 09:23:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714123415; cv=none; b=N1+u0n/Ojiw3p86XX83Dq3LqRPMIRKPcIXvsORR+ARl6/sFRLqSRH+LZERRCIxO4JAmqEWTcS2fiu3wZCMCT2h1TqM3UgrnRzbFmvRiLSvdSItPXVkP04DmXBb8w2ocyzeEPp6GNu+DFtoFO1ifoELJgspWh1lMFY1VfFvGl69A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714123415; c=relaxed/simple; bh=Udl46LR7XVoXfrBKhl6mIDBjIxqJOh882IzI0S4UAM4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=tbbFaNBtS9zCOsXM9ybhZsyfuwQ2gdJIGmlSpQWH6kD5m3xlkqOoxWj/e/zE3ePmk8MVF0O8sadBYbLYJq/Us0PPrgDIye+OWsN65wwr+TMYTIgkkArq0C/I8K2vkAq9ehiae3Ao5LRXaaYiLpC8oLWqJP+mQTbtIYdo0MfNslw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=ZSfzzAQA; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1714123413; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iRAd8wfnSBnkmuLuRNYN/BGd3qvtIlEXRV1WTPss9aM=; b=ZSfzzAQAhgZxujKRSys68q292URUOoGyft6rzm0FWsj8AjanGJnImCJ9fquqF+QBB2kn3a auIT8Hq1RGeG89pk6jOIIhv52DotF6kMMPYP8xFgYeY08t6I2z/tenrEkdit4plEL/XVyd VWMzS7QQwmBQ8tmCuaulartEzrCzLhE= Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-426-Onb4-w-HOmOC0_7pIf1gfg-1; Fri, 26 Apr 2024 05:23:32 -0400 X-MC-Unique: Onb4-w-HOmOC0_7pIf1gfg-1 Received: by mail-pl1-f197.google.com with SMTP id d9443c01a7336-1e84b809cd7so20135165ad.2 for ; Fri, 26 Apr 2024 02:23:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714123411; x=1714728211; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=iRAd8wfnSBnkmuLuRNYN/BGd3qvtIlEXRV1WTPss9aM=; b=Pqh4LbRxAehQG6XUr2I20VjsnzleUrCWAcKxoZGPtjkEKWUQ6KNZ+H7/yQG7UChZ+8 201ejiWjQP8pSsvM+yWDfw9s36zxeeuub71akqdQyfqlacPc4TviHqnmXTTe8oG+TuHA vaSAGS5+zTSWpOS1nbPAmObcQHTsFdeu6XZoNTiTK1plnwvgf+/lHjY78GmTADxo27df T3Ia0g1xaN3jaQ85Ox5PXbjzKdB0OufxNDuYfHH6hmyj7afMR0iLHv7jigKAqOusg+Wc 1wRhqHX6QtQvVZ6CVGHHqVTCVpqjYuqiyfvqFq1Kuj2Iulc2bLT1NDWvzjgbsUN6p7wt dYuA== X-Forwarded-Encrypted: i=1; AJvYcCWO43cIjWL6WDwTkHdo8WAJxoPmPiHzhCaIXqPLHo+RxA8EWQThZU8rXI8+0CtShZUV5iDnp3rCs7JzIwslKQYdpuOz2YcnAG6hwc0Z X-Gm-Message-State: AOJu0Yxpo0wm9Xf+S0aE/Gbz1A2wVPCOhEm7cJ2S0ZzTfZsPpSEy6u5d jIBC63IWvC8fnKTDQiakCuXhmTJiuPITYO2eXqsor/3Btdb0I5gepD2fqLu2W7IQ8hu0j2pctP0 F/CBPwW6Zv1+zo80XtS7pkyEQPSNY6h9B6nesoN1hWleod5Xy0jUkQOUzKFUrjw== X-Received: by 2002:a17:903:11c3:b0:1e5:5bd7:87a4 with SMTP id q3-20020a17090311c300b001e55bd787a4mr2283765plh.16.1714123410719; Fri, 26 Apr 2024 02:23:30 -0700 (PDT) X-Received: by 2002:a17:903:11c3:b0:1e5:5bd7:87a4 with SMTP id q3-20020a17090311c300b001e55bd787a4mr2283739plh.16.1714123410303; Fri, 26 Apr 2024 02:23:30 -0700 (PDT) Received: from [192.168.68.50] ([43.252.112.88]) by smtp.gmail.com with ESMTPSA id r3-20020a170902be0300b001e27462b988sm15054500pls.61.2024.04.26.02.23.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 26 Apr 2024 02:23:29 -0700 (PDT) Message-ID: <566817ae-90f0-4ec9-b54e-b9fdb635119e@redhat.com> Date: Fri, 26 Apr 2024 19:23:19 +1000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7 01/16] ACPI: processor: Simplify initial onlining to use same path for cold and hotplug Content-Language: en-US To: Jonathan Cameron , Thomas Gleixner , Peter Zijlstra , 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, kvmarm@lists.linux.dev, x86@kernel.org, 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 , linuxarm@huawei.com, justin.he@arm.com, jianyong.wu@arm.com References: <20240418135412.14730-1-Jonathan.Cameron@huawei.com> <20240418135412.14730-2-Jonathan.Cameron@huawei.com> From: Gavin Shan In-Reply-To: <20240418135412.14730-2-Jonathan.Cameron@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 4/18/24 23: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(-) > Reviewed-by: Gavin Shan