Message ID | c6bba235a9a6fd777255bb4f1d16492fdcabc847.1597292833.git.viresh.kumar@linaro.org |
---|---|
State | Accepted |
Commit | a4501bac0e553bed117b7e1b166d49731caf7260 |
Headers | show |
Series | [V2,1/4] opp: Enable resources again if they were disabled earlier | expand |
Hi [This is an automated email] This commit has been processed because it contains a "Fixes:" tag fixing commit: cd7ea582866f ("opp: Make dev_pm_opp_set_rate() handle freq = 0 to drop performance votes"). The bot has tested the following trees: v5.8.1, v5.7.15, v5.4.58. v5.8.1: Build OK! v5.7.15: Build failed! Errors: drivers/opp/core.c:849:17: error: ‘struct opp_table’ has no member named ‘paths’ drivers/opp/core.c:849:17: error: ‘struct opp_table’ has no member named ‘paths’ drivers/opp/core.c:849:17: error: ‘struct opp_table’ has no member named ‘paths’ drivers/opp/core.c:849:17: error: 'struct opp_table' has no member named 'paths' drivers/opp/core.c:849:17: error: ‘struct opp_table’ has no member named ‘paths’ drivers/opp/core.c:849:17: error: ‘struct opp_table’ has no member named ‘paths’ drivers/opp/core.c:849:17: error: 'struct opp_table' has no member named 'paths' drivers/opp/core.c:849:17: error: 'struct opp_table' has no member named 'paths' drivers/opp/core.c:849:17: error: ‘struct opp_table’ has no member named ‘paths’ drivers/opp/core.c:849:17: error: ‘struct opp_table’ has no member named ‘paths’ drivers/opp/core.c:849:17: error: 'struct opp_table' has no member named 'paths' drivers/opp/core.c:849:17: error: 'struct opp_table' has no member named 'paths' v5.4.58: Build failed! Errors: drivers/opp/core.c:847:17: error: ‘struct opp_table’ has no member named ‘paths’ drivers/opp/core.c:847:17: error: 'struct opp_table' has no member named 'paths' drivers/opp/core.c:847:17: error: ‘struct opp_table’ has no member named ‘paths’ drivers/opp/core.c:847:17: error: 'struct opp_table' has no member named 'paths' drivers/opp/core.c:847:17: error: ‘struct opp_table’ has no member named ‘paths’ drivers/opp/core.c:847:17: error: ‘struct opp_table’ has no member named ‘paths’ drivers/opp/core.c:847:17: error: 'struct opp_table' has no member named 'paths' drivers/opp/core.c:847:17: error: ‘struct opp_table’ has no member named ‘paths’ drivers/opp/core.c:847:17: error: ‘struct opp_table’ has no member named ‘paths’ drivers/opp/core.c:847:17: error: 'struct opp_table' has no member named 'paths' drivers/opp/core.c:847:17: error: ‘struct opp_table’ has no member named ‘paths’ drivers/opp/core.c:847:17: error: 'struct opp_table' has no member named 'paths' NOTE: The patch will not be queued to stable trees until it is upstream. How should we proceed with this patch? -- Thanks Sasha
On 19-08-20, 23:56, Sasha Levin wrote: > Hi > > [This is an automated email] > > This commit has been processed because it contains a "Fixes:" tag > fixing commit: cd7ea582866f ("opp: Make dev_pm_opp_set_rate() handle freq = 0 to drop performance votes"). > > The bot has tested the following trees: v5.8.1, v5.7.15, v5.4.58. > > v5.8.1: Build OK! > v5.7.15: Build failed! Errors: > drivers/opp/core.c:849:17: error: ‘struct opp_table’ has no member named ‘paths’ > drivers/opp/core.c:849:17: error: ‘struct opp_table’ has no member named ‘paths’ > drivers/opp/core.c:849:17: error: ‘struct opp_table’ has no member named ‘paths’ > drivers/opp/core.c:849:17: error: 'struct opp_table' has no member named 'paths' > drivers/opp/core.c:849:17: error: ‘struct opp_table’ has no member named ‘paths’ > drivers/opp/core.c:849:17: error: ‘struct opp_table’ has no member named ‘paths’ > drivers/opp/core.c:849:17: error: 'struct opp_table' has no member named 'paths' > drivers/opp/core.c:849:17: error: 'struct opp_table' has no member named 'paths' > drivers/opp/core.c:849:17: error: ‘struct opp_table’ has no member named ‘paths’ > drivers/opp/core.c:849:17: error: ‘struct opp_table’ has no member named ‘paths’ > drivers/opp/core.c:849:17: error: 'struct opp_table' has no member named 'paths' > drivers/opp/core.c:849:17: error: 'struct opp_table' has no member named 'paths' > > v5.4.58: Build failed! Errors: > drivers/opp/core.c:847:17: error: ‘struct opp_table’ has no member named ‘paths’ > drivers/opp/core.c:847:17: error: 'struct opp_table' has no member named 'paths' > drivers/opp/core.c:847:17: error: ‘struct opp_table’ has no member named ‘paths’ > drivers/opp/core.c:847:17: error: 'struct opp_table' has no member named 'paths' > drivers/opp/core.c:847:17: error: ‘struct opp_table’ has no member named ‘paths’ > drivers/opp/core.c:847:17: error: ‘struct opp_table’ has no member named ‘paths’ > drivers/opp/core.c:847:17: error: 'struct opp_table' has no member named 'paths' > drivers/opp/core.c:847:17: error: ‘struct opp_table’ has no member named ‘paths’ > drivers/opp/core.c:847:17: error: ‘struct opp_table’ has no member named ‘paths’ > drivers/opp/core.c:847:17: error: 'struct opp_table' has no member named 'paths' > drivers/opp/core.c:847:17: error: ‘struct opp_table’ has no member named ‘paths’ > drivers/opp/core.c:847:17: error: 'struct opp_table' has no member named 'paths' > > > NOTE: The patch will not be queued to stable trees until it is upstream. > > How should we proceed with this patch? We probably need to send different versions for those kernel versions. -- viresh
Hi [This is an automated email] This commit has been processed because it contains a "Fixes:" tag fixing commit: cd7ea582866f ("opp: Make dev_pm_opp_set_rate() handle freq = 0 to drop performance votes"). The bot has tested the following trees: v5.8.2, v5.7.16, v5.4.59. v5.8.2: Build OK! v5.7.16: Build failed! Errors: drivers/opp/core.c:849:17: error: ‘struct opp_table’ has no member named ‘paths’ drivers/opp/core.c:849:17: error: ‘struct opp_table’ has no member named ‘paths’ drivers/opp/core.c:849:17: error: ‘struct opp_table’ has no member named ‘paths’ drivers/opp/core.c:849:17: error: ‘struct opp_table’ has no member named ‘paths’ drivers/opp/core.c:849:17: error: ‘struct opp_table’ has no member named ‘paths’ drivers/opp/core.c:849:17: error: 'struct opp_table' has no member named 'paths' drivers/opp/core.c:849:17: error: 'struct opp_table' has no member named 'paths' drivers/opp/core.c:849:17: error: ‘struct opp_table’ has no member named ‘paths’ drivers/opp/core.c:849:17: error: ‘struct opp_table’ has no member named ‘paths’ drivers/opp/core.c:849:17: error: 'struct opp_table' has no member named 'paths' drivers/opp/core.c:849:17: error: 'struct opp_table' has no member named 'paths' v5.4.59: Build failed! Errors: drivers/opp/core.c:847:17: error: ‘struct opp_table’ has no member named ‘paths’ drivers/opp/core.c:847:17: error: ‘struct opp_table’ has no member named ‘paths’ drivers/opp/core.c:847:17: error: ‘struct opp_table’ has no member named ‘paths’ drivers/opp/core.c:847:17: error: ‘struct opp_table’ has no member named ‘paths’ drivers/opp/core.c:847:17: error: 'struct opp_table' has no member named 'paths' drivers/opp/core.c:847:17: error: ‘struct opp_table’ has no member named ‘paths’ drivers/opp/core.c:847:17: error: ‘struct opp_table’ has no member named ‘paths’ drivers/opp/core.c:847:17: error: 'struct opp_table' has no member named 'paths' drivers/opp/core.c:847:17: error: 'struct opp_table' has no member named 'paths' drivers/opp/core.c:847:17: error: ‘struct opp_table’ has no member named ‘paths’ drivers/opp/core.c:847:17: error: ‘struct opp_table’ has no member named ‘paths’ drivers/opp/core.c:847:17: error: 'struct opp_table' has no member named 'paths' drivers/opp/core.c:847:17: error: 'struct opp_table' has no member named 'paths' NOTE: The patch will not be queued to stable trees until it is upstream. How should we proceed with this patch? -- Thanks Sasha
On 26-08-20, 13:54, Sasha Levin wrote: > Hi > > [This is an automated email] > > This commit has been processed because it contains a "Fixes:" tag > fixing commit: cd7ea582866f ("opp: Make dev_pm_opp_set_rate() handle freq = 0 to drop performance votes"). > > The bot has tested the following trees: v5.8.2, v5.7.16, v5.4.59. > > v5.8.2: Build OK! > v5.7.16: Build failed! Errors: > drivers/opp/core.c:849:17: error: ‘struct opp_table’ has no member named ‘paths’ > drivers/opp/core.c:849:17: error: ‘struct opp_table’ has no member named ‘paths’ > drivers/opp/core.c:849:17: error: ‘struct opp_table’ has no member named ‘paths’ > drivers/opp/core.c:849:17: error: ‘struct opp_table’ has no member named ‘paths’ > drivers/opp/core.c:849:17: error: ‘struct opp_table’ has no member named ‘paths’ > drivers/opp/core.c:849:17: error: 'struct opp_table' has no member named 'paths' > drivers/opp/core.c:849:17: error: 'struct opp_table' has no member named 'paths' > drivers/opp/core.c:849:17: error: ‘struct opp_table’ has no member named ‘paths’ > drivers/opp/core.c:849:17: error: ‘struct opp_table’ has no member named ‘paths’ > drivers/opp/core.c:849:17: error: 'struct opp_table' has no member named 'paths' > drivers/opp/core.c:849:17: error: 'struct opp_table' has no member named 'paths' > > v5.4.59: Build failed! Errors: > drivers/opp/core.c:847:17: error: ‘struct opp_table’ has no member named ‘paths’ > drivers/opp/core.c:847:17: error: ‘struct opp_table’ has no member named ‘paths’ > drivers/opp/core.c:847:17: error: ‘struct opp_table’ has no member named ‘paths’ > drivers/opp/core.c:847:17: error: ‘struct opp_table’ has no member named ‘paths’ > drivers/opp/core.c:847:17: error: 'struct opp_table' has no member named 'paths' > drivers/opp/core.c:847:17: error: ‘struct opp_table’ has no member named ‘paths’ > drivers/opp/core.c:847:17: error: ‘struct opp_table’ has no member named ‘paths’ > drivers/opp/core.c:847:17: error: 'struct opp_table' has no member named 'paths' > drivers/opp/core.c:847:17: error: 'struct opp_table' has no member named 'paths' > drivers/opp/core.c:847:17: error: ‘struct opp_table’ has no member named ‘paths’ > drivers/opp/core.c:847:17: error: ‘struct opp_table’ has no member named ‘paths’ > drivers/opp/core.c:847:17: error: 'struct opp_table' has no member named 'paths' > drivers/opp/core.c:847:17: error: 'struct opp_table' has no member named 'paths' > > > NOTE: The patch will not be queued to stable trees until it is upstream. > > How should we proceed with this patch? I have already sent the right fix for stable. https://lore.kernel.org/lkml/31f315cf2b0c4afd60b07b7121058dcaa6e4afa1.1598260882.git.viresh.kumar@linaro.org/ -- viresh
diff --git a/drivers/opp/core.c b/drivers/opp/core.c index bdb028c7793d..9668ea04cc80 100644 --- a/drivers/opp/core.c +++ b/drivers/opp/core.c @@ -934,10 +934,13 @@ int dev_pm_opp_set_rate(struct device *dev, unsigned long target_freq) /* Return early if nothing to do */ if (old_freq == freq) { - dev_dbg(dev, "%s: old/new frequencies (%lu Hz) are same, nothing to do\n", - __func__, freq); - ret = 0; - goto put_opp_table; + if (!opp_table->required_opp_tables && !opp_table->regulators && + !opp_table->paths) { + dev_dbg(dev, "%s: old/new frequencies (%lu Hz) are same, nothing to do\n", + __func__, freq); + ret = 0; + goto put_opp_table; + } } /*