Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp2078668lqa; Tue, 30 Apr 2024 07:40:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVUwwGLC+edzI+IJMSR7Rz/zv9/867UsEMk3tW4wlio6dXbcU/SmUx9imWv6yD3R/gC8L0w8soHuvM4Zuq4Oa0IEU3OkQ8HjNjTBBSUQQ== X-Google-Smtp-Source: AGHT+IHHQXPhdSBsv4n0NmNtdQAcnFwT0PpWpTIGkpsVznj2iWso1GQYM4jkyVGBySbop/oJjIlQ X-Received: by 2002:a05:6870:308:b0:233:f233:c3ee with SMTP id m8-20020a056870030800b00233f233c3eemr15383654oaf.50.1714488021965; Tue, 30 Apr 2024 07:40:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714488021; cv=pass; d=google.com; s=arc-20160816; b=dHo8Dbn26gQDWWbE6+LLaEjYuhkt2PuiglSD1TUycnSuCFFlkfapSVi+N4ObRjccqr 28TYzKCl/cLLxZiF2IEJ4PTE8ZOrA2Qm7EpwKEGEZ5LyAAQM51w7TNcLEuJjvc6kdJJT ZwWq8NXrceUc2Dcsuz80JBWQ3Pu2nRnb5fEllb6L4ef33VHRXNLMXEmkGJnuN4JoRYEW jJBSb4aLRzXd3Kv+gTqd27CcOzwHDcOQQD3Y1ZnG2Io5VSYnuoORMhd0uvl++l2nJRrM 7XyyhNfNuMGx4FK1aMAwnLXY7uoO5cLpYd3DDwLiCuNgMKUCdynX8SB+85zAN4WbxwSD aBMA== 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=1HH9kWDM5TP+fEIHd+NuH4mVK5UVonGRB6XwsBTN/34=; fh=25IklNjpQtm3+ZI4w1ifckV22BkO2b6a/wyTwiBBJrk=; b=RmImM9/OWBLbDlyXPyUSEul8tNjWCHStITTsFawEVENyPocuE9qi5Q37t0T1z39CFN lWQytjx7ko03Fstrd6jfMsjoCUnj31aO4mIuIkYK5WY6o5PX9lBKnj/usgLFnVnHN3IA 5BUdsPdJ1JbNpLQ4q1FJspGqSAHWmqszi+0+yE9T1lGEADj9VucpwFK//vsrNTQm0Mjj 08okN06hnE8Tq8rohDI7n3xoNpKQlyY5S8cfdnCBqYK89iX6JpTuXYgWNLeJJDSkeIXE AH96z2B36T2eMgM+MSdeeoJ1T3BN4YOtOg9V308mlRJPIOZbEqIaXLEp148QPpD2Cb4o aCSQ==; 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-164135-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164135-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id u26-20020a63455a000000b005e855490cc7si21272034pgk.833.2024.04.30.07.40.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 07:40:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164135-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; 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-164135-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164135-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 851A5285B8A for ; Tue, 30 Apr 2024 14:31:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6848A1791EF; Tue, 30 Apr 2024 14:25:42 +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 D0A021527A2; Tue, 30 Apr 2024 14:25:39 +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=1714487141; cv=none; b=a6rxV2ZQaJ0Az4t+MqT9xuWlp0d/3qUBlmhei9ejlLzE846KirodYwv5P/h4Lva0zK4HTM4jdz/FoSm/wFL6MCrslJTVQDrSvNIapF6mEAvb184w+q/U53QhsQSQo7F4bVp2VVvwWg1KR7OgEsdy32K4qQUmtTyOfDEkn0y69Ok= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714487141; c=relaxed/simple; bh=DqQTQYSPmoExeqUbhFPPbh+DWRqR1YwovAZ2ku05NCM=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=hiyR+ZKhvyBa6lIZ8YCQFRv4KylPpWq07swViqOJxeOu3AFu52e5+f/jpI788ReTpKe04Vk8TF8pCVnyDNKe9AGvIC5SaNtQBm+O7srRxsyHA1QnbtUNw3J1+D2ZhFDWrdmNeFZtHuVqNwOSk+79nv95NORDZEunwIf/fROP65c= 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.31]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4VTMt74nhpz6DB58; Tue, 30 Apr 2024 22:25:19 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id B67701400DC; Tue, 30 Apr 2024 22:25:37 +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; Tue, 30 Apr 2024 15:25:37 +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 , Gavin Shan CC: Ingo Molnar , Borislav Petkov , Dave Hansen , , , Subject: [PATCH v9 02/19] cpu: Do not warn on arch_register_cpu() returning -EPROBE_DEFER Date: Tue, 30 Apr 2024 15:24:17 +0100 Message-ID: <20240430142434.10471-3-Jonathan.Cameron@huawei.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240430142434.10471-1-Jonathan.Cameron@huawei.com> References: <20240430142434.10471-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: lhrpeml100003.china.huawei.com (7.191.160.210) 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 --- v9: 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