[PATCH v2] riscv: acpi: Handle LPI architectural context loss flags
lihuisong (C)
lihuisong at huawei.com
Tue Jul 28 18:34:38 PDT 2026
On 7/28/2026 7:47 PM, Peixin Xie wrote:
> Commit 4785aa802853 ("cpuidle, ACPI: Evaluate LPI arch_flags for
> broadcast timer") replaced the generic nonzero check for LPI
> architectural context loss flags with arch_get_idle_state_flags().
> RISC-V does not implement the helper, so it falls back to the stub
> that returns 0. Consequently, CPUIDLE_FLAG_TIMER_STOP is not set when
> an LPI state loses the hart timer context, preventing cpuidle from
> using a broadcast timer for that state.
>
> Implement the RISC-V helper and map the hart timer context loss flag
> to CPUIDLE_FLAG_TIMER_STOP.
>
> Fixes: 4785aa802853 ("cpuidle, ACPI: Evaluate LPI arch_flags for broadcast timer")
> Cc: stable at vger.kernel.org
> Acked-by: Sudeep Holla <sudeep.holla at kernel.org>
> Reviewed-by: Yixun Lan <dlan at kernel.org>
> Signed-off-by: Peixin Xie <peixin.xie at linux.spacemit.com>
> ---
LGTM,
Reviewed-by: Huisong Li <lihuisong at huawei.com>
>
More information about the linux-riscv
mailing list