Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp450617rdb; Thu, 30 Nov 2023 08:53:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IEIV9WLgtRWPSEWc5WCyH+TttCPIjHg7INPIl2eA4QsVOLfsvzJAE6ygVS6w9PTQWC8dtrZ X-Received: by 2002:a05:6a20:a11c:b0:18b:b170:9a4e with SMTP id q28-20020a056a20a11c00b0018bb1709a4emr24466017pzk.11.1701363211222; Thu, 30 Nov 2023 08:53:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701363211; cv=none; d=google.com; s=arc-20160816; b=SPxPcwKbv8TNR5CDg9hOgo+cdvIWTlgneqI/IMJ+96tKULtpwIobhqzUY08RLOZhvy dXHW/YjJtOsOPP6B/IJrpzMscaBvXosWc/B1HTDz9dH5n512b4Hp869Zrh06H5KyerFT tqmOtc8rbeA0DuNqug/wlGI+TxyiSnTEqS3Lvx9w5K4BPw0U9V5SYyWcYKjWIKmw+GNJ z8MP3Zyq+mq4P22pLsf9qffC+asspmGzDM803XwqumHR5hDQcEyJ1/bN7gkQxSmc2k2O VH58JpooN81COpDIoOyvb5Arv16aoeMY3sL6fekpPMAwVzC6GC5YGmP0Km/UXijYZul8 P94w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=zjyb2+tJaydMKpbiy8Pv7/k6uPaDOM7USk4NtJXomsQ=; fh=iXCquIcxxt1frpcRpn88kBmLd6LjRpFcfVoF/JJoS04=; b=LaU+bALvUIevD1y22iC3tP7K/DLsgHL/CcmdXXK7FrdtzqrzB5FmsPNxJeZVnX9Kao DL/tXeaBgf7hJV0+WU9e6Tywqkgwdmp+Al7Nb1VfWTxw77vm/Jj8MqQ24jRoX3jqKjPi OeRfHNNXathArQBrNLXTGyg1tm1Sa9w1gNvKTrqbBZmk0QJgF5CyWcpG8evOVpUQ3Toe lGDDaf8Hsl8uakKMaJEx5YCguK5yRgD4Fc77MjMwyX6gRrFUe/35noNvXHlokZpg+l+t JUXAYNS9i8AB/31vMYW/Mm2VEtoN0MDD/sPL5GKNJmhLj/V2LTq67veOYfR/3o50W3KV ni5Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id t18-20020a056a0021d200b006b7b42fe43asi1621785pfj.185.2023.11.30.08.53.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 08:53:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 7ADEE802748E; Thu, 30 Nov 2023 08:53:28 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345646AbjK3QxM (ORCPT + 99 others); Thu, 30 Nov 2023 11:53:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231856AbjK3QxL (ORCPT ); Thu, 30 Nov 2023 11:53:11 -0500 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02D75D50; Thu, 30 Nov 2023 08:53:18 -0800 (PST) Received: from mail.maildlp.com (unknown [172.18.186.31]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4Sh2K70gXgz6K8sJ; Fri, 1 Dec 2023 00:51:39 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id B89081402CD; Fri, 1 Dec 2023 00:53:15 +0800 (CST) Received: from localhost (10.202.227.76) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 30 Nov 2023 16:53:14 +0000 Date: Thu, 30 Nov 2023 16:53:13 +0000 From: Jonathan Cameron To: Russell King CC: , , , , , , , , , , , , , Salil Mehta , Jean-Philippe Brucker , , , James Morse , Greg Kroah-Hartman , "Rafael J. Wysocki" , Paul Walmsley , "Palmer Dabbelt" , Albert Ou Subject: Re: [PATCH 11/21] drivers: base: Print a warning instead of panic() when register_cpu() fails Message-ID: <20231130165313.00001840@Huawei.com> In-Reply-To: References: Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.227.76] X-ClientProxiedBy: lhrpeml100005.china.huawei.com (7.191.160.25) To lhrpeml500005.china.huawei.com (7.191.163.240) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 30 Nov 2023 08:53:28 -0800 (PST) On Tue, 21 Nov 2023 13:44:46 +0000 Russell King wrote: > From: James Morse > > loongarch, mips, parisc, riscv and sh all print a warning if > register_cpu() returns an error. Architectures that use > GENERIC_CPU_DEVICES call panic() instead. > > Errors in this path indicate something is wrong with the firmware > description of the platform, but the kernel is able to keep running. > > Downgrade this to a warning to make it easier to debug this issue. > > This will allow architectures that switching over to GENERIC_CPU_DEVICES > to drop their warning, but keep the existing behaviour. > > Signed-off-by: James Morse > Reviewed-by: Russell King (Oracle) > Reviewed-by: Shaoqin Huang > Signed-off-by: Russell King (Oracle) Reviewed-by: Jonathan Cameron