Messages in this thread | | | Date | Tue, 12 Oct 2021 18:31:18 +0900 | From | "Hector Martin \"marcan\"" <> | Subject | Re: [RFC PATCH 4/9] opp: core: Don't wa rn if required OPP device does not exist |
| |
On 2021年10月12日 18:26:03 JST, Viresh Kumar <viresh.kumar@linaro.org> wrote: >On 12-10-21, 14:57, Hector Martin wrote: >> >> This is arguably not entirely representative of how the hardware works, >> since technically the cluster switching couldn't care less what the memory >> controller is doing; it's a soft dependency, states that should be switched >> together but are not interdependent (in fact, the clock code does this >> unconditionally after the CPU p-state change, regardless of whether we're >> shifting up or down; this is, FWIW, the same order macOS uses, and it >> clearly doesn't matter which way you do it). > >Yeah, I understand what you are doing. But the current patch is >incorrect in the sense that it can cause a bug on other platforms. To >make this work, you should rather set this genpd as parent of CPU >devices (which are doing anyway since you are updating them with CPU's >DVFS). With that the clk driver won't be required to do the magic >behind the scene. >
That doesn't work, though, because the CPUs aren't normal devices with runtime-pm. That was the first thing I tried :).
If you think this *should* be made to work instead then I can try that.
-- Hector Martin "marcan" (marcan@marcan.st) Public key: https://mrcn.st/pub
| |