Re: [PATCH] riscv: acpi: Handle LPI architectural context loss flags
Sudeep Holla <[email protected]> Tue, 28 Jul 2026 10:49:58 +0100
| Newsgroups | dev.linux.lists.spacemit,org.infradead.lists.linux-riscv,org.kernel.vger.linux-acpi,org.kernel.vger.linux-kernel,org.kernel.vger.stable |
|---|---|
| Message-ID | <20260728-wolverine-of-classic-penetration-2f6cc4@sudeepholla> |
On Tue, Jul 28, 2026 at 05:36:12PM +0800, 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.
>
Acked-by: Sudeep Holla <[email protected]>
--
Regards,
Sudeep