]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.5-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 1 May 2016 22:59:29 +0000 (15:59 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 1 May 2016 22:59:29 +0000 (15:59 -0700)
added patches:
drm-amdgpu-fix-regression-on-cik-v2.patch

queue-4.5/drm-amdgpu-fix-regression-on-cik-v2.patch [new file with mode: 0644]
queue-4.5/series

diff --git a/queue-4.5/drm-amdgpu-fix-regression-on-cik-v2.patch b/queue-4.5/drm-amdgpu-fix-regression-on-cik-v2.patch
new file mode 100644 (file)
index 0000000..c48ac4d
--- /dev/null
@@ -0,0 +1,36 @@
+From alexdeucher@gmail.com  Sun May  1 15:58:01 2016
+From: Grigori Goronzy <greg@chown.ath.cx>
+Date: Tue, 22 Mar 2016 15:48:18 -0400
+Subject: drm/amdgpu: fix regression on CIK (v2)
+To: gregkh@linuxfoundation.org
+Cc: christian.koenig@amd.com, greg@chown.ath.cx, stable@vger.kernel.org, Alex Deucher <alexander.deucher@amd.com>
+Message-ID: <1458676098-9543-1-git-send-email-alexander.deucher@amd.com>
+
+From: Grigori Goronzy <greg@chown.ath.cx>
+
+This fix was written against drm-next, but when it was
+backported to 4.5 as a stable fix, the driver internal
+structure change was missed.  Fix that up here to avoid
+a hang due to waiting for the wrong sequence number.
+
+v2: agd: fix up commit message
+
+Signed-off-by: Grigori Goronzy <greg@chown.ath.cx>
+Cc: stable@vger.kernel.org
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+
+---
+ drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
++++ b/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
+@@ -3628,7 +3628,7 @@ static void gfx_v7_0_ring_emit_vm_flush(
+                                       unsigned vm_id, uint64_t pd_addr)
+ {
+       int usepfp = (ring->type == AMDGPU_RING_TYPE_GFX);
+-      uint32_t seq = ring->fence_drv.sync_seq;
++      uint32_t seq = ring->fence_drv.sync_seq[ring->idx];
+       uint64_t addr = ring->fence_drv.gpu_addr;
+       amdgpu_ring_write(ring, PACKET3(PACKET3_WAIT_REG_MEM, 5));
index 0dc8ec8d3e3bb53e1809ade80ccced7792c09343..09048a38fd01cdb5952fa4c380efab4c6a83b084 100644 (file)
@@ -78,3 +78,4 @@ drm-amdgpu-when-suspending-if-uvd-vce-was-running.-need-to-cancel-delay-work.pat
 drm-amdgpu-use-defines-for-crtcs-and-amft-blocks.patch
 drm-amdgpu-bump-the-afmt-limit-for-cz-st-polaris.patch
 amdgpu-uvd-add-uvd-fw-version-for-amdgpu.patch
+drm-amdgpu-fix-regression-on-cik-v2.patch