[RFC PATCH 1/1] riscv: sbi: Introduce system suspend support
Leyfoon Tan
leyfoon.tan at starfivetech.com
Tue Jan 10 06:55:20 PST 2023
>
> source "kernel/power/Kconfig"
> diff --git a/arch/riscv/include/asm/sbi.h b/arch/riscv/include/asm/sbi.h index
> 4ca7fbacff42..9834ba4ce3e4 100644
> --- a/arch/riscv/include/asm/sbi.h
> +++ b/arch/riscv/include/asm/sbi.h
> @@ -29,6 +29,7 @@ enum sbi_ext_id {
> SBI_EXT_RFENCE = 0x52464E43,
> SBI_EXT_HSM = 0x48534D,
> SBI_EXT_SRST = 0x53525354,
> + SBI_EXT_SUSP = 0x53555350,
> SBI_EXT_PMU = 0x504D55,
>
> /* Experimentals extensions must lie within this range */ @@ -113,6
> +114,14 @@ enum sbi_srst_reset_reason {
> SBI_SRST_RESET_REASON_SYS_FAILURE,
> };
>
> +enum sbi_ext_susp_fid {
> + SBI_EXT_SUSP_SUSPEND = 0,
Macro name with "*_SYSTEM_SUSPEND" is better? Avoid confusing with CPU suspend.
> +};
> +
> +enum sbi_ext_susp_sleep_type {
> + SBI_SUSP_SLEEP_TYPE_SUSPEND = 0,
This should be SBI_SUSP_SLEEP_TYPE_SUSPEND_TO_RAM?
Regards
Ley Foon
More information about the linux-riscv
mailing list