Skip to content

Commit 3085061

Browse files
committed
gpu/midgard: lock frequency at its max
1 parent 7ca52a1 commit 3085061

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

drivers/gpu/arm/midgard/platform/5422/gpu_dvfs_governor.c

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ static char *governor_list[G3D_MAX_GOVERNOR_NUM] = {"Default", "Static", "Booste
4242
static gpu_dvfs_info gpu_dvfs_infotbl_default[] = {
4343
/* vol,clk,min,max,down stay, pm_qos mem, pm_qos int, pm_qos cpu_kfc_min, pm_qos cpu_egl_max */
4444
#if SOC_NAME == 5422
45-
{812500, 177, 0, 90, 2, 0, 275000, 222000, 0, CPU_MAX},
46-
{862500, 266, 60, 90, 1, 0, 413000, 222000, 0, CPU_MAX},
47-
{912500, 350, 70, 90, 1, 0, 728000, 333000, 0, CPU_MAX},
48-
{962500, 420, 78, 90, 1, 0, 825000, 400000, 0, CPU_MAX},
49-
{1000000, 480, 90, 99, 1, 0, 825000, 400000, 1000000, 1600000},
45+
{812500, 177, 0, 3, 2, 0, 275000, 222000, 0, CPU_MAX},
46+
{862500, 266, 4, 6, 1, 0, 413000, 222000, 0, CPU_MAX},
47+
{912500, 350, 7, 10, 1, 0, 728000, 333000, 0, CPU_MAX},
48+
{962500, 420, 11, 14, 1, 0, 825000, 400000, 0, CPU_MAX},
49+
{1000000, 480, 15, 20, 1, 0, 825000, 400000, 1000000, 1600000},
5050
#ifdef CONFIG_SOC_EXYNOS5422_REV_0
51-
{1037500, 543, 99, 100, 1, 0, 825000, 400000, 1000000, 1600000},
51+
{1037500, 543, 21, 100, 1, 0, 825000, 400000, 1000000, 1600000},
5252
#else
5353
{1037500, 533, 99, 100, 1, 0, 825000, 400000, 1000000, 1600000},
5454
#endif /* CONFIG_SOC_EXYNOS5422_REV_0 */
@@ -81,6 +81,10 @@ static int gpu_abb_infobl_default[] = {900000, 900000, 950000, 1000000, 1075000,
8181
static int gpu_dvfs_governor_default(struct kbase_device *kbdev, int utilization)
8282
{
8383
struct exynos_context *platform;
84+
/* HACK: On Linux es2gears and glmark2-es2 doesn't utilize 100%
85+
* of the GPU. So we need to keep it on the high frequency to get
86+
* proper performance. */
87+
utilization = 100;
8488

8589
platform = (struct exynos_context *) kbdev->platform_context;
8690
if (!platform)

0 commit comments

Comments
 (0)