Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp352964rwe; Fri, 14 Apr 2023 04:02:46 -0700 (PDT) X-Google-Smtp-Source: AKy350ZUEg9mfKU1mCWRpC6eDv7uKpoqm2htg+iL8yeCTc5Vs3FYMuYi0/YAgqF2nDjUClXdxrfH X-Received: by 2002:a17:903:2308:b0:1a5:32d7:90f4 with SMTP id d8-20020a170903230800b001a532d790f4mr2890093plh.50.1681470166297; Fri, 14 Apr 2023 04:02:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681470166; cv=none; d=google.com; s=arc-20160816; b=j3CJJ3oRtA3VaSfmlYrHPi2p+Rfx15VNjpqQVb8E+tds0I3oy4k/2ca2LP3PuoyopS TUwhvt1ZT0cYNNvj7XcLj5evu683jvsRcg8J3fmQ/wBf4NBSVuPYUVbn78tKx6qUO432 km39uKXJwuaZxfOIsdh6EGGi8YwrmDfgBePAJXyN9+uidzxQCXPtrePmfoWk7wjGS50i Gg0FqHYgjtx6jv9lrk9dbGLMCqxJmOlUqBdWb50vidT+so9Nf3qzGULtEU2UoUZohdtH hlWjoWD3EyOwN/ZF70KezZJ9PJ0pS5u6myI++f2Ol1Y+lzGcmT0ZBrf1mHC+jc/ANU0b bqdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=wFrC7ZS8Bxt6wRiTcgNSx3BndkppFVD6/O9xWtBYJFw=; b=xRD7cJLyhpu28v9wIgWxPo125sqYVIzojMt0JMx4FbCYW1OcwPOwVaNCsWMltv4/Mr WR94CGG/3rtkYwb2VfcpnB4D0idf75a3y3fVQ8UqFEiSxnewEz/ar0Gxv6CfnxL+36pc jxGbyHfUjRWJDazcEDFZ4SS72Gj9mVucQ3eVj+1xZ0WM0zHF29XAAdSikeQ4GyFmhcp0 otrVoTYmo6dhLzJcve+YbpI+G1XyfFN1Zzn8IzwXW1nqV4GXugmFIm//T7499zAAgsho 7xujSCV7XOtlEFJLx269UtAQqruZXQ+6K51yJW8AhSyEOsJclByDv6RTqQTEsqHD8nPc JwqA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pf1-20020a17090b1d8100b002465a26ba49si4401789pjb.149.2023.04.14.04.02.01; Fri, 14 Apr 2023 04:02:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229938AbjDNLBU (ORCPT + 99 others); Fri, 14 Apr 2023 07:01:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230019AbjDNLBN (ORCPT ); Fri, 14 Apr 2023 07:01:13 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9B00E49FF for ; Fri, 14 Apr 2023 04:01:12 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B8DA82F4; Fri, 14 Apr 2023 04:01:56 -0700 (PDT) Received: from FVFF77S0Q05N (unknown [10.57.21.222]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id AD91B3F587; Fri, 14 Apr 2023 04:01:10 -0700 (PDT) Date: Fri, 14 Apr 2023 12:01:07 +0100 From: Mark Rutland To: Johan Hovold , Arnd Bergmann Cc: Lorenzo Pieralisi , Ulf Hansson , Dmitry Baryshkov , Sudeep Holla , Daniel Lezcano , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH RESEND v2] firmware/psci: demote suspend-mode warning to info level Message-ID: References: <20230414084619.31524-1-johan+linaro@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230414084619.31524-1-johan+linaro@kernel.org> X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 14, 2023 at 10:46:19AM +0200, Johan Hovold wrote: > On some Qualcomm platforms, like SC8280XP, the attempt to set PC mode > during boot fails with PSCI_RET_DENIED and since commit 998fcd001feb > ("firmware/psci: Print a warning if PSCI doesn't accept PC mode") this > is now logged at warning level: > > psci: failed to set PC mode: -3 > > As there is nothing users can do about the firmware behaving this way, > demote the warning to info level and clearly mark it as a firmware bug: > > psci: [Firmware Bug]: failed to set PC mode: -3 > > Reviewed-by: Ulf Hansson > Acked-by: Mark Rutland > Acked-by: Sudeep Holla > Signed-off-by: Johan Hovold > --- > > This one fell between the cracks so resending with tags added. > > Mark or Lorenzo, is this something you can pick up? > > Johan Sorry about this. I don't think we have anything else in this area, so Arnd, are you happy to pick this via the soc tree? Thanks, Mark. > > > drivers/firmware/psci/psci.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/firmware/psci/psci.c b/drivers/firmware/psci/psci.c > index 29619f49873a..d9629ff87861 100644 > --- a/drivers/firmware/psci/psci.c > +++ b/drivers/firmware/psci/psci.c > @@ -167,7 +167,8 @@ int psci_set_osi_mode(bool enable) > > err = invoke_psci_fn(PSCI_1_0_FN_SET_SUSPEND_MODE, suspend_mode, 0, 0); > if (err < 0) > - pr_warn("failed to set %s mode: %d\n", enable ? "OSI" : "PC", err); > + pr_info(FW_BUG "failed to set %s mode: %d\n", > + enable ? "OSI" : "PC", err); > return psci_to_linux_errno(err); > } > > -- > 2.39.2 >