Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp345826lqj; Wed, 10 Apr 2024 12:08:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX+bMcQh5vvdMwthIFZY+G36fix3Q71MHfEZfsotyl4MkeHqveT0j/62vimVfiuTxWX2rVh8MJnIdnKFieqZ41KuOKRiPhR1jBVYkXnvA== X-Google-Smtp-Source: AGHT+IHsXBXVYv0dJUx8UL3mVXCd9zUHaRvS9jqXR65ZIDMknbY1Qjq5dBaAv9MdNnDSc6K2KgNN X-Received: by 2002:a19:e047:0:b0:517:8594:2c00 with SMTP id g7-20020a19e047000000b0051785942c00mr611500lfj.22.1712776119918; Wed, 10 Apr 2024 12:08:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712776119; cv=pass; d=google.com; s=arc-20160816; b=aFEbMmOzARuWbjeGogtRsk98gNcnGavZzSD5OhJyI8QKtTEDZ0sLfbAcH3AQC8Y/V4 MG25eUSF0gG9kVqnaAjzTwacwwqIiHF7frPAbapgFwO3DHKKxu+dAQxAfo4CD2f5Q5/6 qyzqiMLZalpg7UHXtCFCPJuPFzNZuqEiUVIqeOiHGcj4EbLIunoEWf8N+vCdurnDWuCK /kH4FMOARMV05/cUX2Y0+A+GwLMoc6LPgzQ/I1jTx1OyJIU+hD08OMrSVRWPfZ3XEw0t 8LJVArSHIO0YToCxWzCmrj21C8fMmg42oqt8ehB/hfH3RJ9DzGe+Ltel7yTvuBU6ssJR DPCA== 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=WaIvcxy5ru9q2iYa2TQxdnXCKw4gQv715zDc53tg9NE=; fh=F6kbpnFSx+IZsodMf6tnGMWSMTvzZlVH7+fxR9tXtw0=; b=cROCnAGfcrdSPfaQmX65MBjSxPwEwcHg9fxnjwNQJMVfUp59Nv8aDNGHgL9IM9C2iI hgn4wo2HD6dtFFP3UwgRW3bXQ+89ym5JfP4xgUqL5HwitOz6CyCfzOAzeCfw2S8slgBU fxfNOiLeiRVeUGTT92yUfRJF/g9EPsDL//UGlXEgCrmsfflpAXqzvLA3/1/aWTSnxbmT PMqECHz06VL3YA+mwjNBf1qpPeBDLb/OXQzx5dnii9HBhNNBZA1O9c4TYFKTCwqERAax OJBuhaVltZ76LEiTwWVr3MHQgwT6F+c7A6AtSc3XVko1tLl5bavh+7L7C+bwHNQSC31n /JAQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="kBer6g/F"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-139244-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139244-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 sh41-20020a1709076ea900b00a51ba5e976fsi5183108ejc.762.2024.04.10.12.08.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 12:08:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139244-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="kBer6g/F"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-139244-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139244-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 D87B21F21A35 for ; Wed, 10 Apr 2024 19:08:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7ABC5181307; Wed, 10 Apr 2024 19:08:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kBer6g/F" 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 7BA1A180A86; Wed, 10 Apr 2024 19:08:19 +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=1712776099; cv=none; b=EtzrVovDPJtb3RcgD8shBseajdok2aUCNxOv/QJ5b3vg+oefJKWW2PUxlcm6Ekz3d8ZIjRl5p5HVNlnvaFqMMfa3oS5D0tkZmmRQRCS+wPuCCHHdLpRREtgLvC9B8EJH9RVUOmDHpCPmBjeeHmJ3kNPnJUvFwfMml+Ao5H0GEww= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712776099; c=relaxed/simple; bh=+eWLmlEP0bVT8/CZ2rvIUuWI74CBRr7mdsinkobDlzU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=s0zAlb3obPdyyh6dEX0A0aj6cuu2F96psUrSjwzaXMHD56hbfgOJoBMD0S+bFRVwRym4rzZpntr0U554uCW6OuLeYbuLnHsF7SFDfRixwnsMmGTXeqVL12Qpg5AzJ/6vU2159QnWKOhNeORCUX46+7VBozzodqFRoEXAu7RPl90= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kBer6g/F; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5822DC43399; Wed, 10 Apr 2024 19:08:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712776099; bh=+eWLmlEP0bVT8/CZ2rvIUuWI74CBRr7mdsinkobDlzU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=kBer6g/FSVcQNlQN/dT52LUBGg0hkyFCcgbXq3fUnv4hC2VilA1zuyGqPVGaoI9rz 0/MBcRSiQDjk5VbvTar8s1MII5Y0adKzNxjkxeYxriw3mc+K55GlJawuRxte3IPF3T 0yjLhDefgapwQ1FYh/ibQke8EUvsYSFf2Bt7tSkMULO3L6dgzwxMmS2ZrG0XpBh0qj TZ6p5zrmOCPyTsntakq4I6xUnUrHcUgIY7EjynOD9Edj3qR4Uj1GT2QnyWxaffty1+ T4vEkU9e25UakyTkLUOKd2E5zgMj5xwEQfwgEcWbJ/DWijYATCohmlmkXXuvdqLrVa rpMLs6ScIMD8Q== Received: by mail-oa1-f53.google.com with SMTP id 586e51a60fabf-22ed9094168so486564fac.1; Wed, 10 Apr 2024 12:08:19 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCVWjVtMwazDm0dYOZs7vaOMDj9FKux0jbkncjrD7balQURhAj1QAH3eEJEW4qWGJKK+qv5rYjWUTXtwtGnrwg0ukJquinUond1XfrKrvTA8o/LQHZF+uiUtqvvVDDfP7GKDMH5PZOf9I4dl/z5ZgCAIpaNuIwJ4Jcq2uJDuOCw80aGurdMWPUkmzcTeASv2JqxzOeEIwxJoQrtx5AXPrp0cvjX5J9XbRhkC9p6j0pv//LNsNK3GIDSqrGQX/m4vMwVszdwM3odXH2SL70vhGGU8b/Yo263isdiiKwVUBqS+7xwUu+Y6aW6j54H8kjM3H14lTB33kSLKu1KYwDIGGlkVaR9SWOPGR29/+aF5s+jR X-Gm-Message-State: AOJu0YwiuMw0E8ttSoY0iBgn9jyWMrwX8Ru1e5gfcOqDgsuCuCY6wbqV 93O+j6PTmqPyP0PMhf9lui1HB1uCCppeWfWsMC6vyfuAzf22t9bvD9NpFJTvL2C4gWi4IMq4ir6 ret42w9IjLOSPH57cUCIZtv4fRY4= X-Received: by 2002:a05:6870:219d:b0:22e:b2ea:5758 with SMTP id l29-20020a056870219d00b0022eb2ea5758mr3756127oae.0.1712776098584; Wed, 10 Apr 2024 12:08:18 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240322185327.00002416@Huawei.com> <20240410134318.0000193c@huawei.com> <20240410145005.00003050@Huawei.com> In-Reply-To: From: "Rafael J. Wysocki" Date: Wed, 10 Apr 2024 21:08:06 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH RFC v4 02/15] ACPI: processor: Register all CPUs from acpi_processor_get_info() To: "Russell King (Oracle)" Cc: Jonathan Cameron , "Rafael J. Wysocki" , 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, linux-riscv@lists.infradead.org, kvmarm@lists.linux.dev, x86@kernel.org, acpica-devel@lists.linuxfoundation.org, linux-csky@vger.kernel.org, linux-doc@vger.kernel.org, linux-ia64@vger.kernel.org, linux-parisc@vger.kernel.org, Salil Mehta , Jean-Philippe Brucker , jianyong.wu@arm.com, justin.he@arm.com, James Morse Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Apr 10, 2024 at 8:56=E2=80=AFPM Russell King (Oracle) wrote: > > On Wed, Apr 10, 2024 at 02:50:05PM +0100, Jonathan Cameron wrote: > > If we get rid of this catch all, solution would be to move the > > !acpi_disabled check into the arm64 version of arch_cpu_register() > > because we would only want the delayed registration path to be > > used on ACPI cases where the question of CPU availability can't > > yet be resolved. > > Aren't we then needing two arch_register_cpu() implementations? > I'm assuming that you're suggesting that the !acpi_disabled, then > do nothing check is moved into arch_register_cpu() - or to put it > another way, arch_register_cpu() does nothing if ACPI is enabled. > > If arch_register_cpu() does nothing if ACPI is enabled, how do > CPUs get registered (and sysfs files get created to control them) > on ACPI systems? ACPI wouldn't be able to call arch_register_cpu(), > so I suspect you'll need an ACPI-specific version of this function. arch_register_cpu() will do what it does, but it will check (upfront) if ACPI is enabled and if so, if the ACPI Namespace is available. In the case when ACPI is enabled and the ACPI Namespace is not ready, it will return -EPROBE_DEFER (say).