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 B6E26C38A2D for ; Wed, 26 Oct 2022 13:59:03 +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-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=FzOEsZVabgrdWmf8tl4RTy4kK+aYIn9FPrU8A06YMcs=; b=FABozb6N76URoR w2N03z3/L97JqLLwVSDBCRDii02KYAkJuzKEbbdnRzjv5n5RWD8I34hKHX+FyqwvPqLCr11J0GM4Q g9rJ5EJszllhrUDTBlsgi7b2sKsZlcZtaqJodyJD4hWZXwr3TjiE7EXLd4rB6GjcJpfEU9PTUOTo0 qrLLEardiwuzq5Xe1i0FEIkvyFQV1hGhYdRiNJAJL3v7898z2cJ1BjbZCy8n8WYoZiVFlX3jScPRi 6zaFeeG/6dCP/MRI4B1uNsFe0LMETnNcrpFoRiI24nxqrcijzeepmdUCBbsBeMUJsYoW8NhmrEIdP 6LmTDtCtVtmKyAuxBN3w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1onguj-009aZJ-LS; Wed, 26 Oct 2022 13:57:49 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ongug-009aY9-4w for linux-arm-kernel@lists.infradead.org; Wed, 26 Oct 2022 13:57:47 +0000 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 dfw.source.kernel.org (Postfix) with ESMTPS id C3C1D61EB1; Wed, 26 Oct 2022 13:57:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2473BC433D6; Wed, 26 Oct 2022 13:57:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666792664; bh=t4btE/+qdMMC0jKvmw5NCgtrdHE2HNaZB5p9dfo+HMU=; h=From:To:Cc:Subject:Date:From; b=YrVxNDdhLRgt4PR45aJuqDkjiIqL+57Y58mohI/g8KvpTf8IyUPI5yjThSO51OBiy xhm6vtccUlGArHk977rZkB3+FZ9seglvIOZDyJIZM7pOChdqAkDr75kaL/NqkBnYoy 6SCefp9HcxJCW7R/yfDY/SF/ATwkefo4lttt4OJhVxxFgOFeB1ydwfPTPLQCplF2OL 3bLWapzQrWoyKubZxG03hlXOOqI5AUDlY6s1IXQ3XNfvnSoxYJG59TbZ8+LUFLYQPw QolQN/SQJffGfiE4t6f0Qsqu7hcGQzN63UXoKSW6JHR0BmHwJS3fEtE9rMMeVeQljv Z8pjJ/CR5ecsw== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1onguM-00026t-U4; Wed, 26 Oct 2022 15:57:27 +0200 From: Johan Hovold To: Mark Rutland , Lorenzo Pieralisi Cc: Ulf Hansson , Dmitry Baryshkov , Sudeep Holla , Daniel Lezcano , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH v2] firmware/psci: demote suspend-mode warning to info level Date: Wed, 26 Oct 2022 15:54:45 +0200 Message-Id: <20221026135445.8004-1-johan+linaro@kernel.org> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221026_065746_247470_E43306D5 X-CRM114-Status: GOOD ( 13.69 ) 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-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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); } -- 2.37.3 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel