mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
arm: dts: gxl: optimize ipa parameter [1/1]
PD#SWPL-3726 Problem: game cannot run smoothly Solution: 1:modify cooling devices min status cpufreq 1000Mhz-->1200Mhz gpufreq 400MHz -->500MHz 2:modify switch trippoint freq trippoint hotplug trippoint 70000-->80000 80000-->90000 85000-->100000 3:fix gpupp get fail issue Verify: p215 pass Change-Id: Id0a1e1ac9619f0d9a20e2aad172ba0c84c7a2e9d Signed-off-by: Huan Biao <huan.biao@amlogic.com>
This commit is contained in:
@@ -426,7 +426,7 @@
|
||||
#thermal-sensor-cells = <1>;
|
||||
cooling_devices {
|
||||
cpufreq_cool_cluster0 {
|
||||
min_state = <1000000>;
|
||||
min_state = <1200000>;
|
||||
dyn_coeff = <140>;
|
||||
cluster_id = <0>;
|
||||
node_name = "cpufreq_cool0";
|
||||
@@ -440,7 +440,7 @@
|
||||
device_type = "cpucore";
|
||||
};
|
||||
gpufreq_cool {
|
||||
min_state = <400>;
|
||||
min_state = <500>;
|
||||
dyn_coeff = <437>;
|
||||
cluster_id = <0>;
|
||||
node_name = "gpufreq_cool0";
|
||||
@@ -477,17 +477,17 @@
|
||||
|
||||
trips {
|
||||
switch_on: trip-point@0 {
|
||||
temperature = <70000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
control: trip-point@1 {
|
||||
temperature = <80000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
control: trip-point@1 {
|
||||
temperature = <90000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
hot: trip-point@2 {
|
||||
temperature = <85000>;
|
||||
temperature = <100000>;
|
||||
hysteresis = <5000>;
|
||||
type = "hot";
|
||||
};
|
||||
|
||||
@@ -401,7 +401,7 @@
|
||||
#thermal-sensor-cells = <1>;
|
||||
cooling_devices {
|
||||
cpufreq_cool_cluster0 {
|
||||
min_state = <1000000>;
|
||||
min_state = <1200000>;
|
||||
dyn_coeff = <140>;
|
||||
cluster_id = <0>;
|
||||
node_name = "cpufreq_cool0";
|
||||
@@ -415,7 +415,7 @@
|
||||
device_type = "cpucore";
|
||||
};
|
||||
gpufreq_cool {
|
||||
min_state = <400>;
|
||||
min_state = <500>;
|
||||
dyn_coeff = <437>;
|
||||
cluster_id = <0>;
|
||||
node_name = "gpufreq_cool0";
|
||||
@@ -452,17 +452,17 @@
|
||||
|
||||
trips {
|
||||
switch_on: trip-point@0 {
|
||||
temperature = <70000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
control: trip-point@1 {
|
||||
temperature = <80000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
control: trip-point@1 {
|
||||
temperature = <90000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
hot: trip-point@2 {
|
||||
temperature = <85000>;
|
||||
temperature = <100000>;
|
||||
hysteresis = <5000>;
|
||||
type = "hot";
|
||||
};
|
||||
|
||||
@@ -520,7 +520,7 @@
|
||||
#thermal-sensor-cells = <1>;
|
||||
cooling_devices {
|
||||
cpufreq_cool_cluster0 {
|
||||
min_state = <1000000>;
|
||||
min_state = <1200000>;
|
||||
dyn_coeff = <140>;
|
||||
cluster_id = <0>;
|
||||
node_name = "cpufreq_cool0";
|
||||
@@ -534,7 +534,7 @@
|
||||
device_type = "cpucore";
|
||||
};
|
||||
gpufreq_cool {
|
||||
min_state = <400>;
|
||||
min_state = <500>;
|
||||
dyn_coeff = <437>;
|
||||
cluster_id = <0>;
|
||||
node_name = "gpufreq_cool0";
|
||||
@@ -571,17 +571,17 @@
|
||||
|
||||
trips {
|
||||
switch_on: trip-point@0 {
|
||||
temperature = <70000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
control: trip-point@1 {
|
||||
temperature = <80000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
control: trip-point@1 {
|
||||
temperature = <90000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
hot: trip-point@2 {
|
||||
temperature = <85000>;
|
||||
temperature = <100000>;
|
||||
hysteresis = <5000>;
|
||||
type = "hot";
|
||||
};
|
||||
|
||||
@@ -479,7 +479,7 @@
|
||||
#thermal-sensor-cells = <1>;
|
||||
cooling_devices {
|
||||
cpufreq_cool_cluster0 {
|
||||
min_state = <1000000>;
|
||||
min_state = <1200000>;
|
||||
dyn_coeff = <140>;
|
||||
cluster_id = <0>;
|
||||
node_name = "cpufreq_cool0";
|
||||
@@ -493,7 +493,7 @@
|
||||
device_type = "cpucore";
|
||||
};
|
||||
gpufreq_cool {
|
||||
min_state = <400>;
|
||||
min_state = <500>;
|
||||
dyn_coeff = <437>;
|
||||
cluster_id = <0>;
|
||||
node_name = "gpufreq_cool0";
|
||||
@@ -530,17 +530,17 @@
|
||||
|
||||
trips {
|
||||
switch_on: trip-point@0 {
|
||||
temperature = <70000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
control: trip-point@1 {
|
||||
temperature = <80000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
control: trip-point@1 {
|
||||
temperature = <90000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
hot: trip-point@2 {
|
||||
temperature = <85000>;
|
||||
temperature = <100000>;
|
||||
hysteresis = <5000>;
|
||||
type = "hot";
|
||||
};
|
||||
|
||||
@@ -67,6 +67,7 @@ struct aml_thermal_sensor {
|
||||
};
|
||||
|
||||
static struct aml_thermal_sensor soc_sensor;
|
||||
static struct gpufreq_cooling_device *gf_cdev_s;
|
||||
|
||||
int thermal_firmware_init(void)
|
||||
{
|
||||
@@ -175,10 +176,13 @@ int aml_thermal_min_update(struct thermal_cooling_device *cdev)
|
||||
gc_cdev = (struct gpucore_cooling_device *)cdev->devdata;
|
||||
cdev->ops->get_max_state(cdev, &min_state);
|
||||
min_state = min_state - cool->min_state;
|
||||
if (gf_cdev_s != NULL)
|
||||
gf_cdev_s->max_pp = gc_cdev->max_gpu_core_num;
|
||||
break;
|
||||
|
||||
case COOL_DEV_TYPE_GPU_FREQ:
|
||||
gf_cdev = (struct gpufreq_cooling_device *)cdev->devdata;
|
||||
gf_cdev_s = (struct gpufreq_cooling_device *)cdev->devdata;
|
||||
min_state = gf_cdev->get_gpu_freq_level(cool->min_state);
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user