drm/amdgpu: increase atombios cmd timeout
authorJohn Clements <john.clements@amd.com>
Thu, 5 Mar 2020 09:48:56 +0000 (17:48 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Oct 2020 18:40:09 +0000 (20:40 +0200)
[ Upstream commit 1b3460a8b19688ad3033b75237d40fa580a5a953 ]

mitigates race condition on BACO reset between GPU bootcode and driver reload

Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: John Clements <john.clements@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/atom.c

index 1b50e6c13fb3fc2b8136581088ae07e40e8739c3..5fbf99d600587841ff2cd062fa3ff046323deb3b 100644 (file)
@@ -748,8 +748,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) > 5000)) {
-                                       DRM_ERROR("atombios stuck in loop for more than 5secs aborting\n");
+                               if ((jiffies_to_msecs(cjiffies) > 10000)) {
+                                       DRM_ERROR("atombios stuck in loop for more than 10secs aborting\n");
                                        ctx->abort = true;
                                }
                        } else {