drm/amdgpu: delete duplicated printk info.
Subsystems (2)
PATCH 1/3 drm/amdgpu: delete duplicated printk info.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 --- 1 file changed, 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0 -3
@@ -2288,9 +2288,6 @@ int amdgpu_device_resume(struct drm_device *dev, bool resume, bool fbcon)if (r)DRM_ERROR ("amdgpu_resume failed (%d).\n" , r); -if (r) -DRM_ERROR ("amdgpu_resume failed (%d).\n" , r); -amdgpu_fence_driver_resume (adev);if (resume) {
Signature · 6 lines
1.9.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1490852538-13276-1-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org
PATCH 2/3 drm/amdgpu: when resume failed, return error to avoid system hang.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +3 -2
@@ -2285,9 +2285,10 @@ int amdgpu_device_resume(struct drm_device *dev, bool resume, bool fbcon) } r =amdgpu_resume (adev); -if (r) +if (r) {DRM_ERROR ("amdgpu_resume failed (%d).\n" , r); - +return r; + }amdgpu_fence_driver_resume (adev);if (resume) {
Signature · 6 lines
1.9.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 3/3 drm/amdgpu: do not block gpu resume when cp ring test failed.
In reply to a message not in the archiveAs kiq enabled, ring test may randomly failed because of timing. it was not critial error, gpu can continue to resume.
--- drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c +1 -2
@@ -4975,8 +4975,7 @@ static int gfx_v8_0_kiq_resume(struct amdgpu_device *adev) goto done; ring->ready = true; - r =amdgpu_ring_test_ring (ring); -if (r) +if (amdgpu_ring_test_ring (ring)) ring->ready = false; }
Signature · 6 lines
1.9.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1490852538-13276-3-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org
Re: [PATCH 3/3] drm/amdgpu: do not block gpu resume when cp ring test failed.
Quoted 15 lines · Rex Zhu
As kiq enabled, ring test may randomly failed because of timing. it was not critial error, gpu can continue to resume.
Change-Id I5d85c7d5b5989dd6892a13b47a5322b33e8a48acSigned-off-by Rex Zhu <[email protected]>--- drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c +0
-0
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c static int gfx_v8_0_kiq_resume(struct amdgpu_device *adev) · line 4981
Quoted 9 lines
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c +1
-2@@ -4975,8 +4975,7 @@ static int gfx_v8_0_kiq_resume(struct amdgpu_device *adev) goto done; ring->ready = true; - r =amdgpu_ring_test_ring (ring); -if (r) +if (amdgpu_ring_test_ring (ring)) ring->ready = false; }
The random failures in amdgpu_ring_test_ring need to be fixed instead. Failure in there normally does mean we cannot continue.
Signature · 6 lines
Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Michel Dänzer
Reviewed-byQuoted 12 lines · Rex Zhu
Change-Id I5f336cc41b1868b98f263874fe5c6ea20e430744Signed-off-by Rex Zhu <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 --- 1 file changed, 3 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0
-0
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c int amdgpu_device_resume(struct drm_device *dev, bool resume, bool fbcon) · line 2293
Quoted 9 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0
-3@@ -2288,9 +2288,6 @@ int amdgpu_device_resume(struct drm_device *dev, bool resume, bool fbcon)if (r)DRM_ERROR ("amdgpu_resume failed (%d).\n" , r); -if (r) -DRM_ERROR ("amdgpu_resume failed (%d).\n" , r); -amdgpu_fence_driver_resume (adev);if (resume) {
Signature · 6 lines
Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Patch 1 and 2 are Reviewed-by: Christian König <[email protected]>.
Patch 3 is a clear NAK. The ring test is there to make sure that the hardware is working as expected before proceeding.
If it fails randomly with KIQ enabled we need to figure out why and not just disable the test.
Christian.
Am 30.03.2017 um 07:42 schrieb Rex Zhu:
Quoted 11 lines
Change-Id I5f336cc41b1868b98f263874fe5c6ea20e430744Signed-off-by Rex Zhu <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 --- 1 file changed, 3 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0
-0
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c int amdgpu_device_resume(struct drm_device *dev, bool resume, bool fbcon) · line 2293
Quoted 9 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0
-3@@ -2288,9 +2288,6 @@ int amdgpu_device_resume(struct drm_device *dev, bool resume, bool fbcon)if (r)DRM_ERROR ("amdgpu_resume failed (%d).\n" , r); -if (r) -DRM_ERROR ("amdgpu_resume failed (%d).\n" , r); -amdgpu_fence_driver_resume (adev);if (resume) {
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx