G Geert Uytterhoeven #
Message details and related content
Hi Wolfram, Ulf, Simon,
While investigating suspend/resume for the R-Car Gen3 clock driver, I
noticed a clock imbalance for SDHI on Salvator-X.
After boot:
# head -2 /sys/kernel/debug/clk/clk_summary
clock enable_cnt prepare_cnt rate accuracy phase
-------------------------------------------------------------
# grep sd /sys/kernel/debug/clk/clk_summary
.sdsrc 3 3 399999984 0 0
sd3 1 1 6250000 0 0
sdif3 1 2 6250000 0 0
sd2 1 1 199999992 0 0
sdif2 1 2 199999992 0 0
sd1 0 0 199999992 0 0
sdif1 0 0 199999992 0 0
sd0 1 1 6250000 0 0
sdif0 1 2 6250000 0 0
After s2idle suspend/resume:
# grep sd /sys/kernel/debug/clk/clk_summary
.sdsrc 3 3 399999984 0 0
sd3 1 1 6250000 0 0
sdif3 2 2 6250000 0 0
sd2 1 1 199999992 0 0
sdif2 2 2 199999992 0 0
sd1 0 0 199999992 0 0
sdif1 0 0 199999992 0 0
sd0 1 1 6250000 0 0
sdif0 2 2 6250000 0 0
Enable counts are 1 before suspend, and 2 after resume.
Boot: Enabled once (also at hardware level):
platform_drv_probeFrom now on, the imbalance is gone.
Note that at boot and initial suspend, genpd does not seem to call into the
clock domain operations at all.
Presumable some call to pm_runtime_get_sync() is missing?
Thanks.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds