Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1924670rwb; Tue, 29 Nov 2022 23:00:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf4RLxBOPavcpTWq92mCc+AEBoPZAvVWGtQrH4D5RhXHItoK6/h4lh1pGnSzJiTHXqwSRib8 X-Received: by 2002:a63:5422:0:b0:46e:be03:d9b2 with SMTP id i34-20020a635422000000b0046ebe03d9b2mr34825850pgb.406.1669791659680; Tue, 29 Nov 2022 23:00:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669791659; cv=none; d=google.com; s=arc-20160816; b=g8k4aU9t3vAA6/UCNvDl6lakBURkZ3TJ8T2xJRIU9GAIF98RNYSo+BpImVddz+ICOa WblAilcBMC9s0hUx6VPrjQxTawfZsr0vLB6FpbsU8MsXrNzN6+/Peuy0FUYQ8Jk8L6Yt OnOucdMeruqihbgXbUSbhdCMZjSVjjRRntPcoT6d0C0h9Pr2lLZl8IK9oCvG4H7GUUqq U4Jt0DgexvPDtBNQATkXvALBY1pXf5/aWN74DIl5IuLpv1ea/jVoWH7N7wWtZIS9rWvt B4+dUEoAfqDyye2eMz0ZTe9t1GFRFhPgs7VOwU3qsVejS8Cv5CJF1alEGsl+fw9YAZ1o 0VnQ== 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:dkim-signature; bh=0oPIQ8kuFO1rlBL3GCFrIriAOPZF63kVDhcrP8RhCrE=; b=OdGv9R+kwXU/3Yc1Dfm6njBVd7qwJMsQk1GXUPtMcNJ3ktULlowFVq441iVYaf6Qgq bAGbhfvUM+qbKuWE2fmACyDIdwzcJakG4bEQoeblZQAhWVkVGNYaGzfPPsokOSJATTIa OcQtaYEc+MY8klNkSEbU7c0peYZJtz5D6ViO84TcopX0jOtlfvF3bllyftLxums2GPn2 rDS9GTC+vdyQ94RtD1yVjPRW9+bdmjxud0lLIc85sQXLncOp1givMqdmEPTo/esVlH5g pjSooo78VHYy5kgXPoXE2cclsvqHKbPzdSikF5es/qFSK/CqVIkR9VT0u++GFjhBpQY+ T0gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=c63HYoQR; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z8-20020a630a48000000b0046fef65f738si519647pgk.793.2022.11.29.23.00.48; Tue, 29 Nov 2022 23:00:59 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=c63HYoQR; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233202AbiK3GxO (ORCPT + 85 others); Wed, 30 Nov 2022 01:53:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232172AbiK3GxM (ORCPT ); Wed, 30 Nov 2022 01:53:12 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA715490A4 for ; Tue, 29 Nov 2022 22:53:09 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 60E60B81A67 for ; Wed, 30 Nov 2022 06:53:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E6236C433C1; Wed, 30 Nov 2022 06:53:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669791187; bh=EggWEo4gY6wAJqsf5Ch9n9RvX5agJx+Zh7mWiG7SLJo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=c63HYoQRP63HhfGAXFRzhBRh8b1o5y/5YpPAoO/UJiaFzGS9C1io8veZgzNaX45yp aHnt1wyQgabIe9eWSPtISiptkBfOiVPTGkalu1XlbFgDjWkzNd/9qmO6KTRHOO8iqR gA06wh8UpWhM2mbBil8Wt5dEl0faGPQrsA6IxrOFMGHDzvgtm63zR/G4J35pi/pc0m vA729xWGhY5rseO03g1KMyeO2hpyh50nalG20MPeyV136KL2StSk2II5cIGk5+RhtB ntU1WE90oLayO3gLSN34cel8jEXftvaCt4UdsSdckl+XqatOvsKQmOIdSBRT0QDL4R 6eXxY45Ke8Q6A== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1p0Gxw-0005Vd-B4; Wed, 30 Nov 2022 07:53:09 +0100 Date: Wed, 30 Nov 2022 07:53:08 +0100 From: Johan Hovold To: Mark Rutland , Lorenzo Pieralisi , Arnd Bergmann Cc: Ulf Hansson , Dmitry Baryshkov , Sudeep Holla , 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=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 > --- > 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); > } Mark and Lorenzo, I noticed this one hasn't been picked up yet. Is that something you will do or is Arnd supposed to take it? Johan