Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1690058

RE: [PATCH] devfreq: simple_ondemand: Update devfreq stats when governor started

From MyungJoo Ham <myungjoo.ham@samsung.com>
Newsgroups linux.kernel
Subject RE: [PATCH] devfreq: simple_ondemand: Update devfreq stats when governor started
Date 2017-07-18 12:40 +0200
Message-ID <u4y55-1ed-21@gated-at.bofh.it> (permalink)
References <u4xC3-146-57@gated-at.bofh.it> <u4y55-1ed-23@gated-at.bofh.it> <u4xC3-146-57@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


> If governor suspends soon after started, it may not have the chance to
> update devfreq stats, which leaves devfreq stats' current frequence be
> zero.
> 
> So when the thermal core tries to throttle the power, it would failed
> to get the correct static power of current frequence and print these
> warnings:
> [    2.024735] core: dev_pm_opp_get_voltage: Invalid parameters
> [    2.024743] mali ff9a0000.gpu: Failed to get voltage for frequency 0:
> -34
> ...
> [    2.026320] core: dev_pm_opp_get_voltage: Invalid parameters
> [    2.026327] mali ff9a0000.gpu: Failed to get voltage for frequency 0:
> -34
> 
> Update devfreq stats when governor started to avoid that.
> 
> Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>

How are you calling suspend/resume routins in the mali drivers?

It appears that your mali device driver's suspend/resume routines are
accessing "struct devfreq_dev_status" directly. Is this correct?


Plus, for MALI (if that assumption is correct), this issue might occur
with other governors.

If so, would it be better to put the first initializing call of
devfreq_update_stats() at devfreq_add_device()?


Cheers,
MyungJoo

ps. Where can I look at the mali-devfreq device driver? (I couldn't find it)

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] devfreq: simple_ondemand: Update devfreq stats when governor started Jeffy Chen <jeffy.chen@rock-chips.com> - 2017-07-18 12:10 +0200
  RE: [PATCH] devfreq: simple_ondemand: Update devfreq stats when  governor started MyungJoo Ham <myungjoo.ham@samsung.com> - 2017-07-18 12:40 +0200
    Re: [PATCH] devfreq: simple_ondemand: Update devfreq stats when governor  started jeffy <jeffy.chen@rock-chips.com> - 2017-07-18 13:30 +0200
      Re: [PATCH] devfreq: simple_ondemand: Update devfreq stats when governor  started jeffy <jeffy.chen@rock-chips.com> - 2017-07-19 06:30 +0200

csiph-web