Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp644238rwi; Thu, 27 Oct 2022 06:05:06 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7pLTJYfLXHbNDcXbE1lQrnPqQGLTWxc3gWZ8KfGB2BCLnqWNvka7rvExzie7MSXnz9cvUv X-Received: by 2002:a17:906:4fd1:b0:787:434f:d755 with SMTP id i17-20020a1709064fd100b00787434fd755mr40659555ejw.356.1666875906344; Thu, 27 Oct 2022 06:05:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666875906; cv=none; d=google.com; s=arc-20160816; b=0XqAG3M32rbVZpUz65Ax9SeVEDCOrd/U/xAFYxu/yVizDvL76S3iIFRcIaPhpbEZ+g bYjHW4P8XGc7VCUcO5+gV8iN2xaCtPDju+VHIVPzok1GtoLA5FLYDvSQRY4DcfM3nVnp laBGcWFe4ctJo0oUBSbKTB+j1i5LZm7FJMkiIV5f8No2prZeCDwLWiDPaBeBE/Bx87FQ eddOY+wcx93rKJ56Pth1VnggsOZu9kNnS3jtNL2ADJMVSfAbRtH8Ql+FzDl+6DNlq8yE TEMOmZ6Y3aa0f7TkH+zgvFCu0CBDLZCmRYHtGB4OYHbYZJlVpwpX3PkbUc30+0N8q/4S i4OQ== 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=wJc3J1k3JkYd0jYlKcSPyrOjmLlNe7og4+L7wCM6r/0=; b=PfDorOINjxPyMoyf7TzKL4OCF//vB1n7LoDflbl+qenYykqToC058YmjTGMjZdI1mI SibKLAlT3AFYtxaRWGZTSGUe30O/eYI2JRTKGgVWGGIGBAaCj5/4XOBfFiLvY0h++Fxi 2CV299k5UZY1r3BI0meLSaDTTs7hKOUlNe4dtztAb25yeo9d5gAPYKme1HZ+/JOUVQO/ s9uw0zPErF4vvWkH3vjUX97WNT9zPmwANYGQcK7jgKciViGbNyiqaNoayiRIgopD7oKG eqTajOt8wYaHibEsD1ZIZbtXi514NvpapisP0x+paUEmwbmtTr06FfiSD5eYBZ+qZ/XX msZg== 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 i17-20020a17090671d100b00782035a06b4si1079763ejk.200.2022.10.27.06.04.19; Thu, 27 Oct 2022 06:05:06 -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 S234985AbiJ0MQH (ORCPT + 99 others); Thu, 27 Oct 2022 08:16:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234698AbiJ0MQF (ORCPT ); Thu, 27 Oct 2022 08:16:05 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AAB92DCE92 for ; Thu, 27 Oct 2022 05:16:03 -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 B80D023A; Thu, 27 Oct 2022 05:16:09 -0700 (PDT) Received: from FVFF77S0Q05N (unknown [10.57.1.184]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 07EE03F7B4; Thu, 27 Oct 2022 05:16:01 -0700 (PDT) Date: Thu, 27 Oct 2022 13:15:59 +0100 From: Mark Rutland To: Johan Hovold , Sudeep Holla Cc: Lorenzo Pieralisi , Ulf Hansson , Dmitry Baryshkov , Daniel Lezcano , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] firmware/psci: demote suspend-mode warning to info level Message-ID: References: <20221026135445.8004-1-johan+linaro@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221026135445.8004-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 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 Wed, Oct 26, 2022 at 03:54:45PM +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 > > Signed-off-by: Johan Hovold On the assumption that we don't have any latent issues in this case, this looks ok to me, so: Acked-by: Mark Rutland Sudeep, does this reasonable to you? Are there any latent issues that mean we should keep this as a pr_warn()? 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 e7bcfca4159f..f8fa32f0a130 100644 > --- a/drivers/firmware/psci/psci.c > +++ b/drivers/firmware/psci/psci.c > @@ -165,7 +165,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.37.3 >