Skip to content

Commit c5179ef

Browse files
avpatelpalmer-dabbelt
authored andcommitted
RISC-V: Enable RISC-V SBI CPU Idle driver for QEMU virt machine
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> Signed-off-by: Anup Patel <apatel@ventanamicro.com> Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
1 parent 1bd524f commit c5179ef

3 files changed

Lines changed: 5 additions & 0 deletions

File tree

arch/riscv/Kconfig.socs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ config SOC_VIRT
3636
select GOLDFISH
3737
select RTC_DRV_GOLDFISH if RTC_CLASS
3838
select SIFIVE_PLIC
39+
select PM_GENERIC_DOMAINS if PM
40+
select PM_GENERIC_DOMAINS_OF if PM && OF
41+
select RISCV_SBI_CPUIDLE if CPU_IDLE
3942
help
4043
This enables support for QEMU Virt Machine.
4144

arch/riscv/configs/defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ CONFIG_SOC_SIFIVE=y
2020
CONFIG_SOC_VIRT=y
2121
CONFIG_SMP=y
2222
CONFIG_HOTPLUG_CPU=y
23+
CONFIG_PM=y
2324
CONFIG_CPU_IDLE=y
2425
CONFIG_VIRTUALIZATION=y
2526
CONFIG_KVM=m

arch/riscv/configs/rv32_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ CONFIG_SOC_VIRT=y
2020
CONFIG_ARCH_RV32I=y
2121
CONFIG_SMP=y
2222
CONFIG_HOTPLUG_CPU=y
23+
CONFIG_PM=y
2324
CONFIG_CPU_IDLE=y
2425
CONFIG_VIRTUALIZATION=y
2526
CONFIG_KVM=m

0 commit comments

Comments
 (0)