Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp484874rwi; Thu, 27 Oct 2022 04:05:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7xpQq2cQxRy5b6na1H82XIYSGqsB9yfxov40WJ10AK2MVbcoWfRycGiZ0e9YvsTenJHwqU X-Received: by 2002:a17:903:124b:b0:179:da2f:2457 with SMTP id u11-20020a170903124b00b00179da2f2457mr48490556plh.156.1666868730988; Thu, 27 Oct 2022 04:05:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666868730; cv=none; d=google.com; s=arc-20160816; b=A/Y5JDgWU+5gVJ6bMCXAc4z53tAigEJXU2LY3RF7UCyG9uM7xoa0aOpbtKypuhZCPW +/IOdY+SwavRr9tYegktmgtij2k8VJeiXVJ2AJBXAz7FYQ0kR0Amnm8PBqmm3Yb1QAIY 7Rj1NlXjrdOklhqlCyR7XqXU3FESKp7LeqaB7xdhH4L/KpTAPqM6ibbboeiyJmC09SrL mRzkiJbJJl28MFhQxzc/WG8T+GyctXu4ZgvQq+K1kcuB3ts5STGj59BJqVI/13blYu/v kQXo8hjwQ+eF+lUalPUq6zuLJiBs5NSPJbS4kXPaQMh5WOqyOm5utLNmmt9RVS+yfTU0 7Ksg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=hlaoocS4MZnDHm38p7D1UovyrWTozjBn8G/40n9AuA8=; b=s2b34pSZHM+mef1/9kmy9yw3Ju5dE8xdNeuTaQGHqsQ+LJBTSX+XPBVA3onhIoTTHP iETiIRojREexVP12U40hPamJxkyXcjE5a1P2UQ6ylI6N0N8IaA8eujM+RxuZmXBvscmf TyeElJqGWnfrx7kYYkkKnOiCA+NTQ0Eaa/KlgsVPDDtg7THhBPMD7pUjgVHLZfL63nqM sN12/Xxb5DPZQsud737/p66NikNFEFe6a8Zym8PUk1xkFzKulZFiRnh+e4f6rcCCUpBr NRqDn/BXjRjzwGkww/yv3mxbwuFQFa+oyTYnChMfGQ8MBSQW1dctWOGXhLjWqI+r3hqF +J9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QJSiT2HK; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f3-20020a63de03000000b0045e00b905cbsi1235199pgg.73.2022.10.27.04.05.15; Thu, 27 Oct 2022 04:05:30 -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; dkim=pass header.i=@linaro.org header.s=google header.b=QJSiT2HK; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234742AbiJ0LAE (ORCPT + 99 others); Thu, 27 Oct 2022 07:00:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234862AbiJ0K7y (ORCPT ); Thu, 27 Oct 2022 06:59:54 -0400 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 798A54F6B6 for ; Thu, 27 Oct 2022 03:59:51 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id d9so1049846pll.7 for ; Thu, 27 Oct 2022 03:59:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=hlaoocS4MZnDHm38p7D1UovyrWTozjBn8G/40n9AuA8=; b=QJSiT2HKg5jD6mBZnvsY7HHtyFz2Td3oi6rU4UGF3pg+NfJNR6EXeurVFyTNbTAvOE UQ2fEtgLr1opfzi36d9LbmnhQYyBgVhnTJL1a48i7V0Ix9sZRbBs6LhXuUK5yo49n6Kw LwNoKDb2eJkSMKjuidW182+Mi/Q9lJZTsvliKtAIBBtd4V+ACi9sW7K6EmuO93exDaB1 94OPyMnhz//b4ILi/eInpA3dlmaPRgkUN5IhV3jNMJN1KDAqU2I+/MkiYlfeW7wzfXJA TQbl1o7Qm68LfnFMOZVA/NVp73YsFCKnvzUTl+Vf+qZhZADNCYaEe1yETSfY4UOA949p iwqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=hlaoocS4MZnDHm38p7D1UovyrWTozjBn8G/40n9AuA8=; b=4YPPVh9cBnKXdLxUSTtiraEiDOfE6GicvlDflAX5RyDOEEzL/tviWmYIaQjxHBQOCJ tB2sZi90Cm/M9TrJaCwlDbaooUS5Vwebm9RBVUf/ifo4IJz/WriCd3JxqtQjfqX3UTWP viPqEJeHoFOJkvOUTyYk4JQC8jM/166IaJalXtqfpV+eOR6UCDrZqk3HAOebLJZArk+D JVUYkgoGeCHqATzTN9a81H7tqwiSftFitYwcfxYa7kJlzBdCs7iLfex8ACOBlWJ/6TJ3 rc3TWh5kue6gJP4PlvFJtH+5au0gqgF6iU0TBwU6YJxH5/ciKuMQVvqOU8ZvLPQUxGSV hVbA== X-Gm-Message-State: ACrzQf1nF7Vo6mwCW5T8J1qcI4Iutv++0SGBDd2W5olcuByjGG5Bqp7n NOIkIAkQQox1NImIOgfuTkqqf8uU9r6jcusY2qYD3g== X-Received: by 2002:a17:903:246:b0:179:96b5:1ad2 with SMTP id j6-20020a170903024600b0017996b51ad2mr48234592plh.37.1666868390941; Thu, 27 Oct 2022 03:59:50 -0700 (PDT) MIME-Version: 1.0 References: <20221026135445.8004-1-johan+linaro@kernel.org> In-Reply-To: <20221026135445.8004-1-johan+linaro@kernel.org> From: Ulf Hansson Date: Thu, 27 Oct 2022 12:59:14 +0200 Message-ID: Subject: Re: [PATCH v2] firmware/psci: demote suspend-mode warning to info level To: Johan Hovold Cc: Mark Rutland , Lorenzo Pieralisi , Dmitry Baryshkov , Sudeep Holla , Daniel Lezcano , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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, 26 Oct 2022 at 15:57, 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 Using the info level seems like a good compromise to me! So, Reviewed-by: Ulf Hansson Kind regards Uffe > --- > 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 >