edp: core: add new gpu high threshold for high core profile
Rick Song [Thu, 15 Aug 2013 08:02:11 +0000 (16:02 +0800)]
Add new gpu high threshold for high core profile, this value
need to be tuned during edp tuning.

Bug 1329643

Change-Id: I77fff3a62c8796f7512cfb6e0c79cbae46d616d4
Signed-off-by: Rick Song <ricks@nvidia.com>
Reviewed-on: http://git-master/r/261874
Reviewed-by: Vandana Bansal <vandanab@nvidia.com>
Reviewed-by: Venkata (Muni) Anda <vanda@nvidia.com>
Tested-by: Venkata (Muni) Anda <vanda@nvidia.com>
GVS: Gerrit_Virtual_Submit

drivers/edp/tegra_core.c

index ca0a62a..c961e64 100644 (file)
@@ -33,6 +33,7 @@ struct freqcap {
 };
 
 static unsigned int gpu_high_threshold = 700;
+static unsigned int gpu_high_threshold_highcore = 500;
 static unsigned int gpu_window = 80;
 static unsigned int gain_factor = 130;
 static unsigned int gain_factor_highcore = 130;
@@ -240,7 +241,9 @@ void tegra_edp_notify_gpu_load(unsigned int load)
        bool old;
 
        old = gpu_busy;
-       gpu_busy = load >= gpu_high_threshold;
+       gpu_busy = load >=
+               (core_profile == TEGRA_SYSEDP_PROFILE_HIGHCORE ?
+                gpu_high_threshold_highcore : gpu_high_threshold);
 
        if (gpu_busy == old || force_gpu_pri || !core_platdata)
                return;