Re: [PATCH RFC 03/16] OPP: Retry failed default single-clock transitions
From: Dmitry Baryshkov
Date: Wed Oct 14 2026 - 10:37:04 EST
On Wed, Oct 14, 2026 at 02:19:03PM +0200, Konrad Dybcio wrote:
> From: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx>
>
> A failed OPP transition need not leave the clock at the last successful
> OPP's frequency. If hardware changed before the error, the default
> single-clock path can subsequently skip a necessary retry because its
What is a necessary retry? Shouldn't it be: try, rollback if it fails?
> cached OPP matches the request. It can also choose voltage and dependency
> ordering relative to the wrong operating point.
>
> Treat an incomplete transition as dirty and use the observed clock rate
> to establish retry direction. Do not trust same-OPP or same-rate
> shortcuts, or allow table disable, until the state has been reconciled.
>
> Limit this to the default single-clock path: custom callbacks can have
> additional state which cannot be recovered from a clock-rate readback.
>
> Assisted-by: LLM
> Signed-off-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx>
> ---
> drivers/opp/core.c | 72 +++++++++++++++++++++++++++++++++++++++++++++++-------
> drivers/opp/opp.h | 2 ++
> 2 files changed, 65 insertions(+), 9 deletions(-)
>
--
With best wishes
Dmitry