Message ID | 20210609122715.3389-9-anup.patel@wdc.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-pm-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 69FD5C48BCF for <linux-pm@archiver.kernel.org>; Wed, 9 Jun 2021 12:28:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 55423613B1 for <linux-pm@archiver.kernel.org>; Wed, 9 Jun 2021 12:28:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233288AbhFIMa0 (ORCPT <rfc822;linux-pm@archiver.kernel.org>); Wed, 9 Jun 2021 08:30:26 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:39931 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233224AbhFIMaX (ORCPT <rfc822;linux-pm@vger.kernel.org>); Wed, 9 Jun 2021 08:30:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1623241709; x=1654777709; h=from:to:cc:subject:date:message-id:in-reply-to: references:content-transfer-encoding:mime-version; bh=1uLrgPfppmFH2vM6/L/JqMHBvAu4tkt7ZHOK+EuhRKU=; b=cV/Z9mbjmaZRatFehSQ66MmadUTN+Xy94ZCL0YHImT+LRQ1IU+DwX4VJ ipJyk2SwJOkTQc+adgWSU/P1SZafyeCRRBtXIa0/whjy9MXK4ph08vZ+E JAS3eRpvH9BdLWT8r1e/MjND3hspbv4k/AtDc6+ZLfa6GbxstnCgow1Am Ww+uYj0y0qMVZDe4O9gXtA6+M5fpj51feposkTeBIB2V9qC4Ou1aoqRHR bDUV4VEpiwIWJ1OXnkznENhIBpqf/s1cU7r2+SzaNXx54qWQppW7gVROd QRe+yHFx4IsqrpjHf/hle3FxTJADlzBCob0Yq7dWHBmaygGvFhdXF3zsA Q==; IronPort-SDR: mFiVePYHg/MEl6L+MSlzNJH/51zxxW3m0VAKTnwTgSdNgo5U6gVQBeRtk7PpMX00J2CQPdWV4S 8UyqKgkkLvCkcuV957t0m0fcTt52asjpTaETBlhjG5bQyqb1t6AgwsfaDPi3Lw+QpdI/dCfMYV ggzIZW3eHnFKn2lj+Bdpbx1NLqiy8mNl8dw8aPsHX81pINfykz95ZpT6A8gBEwhYIEByaMbd1F 8g6SNDwu3omcQjMqncfhLsafOK0IL+8Y+5aej4fKasgShZnUzIY0mVE3vPXkb+eZ056O8CJ+e5 jQM= X-IronPort-AV: E=Sophos;i="5.83,260,1616428800"; d="scan'208";a="170576660" Received: from mail-mw2nam10lp2103.outbound.protection.outlook.com (HELO NAM10-MW2-obe.outbound.protection.outlook.com) ([104.47.55.103]) by ob1.hgst.iphmx.com with ESMTP; 09 Jun 2021 20:28:22 +0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gUxkyylDtDIYsNS3Y4cGSFmnwzvqC+4Puio/GZz+AIT9jJUtIN1HGXlPH52XD1F/1+a8DRedQ5Yee0FZsub2kjo9EZXAv8BUCwKB4tPhr6sJA6nwZq3a0QBH39KSAnNoVtxbjentlyL74mGBuFzqEGjKrDF1b0wscCMowhXjKGFBIHBTWL8WnRn1pld/2EoVpBRZo8lA8CZr/EO3cI4YQWDnQQ61rQ/IOfcVQBIBNfryhHI2b78I0nNmupYAJWrAIs6Td1rKqgKggYgGVmi97b3EABcB/Lzf02TukJl0yvj+1cYuLm2HanUsKF35cfhDtikjBP2OFYrvS2W+IUPI8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rip7XFR0BFk/jcVrblzy2OjHhUZycRZYHU6/NmyDcb8=; b=Ri+mftxB6KnOD1VUT3VaHJvsEZlxOTxlJnHxEk5tXAMVh1Ys3sc5RZBR5obe8y7GlkpaDJzYpiFeabzKdNk53R6azHLjKBbPy8rRNkOrjP1gdiAG4cvVqasa6bvUIL0LvDRMQNny8HM5FCYSamHhl/RPYzRZP2xGR3+kzOVUYCPr0eZUCOWIT/MDn1KtyeqsSuFX4C9bOgBdZIOKmLvBgTiIBw8iDbdln11nUHnFjBTePWA9Ru7LuHyJCArbUtdM+gB0xrGxR59RCnHLdEkdHNInik2QigMmFChQbAQNsQ7t0ERUEKLcGftqyFwJHhBZixy3lrB+xKoudPYvn3MlDg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wdc.com; dmarc=pass action=none header.from=wdc.com; dkim=pass header.d=wdc.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector2-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rip7XFR0BFk/jcVrblzy2OjHhUZycRZYHU6/NmyDcb8=; b=dLezWy/o38fJTAhNSENeqak3nRJOM3yWB0tkVwJT6CkvRkjovEdTJB/vwuqNZK1fQn6G9PuwbakB++NuAqhhj4jp7xLMwLQxPOlzMAFjKLpa7KFdF52n7Wgc/pw4k+iC0iz963H1J1G4orCv3fBkFhIfC1j62V3r09PJcnbq6FA= Authentication-Results: dabbelt.com; dkim=none (message not signed) header.d=none; dabbelt.com; dmarc=none action=none header.from=wdc.com; Received: from CO6PR04MB7812.namprd04.prod.outlook.com (2603:10b6:303:138::6) by CO6PR04MB7843.namprd04.prod.outlook.com (2603:10b6:5:35f::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21; Wed, 9 Jun 2021 12:28:21 +0000 Received: from CO6PR04MB7812.namprd04.prod.outlook.com ([fe80::a153:b7f8:c87f:89f8]) by CO6PR04MB7812.namprd04.prod.outlook.com ([fe80::a153:b7f8:c87f:89f8%9]) with mapi id 15.20.4219.021; Wed, 9 Jun 2021 12:28:21 +0000 From: Anup Patel <anup.patel@wdc.com> To: Palmer Dabbelt <palmer@dabbelt.com>, Palmer Dabbelt <palmerdabbelt@google.com>, Paul Walmsley <paul.walmsley@sifive.com>, Albert Ou <aou@eecs.berkeley.edu>, Daniel Lezcano <daniel.lezcano@linaro.org>, Ulf Hansson <ulf.hansson@linaro.org>, "Rafael J . Wysocki" <rjw@rjwysocki.net>, Pavel Machek <pavel@ucw.cz>, Rob Herring <robh+dt@kernel.org> Cc: Sandeep Tripathy <milun.tripathy@gmail.com>, Atish Patra <atish.patra@wdc.com>, Alistair Francis <Alistair.Francis@wdc.com>, Liush <liush@allwinnertech.com>, Anup Patel <anup@brainfault.org>, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Anup Patel <anup.patel@wdc.com> Subject: [PATCH v6 8/8] RISC-V: Enable RISC-V SBI CPU Idle driver for QEMU virt machine Date: Wed, 9 Jun 2021 17:57:15 +0530 Message-Id: <20210609122715.3389-9-anup.patel@wdc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210609122715.3389-1-anup.patel@wdc.com> References: <20210609122715.3389-1-anup.patel@wdc.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [122.172.176.125] X-ClientProxiedBy: MA1PR0101CA0033.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:22::19) To CO6PR04MB7812.namprd04.prod.outlook.com (2603:10b6:303:138::6) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from wdc.com (122.172.176.125) by MA1PR0101CA0033.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:22::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Wed, 9 Jun 2021 12:28:16 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7e15b2b1-0a88-40d0-e6bb-08d92b421174 X-MS-TrafficTypeDiagnostic: CO6PR04MB7843: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <CO6PR04MB7843DAC84F1B1A3B96D195418D369@CO6PR04MB7843.namprd04.prod.outlook.com> WDCIPOUTBOUND: EOP-TRUE X-MS-Oob-TLC-OOBClassifiers: OLM:849; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dXKEaYwQN7Z2VW+SKHFDvptiiyusoKrRPRxmTAsOjRmqKSYWCDDGGRqhIzfMo+FnY9a76LNLRlc7YgLftjtSnxX7HIsX3RwRbwiuQqXw6ovfTC0E7VF1N9qFxPM13rRzvmjtm1UYP8dUaOPRM2t4gc+Q0CBgNvvVEPGyiKvFlr5ktQD9O0VAuJzqLDVeTbC6+0lJEXlOXPlNYCDxiyhZFa83f1C2PZSAM2aRwL0M8AwajVhez4MKf17AEz7V1MSJ+kEniU8Rjm+3DRByIGdywUPM45/aWa+n0FVWrn/Zk4XK6LhJQVRmO5doxMdDCKqBsLLfdemU+IQTo22KB9gcSdhKgU70eSb6RAKT/ib4jsmz0cXzhpHNhDG0fL8u5H6RAUBC9nfHX1HbjAWzbFWyEiGIwVYp3ieQ3bIlPA9PmHZbuEp5YRMyYGWaqzes9r8WUiHXZ5MtBLWgiSj/kns7dHOuZcjkRRgT9AtcNOMQqJPThsAXbrylkG2jLR4ky+vFtS5Sqj8q1iDz8KDpgz727ngTsCdJu8tMaY5fd6xLUSB4v7ftiLfqsh51JXHe+JDuPKzxY9sbqI9SM6wb/ksKfp9EYu+aIroB9+CrughD87v65H9TwndrjxGWYnzqfIEAsCbbWMqd8gcUaA99bHfaDw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR04MB7812.namprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(39860400002)(396003)(366004)(136003)(376002)(7416002)(4326008)(8676002)(8886007)(478600001)(110136005)(956004)(316002)(86362001)(44832011)(2616005)(38350700002)(52116002)(2906002)(55236004)(7696005)(26005)(8936002)(38100700002)(1076003)(55016002)(66476007)(66556008)(66946007)(36756003)(16526019)(186003)(5660300002)(54906003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 8SfEfsUSpDqWnDH+QBknwXGh456NOjYaJdpC0v9ge1wHEIibwGXSv6uW4wmx1OZ/fGdm2EwQzQ09I/x/VB/wnxVWW+yjftfuWsJDib+oJk9eVdpUtSxNvFnrG2LdN3Os0F6SfXuKPCfWuReMgrbCCj02IdbREfbvBqFZi5E7sxoO0x20i/Fws3Z2dFIxLAH/ySOEho2SIJl1qdMcJFVhvTEj9aSSedi2Hd9vGipmrUkg2c7TI0pQRln1p37xFmjSA6J6PN2+fI5jy9Yxrg2xUVRHhQK9BXup0A5EnW7d1q22oVfPpf3V+9L+hd2T/PBK7ZNiv2q7B6SxASQZwDGDvuCA+EeFsGbK3crtQLSTNn3p8K+SBFC1a9cnHKhsaAPSN37Jk2+P6sCz5Fp0D2pHfQv0D0LdOMVwJH9lvxnkJRR5QW35WHmj7YC+uUZVLxh8gbtcDqrTQexcW03fvMUBWEGtb00/orKwRZPRvbJzIGrSZ1TqajrsonsGjxJ3Q0TZ20XABAcZppoa1QozUaVMYTokIslwb7Jr9jcOv8zruTVT1ViwgI0XrpMatwlwDfTVd7ah0GxBLB9UvuJY29MxMh7hRsXU7ODaBlzW/wwC7L0NrTTKUkQkB3gaB7B5LbzMo+RvnaJTrpiCkbu46xDkm9OamajX+5EIk8HWSbl8GtMwad1eaWP+RPddET81iBXpwdgeLXrAcL+mVypdTEjywBD1kC5YyRlMhPTuCaK49nxkJQC7qumFddvQVK8Du24KKkY+Gp6VpkTQPpzBsBu6/ZNayImCkITcgODtyRnwqFcSoJ8emLNZ3UcWZxe+PcbcuSV9GsO/9KlLvAtPz9GWnKWXV4qzylFMcLa0OkCOXCQpCGcWyTlqW8/kJRz33t1VsVI3DtJQitDGWdXbp6aNbU9p3nOSMB+yZ7O4+q2/PxNNHcCOQFAHg+NGhQ8vW0hH6AvLP4xoIqg847dDj/vpKEW7OqVnb+0E6FoEbgITW0Wqb7KXJPbwaN1T/Ru4xzzxTAP+lBmwp81PN2p5scKrN5XvunL8fq+B3PqxeHSaRYF3wmujudP9UJUyPmv/cbCMMTtIrSqzPY6mpL1wYma6n5z8kpN8FFoEVZjqxYBuD3rW1gj9LQ516E01Vbl++6qSCC6OvmqIGF506ubkd1Bh6IYXEayGvwlTZoZEZw+ptJrMc+XyyKZHYDKm5azwuYBLfw8RKhBllciqX9yh6VoL6pnpw7OXkzvSCgDuyixiJ+4noE9AdJYAJ+j5QAx7LR0Z1JpkTWwacW8uoCYt9NO3nVEi9Dx4grfich7CR0m9JAC5mJBaPFDVADox1YzHS7jf X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7e15b2b1-0a88-40d0-e6bb-08d92b421174 X-MS-Exchange-CrossTenant-AuthSource: CO6PR04MB7812.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jun 2021 12:28:21.1799 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: H0OYOjlVvN2PkAmDygje8/Lz2C/nJEVN9hNLfAIS6HsSrtctDkhWcmIou8jUgCxn0NPQU4sMuguDuyJ6a+OKLw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR04MB7843 Precedence: bulk List-ID: <linux-pm.vger.kernel.org> X-Mailing-List: linux-pm@vger.kernel.org |
Series |
RISC-V CPU Idle Support
|
expand
|
diff --git a/arch/riscv/Kconfig.socs b/arch/riscv/Kconfig.socs index ed963761fbd2..3ae937121a77 100644 --- a/arch/riscv/Kconfig.socs +++ b/arch/riscv/Kconfig.socs @@ -27,6 +27,9 @@ config SOC_VIRT select GOLDFISH select RTC_DRV_GOLDFISH if RTC_CLASS select SIFIVE_PLIC + select PM_GENERIC_DOMAINS if PM + select PM_GENERIC_DOMAINS_OF if PM && OF + select RISCV_SBI_CPUIDLE if CPU_IDLE help This enables support for QEMU Virt Machine. diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig index 57a24d40d43f..ed71f125cbc9 100644 --- a/arch/riscv/configs/defconfig +++ b/arch/riscv/configs/defconfig @@ -20,6 +20,7 @@ CONFIG_SOC_SIFIVE=y CONFIG_SOC_VIRT=y CONFIG_SMP=y CONFIG_HOTPLUG_CPU=y +CONFIG_PM=y CONFIG_CPU_IDLE=y CONFIG_JUMP_LABEL=y CONFIG_MODULES=y diff --git a/arch/riscv/configs/rv32_defconfig b/arch/riscv/configs/rv32_defconfig index 97d899df2445..0088d6989332 100644 --- a/arch/riscv/configs/rv32_defconfig +++ b/arch/riscv/configs/rv32_defconfig @@ -20,6 +20,7 @@ CONFIG_SOC_VIRT=y CONFIG_ARCH_RV32I=y CONFIG_SMP=y CONFIG_HOTPLUG_CPU=y +CONFIG_PM=y CONFIG_CPU_IDLE=y CONFIG_JUMP_LABEL=y CONFIG_MODULES=y
We enable RISC-V SBI CPU Idle driver for QEMU virt machine to test SBI HSM Supend on QEMU. Signed-off-by: Anup Patel <anup.patel@wdc.com> --- arch/riscv/Kconfig.socs | 3 +++ arch/riscv/configs/defconfig | 1 + arch/riscv/configs/rv32_defconfig | 1 + 3 files changed, 5 insertions(+)