Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp777453rdb; Thu, 30 Nov 2023 19:49:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IEMok8h4OpDxFypib8hadhiCps22UGeeGRibqt7e3TYSv6py284OlFEpqDCTsGpwCPhpwdS X-Received: by 2002:a05:6358:ed19:b0:170:697:a3c3 with SMTP id hy25-20020a056358ed1900b001700697a3c3mr1272249rwb.9.1701402568009; Thu, 30 Nov 2023 19:49:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701402567; cv=none; d=google.com; s=arc-20160816; b=JC9p9MNpeUrJ23zWwz0DssuR6lS57d9BUgGfVqMkssPF5e5HbI0VCHfLCwTOJgomqG sGHBBRGmQYNoRH2sm4asRzUKPBlEumc2wRXG1ABNvp/DB/JwtyEOKLpUvbcNB59r2fty U5qpCV9/thrLS72ZM0JUZXhCIP90vomA/AI4OFqyciriQMmS1pmrutfnqrcR05dw6Yg6 Rh/R6az9rUwRy4mWg5rYvSiw9yWWzRewnKgYOYfXKoTnNmB0+m/SU1esMn+8NOy//a2I 5bvQ/yfGEWNmyskP+46s41gaUAlP4zL5RLe7ItI4UVqVBaZ2J6P+CWRSVQTYFOuNRPir UOFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=IO8CL2qjeIUr0LsYwreVkjK8516DQtyOeewHK7H786o=; fh=jUwddFzHzPXdHRuqZh85NNSJtbFX7k2MPINay1jHoz0=; b=yZhEIRNmPuLeFA6ElYST10HekxthnOkZqIglLbkP0wGZsEu0WS76ZYazGrloD+w42t V/bKpLHEuQOKoXsj7lZzcZ7FtzMDZF3Ysm1/z6JCDJn/qAPWPbUIR41SG2VjAzVCY6Nj c5Mcif8poa9stEjFzJaIa1C209oX/wcT206noxk/xhvrGULnq9nQQq2ywyYgJBAIrKPR /fdybv8BLLMA4OXsu5ZC403gAczAswj5bQhaJS+x1KMLBZ0rwNxho2kwQZ6ItuWf0BDv 2EadJ+qtkHD5x3i+1OuETZv0lfLwVuVDIvAb1flEBYFJX1mPiOZ+ismbYwSpsmuSWHrF bOKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WGu4YqHA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id s22-20020a634516000000b005b7dd20f8c1si2525127pga.20.2023.11.30.19.49.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 19:49:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WGu4YqHA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 7872882357B0; Thu, 30 Nov 2023 19:49:25 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232312AbjLADtL (ORCPT + 99 others); Thu, 30 Nov 2023 22:49:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229505AbjLADtK (ORCPT ); Thu, 30 Nov 2023 22:49:10 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5FA5171F for ; Thu, 30 Nov 2023 19:49:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1701402555; 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=IO8CL2qjeIUr0LsYwreVkjK8516DQtyOeewHK7H786o=; b=WGu4YqHA2ly7lIBRb5cmtWLi5WqsiTeGBSOgibj+nx4++AXyK7ZsEtv2GYNHC2kyyWjipB yfENv9zdCkglh41tmGkeQTVkU716gjXy1Imt0DaVvIn14xh4uR/2vgPO83XBmn2z/DmeoP bx0ooj+aQf6f1CAztnw2y3tD3Gym1HY= Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-130-J3pAifOCMduNUAJsFg6VKQ-1; Thu, 30 Nov 2023 22:49:13 -0500 X-MC-Unique: J3pAifOCMduNUAJsFg6VKQ-1 Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-285bb0575d5so2164350a91.1 for ; Thu, 30 Nov 2023 19:49:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701402552; x=1702007352; 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=IO8CL2qjeIUr0LsYwreVkjK8516DQtyOeewHK7H786o=; b=bweAaCH3FQexQzE0fcMc4hhzzbjCgL4siywXUf0kiCIMJ4AHQfOhxLw77zWjEHWQ7E c8vOUcTbFufxi4gRh0MfTL0s4vqWWOq+5hBimUwCaTveNYfimEk0mYIctzSFN7YzZ4pZ 101VIPH/norHNOsXK0kGdC8DKQAp5PQ3H48ucYiI45oeAzyjAZfQdx6KH9utRWOL5pRH eNoz3Fjk/BrjKf3tqCGYgLj4mv7zfXQ0iRpE8XfnQJdbwld1kfWJCrvD1YexRDeiUst+ 9n1O5dLtrbpW4JUkQqDRGedxJP0IF7XRuRmnnj0L/Qk4q+Lz0e/UdP+1SXa48pl8NUut f31g== X-Gm-Message-State: AOJu0YzSZrhgCUPG6uX+wTj06Uy8GCQrJUljlITFCl6eika7IJ4oBLtp z0oOhT0v3qJZsv3LTvcZTtRogEWENte1JOQ5qzDooL3LHVkcyIQfA710444My7rXb1bTofNlViT Erp+f7VYnKOy0hNU5T9brE2qU X-Received: by 2002:a17:902:e80e:b0:1cf:daca:2b5e with SMTP id u14-20020a170902e80e00b001cfdaca2b5emr17322852plg.38.1701402552344; Thu, 30 Nov 2023 19:49:12 -0800 (PST) X-Received: by 2002:a17:902:e80e:b0:1cf:daca:2b5e with SMTP id u14-20020a170902e80e00b001cfdaca2b5emr17322834plg.38.1701402551963; Thu, 30 Nov 2023 19:49:11 -0800 (PST) Received: from [192.168.68.51] ([43.252.115.3]) by smtp.gmail.com with ESMTPSA id p5-20020a170902e74500b001cfc1a593f7sm2185691plf.217.2023.11.30.19.49.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 30 Nov 2023 19:49:11 -0800 (PST) Message-ID: Date: Fri, 1 Dec 2023 14:49:03 +1100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 11/21] drivers: base: Print a warning instead of panic() when register_cpu() fails Content-Language: en-US To: "Russell King (Oracle)" , 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, linux-riscv@lists.infradead.org, kvmarm@lists.linux.dev, x86@kernel.org, linux-csky@vger.kernel.org, linux-doc@vger.kernel.org, linux-ia64@vger.kernel.org, linux-parisc@vger.kernel.org Cc: Salil Mehta , Jean-Philippe Brucker , jianyong.wu@arm.com, justin.he@arm.com, James Morse , Greg Kroah-Hartman , "Rafael J. Wysocki" , Paul Walmsley , Palmer Dabbelt , Albert Ou References: From: Gavin Shan In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 groat.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 (groat.vger.email [0.0.0.0]); Thu, 30 Nov 2023 19:49:25 -0800 (PST) On 11/22/23 00:44, Russell King (Oracle) 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) > --- > drivers/base/cpu.c | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > Reviewed-by: Gavin Shan