5/19/2012

How to check GPU clock for 8660/8260 in Android

In Android platform, from 8x60, we support command line clock method through ADB and debugfs.
User can check current GPU clock using ADB following below direction.

1.     Mount the debug FS: adb shell "mount -t debugfs none /sys/kernel/debug"
2.     Check clock speeds (for 8660):
    a.     2D core #1: adb shell "cat /sys/kernel/debug/clk/gfx2d0_clk/measure"
    b.     2D core #2: adb shell "cat /sys/kernel/debug/clk/gfx2d1_clk/measure" (This is only for Adreno220)
    c.     3D core: adb shell "cat /sys/kernel/debug/clk/gfx3d_clk/measure"
3.     Write clock speeds (for 8660):
    a.     2D core #1: adb shell "echo <clock speed in Hz unit> /sys/kernel/debug/clk/gfx2d0_clk/rate"
    b.     2D core #2: adb shell "echo <clock speed in Hz unit> /sys/kernel/debug/clk/gfx2d1_clk/rate" (This is only for Adreno220)
    c.     3D core: adb shell "echo <clock speed in Hz unit> /sys/kernel/debug/clk/gfx3d_clk/rate"

2 comments:

  1. Hello,
    For testing purpose I was trying to play and modify the GPU on HTC 1 S and tried to set to 48MHZ.it works
    but after sometimes i can see default 27MHz freq. get set.
    do i need to modify any other parameters too.please help me understand the problem.

    ReplyDelete
    Replies
    1. if you want to change the default value, you should modify in the code.

      Delete