Received: by 2002:ab2:3c46:0:b0:1f5:f2ab:c469 with SMTP id x6csp146446lqf; Fri, 26 Apr 2024 02:21:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU1I09pL/a+foV7olCOTQcT0UuVosDUDy0U+1nV0bnphXl2os9ta4Z5EK4wGZ2/N2YJw8l3YR0YMtoPMDD6H1UOvBZjRGlUQveg3/vd4g== X-Google-Smtp-Source: AGHT+IEIeaA+QKH1VTDHslrNCvMyjNrESuVGQr1rHIjhW+Zv0vf2UR3DfFnnTGVz0R4gxmFAFk4H X-Received: by 2002:a50:9e28:0:b0:56e:ddc:17ad with SMTP id z37-20020a509e28000000b0056e0ddc17admr1882956ede.30.1714123268158; Fri, 26 Apr 2024 02:21:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714123268; cv=pass; d=google.com; s=arc-20160816; b=xMtVNCbNftJpXUe/tESi8vBfYPUQALcoHIXNK0hp9o6w2xgIhDdokWHku5LarTmJBm NlU9gtmmwEiYAKIZszeMB5yO7hart5we9LL8Izsj1qOTvb8yzDchOtSPXDPUO8WyBQEG Aw4xKABortBC0ZLO20QaTwZIRtCnrbLwunpXNhwsQ2gutOhs02xalUr+8u7xtdttqWHm MkHhL2sn6vc/CYybT9psx52a9ck/K/+nz2IktRFk/weatbq6A3SGt71EpiyL8S4PDXrd RDfncb3DXyDH009JflFguREs+0SMhAXa5EjufGgW3P8zfwLtC1gMmg6dJBJCSzN2IiO9 7OiA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=8Dmcns0FZ9CNJhWQ+HJ61vRnl0WhR0+EUECBc2kBET0=; fh=USkXbnlOM3bWtJCZiKj+0H6n+4u4GtaIkTdNnqZaDSg=; b=Ij1kQtBV2jdvZHdtmwbVvDTy3LMM1yfj+4fZcJT40iyySj6NO6O8CKQ5Y0GSxZZzMs hZp3mLbmIqQYILSM2HZPKLolkMYta+rRDW05s7/folDA2+ehxmcrVaFvJ4itdqgLnZLY gRgRx6zjkvaoZbxWcm0v+j1ieNf9d9KFcDkbQfHQ3R/V5jAKxK6WGVpXKSDYfxzhd/vs timWZu2ZE4GHB9sGRW0glRRLqnACxvq20h+/fQymwxwSjyDnemeAsiDp7kEnSmzWIHS+ fNvLHGCajyJlTqT6tBlklJmRxWEH8PUQ0l5YbrxMUf5b/mZM2qHeJ4YjLZC1wCZG7/zM KvKQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RoZwsoQD; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-159773-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159773-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 r19-20020aa7d153000000b0057222c8e624si4581378edo.398.2024.04.26.02.21.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 02:21:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-159773-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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RoZwsoQD; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-159773-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159773-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 DDB411F22C6F for ; Fri, 26 Apr 2024 09:21:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 14E0F13DB90; Fri, 26 Apr 2024 09:20:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="RoZwsoQD" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 DAA6013D89D for ; Fri, 26 Apr 2024 09:20:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714123245; cv=none; b=MF7zkWfLpcm1Pa+i3uKf1OixnXXwFVodrAGJ6aAmzoXfIm0GpJHs7NbJ7xS79Af2dpRWGC0EaEHDBAH9jiTwCbJ4P6DwIe91FciOaIAvXVpv2w9sMLY4wjy0ABKnDpPBZZwSF9ii+7l5gOt4Nr6RCVxRPfRoWcb9mpFSXxSGptU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714123245; c=relaxed/simple; bh=C3rHTvF9PHfzdrgv16HQit9eIpwFV1aeMPWDWLSjEDM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=vDg5aCga5gKEjPo8KjzDJCazasQ5nKj1qDLI9wucYSIPFH7U0cOUCIVgupbAeg04PEv/gtFqj3E1jAv8lHLqqQ3ikqdhQtt5ffMHVPlMUYMdznOKFA/YhZbXU+ivxdJqUgqG5z3Xt/Fi1pQBbZW7Okl+aqcx+8fz0/25IdVIhzA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=RoZwsoQD; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1714123242; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8Dmcns0FZ9CNJhWQ+HJ61vRnl0WhR0+EUECBc2kBET0=; b=RoZwsoQDjkBe/Wt/TY1lLYa34TMdhU9v3nrlwKpwR9WCXo61/5nI5jCuzyQzJsFplo6f7P BslR8V3oR/N6gqBCfnON4AzH90Py3mFMDHQi2msooTXimtlNSQenAv68lcDbnnsRzD1IRr y3xQpjRnb4pQPUmrqNpKVNNf/Sp9ODU= Received: from mail-oi1-f200.google.com (mail-oi1-f200.google.com [209.85.167.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-140-PmAzSEa9O5ihB7DVH_1DGQ-1; Fri, 26 Apr 2024 05:20:41 -0400 X-MC-Unique: PmAzSEa9O5ihB7DVH_1DGQ-1 Received: by mail-oi1-f200.google.com with SMTP id 5614622812f47-3c82c701f5dso1891141b6e.3 for ; Fri, 26 Apr 2024 02:20:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714123240; x=1714728040; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8Dmcns0FZ9CNJhWQ+HJ61vRnl0WhR0+EUECBc2kBET0=; b=hzIe0lFtoPJlhTuCv1ewd8Sc2jNRF5As7nald93yKOLI9gmMn/dvVmKcipXfsgCVLl eqDdo4rY63PAQKWiVjCq5+Kst2+2Q8lPTcDizw4LDFpTjpBRCEr9OkiG3pIEyTG5+DWm bpwYFe/ctLdKjbHx1Qg0kkDYqon+GMC6FpY9yRT3+XACUhE4PaopEFxK3EyVU+Kl8jfM i2GeQg1bb+QZjiCQwdecUMVqqBZPzVozqdOM2HG+/3+xXoh123iVOv7By/bXvXyNqw1l WAk9GAsK4Tugk/qYUdbbVYQENfakhQsysTJV9x/dewKXbDj/iXUec9pCfDQuGXh0xNFa RHDw== X-Forwarded-Encrypted: i=1; AJvYcCWjCFhhls5ONS6vWC4W9tPo24OfkquUIrja8+TEziUs2nbTudtR8m3GaDkQPIWJN+2XCe6dvgaILY9azHHulZYwvHZGrh2HZG4WLiZv X-Gm-Message-State: AOJu0YzgIqzU3Xl9ieDYEMr51m0EgU2SS28VNIcX6bYKVqBw46VqAD6z tonRok0oZQvlGn/WnZU2i8Ub4vFrsjSMk/GyOh5+htYHrW7QPVTaplPHXtfzw428h85Kki7Z/AN iJzxencgWuOhiqywWdWx3IC9RD3qDtmiF7EvjayQBScBGexsDAiN2ywGwPUBXAA== X-Received: by 2002:a05:6808:1528:b0:3c7:dfb:a295 with SMTP id u40-20020a056808152800b003c70dfba295mr2563876oiw.55.1714123240353; Fri, 26 Apr 2024 02:20:40 -0700 (PDT) X-Received: by 2002:a05:6808:1528:b0:3c7:dfb:a295 with SMTP id u40-20020a056808152800b003c70dfba295mr2563855oiw.55.1714123239985; Fri, 26 Apr 2024 02:20:39 -0700 (PDT) Received: from [192.168.68.50] ([43.252.112.88]) by smtp.gmail.com with ESMTPSA id u9-20020a637909000000b006047eb9c7fcsm5263952pgc.34.2024.04.26.02.20.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 26 Apr 2024 02:20:39 -0700 (PDT) Message-ID: <0cf50b2f-999f-4aab-bc32-15549d48af2c@redhat.com> Date: Fri, 26 Apr 2024 19:20:29 +1000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7 02/16] cpu: Do not warn on arch_register_cpu() returning -EPROBE_DEFER Content-Language: en-US To: Jonathan Cameron , Thomas Gleixner , Peter Zijlstra , linux-pm@vger.kernel.org, loongarch@lists.linux.dev, linux-acpi@vger.kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, x86@kernel.org, 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 , linuxarm@huawei.com, justin.he@arm.com, jianyong.wu@arm.com References: <20240418135412.14730-1-Jonathan.Cameron@huawei.com> <20240418135412.14730-3-Jonathan.Cameron@huawei.com> From: Gavin Shan In-Reply-To: <20240418135412.14730-3-Jonathan.Cameron@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 4/18/24 23: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 ^^ I guess it's a typo? s/us/is > 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(-) > Reviewed-by: Gavin Shan > 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); > } > }