summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/lima/lima_devfreq.h
diff options
context:
space:
mode:
authorChristian Hewitt <christianshewitt@gmail.com>2021-01-27 19:40:47 +0000
committerQiang Yu <yuq825@gmail.com>2021-02-07 20:55:08 +0800
commit1d048afe7e52462d6b2a31dd6ee09c4475f39b4b (patch)
tree4b55549793ccf95592c66605a3a42638e9fb6a87 /drivers/gpu/drm/lima/lima_devfreq.h
parent904beebb3eb501e473d23f59de9c2d5173564a24 (diff)
drm/lima: add governor data with pre-defined thresholds
This patch adapts the panfrost pre-defined thresholds change [0] to the lima driver to improve real-world performance. The upthreshold value has been set to ramp GPU frequency to max freq faster (compared to panfrost) to compensate for the lower overall performance of utgard devices. [0] https://patchwork.kernel.org/project/dri-devel/patch/20210121170445.19761-1-lukasz.luba@arm.com/ Signed-off-by: Christian Hewitt <christianshewitt@gmail.com> Reviewed-by: Lukasz Luba <lukasz.luba@arm.com> Signed-off-by: Qiang Yu <yuq825@gmail.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210127194047.21462-1-christianshewitt@gmail.com
Diffstat (limited to 'drivers/gpu/drm/lima/lima_devfreq.h')
-rw-r--r--drivers/gpu/drm/lima/lima_devfreq.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/lima/lima_devfreq.h b/drivers/gpu/drm/lima/lima_devfreq.h
index 2d9b3008ce77..b0c7c736e81a 100644
--- a/drivers/gpu/drm/lima/lima_devfreq.h
+++ b/drivers/gpu/drm/lima/lima_devfreq.h
@@ -4,6 +4,7 @@
#ifndef __LIMA_DEVFREQ_H__
#define __LIMA_DEVFREQ_H__
+#include <linux/devfreq.h>
#include <linux/spinlock.h>
#include <linux/ktime.h>
@@ -18,6 +19,7 @@ struct lima_devfreq {
struct opp_table *clkname_opp_table;
struct opp_table *regulators_opp_table;
struct thermal_cooling_device *cooling;
+ struct devfreq_simple_ondemand_data gov_data;
ktime_t busy_time;
ktime_t idle_time;