video: tegra: host: gk20a: reduce gr delays
Prashant Malani [Wed, 2 Oct 2013 21:23:59 +0000 (14:23 -0700)]
The delay value used in gr usleep_range calls is
too high. We can start at a much lower value.

Change-Id: I7d196d0e3be0a5cd84e8c4dad537fae043da6274
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/335234
(cherry picked from commit 49bb8436a534496c70e6238d3bc20ed280d5b654)
Signed-off-by: Yogish Kulkarni <yogishk@nvidia.com>
Reviewed-on: http://git-master/r/363693
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

drivers/video/tegra/host/gk20a/gr_gk20a.h

index 1477993..ce726e9 100644 (file)
@@ -22,8 +22,8 @@
 
 #include "gr_ctx_gk20a.h"
 
-#define GR_IDLE_CHECK_DEFAULT          100 /* usec */
-#define GR_IDLE_CHECK_MAX              5000 /* usec */
+#define GR_IDLE_CHECK_DEFAULT          10 /* usec */
+#define GR_IDLE_CHECK_MAX              200 /* usec */
 
 #define INVALID_SCREEN_TILE_ROW_OFFSET 0xFFFFFFFF
 #define INVALID_MAX_WAYS               0xFFFFFFFF