diff options
author | Matt Longnecker <mlongnecker@nvidia.com> | 2014-08-18 20:00:01 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:11:16 -0400 |
commit | 59f00a42e47ccf4aacfac01d1e97b66537a01aed (patch) | |
tree | ca0dffa733df4dccb0bc7e305dcb2d7b4fdeba38 /drivers/gpu/nvgpu/gk20a | |
parent | 41f6befed027c21fb9cecb0a1c0a1ad257c44704 (diff) |
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>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
235 | u32 avg = 0; | 235 | u32 avg = 0; |
236 | 236 | ||
237 | gk20a_pmu_load_norm(g, &avg); | 237 | gk20a_pmu_load_norm(g, &avg); |
238 | tegra_edp_notify_gpu_load(avg); | 238 | tegra_edp_notify_gpu_load(avg, gk20a_clk_get_rate(g)); |
239 | } | 239 | } |
240 | 240 | ||
241 | /* | 241 | /* |
@@ -460,7 +460,7 @@ static int gk20a_tegra_late_probe(struct platform_device *dev) | |||
460 | 460 | ||
461 | static int gk20a_tegra_suspend(struct device *dev) | 461 | static int gk20a_tegra_suspend(struct device *dev) |
462 | { | 462 | { |
463 | tegra_edp_notify_gpu_load(0); | 463 | tegra_edp_notify_gpu_load(0, 0); |
464 | return 0; | 464 | return 0; |
465 | } | 465 | } |
466 | 466 | ||