stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drm/amdgpu: fix regression on CIK (v2)
@ 2016-03-22 19:48 Alex Deucher
  2016-03-22 20:11 ` Greg KH
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Alex Deucher @ 2016-03-22 19:48 UTC (permalink / raw)
  To: gregkh; +Cc: christian.koenig, greg, stable, Alex Deucher

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>
---

Hi Greg,

The code is correct for 4.6, this fix should be applied to
4.5 and older stable kernels.

Thanks,

Alex

 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
index 06602df..9b1c430 100644
--- 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(struct amdgpu_ring *ring,
 					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));
-- 
2.5.0


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-05-01 22:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-22 19:48 [PATCH] drm/amdgpu: fix regression on CIK (v2) Alex Deucher
2016-03-22 20:11 ` Greg KH
2016-03-22 20:14   ` Alex Deucher
2016-03-22 20:27     ` Greg KH
2016-03-22 20:31       ` Alex Deucher
2016-04-10 16:22         ` Greg KH
     [not found]           ` <570B5068.90302@amd.com>
2016-04-25 17:21             ` Alex Deucher
2016-04-25 22:49           ` Ben Hutchings
2016-05-01 22:59 ` Patch "drm/amdgpu: fix regression on CIK (v2)" has been added to the 4.4-stable tree gregkh
2016-05-01 22:59 ` Patch "drm/amdgpu: fix regression on CIK (v2)" has been added to the 4.5-stable tree gregkh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).