edp: sysedp : CPU/GPU priority depends on fGPU

Provide sysedp_dynamic_capping with the instantaneous GPU frequency
when notifying it of the GPU load. Modify the gpu/cpu priority
decision logic to choose CPU priority until GPU frequency gets "near"
the CPU-priority-limited-GPU-fmax. Introduce the priority_bias debugfs
parameter to facilitate tuning of "near". priority_bias takes a value
from 0 to 100.

Change-Id: Ia2cba36b8ea024fb8b01b5ba195dcf6550e38121
Signed-off-by: Matt Longnecker <mlongnecker@nvidia.com>
Reviewed-on: http://git-master/r/481720
GVS: Gerrit_Virtual_Submit
Reviewed-on: http://git-master/r/498912
Reviewed-by: Timo Alho <talho@nvidia.com>
This commit is contained in:
Matt Longnecker
2014-08-18 17:00:01 -07:00
committed by Dan Willemsen
parent 41f6befed0
commit 59f00a42e4

View File

@@ -235,7 +235,7 @@ static void gk20a_tegra_prescale(struct platform_device *pdev)
u32 avg = 0;
gk20a_pmu_load_norm(g, &avg);
tegra_edp_notify_gpu_load(avg);
tegra_edp_notify_gpu_load(avg, gk20a_clk_get_rate(g));
}
/*
@@ -460,7 +460,7 @@ static int gk20a_tegra_late_probe(struct platform_device *dev)
static int gk20a_tegra_suspend(struct device *dev)
{
tegra_edp_notify_gpu_load(0);
tegra_edp_notify_gpu_load(0, 0);
return 0;
}