From: jimqu <Jim.Qu-5C7GfCeVMHo@public.gmane.org>
To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Cc: jimqu <Jim.Qu-5C7GfCeVMHo@public.gmane.org>
Subject: [PATCH 3/3] drm/amd/amdgpu: compute ring test fail during S4 on CI
Date: Tue, 30 Aug 2016 09:21:51 +0800 [thread overview]
Message-ID: <1472520111-17899-4-git-send-email-Jim.Qu@amd.com> (raw)
In-Reply-To: <1472520111-17899-1-git-send-email-Jim.Qu-5C7GfCeVMHo@public.gmane.org>
unhalt F32`s Instrction Fetch Unit after all rings are inited.
Change-Id: Ib27e4e02e7e2782a9ab528f5358dce5ff2501e17
Signed-off-by: JimQu <Jim.Qu@amd.com>
---
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
index f055d49..99afab8 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
@@ -2755,8 +2755,7 @@ static int gfx_v7_0_cp_compute_resume(struct amdgpu_device *adev)
u64 wb_gpu_addr;
u32 *buf;
struct bonaire_mqd *mqd;
-
- gfx_v7_0_cp_compute_enable(adev, true);
+ struct amdgpu_ring *ring;
/* fix up chicken bits */
tmp = RREG32(mmCP_CPF_DEBUG);
@@ -2791,7 +2790,7 @@ static int gfx_v7_0_cp_compute_resume(struct amdgpu_device *adev)
/* init the queues. Just two for now. */
for (i = 0; i < adev->gfx.num_compute_rings; i++) {
- struct amdgpu_ring *ring = &adev->gfx.compute_ring[i];
+ ring = &adev->gfx.compute_ring[i];
if (ring->mqd_obj == NULL) {
r = amdgpu_bo_create(adev,
@@ -2970,6 +2969,13 @@ static int gfx_v7_0_cp_compute_resume(struct amdgpu_device *adev)
amdgpu_bo_unreserve(ring->mqd_obj);
ring->ready = true;
+ }
+
+ gfx_v7_0_cp_compute_enable(adev, true);
+
+ for (i = 0; i < adev->gfx.num_compute_rings; i++) {
+ ring = &adev->gfx.compute_ring[i];
+
r = amdgpu_ring_test_ring(ring);
if (r)
ring->ready = false;
--
1.9.1
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
next prev parent reply other threads:[~2016-08-30 1:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-30 1:21 [PATCH 0/3] S4 issue on CI jimqu
[not found] ` <1472520111-17899-1-git-send-email-Jim.Qu-5C7GfCeVMHo@public.gmane.org>
2016-08-30 1:21 ` [PATCH 1/3] drm/amd/amdgpu: VCE ring test fail during S4 " jimqu
[not found] ` <1472520111-17899-2-git-send-email-Jim.Qu-5C7GfCeVMHo@public.gmane.org>
2016-08-30 7:41 ` Christian König
2016-08-30 1:21 ` [PATCH 2/3] drm/amd/amdgpu: sdma resume " jimqu
[not found] ` <1472520111-17899-3-git-send-email-Jim.Qu-5C7GfCeVMHo@public.gmane.org>
2016-08-30 5:39 ` Alex Deucher
2016-08-30 1:21 ` jimqu [this message]
[not found] ` <1472520111-17899-4-git-send-email-Jim.Qu-5C7GfCeVMHo@public.gmane.org>
2016-08-30 5:43 ` [PATCH 3/3] drm/amd/amdgpu: compute ring test " Alex Deucher
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=1472520111-17899-4-git-send-email-Jim.Qu@amd.com \
--to=jim.qu-5c7gfcevmho@public.gmane.org \
--cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.