Received: by 2002:a05:7208:b08c:b0:82:bbfa:f723 with SMTP id c12csp376846rbb; Fri, 26 Apr 2024 06:55:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUYmdkcq03Z2kjRM366WvV8ansP/RwxW7GRO0xpw+FSHx2qNFEZNkg7ZN7d4JV30Q6Ipez9hNvFatPRlA9NqiEcMjr/wCRmQeiPlbGIOQ== X-Google-Smtp-Source: AGHT+IGIKvJOLySNalvJq1tX8Y+R7Umq5VYHYW0NzQ7by9cFih17NwADAFU4xjZRycX7/Fh5wDkb X-Received: by 2002:a05:6a20:9696:b0:1aa:282e:8dac with SMTP id hp22-20020a056a20969600b001aa282e8dacmr3704924pzc.0.1714139708485; Fri, 26 Apr 2024 06:55:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714139708; cv=pass; d=google.com; s=arc-20160816; b=E0GhCfvtqA+1FSJ3zcg3KdiS0UDigHLWq63tm5D/QxxM/HbiyThNXYQMDxragO1gVc MVFFjZfaBdL6xr8rvzdddxILeLeAI08cZmP1ynYgBy/06+zCosdpna7xvGPRNYOIKRhV s00KzZQvAuwvANpvK7OpnqAjY8Io0FBQWAuEn6qjTfNXhsG9eWRVFs/w5MR2UzokE1f9 UesuQPnxisZNeFcURfBgrk50Bny7oxvtDDmwhW1a2rb4xacHVODnfpybQ77BrttxoF+9 QN+ZJWEP12cnACs47+K5VT+B07f/UUKezbXyLk6OTDxDpHSfDKKEVsASE8jOgaygnNpa uWfQ== 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:references:in-reply-to:message-id :date:subject:cc:to:from; bh=XbHSpYJZ+Shnh2u53c2U9CltE0cfBU69mKNM6kj6IGc=; fh=QfGN+Nlycv3VEqD8X65neWxvyXXboUCZUO7iSMK6eUk=; b=aNdvdvJ54QGaDeCoVN3uisVkRscQ+UqKYjiHI+E/yMaHYaLEDD1+Ffqx+MJKrMgLlT pDq6lXGccYtLS4diDQhrkKLW5utAVk6CCerpVCXQCeOick6mLnTdWADkpT63DPVV2FyH AlgPEHAjsyEszX3I+vR+Zi24K47cjXfePVyl61OXz1E67OsE0uarbH0cRw13puB0yvns IKT/RMkIWtjiKaKER10AeHeRx2r5Ap5zWQBPGTRM1d0LB4wSd4KRK0Av35WVHmqQogFl dpvqxCSXYbMuuRzUGVf86AOObw40mPaTnFlYyWW38v+fu/q3AWvEqYQcsGKMyZaqU5xi Jj5w==; 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-160089-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160089-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 le14-20020a056a004fce00b006ea8ed74f58si15363680pfb.317.2024.04.26.06.55.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 06:55:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160089-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-160089-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160089-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 47AC6B23F56 for ; Fri, 26 Apr 2024 13:52:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ED2E31487C4; Fri, 26 Apr 2024 13:52: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 0E68A147C99; Fri, 26 Apr 2024 13:52: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=1714139552; cv=none; b=rDN5ahLz8fOClHMTQBNEwIQJ2fYDsafTItqXUnEGlEd6gFdOjGmYhJwrm8Zwy1IMX2bbLkMHRsOlHF7Fv8a1LDBQM3ahANsDytQtIfojf/ad+d724kG9fJ6gzpfZ8IIoK8UT4FLjZh+fznrxu+H/puPLbuZzqtI2hK9015z6yyg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714139552; c=relaxed/simple; bh=EqnPqYd+jON+bJvqbrJwqw2XVjsLroBVZfBzA47YEBQ=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=lpK8quFyUe0LPj+nowIdxri7TSQ5eaq+d2edjjA9HCNXRnTG8wUANcDfYyIVgsgrJNjbHbQmJsRTXeCppw1HrKWDo7PwT75OzAS/NosvaWFRIDLh7qu/6Eofyfq1zGG27HNVZ6piXpCgwHbo2mq/fhuzO1TpHH5eoCKgA2823Kg= 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.216]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4VQvHB5Svjz6K6CT; Fri, 26 Apr 2024 21:49:58 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id 746DB140B67; Fri, 26 Apr 2024 21:52:27 +0800 (CST) Received: from SecurePC-101-06.china.huawei.com (10.122.247.231) 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; Fri, 26 Apr 2024 14:52:26 +0100 From: Jonathan Cameron To: Thomas Gleixner , Peter Zijlstra , , , , , , , , , Russell King , "Rafael J . Wysocki" , Miguel Luis , James Morse , Salil Mehta , Jean-Philippe Brucker , Catalin Marinas , Will Deacon , Marc Zyngier , Hanjun Guo CC: Ingo Molnar , Borislav Petkov , Dave Hansen , , , , Lorenzo Pieralisi , Sudeep Holla Subject: [PATCH v8 02/16] cpu: Do not warn on arch_register_cpu() returning -EPROBE_DEFER Date: Fri, 26 Apr 2024 14:51:12 +0100 Message-ID: <20240426135126.12802-3-Jonathan.Cameron@huawei.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240426135126.12802-1-Jonathan.Cameron@huawei.com> References: <20240426135126.12802-1-Jonathan.Cameron@huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: lhrpeml500002.china.huawei.com (7.191.160.78) To lhrpeml500005.china.huawei.com (7.191.163.240) For arm64 the CPU registration cannot complete until the ACPI interpreter us up and running so in those cases the arch specific arch_register_cpu() will return -EPROBE_DEFER at this stage and the registration will be attempted later. Suggested-by: Rafael J. Wysocki Acked-by: Rafael J. Wysocki Reviewed-by: Hanjun Guo Reviewed-by: Gavin Shan Tested-by: Miguel Luis Signed-off-by: Jonathan Cameron --- v8: No change --- drivers/base/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c index 56fba44ba391..7b83e9c87d7c 100644 --- a/drivers/base/cpu.c +++ b/drivers/base/cpu.c @@ -558,7 +558,7 @@ static void __init cpu_dev_register_generic(void) for_each_present_cpu(i) { ret = arch_register_cpu(i); - if (ret) + if (ret && ret != -EPROBE_DEFER) pr_warn("register_cpu %d failed (%d)\n", i, ret); } } -- 2.39.2