Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1524908ybl; Thu, 22 Aug 2019 16:25:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqxeyRLIPLPnR2d5OOPFqeyeYn7YhF93Le8GAFE8IEocpfAmvl0hDk9/RWBWY8H0i1vMsVKp X-Received: by 2002:aa7:96ec:: with SMTP id i12mr1842054pfq.125.1566516317595; Thu, 22 Aug 2019 16:25:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566516317; cv=none; d=google.com; s=arc-20160816; b=eGe//S8b9avbL2y5CXqsRwTHF0ApgsaoSRBYtMAntxCV9jqwuqsZw+1aj6a8Ox50It 7eMOuT5P7tR7FMo72TZnMlBEPbb483w0MJgiVUanrUSLNw72p7EvZdLGetujQnBR2gLp pG/RSAWkxhSBrUO47qt/2iQMv1CDlx8k2Q1+jrjT7hz07uKON9rzfmtaDIfVwFhtQTaI m0rUS7h+zGefwekjvySggxGUxeCR39ugAsaNYJxosdbXY/nlt8vnG/0cX+gQ8Gc8hcnb 3TPkOL2KMZgkQS1G0OHxReKsNre8dvQOwVT8KU7koIUXJEAEv2Vl9Z+bGU1BqfrmvYDb pyHg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=lNPc3EjvKpg1FpWeQYK6ipexbnNLBPxL/Y4m6L+UohQ=; b=P7Tnto1qTuOPSh7Gu1P4RmQF7LzZi2rqPWBAf7e+xJbkhQKQaDbUxgtqw7BBdeIuU4 2grcm+WagVavqQe7OYNB8oEyltwTPU48ZeDvZJrezQUxLrwV02piSeAT8gWTjaAvcsfE wZ+gCSh+fNzbIUpUF9SBKH5/ea9CsHa2wKaSFaEBN5lOP+0FJAR3++88k+CB1uZi6sv/ sAwzts8nYKoornaIFzb2PTKCrDXdVE+0wAY0IuXvvRx+HP5PeWepDZfBzKpKrwov0Q7T 8OVPh5yi8CauU7A5cXk9se7bNfVFUEwFJPp78h+WtlFwEwEGgV/YTKEuVvZA0FPedTSW C/cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QNmUOp17; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h15si794829plr.87.2019.08.22.16.25.02; Thu, 22 Aug 2019 16:25:17 -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=QNmUOp17; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391514AbfHVRRx (ORCPT + 99 others); Thu, 22 Aug 2019 13:17:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:57750 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390280AbfHVRIW (ORCPT ); Thu, 22 Aug 2019 13:08:22 -0400 Received: from sasha-vm.mshome.net (wsip-184-188-36-2.sd.sd.cox.net [184.188.36.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8D3FC23428; Thu, 22 Aug 2019 17:08:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566493701; bh=zdlWUlopslHIVVFc4/X/Ym+gbxfUMbmngZmdRU2WrcM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QNmUOp17F723zfGEluJwSJ6qtSK5XZOVliOAna2Sr58Cwbpqv70yokRcJj2Qq7MmP 0C+xpCnSRC3znll44qh+vauE/wnqumlqknqeI6qPuW5LfZnWN+yHsNBCVYAw1hxSPD oQe3oLKhQ7lXSMZQDce08vhIHfBMp+Ee/4yZPDEg= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Pierre-Eric Pelloux-Prayer , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , Greg Kroah-Hartman Subject: [PATCH 5.2 013/135] drm/amdgpu: fix gfx9 soft recovery Date: Thu, 22 Aug 2019 13:06:09 -0400 Message-Id: <20190822170811.13303-14-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190822170811.13303-1-sashal@kernel.org> References: <20190822170811.13303-1-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.2.10-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-5.2.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 5.2.10-rc1 X-KernelTest-Deadline: 2019-08-24T17:07+00:00 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Pierre-Eric Pelloux-Prayer commit 17b6d2d528542bc60ad400add35728b2259b3cc1 upstream. The SOC15_REG_OFFSET() macro wasn't used, making the soft recovery fail. v2: use WREG32_SOC15 instead of WREG32 + SOC15_REG_OFFSET Signed-off-by: Pierre-Eric Pelloux-Prayer Reviewed-by: Alex Deucher Reviewed-by: Christian König Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c index 2f18c64d531ff..2f7f0a2e4a6c5 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c @@ -4553,7 +4553,7 @@ static void gfx_v9_0_ring_soft_recovery(struct amdgpu_ring *ring, unsigned vmid) value = REG_SET_FIELD(value, SQ_CMD, MODE, 0x01); value = REG_SET_FIELD(value, SQ_CMD, CHECK_VMID, 1); value = REG_SET_FIELD(value, SQ_CMD, VM_ID, vmid); - WREG32(mmSQ_CMD, value); + WREG32_SOC15(GC, 0, mmSQ_CMD, value); } static void gfx_v9_0_set_gfx_eop_interrupt_state(struct amdgpu_device *adev, -- 2.20.1