Difference between revisions of "Overclocking"

Jump to navigation Jump to search
449 bytes removed ,  05:26, 15 February 2021
Line 24: Line 24:


== GPU ==
== GPU ==
Open <code>arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi</code> (You will have to find the source of the kernel used by your distribution) in a text editor.
Open <code>/boot/dtbs/allwinner/sun50i-a64-pinephone-1.2.dts</code> (You will have to find the source of the kernel used by your distribution. There is the Pine64 kernel, and Megi's) in a text editor.


Look for
Look for <code>mali: gpu@1c4000 {</code> and within that block search for <code>assigned-clock-rates = <432000000>;</code>


<nowiki>
The <code>assigned-clock-rates</code> line should be set to <code>432000000</code>, this means that the GPU is clocked at 432MHz by default. So if you want 500MHz, set the value to <code>500000000</code>.
mali: gpu@1c40000 {
compatible = "allwinner,sun50i-a64-mali", "arm,mali-400";
reg = <0x01c40000 0x10000>;
interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>,
    <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>,
    <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>,
    <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>,
    <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>,
    <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>,
    <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "gp",
  "gpmmu",
  "pp0",
  "ppmmu0",
  "pp1",
  "ppmmu1",
  "pmu";
clocks = <&ccu CLK_BUS_GPU>, <&ccu CLK_GPU>;
clock-names = "bus", "core";
resets = <&ccu RST_BUS_GPU>;


assigned-clocks = <&ccu CLK_GPU>;
Save the dts file, and recompile the DTB. In order to check if the overclock was successfully applied you can use <code>/sys/kernel/debug/clk/clk_summary</code>.
assigned-clock-rates = <432000000>;
};
</nowiki>
 
The <code>assigned-clock-rates</code> line is set to <code>432000000</code>, this means that the GPU is clocked at 432MHz. So if you want 500MHz, set the value to <code>500000000</code>.
 
Save the dtsi file, and recompile the DTB. In order to check if the overclock was succesfully applied you can use <code>/sys/kernel/debug/clk/clk_summary</code>.
 
The GPU appears to run stable overclocked to 560 Mhz, however more testing with a wider group of devices is needed.


{{note|The GPU appears to run stable overclocked to 560 Mhz, however more testing with a wider group of devices is needed.}}
{{note|Remember to run a benchmark tool (such as glmark2-es2) to help check stability.}}
{{note|Remember to run a benchmark tool (such as glmark2-es2) to help check stability.}}
{{note|Each device has a slightly different file, you may need to enter the values as hexidecimal such as with the Pinephone}}


== CPU ==
== CPU ==
360

edits

Navigation menu