video: tegra: host: Optimize the accuracy of actmon average load
Nicolin Chen [Thu, 3 Nov 2016 20:03:29 +0000 (13:03 -0700)]
According to Bug 1381833, we can enlarge the k value and sample period
to increase the accuracy of the average load value from the activity
monitor. (The range of k is [1, 6] while the sample period should not
exceed 22us.)

Based on the experiments mentioned in the Bug 1828143, we found that
setting k=5 and sample period=20us could be relatively benifit to the
accuracy of the average load.

So this patch just modifies these two values.

Bug 1828143

Change-Id: I6fbd4d6a832248e121f177cc5e30640d3702e84c
Signed-off-by: Nicolin Chen <nicolinc@nvidia.com>
Reviewed-on: http://git-master/r/1248444
GVS: Gerrit_Virtual_Submit
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>

drivers/video/tegra/host/host1x/host1x_actmon_t124.c

index 9738636..e012019 100644 (file)
@@ -171,8 +171,8 @@ static int host1x_actmon_init(struct host1x_actmon *actmon)
                        actmon->usecs_per_sample = 80;
                        actmon->k = 4;
                } else {
-                       actmon->usecs_per_sample = 10;
-                       actmon->k = 1;
+                       actmon->usecs_per_sample = 20;
+                       actmon->k = 5;
                }
        }