GPU: raise 3d gpu-cpu bus speed, and change idle timer
/arch/arm/mach-msm/devices-8960.c
blob:381d046ae7a03f85e736f088ecbf3bebd9d31f7b -> blob:f67a5cb00df3f75a7e1627050fedd45b18927fde
--- arch/arm/mach-msm/devices-8960.c
+++ arch/arm/mach-msm/devices-8960.c
@@ -2613,7 +2613,7 @@ static struct msm_bus_vectors grp3d_low_
.src = MSM_BUS_MASTER_GRAPHICS_3D,
.dst = MSM_BUS_SLAVE_EBI_CH0,
.ab = 0,
- .ib = KGSL_CONVERT_TO_MBPS(2400), //300 MHz GPU
+ .ib = KGSL_CONVERT_TO_MBPS(1000),
},
};
@@ -2622,7 +2622,7 @@ static struct msm_bus_vectors grp3d_nomi
.src = MSM_BUS_MASTER_GRAPHICS_3D,
.dst = MSM_BUS_SLAVE_EBI_CH0,
.ab = 0,
- .ib = KGSL_CONVERT_TO_MBPS(3200), //400 MHz GPU
+ .ib = KGSL_CONVERT_TO_MBPS(2048),
},
};
@@ -2631,7 +2631,7 @@ static struct msm_bus_vectors grp3d_nomi
.src = MSM_BUS_MASTER_GRAPHICS_3D,
.dst = MSM_BUS_SLAVE_EBI_CH0,
.ab = 0,
- .ib = KGSL_CONVERT_TO_MBPS(3968),
+ .ib = KGSL_CONVERT_TO_MBPS(2656),
},
};
@@ -2640,7 +2640,7 @@ static struct msm_bus_vectors grp3d_max_
.src = MSM_BUS_MASTER_GRAPHICS_3D,
.dst = MSM_BUS_SLAVE_EBI_CH0,
.ab = 0,
- .ib = KGSL_CONVERT_TO_MBPS(5290),
+ .ib = KGSL_CONVERT_TO_MBPS(3968),
},
};
@@ -2687,7 +2687,7 @@ static struct msm_bus_vectors grp2d0_nom
.src = MSM_BUS_MASTER_GRAPHICS_2D_CORE0,
.dst = MSM_BUS_SLAVE_EBI_CH0,
.ab = 0,
- .ib = KGSL_CONVERT_TO_MBPS(2400), //300 MHz
+ .ib = KGSL_CONVERT_TO_MBPS(1000),
},
};
@@ -2696,7 +2696,7 @@ static struct msm_bus_vectors grp2d0_max
.src = MSM_BUS_MASTER_GRAPHICS_2D_CORE0,
.dst = MSM_BUS_SLAVE_EBI_CH0,
.ab = 0,
- .ib = KGSL_CONVERT_TO_MBPS(2560), //320MHz GPU = 2400 Mbps
+ .ib = KGSL_CONVERT_TO_MBPS(2048),
},
};
@@ -2735,7 +2735,7 @@ static struct msm_bus_vectors grp2d1_nom
.src = MSM_BUS_MASTER_GRAPHICS_2D_CORE1,
.dst = MSM_BUS_SLAVE_EBI_CH0,
.ab = 0,
- .ib = KGSL_CONVERT_TO_MBPS(2400), //300 MHz GPU
+ .ib = KGSL_CONVERT_TO_MBPS(1000),
},
};
@@ -2744,7 +2744,7 @@ static struct msm_bus_vectors grp2d1_max
.src = MSM_BUS_MASTER_GRAPHICS_2D_CORE1,
.dst = MSM_BUS_SLAVE_EBI_CH0,
.ab = 0,
- .ib = KGSL_CONVERT_TO_MBPS(2560), // 320Mhz = 2400 Mbps
+ .ib = KGSL_CONVERT_TO_MBPS(2048),
},
};
@@ -2788,32 +2788,31 @@ static struct resource kgsl_3d0_resource
static struct kgsl_device_platform_data kgsl_3d0_pdata = {
.pwrlevel = {
{
- .gpu_freq = 512000000,
+ .gpu_freq = 400000000,
.bus_freq = 4,
.io_fraction = 0,
},
{
- .gpu_freq = 480000000,
+ .gpu_freq = 300000000,
.bus_freq = 3,
- .io_fraction = 0,
+ .io_fraction = 33,
},
{
- .gpu_freq = 400000000,
+ .gpu_freq = 200000000,
.bus_freq = 2,
- .io_fraction = 33,
+ .io_fraction = 100,
},
{
- .gpu_freq = 300000000,
+ .gpu_freq = 128000000,
.bus_freq = 1,
.io_fraction = 100,
},
{
- .gpu_freq = 177778000,
+ .gpu_freq = 27000000,
.bus_freq = 0,
},
},
.init_level = 1,
- .max_level = 0,
.num_levels = 5,
.set_grp_async = NULL,
.idle_timeout = HZ/12,
@@ -2854,11 +2853,11 @@ static struct resource kgsl_2d0_resource
static struct kgsl_device_platform_data kgsl_2d0_pdata = {
.pwrlevel = {
{
- .gpu_freq = 320000000,
+ .gpu_freq = 200000000,
.bus_freq = 2,
},
{
- .gpu_freq = 300000000,
+ .gpu_freq = 96000000,
.bus_freq = 1,
},
{
@@ -2867,7 +2866,6 @@ static struct kgsl_device_platform_data
},
},
.init_level = 0,
- .max_level = 0,
.num_levels = 3,
.set_grp_async = NULL,
.idle_timeout = HZ/5,
@@ -2908,11 +2906,11 @@ static struct resource kgsl_2d1_resource
static struct kgsl_device_platform_data kgsl_2d1_pdata = {
.pwrlevel = {
{
- .gpu_freq = 320000000,
+ .gpu_freq = 200000000,
.bus_freq = 2,
},
{
- .gpu_freq = 300000000,
+ .gpu_freq = 96000000,
.bus_freq = 1,
},
{
@@ -2921,7 +2919,6 @@ static struct kgsl_device_platform_data
},
},
.init_level = 0,
- .max_level = 0,
.num_levels = 3,
.set_grp_async = NULL,
.idle_timeout = HZ/5,