Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2746801lqt; Mon, 22 Apr 2024 23:22:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWgyFP/0ZRW1qebDkrEhHPQBkJnnQXfYSmbx+NzYb3URYMWdT1sdlk1r3E01Fitv74VDXc1OselFJmXct7q76xTp/2CEdOytbXFpZ7WIw== X-Google-Smtp-Source: AGHT+IEOj5yqf6zJgKtAnFThqI7v6oX+K+GFCSaOWufpw8TPTtrgRDymCEC9iHbQy5M6R0LKaa8S X-Received: by 2002:ac2:4c46:0:b0:51b:223f:ac47 with SMTP id o6-20020ac24c46000000b0051b223fac47mr4768486lfk.41.1713853357853; Mon, 22 Apr 2024 23:22:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713853357; cv=pass; d=google.com; s=arc-20160816; b=JVX77eKtgmpm4euQwokPPXEpkavxUpXbQ9xMd10GBEFcBRHLOFVC8MM3RLRHstVYnK bEJWrM9w9nHprLdIdMeW8bVbQTqEBBrO+C1Q0CPm8uEx5OyjtwyGUOfatEfPK9ZL79Ta SvCzHvUaX8sL5UGn/BUJ/epT3y1vVN/6ZZTYFwBecAhBJfmwSIN1soFxBQJGohpmSVZ7 gwdx/A3lZFgKq4mZQspqklbKqiQm2tbZvXPB6mfoBL5Wv5PkEShqwNfNjpr9IlY60Jcb 4s7tfUlrbhjL4xnYU85aEwjpp99huvqarxRYLcvQqoS27nGVV0N/xkBt3TAPAudldaVs SFwQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:user-agent:date :message-id:from:references:cc:to:subject; bh=49cyzOQ5yQM3fXbUQlwu0eDrZwEySrLDtFdxjqoQpYQ=; fh=S7HzysLzJEf2t9xHfpKwrx1jR0+E6OoCAaKUKAWYRPs=; b=LRyuvN/ASICEje445U2YwT7YajDQ2D9vmoakOXwiSl0xUXGK15Vd9XmeQ9IdJlRR95 kkXY8iIVlX0VAigZYB/g+/QQTfrXbDxjkrLNyNEplFCyVkkoecLN1rK0MqVgUtKP2tS7 cihFPR+PBuWlFFdndPI273dNYJxRNAl9sdVkAe0rCeTimGlKWz/D7Z+b0NVkYFFT1aWI vNfVhXiB0l6Atmp5wjelrkJmyDLKQ2lwEWD52dzjJVW+OXVT2Tk0xoiKYCbsOt4CmjwY iLkKoJjV0aUQQ67Hh5lSYV/OkKTXZFhJY2VVpVnnLDi+XTHR2lSsd4DqpdQ/y645+YR9 aV6g==; 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-154546-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154546-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 d19-20020a170906041300b00a559b8ad49esi4066990eja.1044.2024.04.22.23.22.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 23:22:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-154546-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-154546-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154546-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 8A4E61F21CB8 for ; Tue, 23 Apr 2024 06:22:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B736228DC9; Tue, 23 Apr 2024 06:22:17 +0000 (UTC) Received: from szxga05-in.huawei.com (szxga05-in.huawei.com [45.249.212.191]) (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 3729424B23; Tue, 23 Apr 2024 06:22:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.191 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713853337; cv=none; b=kst76Jw2nBIAniUrF3Crfa15vAcvlYqNWVJmk1r4mVH85kY7BT9xQ7OwIf8o0sZsoWURFL/ZGU7sKuMUul2f5x1gcripFn+hr22qbnNc7/8NxdTIluTpK0cHVnC6dWYGSYeJP+ebCmrofctaD7DkpbfB9/yGcnVOADBuCmfte7M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713853337; c=relaxed/simple; bh=DKoT7BMoGVPNdwMs/lk7idD2NHilETaVsqVtGIKyMtE=; h=Subject:To:CC:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=rkf1nspxmgOeaCQE6CJApWMLYOSHSjmhmlXVsHd+Kb/ay4jc2yNJxmU9mOV1hheARFPnTJ8BOGttSFmPEpJWkaK+0qrQm+CHcXFXQ2XILPil+RVWgvLVkNPVgSCHVtS4fD3CFjsrSN/Sq5LetbK7uJYvjBOYTMB6bSN5YojiuSQ= 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=45.249.212.191 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.19.88.234]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4VNsQP3WfJz1j0tK; Tue, 23 Apr 2024 14:19:09 +0800 (CST) Received: from dggpemm500002.china.huawei.com (unknown [7.185.36.229]) by mail.maildlp.com (Postfix) with ESMTPS id 7BE5414037D; Tue, 23 Apr 2024 14:22:12 +0800 (CST) Received: from [10.174.178.247] (10.174.178.247) by dggpemm500002.china.huawei.com (7.185.36.229) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Tue, 23 Apr 2024 14:22:11 +0800 Subject: Re: [PATCH v7 02/16] cpu: Do not warn on arch_register_cpu() returning -EPROBE_DEFER To: Jonathan Cameron , 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 , , , References: <20240418135412.14730-1-Jonathan.Cameron@huawei.com> <20240418135412.14730-3-Jonathan.Cameron@huawei.com> From: Hanjun Guo Message-ID: <20b7c778-68c0-9ba3-06fb-61194ed3e04e@huawei.com> Date: Tue, 23 Apr 2024 14:22:11 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <20240418135412.14730-3-Jonathan.Cameron@huawei.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpemm500002.china.huawei.com (7.185.36.229) On 2024/4/18 21:53, Jonathan Cameron wrote: > 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); > } > } Reviewed-by: Hanjun Guo Thanks Hanjun