From patchwork Mon Oct 24 14:34:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 9561 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp526911wru; Mon, 24 Oct 2022 09:00:02 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7ctoqtcd78ECT5aDMLt4AdqUDRfvzz5Rr80Ic7MXYoTK1CHiSbVYmev5sBXY6i3jimoSYE X-Received: by 2002:a17:907:2e01:b0:78d:e768:e845 with SMTP id ig1-20020a1709072e0100b0078de768e845mr28219220ejc.484.1666627202774; Mon, 24 Oct 2022 09:00:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666627202; cv=none; d=google.com; s=arc-20160816; b=sz+/Nrfc6hnGXgt5a/JIc9mCaXKh1UFcsCcy02Af1ot+4fZAqiN+Kcd2VNCbJM3ihX EHL6wmU3hVh1mUcLleDlzneEIROg4X6KzdFitKT4EeepVNFhgWRQhOad28UIUWcMP6+4 QD8em5UpZQ4XlZyoRJ+tRa0iSm4GT0YY/TmHxavyT+OtwHG4ht5yhCpGmHY0F2BYnzB0 V7WSW6u+wbB3HOwSTe3HYsaDjIz5z7c+O345bYlQJh+/GM6EiRtb/o18dUDh4g7tL/qE dazBW3U7t/SrmSJi5xnjOZkFvrS9nihjFur0R+bWaDLiMJFiywkQxXPBbaN1fiNEaRRT E6eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=3t5x8whF290JU5HcZdu5kuZ+mvCBejatMNVm/rMoGu8=; b=HmVIIkAcBqYTPgtguVO4GN42NL5th7+fDIXPIY93iKpOvFU4AFlPmSRQh27XJwau+3 YDnHJ1zok0Vlq+LWtna7+1iUZH6zOfvU941wly0vle/OE2GE67g4OegXYG76oG3EjCJR Dx/WLyjD+ANZtWLzHYyYHRIXKyQs3LNhj8mKXy+QhuQP4IPO1Gro85t0SdaBU1EaZ6Rv DntKhwLAuhidr7eo/cPG2FX9S3qV+Y3TDwjQCsu1ivS8OG6SyQfFZceJ/L3MNEKt+de1 9M9l9DIsmvZDdqGuwTkg0aMMzJL29lxYCLICIVWtY8i8DE+ipKMIYj32IH63QDrZjkNv MVYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jlYzoYpq; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y5-20020a056402440500b004587cd5a5bdsi194164eda.81.2022.10.24.08.59.39; Mon, 24 Oct 2022 09:00:02 -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=@kernel.org header.s=k20201202 header.b=jlYzoYpq; 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 S230291AbiJXPuq (ORCPT + 99 others); Mon, 24 Oct 2022 11:50:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231817AbiJXPuV (ORCPT ); Mon, 24 Oct 2022 11:50:21 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 658601DF16 for ; Mon, 24 Oct 2022 07:44:30 -0700 (PDT) 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 2DCA861411 for ; Mon, 24 Oct 2022 14:36:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B210C433C1; Mon, 24 Oct 2022 14:36:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666622183; bh=3kVC08NNnjFfypW5XVgXQUIfx+GRlGJ5ATemF0ZLdmw=; h=From:To:Cc:Subject:Date:From; b=jlYzoYpqGGQYY02ihbgVoc81e1agDYRoPao2MzOMdUiTfSm00R8EQj1B0+NtYNZ22 3t3gE0TeKcerQKjRrMvIVjbe3+DVRkQpUKMhrXRQiNvcoS+2WBdyTou6ou4Y2rsZQx eFGFxTtN+QyzIA9ijbAW0JaBNA2Gv1VKXtlX/P9ofeyKcxfbUXF13l0gE+ehTNu4/H VTDJsT2znJ7Y35vnFo68kaubli2YNgpSYAzyzQ7dcu2oAyg8eFdA29W1P5XFioaOuq 1v83QMhC44vsh0vQJez6dgChusgYSM9ykg4XQ29Yx5+w8ee7H0qDZJc6Ze6DU1YJKl D99mm77T8l6wQ== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1omyYh-00030Y-7j; Mon, 24 Oct 2022 16:36:07 +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] firmware/psci: demote suspend-mode warning to debug level Date: Mon, 24 Oct 2022 16:34:17 +0200 Message-Id: <20221024143417.11463-1-johan+linaro@kernel.org> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 X-Spam-Status: No, score=-7.6 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747585285996910815?= X-GMAIL-MSGID: =?utf-8?q?1747585285996910815?= On some Qualcomm platform, 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 debug level. Signed-off-by: Johan Hovold Acked-by: Dmitry Baryshkov Reviewed-by: Ulf Hansson --- Note that a separate change to the cpuidle driver will start logging the mode actually used: https://lore.kernel.org/all/20221020115513.93809-1-ulf.hansson@linaro.org/ Johan drivers/firmware/psci/psci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/psci/psci.c b/drivers/firmware/psci/psci.c index e7bcfca4159f..462f37fa6a86 100644 --- a/drivers/firmware/psci/psci.c +++ b/drivers/firmware/psci/psci.c @@ -165,7 +165,7 @@ 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_debug("failed to set %s mode: %d\n", enable ? "OSI" : "PC", err); return psci_to_linux_errno(err); }