Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5453080imm; Tue, 16 Oct 2018 10:26:35 -0700 (PDT) X-Google-Smtp-Source: ACcGV61bkjezZSf7o87cFbPJAIQ9c8QOa/zTxR7pRdsbm2YcAz1lVmUJ+DJme0f1R6h/wYGmhDzF X-Received: by 2002:a62:6901:: with SMTP id e1-v6mr15184944pfc.181.1539710795575; Tue, 16 Oct 2018 10:26:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539710795; cv=none; d=google.com; s=arc-20160816; b=GDc7ggl+OpSVc0gaYgDUvHn/crlyxg4mWx+yhcKrjkcpkb1IwY7LsJpYbQFwBhmpdS W5e9E+F3mzYA4VMZupmkKkPVnEDSAt955yRZfZW39wayiVk6TVjC4dYfQxSLmPG+ZwSg 51LQhUpx/9GCdDC4NLDv3tZyShoZ3mA6iWa4gEWZf735ll8i3V9CvxiYIFpjGzyC2Am5 t5B98LbIh9nqmXqaHqakiJcCzrH+Fc2OWtRYLYxZ44qsl3PC87SUBC3JSMLIlw7HhI4a TK8LeYqvwG2sz9+DyaC6ofnLrNt7uJpEjgrrgPpvqioVmnQEpZzV66/inFJl3BPgIxhr pu3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Is9LMS7KyDncxYaIOL94taM7ZbWRhLwryv4ExJwLV/c=; b=DQVYI1943uYOy4PpYeOYE1Uw0FwbRz0LEK3GSiohMpFLAaJb7TiSH/kbhOeLOUxBi1 hfoeNULJjX009F+4Mnq3v7qi9UWoDYRYZUbBYL+/RgGzy65QKGAnxLHxXDmutAsmHwf4 MD2GcxIT8WfJow7Dj06860bHCCRmqDmWMQIIyK1VAm3xfSd1dopO/l9VTH9qPehjpcu5 ZM3J6xxy7S1Mv5v3wg8a9dHvTEuJAjEv8/dr4lRauOOA0Ej62bM3hen6yqSLlS089UDi CdtEoRILLmk6CoqbeYIFWdeEJTAo4D15DpebSeOHqfaUxYd+8VRjh2eiAG4+R8VpV75b ORXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mz7fcvz5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i6-v6si13997051pgl.50.2018.10.16.10.26.19; Tue, 16 Oct 2018 10:26:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mz7fcvz5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731738AbeJQBQF (ORCPT + 99 others); Tue, 16 Oct 2018 21:16:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:34760 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730396AbeJQBQE (ORCPT ); Tue, 16 Oct 2018 21:16:04 -0400 Received: from localhost (ip-213-127-77-176.ip.prioritytelecom.net [213.127.77.176]) (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 F0E1C20658; Tue, 16 Oct 2018 17:24:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539710678; bh=jZ0Fol55lggfKG4cJ7npJqBVE8pWNjUd3vxoH5ulQs4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mz7fcvz5hW9EFwbzvtCTdy2P6dbz10DV1C5R04Y7jNXRApivyIstOTudhbOnyP2Ra 07XO1J8cKwjpNtPSXvsd7YF9IH2yGTtxWldZpyDGw0fY65qaVcU1eDBdxO0Tt5Q2fs CiAzipszD/0Djc0M9Lm+JxWQu2nZvEzHXph5Zrm8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Alex Deucher , Amber Lin , Felix Kuehling , Sasha Levin Subject: [PATCH 4.9 13/71] drm/amdgpu: Fix SDMA HQD destroy error on gfx_v7 Date: Tue, 16 Oct 2018 19:09:10 +0200 Message-Id: <20181016170540.060540688@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181016170539.315587743@linuxfoundation.org> References: <20181016170539.315587743@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Amber Lin [ Upstream commit caaa4c8a6be2a275bd14f2369ee364978ff74704 ] A wrong register bit was examinated for checking SDMA status so it reports false failures. This typo only appears on gfx_v7. gfx_v8 checks the correct bit. Acked-by: Alex Deucher Signed-off-by: Amber Lin Reviewed-by: Felix Kuehling Signed-off-by: Felix Kuehling Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c @@ -505,7 +505,7 @@ static int kgd_hqd_sdma_destroy(struct k while (true) { temp = RREG32(sdma_base_addr + mmSDMA0_RLC0_CONTEXT_STATUS); - if (temp & SDMA0_STATUS_REG__RB_CMD_IDLE__SHIFT) + if (temp & SDMA0_RLC0_CONTEXT_STATUS__IDLE_MASK) break; if (timeout <= 0) return -ETIME;