AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/amdgpu: fix ring test failure issue during s3 in vce 3.0
@ 2019-05-27  7:42 S, Shirish
       [not found] ` <1558942936-16519-1-git-send-email-shirish.s-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: S, Shirish @ 2019-05-27  7:42 UTC (permalink / raw)
  To: Grodzovsky, Andrey, Zhang, Jerry, Deng, Emily, Deucher, Alexander
  Cc: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org,
	Li, Ching-shih (Louis)

From: Louis Li <Ching-shih.Li@amd.com>

[What]
vce ring test fails consistently during resume in s3 cycle, due to
mismatch read & write pointers.
On debug/analysis its found that rptr to be compared is not being
correctly updated/read, which leads to this failure.
Below is the failure signature:
	[drm:amdgpu_vce_ring_test_ring] *ERROR* amdgpu: ring 12 test failed
	[drm:amdgpu_device_ip_resume_phase2] *ERROR* resume of IP block <vce_v3_0> failed -110
	[drm:amdgpu_device_resume] *ERROR* amdgpu_device_ip_resume failed (-110).

[How]
fetch rptr appropriately, meaning move its read location further down
in the code flow.
With this patch applied the s3 failure is no more seen for >5k s3 cycles,
which otherwise is pretty consistent.

Signed-off-by: Louis Li <Ching-shih.Li@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
index c021b11..92f9d46 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
@@ -1084,6 +1084,8 @@ int amdgpu_vce_ring_test_ring(struct amdgpu_ring *ring)
 	if (r)
 		return r;
 
+	rptr = amdgpu_ring_get_rptr(ring);
+
 	amdgpu_ring_write(ring, VCE_CMD_END);
 	amdgpu_ring_commit(ring);
 
-- 
2.7.4

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

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

end of thread, other threads:[~2019-05-29  7:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-27  7:42 [PATCH] drm/amdgpu: fix ring test failure issue during s3 in vce 3.0 S, Shirish
     [not found] ` <1558942936-16519-1-git-send-email-shirish.s-5C7GfCeVMHo@public.gmane.org>
2019-05-27 13:00   ` Liu, Leo
     [not found]     ` <c2e96ff1-522f-4d1d-f312-9209a63e58ce-5C7GfCeVMHo@public.gmane.org>
2019-05-27 16:22       ` Li, Ching-shih (Louis)
     [not found]         ` <MN2PR12MB34398CEE701707E25781E9A2AA1D0-rweVpJHSKTpimzxKl6w4wgdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2019-05-27 16:39           ` Liu, Leo
     [not found]             ` <70c3ff3e-1f14-fcd6-e533-8e224fe0b976-5C7GfCeVMHo@public.gmane.org>
2019-05-27 17:20               ` Li, Ching-shih (Louis)
     [not found]                 ` <MN2PR12MB3439645C85B84D0382352D04AA1D0-rweVpJHSKTpimzxKl6w4wgdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2019-05-28  7:23                   ` Christian König
     [not found]                     ` <3763ca45-b90e-dac9-f2a7-35aee4dc2548-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2019-05-29  1:14                       ` Li, Ching-shih (Louis)
     [not found]                         ` <MN2PR12MB34393B9022F9CF06D2F7D6FDAA1F0-rweVpJHSKTpimzxKl6w4wgdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2019-05-29  7:52                           ` Koenig, Christian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox