stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: <gregkh@linuxfoundation.org>
To: greg@chown.ath.cx, alexander.deucher@amd.com
Cc: <stable@vger.kernel.org>, <stable-commits@vger.kernel.org>
Subject: Patch "drm/amdgpu: fix regression on CIK (v2)" has been added to the 4.4-stable tree
Date: Sun, 01 May 2016 15:59:24 -0700	[thread overview]
Message-ID: <1462143564246200@kroah.com> (raw)
In-Reply-To: <1458676098-9543-1-git-send-email-alexander.deucher@amd.com>


This is a note to let you know that I've just added the patch titled

    drm/amdgpu: fix regression on CIK (v2)

to the 4.4-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     drm-amdgpu-fix-regression-on-cik-v2.patch
and it can be found in the queue-4.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.


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


Patches currently in stable-queue which might be from greg@chown.ath.cx are

queue-4.4/drm-amdgpu-fix-regression-on-cik-v2.patch

  parent reply	other threads:[~2016-05-01 22:59 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` gregkh [this message]
2016-05-01 22:59 ` Patch "drm/amdgpu: fix regression on CIK (v2)" has been added to the 4.5-stable tree gregkh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1462143564246200@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=alexander.deucher@amd.com \
    --cc=greg@chown.ath.cx \
    --cc=stable-commits@vger.kernel.org \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).