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 C994CC4332F for ; Mon, 13 Nov 2023 04:04:44 +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=OlLrwPguywqvWImLzb1Egq/5tcSlOtHWWnXHo4IMc88=; b=nKpP5f/yDLR6N+ CncnngYh75DZHCnMtwh9esHGyTQyyBIzBnUSqoOeOlsBlrZYI5pVry0Uv6mjBbwXd4h8tjTEjFc05 iA3AWlaWoSHD0dnny1pYvhFe9V4FAcP+LMYoMdccj05zKPo0YqYFQSMMPuNY150syDL1BKI21CFH6 fH8rPWJFy6mkK8du1Goz2DKRWuyoWxVsLmPmfPXhwW9aQJp4qRCuEVA9SoDruNB3gIBUzCWxjHbIE nZO0BCo+T99wee4ZRx+rvi+tv3f+UQbikWXcJzB5wmrMDLSegdOb6kbNd17+aCKrpHwVz8YvMDeKZ fbbZozNpNHLp7TkfiUhg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r2OBL-00DBK9-15; Mon, 13 Nov 2023 04:04:15 +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 1r2OBI-00DBIN-2k for linux-arm-kernel@lists.infradead.org; Mon, 13 Nov 2023 04:04:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1699848248; 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=MtNFooCff3vqCOUxCEz1jHRl+QbfPpBEZibpqDAaoCg=; b=My2WWweh8U1qeObJ2g8zEcXNUI3TkqsggCEzixeElxmoQdy9Y0p/zLrGDs8eAaiq986wyy tFDOmuaB151AckTRLL/7euer1gy1Q4KuI6TGkXwWmfWSSASAyVOCsoJu5pzkpKsa/rKlJq GoLqHp3i9DcI9xYrLaxKz/BOm3uFtsg= Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-103-T7dozTqMNdSfQbGDGbiDCg-1; Sun, 12 Nov 2023 23:04:04 -0500 X-MC-Unique: T7dozTqMNdSfQbGDGbiDCg-1 Received: by mail-pl1-f199.google.com with SMTP id d9443c01a7336-1cc2786a8ebso54597755ad.0 for ; Sun, 12 Nov 2023 20:04:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699848243; x=1700453043; 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=MtNFooCff3vqCOUxCEz1jHRl+QbfPpBEZibpqDAaoCg=; b=SMOjDTo83TluJRI2nWlNIoaAXdNcHhk4MB/AklJN7cirFcqPojW5Cs9fI0+oSt9TCP y6fBHyEssIljmgnFHCLJgdBNBwr+P7UzH0mvDiNsBLlJIwKzSF5h/ikl5RifGBMK24K9 gMHvhL0rNzk2BnqJ299Aoo48oWG7xEJ4Yj52B2tyKgJKG46kxawxwfx4cThfNcVujtr3 BOn4/0VLAN202hqQFSrJt7rl8y49GwtNgnop8d3KUU12a/RqSoFbQQSFIDo2IKxXYnMG EupZ+T6jF1zUnhgJ67ACYoiHFUpXfZ4eOb5no6lLqoSiFzdo7IhEnmpFrIp2aJDxknpb 9iFQ== X-Gm-Message-State: AOJu0YwmlcX+JMjaVHU2M+w7uv5w2c90lH38vhhjxgk0/0TL7HiAzijs q0VOjhmKzXTfMU5pxdES8iZTeCXwriw7x9rGVBY18mxn+7dnGW7t81vzQ1tAkS0jZxAUz3IvgGE SiSljKsaTEnrV9q4e7n5cAW9x7Vn3sDJ046Q= X-Received: by 2002:a17:903:124b:b0:1cc:3f10:4175 with SMTP id u11-20020a170903124b00b001cc3f104175mr7395302plh.28.1699848243619; Sun, 12 Nov 2023 20:04:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IHIUBgi1/lc4Y3idUGi3EHadW6QYxPGSgwR1L+ZBVEJt2K4HesJHzLX8fXA3t0WRPADwpmGUg== X-Received: by 2002:a17:903:124b:b0:1cc:3f10:4175 with SMTP id u11-20020a170903124b00b001cc3f104175mr7395280plh.28.1699848243280; Sun, 12 Nov 2023 20:04:03 -0800 (PST) Received: from ?IPV6:2001:8003:e5b0:9f00:b890:3e54:96bb:2a15? ([2001:8003:e5b0:9f00:b890:3e54:96bb:2a15]) by smtp.gmail.com with ESMTPSA id u18-20020a170902e5d200b001c62d63b817sm3216342plf.179.2023.11.12.20.03.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Nov 2023 20:04:02 -0800 (PST) Message-ID: Date: Mon, 13 Nov 2023 14:03:53 +1000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFC 12/22] 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-20231112_200412_961287_AB4128A6 X-CRM114-Status: GOOD ( 15.42 ) 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/7/23 20:30, 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) > 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