From patchwork Tue Sep 29 10:59:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 290818 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BBF2EC4727F for ; Tue, 29 Sep 2020 12:30:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7453A208B8 for ; Tue, 29 Sep 2020 12:30:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601382611; bh=H06c2u1SI/UW90VBL+qv3ZMfKPxL+XH6IQqerxjacgE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=HD/98yHNC5iD8XMuCbi786EymplBkTEdJr5rkdFRBQWE1HOdPmPafPPihv1O5wYmd eBfy0Er138s8MCqJhyeR118zFnAFwfS9yohodZVPESfjMBD39QKj8jw/YghUZ4IoQo PAnSeEsQWKSi5uXbUqzbs2/DPbSZl2jyhAnrwe/Q= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732888AbgI2M3r (ORCPT ); Tue, 29 Sep 2020 08:29:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:43464 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729338AbgI2LaX (ORCPT ); Tue, 29 Sep 2020 07:30:23 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AF9D623AFB; Tue, 29 Sep 2020 11:24:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601378684; bh=H06c2u1SI/UW90VBL+qv3ZMfKPxL+XH6IQqerxjacgE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k7Xm80WlJyhI02cfy8Yv9O/zokemBH3PfeMaKNarYVPWPj+5SINs/NXu8UUGAusQq 5gNyVjhQF4pCwMd/TyGcyeMATXRE6B7fqJuJBRgUxkiII+6nouxQ0GqSfc1741rGVD lJ0wqs0Mo7+MznsO7vaqFaVCpD0fX6Q/+sNQ9ZdM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hawking Zhang , John Clements , Alex Deucher , Sasha Levin Subject: [PATCH 4.19 101/245] drm/amdgpu: increase atombios cmd timeout Date: Tue, 29 Sep 2020 12:59:12 +0200 Message-Id: <20200929105951.914940580@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200929105946.978650816@linuxfoundation.org> References: <20200929105946.978650816@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: John Clements [ Upstream commit 1b3460a8b19688ad3033b75237d40fa580a5a953 ] mitigates race condition on BACO reset between GPU bootcode and driver reload Reviewed-by: Hawking Zhang Signed-off-by: John Clements Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/amdgpu/atom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/atom.c b/drivers/gpu/drm/amd/amdgpu/atom.c index e9934de1b9cf8..0222bb7ea49b4 100644 --- a/drivers/gpu/drm/amd/amdgpu/atom.c +++ b/drivers/gpu/drm/amd/amdgpu/atom.c @@ -742,8 +742,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 {