]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
video: tegra: host: Tune actmon for T210
authorArto Merilainen <amerilainen@nvidia.com>
Wed, 26 Nov 2014 11:04:35 +0000 (13:04 +0200)
committerArto Merilainen <amerilainen@nvidia.com>
Tue, 30 Dec 2014 11:55:00 +0000 (03:55 -0800)
This patch tunes T210 actmon to produce sensible load readings given
the usual tasks; Usually the tasks are relatively small (length of
tens of microseconds) and hence we only increase this slightly to
get better estimate in most use cases.

In addition, make K factor higher to give more weight for the old
measurement results to avoid overshoorting of scaling.

Bug 1580219

Change-Id: Ibaf66ee93a7971cf50211461d51009f624243069
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/656132
(cherry picked from commit 38277c3c885ea07ebc07c02788a41fa21552315b)
Reviewed-on: http://git-master/r/658477
Reviewed-by: Automatic_Commit_Validation_User
drivers/video/tegra/host/host1x/host1x_actmon_t124.c

index 5ebb5db319c3978258a67e8ad370bb087143c37f..7b2f43337b3a873d824794d6a67d6c193a06f890 100644 (file)
@@ -137,8 +137,13 @@ static int host1x_actmon_init(struct host1x_actmon *actmon)
                return 0;
 
        if (actmon->init == ACTMON_OFF) {
-               actmon->usecs_per_sample = 10;
-               actmon->k = 1;
+               if (tegra_get_chipid() == TEGRA_CHIPID_TEGRA21) {
+                       actmon->usecs_per_sample = 20;
+                       actmon->k = 3;
+               } else {
+                       actmon->usecs_per_sample = 10;
+                       actmon->k = 1;
+               }
        }
 
        actmon->clk = host_pdata->clk[1];