Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2234420imm; Thu, 18 Oct 2018 11:08:02 -0700 (PDT) X-Google-Smtp-Source: ACcGV61BFl8Lu7/6nevNzkradLbKJxrroSRTeP7+5ACkATbaN62oNCfWZI9aXzOmiWTIN+3vA7xR X-Received: by 2002:a17:902:43a4:: with SMTP id j33-v6mr19482974pld.131.1539886082294; Thu, 18 Oct 2018 11:08:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539886082; cv=none; d=google.com; s=arc-20160816; b=Di0V1i26f2wgOkZBtdtz/sI/XU4EqCWU6FA8ugSo4vtuTgOIq5U7umKwMevKbJYoGy +/MSjtpOMUhkP3d68oAI1S470CSWBJJsAyij82pB8iruQezFrEJeXGw5v1WA2vlQ1w9P J7isNVP9LZ9WJ8a+M0xR09g68MEeHII4AtLJ0tax+SzAuCRjTUMbDIfAeVmth4RgWhf1 TNh7HwqUuTzLalMIvwkgLbT52Hbv+2g+zA2+vzSl03alhQzxwOjFR7cxTfpWqicvI6eM UYGonzQFXyunoNAxwOMesH5RbOEOQfyQqPjmrTsVLE04A0a8xEvJJx6w+Ifw8gQ6Ma2Q mXIA== 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=LQA8omV17eLgbzvGn5q3pA2dpuql9X3RzyyAa2+3pVY=; b=RMT0QQC0V4+kaAHTUyeJgG2J7S8t1S8jxXIAH9CpKeNuwg/3u3ypS4lzgStRRCsbfb m2r8vncqkVccJ9SfFsESMFtpdr6tehKo8fhsDO5zQmc13JDQeH0JK1iakhYq9l8b6cco JNL70ia11zaxIT9g1a1NbNPhD8zfMlPNaiWlgxUV5LeAHmhrj8x3W8lkxCzHP7i/WV2K mKrTtLOd/0bx8jHbeIwyw4MyXT3ylYqNrBV47NnynzZcvvLMM2zhPBYf5ZquOCAsE5cn efsSaMc3nGlX4vR8hHslRDxTGsYHdsnS+svwKLovksGHoEsK80iZBq4P8/8iqOS89axQ 3Fdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=OcNvh7+V; 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 p6-v6si20667988plk.429.2018.10.18.11.07.46; Thu, 18 Oct 2018 11:08:02 -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=OcNvh7+V; 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 S1730507AbeJSCIm (ORCPT + 99 others); Thu, 18 Oct 2018 22:08:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:57804 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729070AbeJSCIl (ORCPT ); Thu, 18 Oct 2018 22:08:41 -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 BB2002145D; Thu, 18 Oct 2018 18:06:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539885994; bh=6QYz3TUhcQvlKyUqTL8aQKa0wfgIUG9pT7TwH86sLXA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OcNvh7+VzMpUG4GWp+04hRcehiRP/O2GzFtxoY0r8HQHNXAiRmxa4wYblOimQBY4p l1m6+GmLGDfD9tzg1EdX78hXXvZ9rMeH/eOPZ1PvHacIfhaI24ciQKL7nM0FUEghCe le+OTWQUsa+PvL8EdcP88DcbumQcI/cpBXkkvtuw= 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.4 09/48] drm/amdgpu: Fix SDMA HQD destroy error on gfx_v7 Date: Thu, 18 Oct 2018 19:54:44 +0200 Message-Id: <20181018175428.479275451@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181018175427.133690306@linuxfoundation.org> References: <20181018175427.133690306@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.4-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 @@ -504,7 +504,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;