From 59f00a42e47ccf4aacfac01d1e97b66537a01aed Mon Sep 17 00:00:00 2001 From: Matt Longnecker Date: Mon, 18 Aug 2014 17:00:01 -0700 Subject: 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 Reviewed-on: http://git-master/r/481720 GVS: Gerrit_Virtual_Submit Reviewed-on: http://git-master/r/498912 Reviewed-by: Timo Alho --- drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu') diff --git a/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c b/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c index 670024b8..f9913fd4 100644 --- a/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c +++ b/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c @@ -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; } -- cgit v1.2.2