lkml.org 
[lkml]   [2022]   [Nov]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH 2/3] clk: qcom: lpass-sc7180: Fix pm_runtime usage
Quoting Douglas Anderson (2022-11-04 06:56:29)
> The sc7180 lpass clock controller's pm_runtime usage wasn't broken
> quite as spectacularly as the sc7280's pm_runtime usage, but it was
> still broken. Putting some printouts in at boot showed me this (with
> serial console enabled, which makes the prints slow and thus changes
> timing):
> [ 3.109951] DOUG: my_pm_clk_resume, usage=1
> [ 3.114767] DOUG: my_pm_clk_resume, usage=1
> [ 3.664443] DOUG: my_pm_clk_suspend, usage=0
> [ 3.897566] DOUG: my_pm_clk_suspend, usage=0
> [ 3.910137] DOUG: my_pm_clk_resume, usage=1
> [ 3.923217] DOUG: my_pm_clk_resume, usage=0
> [ 4.440116] DOUG: my_pm_clk_suspend, usage=-1
> [ 4.444982] DOUG: my_pm_clk_suspend, usage=0
> [ 14.170501] DOUG: my_pm_clk_resume, usage=1
> [ 14.176245] DOUG: my_pm_clk_resume, usage=0
>
> ...or this w/out serial console:
> [ 0.556139] DOUG: my_pm_clk_resume, usage=1
> [ 0.556279] DOUG: my_pm_clk_resume, usage=1
> [ 1.058422] DOUG: my_pm_clk_suspend, usage=-1
> [ 1.058464] DOUG: my_pm_clk_suspend, usage=0
> [ 1.186250] DOUG: my_pm_clk_resume, usage=1
> [ 1.186292] DOUG: my_pm_clk_resume, usage=0
> [ 1.731536] DOUG: my_pm_clk_suspend, usage=-1
> [ 1.731557] DOUG: my_pm_clk_suspend, usage=0
> [ 10.288910] DOUG: my_pm_clk_resume, usage=1
> [ 10.289496] DOUG: my_pm_clk_resume, usage=0
>
> It seems to be doing roughly the right sequence of calls, but just
> like with sc7280 this is more by luck than anything. Having a usage of
> -1 is just not OK.
>
> Let's fix this like we did with sc7280.

Any Fixes tag?

>
> Signed-off-by: Douglas Anderson <dianders@chromium.org>
> ---

Reviewed-by: Stephen Boyd <swboyd@chromium.org>

\
 
 \ /
  Last update: 2022-11-04 22:21    [W:1.993 / U:0.648 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site