Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5487064pxb; Wed, 26 Jan 2022 13:11:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJwK4UWCje94IueaEge66QQI59FIACGT4UIHeNlP12WB44wzVhhKAlJ/1aA6zFpU0n/LVnls X-Received: by 2002:a17:90a:d983:: with SMTP id d3mr10667806pjv.56.1643231499871; Wed, 26 Jan 2022 13:11:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643231499; cv=none; d=google.com; s=arc-20160816; b=NwaRMUej/ISYqjj590Sh/rhPvKTuPKLtGQLz7zEINe8BAOu+PRb5EvFDwdlkPpkiMV sKFMNxdxCWcMuwz6NCmgWVXqsdHwgSPJA/FeCXEqAz4bbZTFeXrfsvtS0Sht21WrwKZT 6fKumDoaZwA9UeWD8U1Zoops5r6leBuGqxjspNjhwXCIOPKfySHjAEtSuX/BbL1V/bCJ JPN+5zm0Hx1VycFaxegJjGacikrTMJac3kFCfjTgOVchjeaRq5ZY+MmhLcMyorebzBAY LhYkxOxtazdTS30aD1VkrdcSwhyhRrv0ijkhwrP+V3rHMPVcLE7PQJUbo57kehNVZCxx GK2Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Qlm9yJ5575SFpR6IPywQKZmVoP3waSVFMhfeayBNTbA=; b=B8MyFxEbI6j8punzb7wMQLyiVPMw4mELHfW+81dCzdjTCT8vgm9xJeQmGgeX5iT2m7 ZUQtDuEwdsIg1y7cATVkNStbrURfhLQKLn0XI1/0hGCVBqI2oeTSrXLZ559e6fAjzPfv 9bDYoVfBMtaLvI4adQ4FhBti9Qx11+EH04Dyrcaq+XrErHCFyVM26S3HCMDXQLhd6K4I uBy2PNKc/I8YB+J9r/QliHH574zbX5kHyEejac5bXID1//asq65UyIRVU+OnYgdsptAR B4KboQEq1z9sh5W7BPlyyX+H9yM1n2x68ckLcu/5Q45X3MQQgVQPvQKTFESEXTk8/sOx HtEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=NxPkbSYm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e18si236370plj.334.2022.01.26.13.11.27; Wed, 26 Jan 2022 13:11:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=NxPkbSYm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234080AbiAZLqJ (ORCPT + 99 others); Wed, 26 Jan 2022 06:46:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240936AbiAZLqF (ORCPT ); Wed, 26 Jan 2022 06:46:05 -0500 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1AE6C061747 for ; Wed, 26 Jan 2022 03:46:04 -0800 (PST) Received: by mail-pj1-x102f.google.com with SMTP id z10-20020a17090acb0a00b001b520826011so4339134pjt.5 for ; Wed, 26 Jan 2022 03:46:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Qlm9yJ5575SFpR6IPywQKZmVoP3waSVFMhfeayBNTbA=; b=NxPkbSYmWFaN95PyEIyPwgodGezgxN3X9MixZlR066DnPRYP1cobNH9jAB0s36cd6Q ySyqYaENca2IZRgGQsDbpuJFvsHU6cJdWGNL1curR2mCiF8abcRZQmPiQzg/zhsMQ5JJ QNzC6lLAd3RwZnM+Jc1hmNjgk7ltV6+5WXz6vpdS9M41r9UxCnPIRDujIbXdLnDT1Brv XGJniw06BlrVTKgOvTCCvzeU9yuE7ayYWiVJn3FRJs7KZJ7M0NtnU5zARFaFfXGrWMwM DyggnPkk1X3mse6C96lNLVMsMReVj905raBJcjodRFOJ9LmxzzryAcFoB1vnmSUEoQ/Q 6t1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Qlm9yJ5575SFpR6IPywQKZmVoP3waSVFMhfeayBNTbA=; b=5ORSk9yJunkUdKvJJO2xY0DYuShvVQcN9zHgl60+pISHi5Ra5OJulGTQnrzICGvmOU HmgWdcE/EzQG/S+jfv0/7RQLmpuoS8W9kMefGeA2oH1+lJCsd3vqkZYZ0e5XmscPK3H6 iH5qT3rPyVQuXcfczxGCGqhkQ+GH1SFtXdgLX9yeVY6BuVfD7gWNiSPtyTMOAbGH6lmp 8gkTtYuPdTW4kurm39NW2PRu16n5tYWUFpUiP6Lq0dtuCcTVlBfp6EosuCzRUm8V6Z++ Qf8zIugC1NZ8h2L6Le4Bf2ZJTxhm6ZUrkcqCiYhKuYHGtA7DvHIBkPoFe9B9y2/5URqx OQDA== X-Gm-Message-State: AOAM530VaBHYJBE+mquB4nsEyzBHeI64MsUgm1UAUp2D2/koMCHjfg9q dUgboNdfu+hNhxAbQJfJhNtfIw== X-Received: by 2002:a17:902:8c97:b0:14a:ec66:bbb0 with SMTP id t23-20020a1709028c9700b0014aec66bbb0mr22332418plo.68.1643197564511; Wed, 26 Jan 2022 03:46:04 -0800 (PST) Received: from localhost.localdomain ([122.167.221.23]) by smtp.gmail.com with ESMTPSA id nn2sm2994976pjb.35.2022.01.26.03.45.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jan 2022 03:46:04 -0800 (PST) From: Anup Patel To: Palmer Dabbelt , Paul Walmsley , Albert Ou , Daniel Lezcano , Ulf Hansson , "Rafael J . Wysocki" , Pavel Machek , Rob Herring Cc: Sandeep Tripathy , Atish Patra , Alistair Francis , Liush , Anup Patel , 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, kvm-riscv@lists.infradead.org, Anup Patel Subject: [PATCH v10 8/8] RISC-V: Enable RISC-V SBI CPU Idle driver for QEMU virt machine Date: Wed, 26 Jan 2022 17:14:52 +0530 Message-Id: <20220126114452.692512-9-apatel@ventanamicro.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220126114452.692512-1-apatel@ventanamicro.com> References: <20220126114452.692512-1-apatel@ventanamicro.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Anup Patel We enable RISC-V SBI CPU Idle driver for QEMU virt machine to test SBI HSM Supend on QEMU. Signed-off-by: Anup Patel Signed-off-by: Anup Patel --- arch/riscv/Kconfig.socs | 3 +++ arch/riscv/configs/defconfig | 1 + arch/riscv/configs/rv32_defconfig | 1 + 3 files changed, 5 insertions(+) diff --git a/arch/riscv/Kconfig.socs b/arch/riscv/Kconfig.socs index 6ec44a22278a..f4097a815201 100644 --- a/arch/riscv/Kconfig.socs +++ b/arch/riscv/Kconfig.socs @@ -36,6 +36,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 a5e0482a4969..b8c882b70b02 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_VIRTUALIZATION=y CONFIG_KVM=m diff --git a/arch/riscv/configs/rv32_defconfig b/arch/riscv/configs/rv32_defconfig index d1b87db54d68..6f9a7c89bff9 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_VIRTUALIZATION=y CONFIG_KVM=m -- 2.25.1