From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 91B9DC4167B for ; Fri, 1 Dec 2023 03:49:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=A7G46ABAgHMbMUs+0KwgJtyiU6tsl0W4CMjKeJMGimQ=; b=LTfslUPThCh7Xi m0vdRHyv0wWBLhpe66h5UnsadPIGmfX0cmoBn6ohSYRrGwliC2HWVyROoa/OkmhIaOS4ssW/Iav+t zXY6Hy3bjTOFfZsW09wLdsIgKf8b+XC2EOQTZhd2LLF3dR8I5tiwQzOXGFWNzqpT9eDSNF/KnO9mG EEbvuutx0KDX4EufTn8OJLQ45TS6d6r5Va8OdLLHVxz3w5noILPA3CJ75qIBTJ3ERyqYlAShPJGa6 5mks0U+PK4rCes7OclrSnelfAYNsfq9kd7eWLzZ9LmfZiEm7espbuLdOtA9PRuGJILTQoQUh6jQZf 2NDCIqTD388L0LSMy0cg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r8uWk-00CYFK-0H; Fri, 01 Dec 2023 03:49:18 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r8uWh-00CYDx-2Q for linux-arm-kernel@lists.infradead.org; Fri, 01 Dec 2023 03:49:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1701402554; 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=Xk54FXgSIVr0T68J7rFoE2u/PaC7n8/b14u3Hu8Zgykf1MBwEwSxlxM0IFKDINBB/3xGlK qE+wDf/oLohJCzrp8uPKqOkwPHXBdn1ouiRiHdlo4OFP5vxrx30IvkwXB0wuEL9Rn3BRbC 3f1it28/wMEMRBWQcmSh/eNDTuyexEg= Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-19-DrN4cbyNP7qTWppbKiwOoA-1; Thu, 30 Nov 2023 22:49:13 -0500 X-MC-Unique: DrN4cbyNP7qTWppbKiwOoA-1 Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-285adde28a0so2140405a91.3 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=QHc5tvzEsqF8+EnmgShbtcQrJjYT3Qaa8BxT09mj+ei7N5Iw9JqGiT80J70olgyyqb w8pi/spSgA3mdkUGz8WR2CRBlet5DnKo6huQNeuC14msRvDohRrsoFWSz03cpHD31VJD RzvEN1tfaRIohIW1oc1BFptpm44In1NukHPWxeubILTZTBd+iAGQ8/AbzySCLNJCsD0Z fZlSre1uNtLV6jSTAYuj3OlOB27DeIoQX719QVYSyqVslz6VZYGYMUeQoHIw3DufKVYw EaazfPy3hHmymezF5p+VjWuTPSfeXGVvu4y4WYl0LF/Fi0OlwuJn+vjZgmBbwCQq6s3J IG+g== X-Gm-Message-State: AOJu0YyNUa4gZYsiEIvFL7qXtGGEOFLPKe+H33JAcaW9jcmiwQHe90PC i+QfZbXAtJgoT1LV2lV5O3xUFaOeqZksPM9Mvj6gUVJ2rs5p8oEDcafXpzHmo3HhAalmTigfwlZ RrKI4SbKrlULmbRJv9jY5MFBsH/LsjuWVTpP8yR40LIQ= X-Received: by 2002:a17:902:e80e:b0:1cf:daca:2b5e with SMTP id u14-20020a170902e80e00b001cfdaca2b5emr17322856plg.38.1701402552346; Thu, 30 Nov 2023 19:49:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IHVVbr2zUe8qqYTBkmHgB1fO8oP/OS0GFEHLzxacC4remFDnJNuIkfv1IWdcQ4cpeu8xrZWrg== 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 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: X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231130_194915_858275_B9CA721D X-CRM114-Status: GOOD ( 15.53 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel