Skip to contentSkip to conversation

drm/amdgpu: delete duplicated printk info.

PATCH In review Rex Zhu 3 participants 6 messages Mar 30, 2017 2 messages not in the archive

Subsystems (2)
lore
Share & tools
lore

Rex Zhu

author
#0 lore raw

PATCH 1/3 drm/amdgpu: delete duplicated printk info.

Change-Id I5f336cc41b1868b98f263874fe5c6ea20e430744
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0 -3
index 57ccac4..eaf44fb 100644
@@ -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

author
#2 lore raw

PATCH 2/3 drm/amdgpu: when resume failed, return error to avoid system hang.

Change-Id I9e908edbb3f0c767b084ffaac7de5f97047eaa16
---
 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
index eaf44fb..18af88d 100644
@@ -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
author
#3 lore raw

PATCH 3/3 drm/amdgpu: do not block gpu resume when cp ring test failed.

In reply to a message not in the archive

As kiq enabled, ring test may randomly failed because of timing. it was not critial error, gpu can continue to resume.

Change-Id I5d85c7d5b5989dd6892a13b47a5322b33e8a48ac
---
 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
index 31b1312..cdda93b 100644
@@ -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

#5 lore raw

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 I5d85c7d5b5989dd6892a13b47a5322b33e8a48ac
---
 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
index 31b1312..cdda93b 100644

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
Reviewed-by
#6 lore raw
In reply to a message not in the archive
Quoted 12 lines · Rex Zhu
Change-Id I5f336cc41b1868b98f263874fe5c6ea20e430744
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0 -0
index 57ccac4..eaf44fb 100644

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
#7 lore raw
In reply to a message not in the archive

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 I5f336cc41b1868b98f263874fe5c6ea20e430744
---
  drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 ---
  1 file changed, 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0 -0
index 57ccac4..eaf44fb 100644

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