mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
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:
committed by
Dan Willemsen
parent
41f6befed0
commit
59f00a42e4
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user