Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp638022lqb; Wed, 29 May 2024 06:36:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVD5JFjvBukMK89HdGjtg2qKllC9SkOkO0yXYREK18u2ifmkvmPV+dG07AbJr25UUR0yS84NFHGajoKbSDwniTPJQVxH9KJ+DTHqPiWOg== X-Google-Smtp-Source: AGHT+IHUWRqhDlPm7nKAugkqmXBE9yaxnkvJq2lBf+JbXqDC7pLgVaEVUhVME+dy2ENGX9VmxIfw X-Received: by 2002:a17:906:448e:b0:a63:41f7:d80f with SMTP id a640c23a62f3a-a642d6ae3cdmr199955166b.18.1716989763652; Wed, 29 May 2024 06:36:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716989763; cv=pass; d=google.com; s=arc-20160816; b=f5h0IJjP/rE3ZIJ0ECC5BBczMj+BjywcbPDhgRAWR1Zbzu4rFsboa+H67351goGQK7 ze1A38hC+WL/wW/OScEPCNe+Sl6JDgzI5/LbTkslz+iUgdo/lCnWR8uEogrSFRS2jF2p EiFCcdcWBNDvvEVRi0smfjrnZTEqfOhjIKyOJGdS1EHixZMsyjKU1H/SAcIX/26X50sv V+SnKDqOs8kN53+/aE+1BayknTNqzJ7qei9wmCNdunwl1dubgKEvI7/uF0jRO4busxYm 4nfWW7wzrE272Ojqag1FGRH6ORhSkpY53JvBm5Ju1zj6gUFxImKG0NzCVhB5CzwJCM7u nYzg== 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=NKhNgP5KDscjBHhVY5lIzt9CtvBRVYqYfrP3IYmfUV4=; fh=NxmCHexitX7P6x/7ARv3vZBmyAUGQGWkF2RSnxwWsIo=; b=ll3khNHLoWcP+BBeebP7eOVHKK6t7/XyHSIf56ZNjaSK5TicFS4q9go6pcZHnw/rWO F72d39yF2oqIX4DEIPbXSFaNx2qONJq/5Qz4+6vTArQHBN3qOECKV7OChLEu1nGe4Lou pMTcWXGbaoRtLoOKPjbML8KqyV9VapGbtnte8INl0JJgBWJ6hrrjrJ+nxixU/Ea2MbKG B7zio3UDvqoos+MBNNmoZk/ewTiCsWJnNaMh/5GhC+4Pq4qV1Xo0QoxK3jWOVQNs/NYc AHx54wnfAHhumot/8nD1K/BvXxcX5TaYFUxt4mKBDem0/XcMbwvubvn18qiQ6JD/pG3z GHcg==; 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-194165-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194165-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a64a0d86c2csi84220466b.879.2024.05.29.06.36.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 06:36:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194165-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; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-194165-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194165-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 62E1F1F262A2 for ; Wed, 29 May 2024 13:36:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E9C4917BA0; Wed, 29 May 2024 13:35:52 +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 245B314AA9; Wed, 29 May 2024 13:35:50 +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=1716989752; cv=none; b=M10cogF8GotkkCXM0PIRKBxV7LpTyaWXoJKjXr/t+wfK6jDh9fOrSpRZg76qR3PDSFLTfyqsIWc+VYCUl9OdrmPwwI3XasmrH2FYLTQKuGYoO1kDKTarSPZIbZ9sywZIoghxK9l4Lklkgqq2RptVfquVUpYS707Pc1iG31IKFZM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716989752; c=relaxed/simple; bh=J60KwpuaE/khC1IIV26+2bLnKJbTlc4Q169mvlU65XQ=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=es0+LojXJrEXYWVLHWc/VY4lY/KSGlQy5huzqu5zrqLuudTqTAcZPY3abawn4sAOuAi6M1RAixBKedOY+bp4rkElz+nRkvq5FD4NhmDjjrUC4ybanYvh8JMYgfK8ViKs24JSefFFH2lidpqmKPMdfd0r+pMXqQBvTbbesW783y8= 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.231]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4Vq9K16F63z6JBDd; Wed, 29 May 2024 21:31:49 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id EF125140B33; Wed, 29 May 2024 21:35:48 +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.39; Wed, 29 May 2024 14:35:48 +0100 From: Jonathan Cameron To: Marc Zyngier , Will Deacon , Catalin Marinas , , , , , CC: Mark Rutland , Thomas Gleixner , Peter Zijlstra , , , Russell King , "Rafael J . Wysocki" , Miguel Luis , James Morse , Salil Mehta , Jean-Philippe Brucker , Hanjun Guo , Gavin Shan , Ingo Molnar , Borislav Petkov , Dave Hansen , , , Subject: [PATCH v10 02/19] cpu: Do not warn on arch_register_cpu() returning -EPROBE_DEFER Date: Wed, 29 May 2024 14:34:29 +0100 Message-ID: <20240529133446.28446-3-Jonathan.Cameron@huawei.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240529133446.28446-1-Jonathan.Cameron@huawei.com> References: <20240529133446.28446-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: lhrpeml100001.china.huawei.com (7.191.160.183) 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 --- 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 c61ecb0c2ae2..1487cd9761a4 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