From nobody Mon Feb 9 18:23:03 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EF5BAC77B7E for ; Mon, 29 May 2023 10:15:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232000AbjE2KPv (ORCPT ); Mon, 29 May 2023 06:15:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231986AbjE2KPt (ORCPT ); Mon, 29 May 2023 06:15:49 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.67.158]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C3CBC4 for ; Mon, 29 May 2023 03:15:47 -0700 (PDT) X-QQ-mid: bizesmtp84t1685355326tejjficc Received: from localhost.localdomain ( [221.226.144.218]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 29 May 2023 18:15:25 +0800 (CST) X-QQ-SSF: 01200000000000304000000A0000000 X-QQ-FEAT: q+EIYT+FhZoX3l1jn5qzJL6M/L6SLyhFd6WSXwZbekqfsXe4BK/504CJqpwHH IpLCLDhljGvBZdLZQPpV4TuS3K5Vgydh9hUyyHE0in0H2h0iDbvPLIkYWfRod6+709bClut 7U7WCHCspLZe5UE0Dl+RkckTmtarCPxWRO811vkH37tuNSukWQoGDh2WWWjWomL+kDVNe7P UXXyDvH6Tq63uzsMcZ2gyJmRn/TzefecAQfO+7CCaDf3YMX91crBfA4WwrHtAud+w/3rAIZ N4zYz1wsO1AXf6LltY5zPRq/VaJlJJGeALqkXPZTX2aTsjVodht05cMO8z65Ldp+fck1Q3g hC2ZTZYZJ3TUd/n3mJ3pfG7R7FUU9hGTlYYgAsT X-QQ-GoodBg: 0 X-BIZMAIL-ID: 13277533693592484538 From: Song Shuai To: paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, conor@kernel.org, suagrfillet@gmail.com Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Song Shuai Subject: [PATCH] riscv: Enable ARCH_SUSPEND_POSSIBLE for s2idle Date: Mon, 29 May 2023 18:15:24 +0800 Message-Id: <20230529101524.322076-1-songshuaishuai@tinylab.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrgz:qybglogicsvrgz5a-3 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" With this configuration opened, the basic platform-independent s2idle is provided by the sole "s2idle" string in `/sys/power/mem_sleep`. At the end of s2idle, harts will hit the `wfi` instruction or enter the SUSPENDED state through the sbi_cpuidle driver. The interrupt of possible wakeup devices will be kept to wake the system up. And platform-specific sleep states can be provided by future ACPI and SBI SUSP extension support. Signed-off-by: Song Shuai Reviewed-by: Andrew Jones --- arch/riscv/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 348c0fa1fc8c..4bb818035585 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -805,6 +805,9 @@ config ARCH_HIBERNATION_POSSIBLE config ARCH_HIBERNATION_HEADER def_bool HIBERNATION =20 +config ARCH_SUSPEND_POSSIBLE + def_bool y + endmenu # "Power management options" =20 menu "CPU Power Management" --=20 2.20.1