Skip to contentSkip to conversation

SWDEV-196010 Calltrace caught in amdgpu_vm_sdma.c file

PATCH NAK Monk Liu 2 participants 4 messages Jul 16, 2019 2 messages not in the archive

Subsystems (2)
lore
Share & tools
lore

Monk Liu

author
#0 lore raw

PATCH 1/1 SWDEV-196010 Calltrace caught in amdgpu_vm_sdma.c file

don't commit sdma vm job if no updates needed and free the ib

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +9 -3
index aeba9e6..ff6d37e 100644
@@ -1304,9 +1304,15 @@ int amdgpu_vm_update_directories(struct amdgpu_device *adev,
 			goto error;
 	}
 
-	r = vm->update_funcs->commit(&params, &vm->last_update);
-	if (r)
-		goto error;
+
+	if (params.ib->length_dw > 0) {
+		r = vm->update_funcs->commit(&params, &vm->last_update);
+		if (r)
+			goto error;
+	} else {
+		amdgpu_sa_bo_free(adev, &params.ib->sa_bo, NULL);
+	}
+
 	return 0;
 
 error:
Signature · 6 lines
2.7.4

_______________________________________________
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): 1563246526-22988-1-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org

author
#2 lore raw

Please ignore this patch, looks 643d146c86c2f1e29cb18db93fbcd2ee43e6959f already addressed the issue.

_____________________________________
Monk Liu|GPU Virtualization Team |AMD

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Monk Liu
Sent: Tuesday, July 16, 2019 11:09 AM
To: [email protected]
Cc: Liu, Monk <[email protected]>
Subject: [PATCH] SWDEV-196010 Calltrace caught in amdgpu_vm_sdma.c file

don't commit sdma vm job if no updates needed and free the ib

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +9 -3
index aeba9e6..ff6d37e 100644
@@ -1304,9 +1304,15 @@ int amdgpu_vm_update_directories(struct amdgpu_device *adev,
 			goto error;
 	}
 
-	r = vm->update_funcs->commit(&params, &vm->last_update);
-	if (r)
-		goto error;
+
+	if (params.ib->length_dw > 0) {
+		r = vm->update_funcs->commit(&params, &vm->last_update);
+		if (r)
+			goto error;
+	} else {
+		amdgpu_sa_bo_free(adev, &params.ib->sa_bo, NULL);
+	}
+
 	return 0;
 
 error:

--
2.7.4

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
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): MN2PR12MB39336BD78BF1438F7BD1681984CE0-rweVpJHSKTq/[email protected]

#4 lore raw

Ah! Yeah that was a known issue. Please ignore my response as well :)

Sorry for the noise,
Christian.

Am 16.07.19 um 05:41 schrieb Liu, Monk:

Quoted 46 lines

Please ignore this patch, looks 643d146c86c2f1e29cb18db93fbcd2ee43e6959f already addressed the issue.

_____________________________________
Monk Liu|GPU Virtualization Team |AMD

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Monk Liu
Sent: Tuesday, July 16, 2019 11:09 AM
To: [email protected]
Cc: Liu, Monk <[email protected]>
Subject: [PATCH] SWDEV-196010 Calltrace caught in amdgpu_vm_sdma.c file

don't commit sdma vm job if no updates needed and free the ib

---
  drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 12 +++++++++---
  1 file changed, 9 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +9 -4
index aeba9e6..ff6d37e 100644
@@ -1304,9 +1304,15 @@ int amdgpu_vm_update_directories(struct amdgpu_device *adev,
  			goto error;
  	}
 
-	r = vm->update_funcs->commit(&params, &vm->last_update);
-	if (r)
-		goto error;
+
+	if (params.ib->length_dw > 0) {
+		r = vm->update_funcs->commit(&params, &vm->last_update);
+		if (r)
+			goto error;
+	} else {
+		amdgpu_sa_bo_free(adev, &params.ib->sa_bo, NULL);
+	}
+
  	return 0;
 
  error:
--

2.7.4

Quoted 8 lines

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

#5 lore raw
In reply to a message not in the archive

Am 16.07.19 um 05:08 schrieb Monk Liu:

Quoted 2 lines

don't commit sdma vm job if no updates needed and free the ib

NAK, when the IB is empty then that is a severe bug and we need to find the root cause.

How did you trigger this?

Christian.

Quoted 19 lines
---
  drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 12 +++++++++---
  1 file changed, 9 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +2 -3
index aeba9e6..ff6d37e 100644
@@ -1304,9 +1304,15 @@ int amdgpu_vm_update_directories(struct amdgpu_device *adev,
  			goto error;
  	}
 
-	r = vm->update_funcs->commit(&params, &vm->last_update);
-	if (r)
-		goto error;
+
+	if (params.ib->length_dw > 0) {

drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c int amdgpu_vm_update_directories(struct amdgpu_device *adev, · line 1318

Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +7 -0
+		r = vm->update_funcs->commit(&params, &vm->last_update);
+		if (r)
+			goto error;
+	} else {
+		amdgpu_sa_bo_free(adev, &params.ib->sa_bo, NULL);
+	}
+
  	return 0;
 
  error:

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx