Received: by 2002:ab2:1c04:0:b0:1f7:53ba:1ebe with SMTP id f4csp141862lqg; Fri, 26 Apr 2024 10:58:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXSzvXkykQfpvjMfznfsScudMdvicAi8IvUHCxENH1Z8s+Sh5PQ7l2Xr1N5y/on8N1/abFP0L5wN2gyFtD63v+++2UVAQS59ziM+SzHBw== X-Google-Smtp-Source: AGHT+IEoyisV0VyviN8kNd0MJO3bM+6KVRfhc7AM5Cb72wjjeB8l/PTdkBZYsJ8NORSekIWmnZcN X-Received: by 2002:a5d:6505:0:b0:34a:19e2:8042 with SMTP id x5-20020a5d6505000000b0034a19e28042mr2435373wru.42.1714154295720; Fri, 26 Apr 2024 10:58:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714154295; cv=pass; d=google.com; s=arc-20160816; b=UdH5Ru4dlJ3/iI87hLlZmayd2o1U6H/759ttb8LRPZMioa4H9bjUUKgEu8Cel2aFQj 7b07ImDjObaRzuNM6D2hoEDG23gNBnhTqoLn3aRqlRtA2RS30f+3SYhB6fPADRla4J4B F59FYqozXOluBJHuIEQGoFek9dGDO5b0uz0E4vxD4kPEBpmj7GQwvMSnOrTVuGt05HbL DQY4+pYnO8kFS26Eo5efNq+AUQ8RVtb0PHU1DC+cGHHetmvJR2StEEAerIYHHiJmgtBz yO9m12JTmmAEv0bBzvZiP/bLt6zJMkVya+ZUygJnf9Pp3GqYbfUw2boBAdz56TyIwlsw nznw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=rJTRzLPRiyFvahKC9LrATsa/C7yKwxQcSiAA5MyiaM0=; fh=m2HWkkRPLYkWk7B60f/01wTmcSlPPZMrVNGZouFpu5c=; b=D41QOABRiii5Eud7pt8XuoOm67vAiNayN3c5wdRRLe8QReyZ3QZfWhvFHIUpRQmSPu CDRY2lD80j2Ee+7l2igzy8D8TjoAyPbBhdqMJTr4QxBqsSYYg7xNqwDzT98VaHmrRGqE 5UetKOai6sssekSqSGS7g8Zg1bE8ZobXPLaGGH+uY+a/bfZwZD06rANX/bdpPT4WvGqn Wp/OIeiezYQ4wZ3bcZ7NG4jzdjVFJhySw9tDU4ZCORlSwJdqR0N1RBSYM5yAdAhwv2O4 5zJNVMKZNORxl/ACTE2sV/A5MRXXaKvAsUhmFg3mo7nHyYvXELPrYXw9wFYY2UGKcuGL yAVA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=E0pikr3h; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-160527-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160527-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id f3-20020a170906494300b00a58a1c63d70si2847031ejt.61.2024.04.26.10.58.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 10:58:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160527-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=E0pikr3h; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-160527-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160527-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 447001F22DAD for ; Fri, 26 Apr 2024 17:58:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5BCAC16DED4; Fri, 26 Apr 2024 17:58:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="E0pikr3h" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 6552D16C86A; Fri, 26 Apr 2024 17:58:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714154280; cv=none; b=o+AK94noU0q4dJSjcWY6ftI9iF5qh9HdU2Ak9G6GMm8sv3Dh+aM1pOwNVbxJ/s7CEqDijtPuZUqns3vTCohs3KYs5e6ytGZJKFKecuv359xTmtxNTU6pCHpKH0k0fyQ6BIlW58QrKXn3IuPZ2yYK5upVSLZYY8FHbVL0GIrVlx0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714154280; c=relaxed/simple; bh=2IM2cRKwdKO2bVarr0CwDTsiEpVhv3fQl7E/3JfvaJc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=A/iS+C05R11u/Fe8vizHHuVrRiiXpcA4NJSdS5/GV4xB2LS1vlhuwefAbkO3F48HB9pqZYqCo8Iq1tXV/phMyYymZP+upr11AFwEyQ61iTl88ShEaQq0tC2L0UDRHQU6Fo2/HnhjXCE1OP6/MvTcLy5unI5Iqb1FmP4rpOtbWXc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=E0pikr3h; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14653C4AF08; Fri, 26 Apr 2024 17:58:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714154280; bh=2IM2cRKwdKO2bVarr0CwDTsiEpVhv3fQl7E/3JfvaJc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=E0pikr3h+3xyCdPTG3vyrE9mpCBWsH9W/hUZm0Bl5lqAkRaKa6hFvcQoQWfobOVFb qEJ5qfrackQ43c6U3qJxr8fIfJ3ULRDnReDhdgZuOSzPPalYpsjb/4glrENNmUCn7i c9e84yi4CzY/mITinqcPFAzk1jKoFdgXr9FANNrMJLyN5W4nQNpDyMUw42MgHXZM1u gW7j4927n7qn1isIExwlVNvFGdtw9AUoU7CAI+bVNFv1XDAcFdzXmtoo4LdEckEOsp qsJuZyJX1TEUtxqDQevBjePj+jzzZTqBFDvI+aIquqqdaygDOFbGkG4yqLzlFmK9iS JQX+a5HfwrvUQ== Received: by mail-oo1-f43.google.com with SMTP id 006d021491bc7-5ac970dded6so615147eaf.0; Fri, 26 Apr 2024 10:58:00 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCUkR2eID4/+oF6xtFG7mhM8uVTvy3WY7qhLk+XQ5oNSS2+0nxvK6vlQVk7wLbRUkQlMcjTnbNMkVaEIm9aR23HlLSNpBbWzR2lHLZpb8yzswVEYLNMzjYY/bR6RJlSAyB/7vkRbMxYoHULSuIsfuQGefBlI4LW5baZdA3ySUFXE9YlYQTMVK3hHSjKq7S10UgrtlWQax+SdHAVo3rnlag== X-Gm-Message-State: AOJu0Yw2DTWG/N/tM1DujzSIvbs8sokIjVER6L1HLpBM15Hdnz0nkAfA LF4qvRBGKjzhBZBovtRSYVnwKDXcQnYs7easQ9oXak8whCgjOcxPxAM1KnhKMgI7bRiVlmiP5fB 2AiEi/qZ3ebIma91KfupJwEEUwj4= X-Received: by 2002:a05:6870:781a:b0:229:e46d:763a with SMTP id hb26-20020a056870781a00b00229e46d763amr3985452oab.0.1714154279291; Fri, 26 Apr 2024 10:57:59 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240426135126.12802-1-Jonathan.Cameron@huawei.com> <20240426135126.12802-2-Jonathan.Cameron@huawei.com> <6347020E-CB49-44ED-87B2-3BB2AA2F59E0@oracle.com> <2E688E98-F57F-444F-B326-5206FB6F5C1E@oracle.com> <20240426184949.0000506d@Huawei.com> In-Reply-To: <20240426184949.0000506d@Huawei.com> From: "Rafael J. Wysocki" Date: Fri, 26 Apr 2024 19:57:48 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v8 01/16] ACPI: processor: Simplify initial onlining to use same path for cold and hotplug To: Jonathan Cameron Cc: Miguel Luis , 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" , James Morse , Salil Mehta , Jean-Philippe Brucker , Catalin Marinas , Will Deacon , Marc Zyngier , Hanjun Guo , Ingo Molnar , Borislav Petkov , Dave Hansen , "linuxarm@huawei.com" , "justin.he@arm.com" , "jianyong.wu@arm.com" , Lorenzo Pieralisi , Sudeep Holla Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Apr 26, 2024 at 7:49=E2=80=AFPM Jonathan Cameron wrote: > > On Fri, 26 Apr 2024 17:21:41 +0000 > Miguel Luis wrote: > > > Hi Jonathan, > > > > > On 26 Apr 2024, at 16:05, Miguel Luis wrote: > > > > > > > > > > > >> On 26 Apr 2024, at 13:51, 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 th= at > > >> per CPU data was only set up the first time that a CPU was initializ= ed. > > >> This appears to be unnecessary as the paths can be combined by letti= ng > > >> the online logic also handle any CPUs online at the time of driver l= oad. > > >> > > >> 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 exist= ing > > >> code paths. > > >> > > >> Leave noisy pr_info() in place but update it to not state the CPU > > >> was hotplugged. > > > > On a second thought, do we want to keep it? Can't we just assume that n= o > > news is good news while keeping the warn right after __acpi_processor_s= tart ? > > Good question - my inclination was to keep this in place for now as remov= ing > it would remove a source of information people may expect on x86 hotplug. > > Then maybe propose dropping it as overly noisy kernel as a follow up > patch after this series is merged. Felt like a potential rat hole I didn= 't > want to go down if I could avoid it. > > If any x86 experts want to shout that no one cares then I'll happily drop > the print. You can do that I think and see if anyone complains. I'm not really expecting this to happen, though.