aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/panfrost/panfrost_drv.c
diff options
context:
space:
mode:
authorSteven Price <steven.price@arm.com>2019-11-18 17:30:02 +0000
committerRob Herring <robh@kernel.org>2019-12-06 11:05:39 -0600
commit22bd4df9dadf46f56f2eb16859439a7a600d106a (patch)
tree768a8bfa466d68458760e2654abf92f70a752b49 /drivers/gpu/drm/panfrost/panfrost_drv.c
parentdrm/mgag200: Flag all G200 SE A machines as broken wrt <startadd> (diff)
downloadlinux-dev-22bd4df9dadf46f56f2eb16859439a7a600d106a.tar.xz
linux-dev-22bd4df9dadf46f56f2eb16859439a7a600d106a.zip
drm/panfrost: devfreq: Round frequencies to OPPs
Currently when setting a frequency in panfrost_devfreq_target the returned frequency is the actual frequency that the clock driver reports (the return of clk_get_rate()). However, where the provided OPPs don't precisely match the frequencies that the clock actually achieves devfreq will then complain (repeatedly): devfreq devfreq0: Couldn't update frequency transition information. To avoid this change panfrost_devfreq_target() to fetch the opp using devfreq_recommened_opp() and not actually query the clock for the frequency. A similar problem exists with panfrost_devfreq_get_cur_freq(), but in this case because the function is optional we can just remove it and devfreq will fall back to using the previously set frequency. Fixes: 221bc77914cb ("drm/panfrost: Use generic code for devfreq") Signed-off-by: Steven Price <steven.price@arm.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Signed-off-by: Rob Herring <robh@kernel.org> Link: https://patchwork.freedesktop.org/patch/msgid/20191118173002.32015-1-steven.price@arm.com
Diffstat (limited to 'drivers/gpu/drm/panfrost/panfrost_drv.c')
0 files changed, 0 insertions, 0 deletions