New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase Mali400MP2 clockspeed on sun8i/legacy? #265

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

Comments

Projects
None yet
2 participants
@ThomasKaiser
Member

ThomasKaiser commented Apr 7, 2016

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

This comment has been minimized.

Show comment
Hide comment
@ThomasKaiser

ThomasKaiser Apr 8, 2016

Member

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.

Member

ThomasKaiser commented Apr 8, 2016

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

This comment has been minimized.

Show comment
Hide comment
@ThomasKaiser

ThomasKaiser Apr 9, 2016

Member

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...

Member

ThomasKaiser commented Apr 9, 2016

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment