diff options
author | Matt Longnecker <mlongnecker@nvidia.com> | 2014-08-18 17:00:01 -0700 |
---|---|---|
committer | Winnie Hsu <whsu@nvidia.com> | 2014-09-19 10:13:19 -0700 |
commit | 027d2646851ad2810a96db9d63d80bb333a543f0 (patch) | |
tree | 9b86bb54c6aa2a97b4c02bf4b34b116dfa8fc983 /drivers/gpu | |
parent | d758be8cb8f3f3a06ec1b4042b1af09c8c5de536 (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: I57df17d50cd8077a512b5932f4a304ca5e6992aa
Signed-off-by: Matt Longnecker <mlongnecker@nvidia.com>
Reviewed-on: http://git-master/r/481720
(cherry picked from commit b2ac745a45e273e849d7b190913ee97092fdebc2)
Reviewed-on: http://git-master/r/498901
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Diffstat (limited to 'drivers/gpu')
-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 a20ad8f116a1..edeacdac6e5c 100644 --- a/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c +++ b/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c @@ -238,7 +238,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)); } /* @@ -477,7 +477,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; } |