Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp1327820lqb; Thu, 18 Apr 2024 06:55:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUCuAtC0heOKlXFyiQIjLYqWacb4jrfUN693nzn2WoqkMDR+hs4HMdcxvGqlPK6l2lOBURT7kQ764PnzpgzHQezo9KLusrg1jFZ6OUfFQ== X-Google-Smtp-Source: AGHT+IG7kQl7omP5nGkG13xQDaXVvMmdq6TV7cWjk8+pO6a8dA5/Zyv0M+8NaBTm70WdHMgAvWSy X-Received: by 2002:a05:6512:481c:b0:519:296e:2c80 with SMTP id eo28-20020a056512481c00b00519296e2c80mr1612181lfb.15.1713448551806; Thu, 18 Apr 2024 06:55:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713448551; cv=pass; d=google.com; s=arc-20160816; b=l0c/Y2U94lknJK6F+YfVOY3GAW/fenxK+fUqwRxUcimW8/Qynlbx5H5/FL9vixi4X0 +9X8LvTErs8JexTACrxs780bkBhMYa6U0QASJs3vZ/AG4hWlpdwHTWPmz4Le7+PGjJPh hvFU1GCTQRUjyChUXyfrDkyLIs9mRPFqA6FqtBt72+S7K7880YBBQbavVyoDOtDzUCXL 2T6c8pu6X/5gJk87f/+q6H6yHbRuSr5Ir4bf+iI798FiMJzMytftB2lyGvKTpmqg3TIH 8zPzkmgsFHHdRbBU+d35W/iU49xhDfppGi9nXdVmHERYTSkrK2fswc20v4MeCjCNaNlB r02Q== 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=EMeRV1D4lJwsCAP/HOtGT649Jtu5iMl+LtKLoRX4Cao=; fh=wmH6eZgtoFCyes/zVTYi+VaxxdPmNW9hqdNd8ZTZ4XU=; b=r4m+uLchfKBuy/DFELBemv3saVuVi7/Sl+RSarH5yzWBGYnhcszp/cHghmJBL4hFMu AhFI3V2HGO6OEJSZeKJvw9HuqoFHBtjwc4EwCKqHk/zomRhoxHdkaCAUOd2lkmUdZs2v itODZ4JnkGcgqe9a9TQmFb7bl2OEYXM9CBOpSHIiQud19aXQ/SYeKeqlDhGlr6NN+MN6 p2iz8yplTEBXkuBGyLS1xcva6a9vE3B38/FLQB31fM8AarmPBwqdwjdOAZeZgxGi79Uc wNRH6CDhfN1W2kNpW7UFUxn1gbYbGf/ymTGnsf+o1HUOHwLzoHag2ypAADKAtlkFGQRZ N3oQ==; 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-150214-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150214-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. [147.75.80.249]) by mx.google.com with ESMTPS id qw27-20020a170906fcbb00b00a52243fe84fsi827428ejb.620.2024.04.18.06.55.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 06:55:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-150214-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; 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-150214-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150214-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 7F7B81F2410E for ; Thu, 18 Apr 2024 13:55:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 32E53163A9B; Thu, 18 Apr 2024 13:55:20 +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 3D76515AAA4; Thu, 18 Apr 2024 13:55:17 +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=1713448519; cv=none; b=bM/c9ffPgNXAUnZeRDO0t53PtD5YzFmK2uJ19sK8L4dJXa0Tx5v+HF/gsb/nDpksk1RLYVETqwA5CXX+m6fAKNJYM3aQyeCb+K2sMGt73vbXPnzvdtIScry6r8jzg/FhHbSTPpCPV7Rt9TfBlBouGACtsgi76oGf/O8reG3Uj1I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713448519; c=relaxed/simple; bh=8YdjqTW5LrOhh9bRGI4v7+bpk8jGAptG3mXdXeuigWw=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=n4EDy+XTgvu9ywRkSXm1T5bDEGz164uLhmYePSa+KLEj8/Ktb58jjWFqwAeH/QjuJH/7LBC5WwI5wYUSHtob4lO4+ME564pHWcLScqEEN7iCsyCYX2pbqVIUyj1iX+LtOh9AYefyH3kYK0hH+Jr9wz+lOYVsHwXqt1B5Adc9Suc= 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 4VKzkc2JbSz6D94x; Thu, 18 Apr 2024 21:53:12 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id 8CC601406AC; Thu, 18 Apr 2024 21:55:15 +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; Thu, 18 Apr 2024 14:55:14 +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 CC: Ingo Molnar , Borislav Petkov , Dave Hansen , , , Subject: [PATCH v7 02/16] cpu: Do not warn on arch_register_cpu() returning -EPROBE_DEFER Date: Thu, 18 Apr 2024 14:53:58 +0100 Message-ID: <20240418135412.14730-3-Jonathan.Cameron@huawei.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240418135412.14730-1-Jonathan.Cameron@huawei.com> References: <20240418135412.14730-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: lhrpeml100002.china.huawei.com (7.191.160.241) 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 Signed-off-by: Jonathan Cameron --- v7: Fix condition to not print the error message of success (thanks Russell!) --- 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