From patchwork Tue Oct 19 15:42:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 12570425 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DEE89C433EF for ; Tue, 19 Oct 2021 15:42:32 +0000 (UTC) Received: by mail.kernel.org (Postfix) id BCC67610D0; Tue, 19 Oct 2021 15:42:32 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 34C4A610C7; Tue, 19 Oct 2021 15:42:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634658152; bh=PzKP3/tt8FyXJKALEVAz3Lzi8tiJUSHRmqxuTbhlj5A=; h=From:To:List-Id:Cc:Subject:Date:From; b=HmCMkgqKwEn05FCXBNK9w77enTzERmW4F0dO1h3jQEgTuP9Trg6M7FapzjzpTt+o4 jsN87ioTkEOcVDXc59WL1kzsgJ55v9AgS528cQlAO4xz2/BOv6pq59hIhmrpGxTbZp HPiwqKzpzKLpiEGDY5NfhA7WGlZzZ7keC2qOPGjuFciXi+toweBX7dL8XQKOA5JJs8 t3kb/72wuz9cNc57mKFMQ5AaWOf/2Zt0RveauI2WgqqdO3Y9yfCpTguk4BOG4MRcKG sn1OpJDLpSpJZSrPscdGBYaLm70+tXO07wvNk2seqJdolliGJOqiYrbCjc8zf7WJlc yIWiKT1hkn75A== From: Arnd Bergmann To: linux-pm@vger.kernel.org List-Id: Cc: soc@kernel.org, Daniel Lezcano , "Rafael J . Wysocki" , linux-arm-msm@vger.kernel.org, Bjorn Andersson , Arnd Bergmann , Andy Gross , Lina Iyer , John Stultz , Maulik Shah , Stephen Boyd , AngeloGioacchino Del Regno , Srinivas Kandagatla , Mahesh Sivasubramanian , Ulf Hansson , Stephan Gerhold , "Rafael J. Wysocki" , He Ying , linux-kernel@vger.kernel.org Subject: [PATCH 1/3] qcom: spm: allow compile-testing Date: Tue, 19 Oct 2021 17:42:02 +0200 Message-Id: <20211019154224.624204-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 From: Arnd Bergmann ARM_QCOM_SPM_CPUIDLE can be selected when compile-testing on other architectures, but this causes a Kconfig warning for QCOM_SPM: WARNING: unmet direct dependencies detected for QCOM_SPM Depends on [n]: ARCH_QCOM [=n] Selected by [y]: - ARM_QCOM_SPM_CPUIDLE [=y] && CPU_IDLE [=y] && (ARM [=y] || ARM64) && (ARCH_QCOM [=n] || COMPILE_TEST [=y]) && !ARM64 && MMU [=y] Make it possible to also compile-test this one, which can be done now that v5.15-rc5 lets you select QCOM_SCM everywhere. Fixes: a871be6b8eee ("cpuidle: Convert Qualcomm SPM driver to a generic CPUidle driver") Fixes: 498ba2a8a275 ("cpuidle: Fix ARM_QCOM_SPM_CPUIDLE configuration") Signed-off-by: Arnd Bergmann Reviewed-by: Stephen Boyd --- Bjorn, if you think this is the right solution, let me know and I can apply it on top of the drivers branch that I have already pulled into the soc tree. Alternatively, this could go through the cpuidle tree, along with the other two patches. --- drivers/soc/qcom/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig index 3cf3a6b41182..e718b8735444 100644 --- a/drivers/soc/qcom/Kconfig +++ b/drivers/soc/qcom/Kconfig @@ -192,7 +192,7 @@ config QCOM_SOCINFO config QCOM_SPM tristate "Qualcomm Subsystem Power Manager (SPM)" - depends on ARCH_QCOM + depends on ARCH_QCOM || COMPILE_TEST select QCOM_SCM help Enable the support for the Qualcomm Subsystem Power Manager, used From patchwork Tue Oct 19 15:42:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 12570427 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 58B65C433F5 for ; Tue, 19 Oct 2021 15:42:52 +0000 (UTC) Received: by mail.kernel.org (Postfix) id 3D08E610D0; Tue, 19 Oct 2021 15:42:52 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id C5435610C7; Tue, 19 Oct 2021 15:42:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634658172; bh=M2/DuCNHUjvCKFyP3G3bM4ucVMkbsqwMpxtgwkUAdV4=; h=From:To:List-Id:Cc:Subject:Date:In-Reply-To:References:From; b=TGYxGhZP3QNX+PVQnpvdd55aC6FI7RSV/BNGegiUx6dfWI3c+cr0zfoumxmXLVGnZ Ad5P8xVF1/boXaxkAdFVRaHx5xDOwkMkBz4KDDsY8rkVIFP81tqQdwEFieL9TwWc94 99Wqjp+O1+ojOU6VPC3aOTKXJ0KChLTj1vhwF6q10nVisbF09vPH/HSz6tMRjQm48S 2T61OLeUd7UULGLkbKNI+TG07WjOkcGAlohqTMvvyb39/NOOxDwfM+yD2SU8sWUOBx /rR7qJySE9w9DMeK0TR2ThBoy1pK1Ml1lW3/ojhiCNlWeNV2DhJJmrfDmoXuxU+rra UwB/X0nhf1R4A== From: Arnd Bergmann To: linux-pm@vger.kernel.org, "Rafael J. Wysocki" , Daniel Lezcano List-Id: Cc: soc@kernel.org, linux-arm-msm@vger.kernel.org, Bjorn Andersson , Arnd Bergmann , Dmitry Osipenko , Stephan Gerhold , He Ying , AngeloGioacchino Del Regno , Thierry Reding , linux-kernel@vger.kernel.org Subject: [PATCH 2/3] cpuidle: tegra: add ARCH_SUSPEND_POSSIBLE dependency Date: Tue, 19 Oct 2021 17:42:03 +0200 Message-Id: <20211019154224.624204-2-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20211019154224.624204-1-arnd@kernel.org> References: <20211019154224.624204-1-arnd@kernel.org> MIME-Version: 1.0 From: Arnd Bergmann Some StrongARM processors don't support suspend, which leads to a build failure with the tegra cpuidle driver: WARNING: unmet direct dependencies detected for ARM_CPU_SUSPEND Depends on [n]: ARCH_SUSPEND_POSSIBLE [=n] Selected by [y]: - ARM_TEGRA_CPUIDLE [=y] && CPU_IDLE [=y] && (ARM [=y] || ARM64) && (ARCH_TEGRA [=n] || COMPILE_TEST [=y]) && !ARM64 && MMU [=y] arch/arm/kernel/sleep.o: in function `__cpu_suspend': (.text+0x68): undefined reference to `cpu_sa110_suspend_size' Add an explicit dependency to make randconfig builds avoid this combination. Fixes: faae6c9f2e68 ("cpuidle: tegra: Enable compile testing") Reviewed-by: Dmitry Osipenko Signed-off-by: Arnd Bergmann --- drivers/cpuidle/Kconfig.arm | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpuidle/Kconfig.arm b/drivers/cpuidle/Kconfig.arm index 15d6c46c0a47..74df12e23546 100644 --- a/drivers/cpuidle/Kconfig.arm +++ b/drivers/cpuidle/Kconfig.arm @@ -100,6 +100,7 @@ config ARM_MVEBU_V7_CPUIDLE config ARM_TEGRA_CPUIDLE bool "CPU Idle Driver for NVIDIA Tegra SoCs" depends on (ARCH_TEGRA || COMPILE_TEST) && !ARM64 && MMU + depends on ARCH_SUSPEND_POSSIBLE select ARCH_NEEDS_CPU_IDLE_COUPLED if SMP select ARM_CPU_SUSPEND help From patchwork Tue Oct 19 15:42:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 12570429 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 317E6C433F5 for ; Tue, 19 Oct 2021 15:43:04 +0000 (UTC) Received: by mail.kernel.org (Postfix) id 136D2610D0; Tue, 19 Oct 2021 15:43:04 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 53BBD60FC1; Tue, 19 Oct 2021 15:43:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634658184; bh=rCk56Q0Aiym91RUACht5HuPWcUT81DkZGP8YO/HnRAg=; h=From:To:List-Id:Cc:Subject:Date:In-Reply-To:References:From; b=ZMYAwNGt3AKDlyheUH55Gm6Gtci7bGCU38T/xVIr6pyiR815HLSszjkq2uS+f67Iq ytVp8K4WGOKdh2KOx2NZYVlgAeqPqbi8gPcxNWjPNbERKDpfN03moxQBj+H9J0GHtJ XC4nL9sE+PGXdapPcN+YHpJHwWipvdz5043Vmaw9nXXS6RamiEzrZkfAJBx6oj4UEu +1ZobNG3rtXuaRdKHj5q0PbSlDqTWMg3xrl9RRJZj5oWeCV2Q3/reDk4ZIMKiawONO mLBjG9wYJfvLbz3r9+xFpwCObFTSNFKcTFalKLnCGeaREmGQc+I2Ncc2jZink55Yx7 vZA6oMee5R6ng== From: Arnd Bergmann To: linux-pm@vger.kernel.org, "Rafael J. Wysocki" , Daniel Lezcano List-Id: Cc: soc@kernel.org, linux-arm-msm@vger.kernel.org, Bjorn Andersson , Arnd Bergmann , Dmitry Osipenko , Thierry Reding , He Ying , AngeloGioacchino Del Regno , Ulf Hansson , Lina Iyer , Stephan Gerhold , linux-kernel@vger.kernel.org Subject: [PATCH 3/3] cpuidle: qcom: add ARCH_SUSPEND_POSSIBLE dependency Date: Tue, 19 Oct 2021 17:42:04 +0200 Message-Id: <20211019154224.624204-3-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20211019154224.624204-1-arnd@kernel.org> References: <20211019154224.624204-1-arnd@kernel.org> MIME-Version: 1.0 From: Arnd Bergmann Some StrongARM processors don't support suspend, which leads to a build failure with the tegra cpuidle driver: WARNING: unmet direct dependencies detected for ARM_CPU_SUSPEND Depends on [n]: ARCH_SUSPEND_POSSIBLE [=n] Selected by [y]: - ARM_QCOM_SPM_CPUIDLE [=y] && ... arch/arm/kernel/sleep.o: in function `__cpu_suspend': (.text+0x68): undefined reference to `cpu_sa110_suspend_size' Add an explicit dependency to make randconfig builds avoid this combination. Fixes: a871be6b8eee ("cpuidle: Convert Qualcomm SPM driver to a generic CPUidle driver") Signed-off-by: Arnd Bergmann --- drivers/cpuidle/Kconfig.arm | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpuidle/Kconfig.arm b/drivers/cpuidle/Kconfig.arm index 74df12e23546..1b4f5ae1ee05 100644 --- a/drivers/cpuidle/Kconfig.arm +++ b/drivers/cpuidle/Kconfig.arm @@ -109,6 +109,7 @@ config ARM_TEGRA_CPUIDLE config ARM_QCOM_SPM_CPUIDLE bool "CPU Idle Driver for Qualcomm Subsystem Power Manager (SPM)" depends on (ARCH_QCOM || COMPILE_TEST) && !ARM64 && MMU + depends on ARCH_SUSPEND_POSSIBLE select ARM_CPU_SUSPEND select CPU_IDLE_MULTIPLE_DRIVERS select DT_IDLE_STATES