]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
drm/radeon/kms/atom: bump atom loop timeout from 1 sec to 5 secs
authorAlex Deucher <alexdeucher@gmail.com>
Wed, 30 Jun 2010 18:58:59 +0000 (14:58 -0400)
committerDave Airlie <airlied@redhat.com>
Sun, 1 Aug 2010 23:59:58 +0000 (09:59 +1000)
Some tables have delays that can cause the timeout to hit
even when not intended.

Should fix:
https://bugs.freedesktop.org/show_bug.cgi?id=27744
and related bugs.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/atom.c

index 1d569830ed99f0b278e5ae96de52971d020d7a8d..bded8704326e720da51f92ca152647e8e62601ad 100644 (file)
@@ -715,8 +715,8 @@ static void atom_op_jump(atom_exec_context *ctx, int *ptr, int arg)
                        cjiffies = jiffies;
                        if (time_after(cjiffies, ctx->last_jump_jiffies)) {
                                cjiffies -= ctx->last_jump_jiffies;
-                               if ((jiffies_to_msecs(cjiffies) > 1000)) {
-                                       DRM_ERROR("atombios stuck in loop for more than 1sec aborting\n");
+                               if ((jiffies_to_msecs(cjiffies) > 5000)) {
+                                       DRM_ERROR("atombios stuck in loop for more than 5secs aborting\n");
                                        ctx->abort = true;
                                }
                        } else {