Increase Mali400MP2 clockspeed on sun8i/legacy? #265

Closed
ThomasKaiser opened this Issue Apr 7, 2016 · 2 comments

Projects

None yet

2 participants

@ThomasKaiser
Collaborator

I learned today that the kernel sources we use for sun8i/legacy use a hardcoded clockspeed of 252 MHz

Any objections against increasing this to eg. 504 MHz? Or let's better say: Anyone interested in giving this a try and check whether we run in problems with budget cooling?

@ThomasKaiser
Collaborator

Ok, since Quake 3 is running ok we can close this issue. But it's great that Melanrz learned that GPU acceleration has nothing to do with CPU clockspeed and that he thinks Chromium (that needs Mali 4.1 drivers for OpenEGLS) would work HW accelerated if Quake scores are high enough.

@ThomasKaiser
Collaborator

Hmm... based on the results that were made with 504 MHz and since thermal readouts do not increase what about adding patch/kernel/sun8i-default/0017-increase-mali-clockspeed.patch with the following contents:

diff --git a/drivers/gpu/mali/mali/platform/mali400-pmu/mali_platform.c b/drivers/gpu/mali/mali/platform/mali400-pmu/mali_platform.c
index 54e50d5..86629ae 100644
--- a/drivers/gpu/mali/mali/platform/mali400-pmu/mali_platform.c
+++ b/drivers/gpu/mali/mali/platform/mali400-pmu/mali_platform.c
@@ -37,7 +37,7 @@ static struct clk *gpu_pll  = NULL;

 _mali_osk_errcode_t mali_platform_init(void)
 {
-   int freq = 252; /* 252 MHz */
+   int freq = 600; /* 600 MHz */

    gpu_pll = clk_get(NULL, PLL_GPU_CLK);

I'll leave it up to you but since we have working throttling with 3.4 kernel IMO there's not much to worry about...

@ThomasKaiser ThomasKaiser reopened this Apr 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment