Message ID | 20230206193319.4107220-1-arnd@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2426161wrn; Mon, 6 Feb 2023 11:46:29 -0800 (PST) X-Google-Smtp-Source: AK7set/p/w3T7puGZayrFtnKMFFmVsd/x/3UQmXaJCPs9D7rQJ52Z7QhyshQyYR041grpDU/f6RY X-Received: by 2002:a17:906:1b1a:b0:885:23bc:3174 with SMTP id o26-20020a1709061b1a00b0088523bc3174mr511215ejg.70.1675712789565; Mon, 06 Feb 2023 11:46:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675712789; cv=none; d=google.com; s=arc-20160816; b=ssbOwtXsZyqDIaX8//hx23J0w+LvapVd+qSNb8RMd1UljZ/p+kv+f4v76QKcqMQcKx o05cgAaEis4S+g+epGF0FV+vef/JW3Zb0iqlIZe9vwq4Zm0WBVSTsaQ7b1R4VwWgSbFd TzqEpPU7J1oOoSb3ZqO2+dh58s9FCoVk05MFBDcCOZnixnRy/lp/jgbVzrI9gTTcIOZS WJfOvMctG4hSmncajUzhzShstkE6yKOB834OI774ljfP8GED+G6ErwaQMy8L3biinzbZ fHxGSmhO256/58VkYH702jaiyVE7sRFTwOHSd7qLkcg9nqX83W6a34nDQWO6ojfrrPoe CS8g== 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=zbUrQfKMRQm/niKNZE/0cAQN+vzgfR2hNR72m7G2E3Y=; b=rGTUe+sKzGTw8xUV6fzR4nkB7vpLbAmnuqe2evr8iSITsekj6MIziUwM1HqEt1k0D/ fsvH8BjLPLBt7wA+hyef+ZJaWhfn94I4nqSvyBg92d6rzlPU36kMGoHlNpNwE2EDk7NG /8Ssn73TTWgvYv4u169S6sTUsv+2mrvDvctG7f5dcaBaRo5bmIrv8DnQQ6ms2GIruVeQ 1mRbC8YWN6LiPn8ByETSgAliBHJga4GLV5qczGi4PJleBKF98L4s5Bg+YMi9Z6A3XUTf cFlXWciVtmIoo9Jea+eO/MxiWjwUtyN6WnMTsbHZv+8KhDx3JKp0onm4doRFGV3UucpD sdYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ImtggLDg; 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 p8-20020a170907910800b00886d6deb818si12094159ejq.966.2023.02.06.11.46.06; Mon, 06 Feb 2023 11:46:29 -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=ImtggLDg; 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 S230177AbjBFTd1 (ORCPT <rfc822;kmanaouilinux@gmail.com> + 99 others); Mon, 6 Feb 2023 14:33:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229588AbjBFTd0 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 6 Feb 2023 14:33:26 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF50A2278B; Mon, 6 Feb 2023 11:33:25 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 43AE460F66; Mon, 6 Feb 2023 19:33:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4A8B3C4339E; Mon, 6 Feb 2023 19:33:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1675712004; bh=ltcx1qeeSJScHI0s0nVFJOfuuP7m+2Wa2sIT/EiYuZU=; h=From:To:Cc:Subject:Date:From; b=ImtggLDgTQjbm4+Rd+XzSaineQh+lSsrx9T+nppGBn1ETBctz4xNDJtKYVMYPezx8 7NWdzl8HQsSL6BrMfbpMCO0WG5MpRnJqMgRuPVRwuw/o8SUdLy2/M5iBVw7QI3r3fQ uQWmx9Ah0UZaDKEBYXhXs9eR/ptv6OB3UcLCZIBcHzRgwE0DYxWK+6/2nHjFhrkWYp w02AR6A7LqO89qwGxekiWCn35trq7u3E085fpSLrKVjpNOW5CsZZsCxhgNLJq6US5m oWvJFskxFwMiUTrpW/Vm5Tf7r+Qiml0mNbLAkx/3rJTcEMbkDw+3HggMZPeaY+Jf8G Q072lcxVoZaRw== From: Arnd Bergmann <arnd@kernel.org> To: "Rafael J. Wysocki" <rafael@kernel.org>, Daniel Lezcano <daniel.lezcano@linaro.org>, Dmitry Osipenko <digetx@gmail.com> Cc: Arnd Bergmann <arnd@arndb.de>, Randy Dunlap <rdunlap@infradead.org>, stable@vger.kernel.org, Anup Patel <anup@brainfault.org>, Sudeep Holla <sudeep.holla@arm.com>, Ulf Hansson <ulf.hansson@linaro.org>, Michael Walle <michael@walle.cc>, Thierry Reding <treding@nvidia.com>, Bjorn Andersson <andersson@kernel.org>, Lina Iyer <ilina@codeaurora.org>, Stephan Gerhold <stephan@gerhold.net>, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] [v2] cpuidle: add ARCH_SUSPEND_POSSIBLE dependencies Date: Mon, 6 Feb 2023 20:33:06 +0100 Message-Id: <20230206193319.4107220-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757112214027537699?= X-GMAIL-MSGID: =?utf-8?q?1757112214027537699?= |
Series |
[v2] cpuidle: add ARCH_SUSPEND_POSSIBLE dependencies
|
|
Commit Message
Arnd Bergmann
Feb. 6, 2023, 7:33 p.m. UTC
From: Arnd Bergmann <arnd@arndb.de> Some ARMv4 processors don't support suspend, which leads to a build failure with the tegra and qualcomm 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' (.text+0x68): undefined reference to `cpu_fa526_suspend_size' Add an explicit dependency to make randconfig builds avoid this combination. Fixes: faae6c9f2e68 ("cpuidle: tegra: Enable compile testing") Fixes: a871be6b8eee ("cpuidle: Convert Qualcomm SPM driver to a generic CPUidle driver") Link: https://lore.kernel.org/all/20211013160125.772873-1-arnd@kernel.org/ Cc: Randy Dunlap <rdunlap@infradead.org> Cc: stable@vger.kernel.org Reviewed-by: Dmitry Osipenko <digetx@gmail.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- I found this in my backlog of patches that never made it upstream, testing shows this is still needed. Please apply. --- drivers/cpuidle/Kconfig.arm | 2 ++ 1 file changed, 2 insertions(+)
Comments
On Mon, Feb 06, 2023 at 08:33:06PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@arndb.de> > > Some ARMv4 processors don't support suspend, which leads > to a build failure with the tegra and qualcomm 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' > (.text+0x68): undefined reference to `cpu_fa526_suspend_size' > > Add an explicit dependency to make randconfig builds avoid > this combination. > > Fixes: faae6c9f2e68 ("cpuidle: tegra: Enable compile testing") > Fixes: a871be6b8eee ("cpuidle: Convert Qualcomm SPM driver to a generic CPUidle driver") > Link: https://lore.kernel.org/all/20211013160125.772873-1-arnd@kernel.org/ > Cc: Randy Dunlap <rdunlap@infradead.org> > Cc: stable@vger.kernel.org > Reviewed-by: Dmitry Osipenko <digetx@gmail.com> > Signed-off-by: Arnd Bergmann <arnd@arndb.de> > --- > I found this in my backlog of patches that never made it upstream, > testing shows this is still needed. Please apply. > --- > drivers/cpuidle/Kconfig.arm | 2 ++ > 1 file changed, 2 insertions(+) Acked-by: Thierry Reding <treding@nvidia.com>
On Tue, Feb 7, 2023 at 11:14 AM Thierry Reding <treding@nvidia.com> wrote: > > On Mon, Feb 06, 2023 at 08:33:06PM +0100, Arnd Bergmann wrote: > > From: Arnd Bergmann <arnd@arndb.de> > > > > Some ARMv4 processors don't support suspend, which leads > > to a build failure with the tegra and qualcomm 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' > > (.text+0x68): undefined reference to `cpu_fa526_suspend_size' > > > > Add an explicit dependency to make randconfig builds avoid > > this combination. > > > > Fixes: faae6c9f2e68 ("cpuidle: tegra: Enable compile testing") > > Fixes: a871be6b8eee ("cpuidle: Convert Qualcomm SPM driver to a generic CPUidle driver") > > Link: https://lore.kernel.org/all/20211013160125.772873-1-arnd@kernel.org/ > > Cc: Randy Dunlap <rdunlap@infradead.org> > > Cc: stable@vger.kernel.org > > Reviewed-by: Dmitry Osipenko <digetx@gmail.com> > > Signed-off-by: Arnd Bergmann <arnd@arndb.de> > > --- > > I found this in my backlog of patches that never made it upstream, > > testing shows this is still needed. Please apply. > > --- > > drivers/cpuidle/Kconfig.arm | 2 ++ > > 1 file changed, 2 insertions(+) > > Acked-by: Thierry Reding <treding@nvidia.com> Applied as 6.3 material, thanks!
diff --git a/drivers/cpuidle/Kconfig.arm b/drivers/cpuidle/Kconfig.arm index 747aa537389b..f0714a32921e 100644 --- a/drivers/cpuidle/Kconfig.arm +++ b/drivers/cpuidle/Kconfig.arm @@ -102,6 +102,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 @@ -110,6 +111,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