SWDEV-196010 Calltrace caught in amdgpu_vm_sdma.c file
Subsystems (2)
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
@@ -1304,9 +1304,15 @@ int amdgpu_vm_update_directories(struct amdgpu_device *adev, goto error; } - r = vm->update_funcs->commit (¶ms, &vm->last_update); -if (r) - goto error; + +if (params.ib->length_dw >0 ) { + r = vm->update_funcs->commit (¶ms, &vm->last_update); +if (r) + goto error; + }else { +amdgpu_sa_bo_free (adev, ¶ms.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
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
@@ -1304,9 +1304,15 @@ int amdgpu_vm_update_directories(struct amdgpu_device *adev, goto error; } - r = vm->update_funcs->commit (¶ms, &vm->last_update); -if (r) - goto error; + +if (params.ib->length_dw >0 ) { + r = vm->update_funcs->commit (¶ms, &vm->last_update); +if (r) + goto error; + }else { +amdgpu_sa_bo_free (adev, ¶ms.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]
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
643d146c86c2f1e29cb18db93fbcd2ee43e6959falready 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 inamdgpu_vm_sdma.cfiledon't commit sdma vm job if no updates needed and free the ib
Signed-off-by Monk Liu <[email protected]>--- 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@@ -1304,9 +1304,15 @@ int amdgpu_vm_update_directories(struct amdgpu_device *adev, goto error; } - r = vm->update_funcs->commit (¶ms, &vm->last_update); -if (r) - goto error; + +if (params.ib->length_dw >0 ) { + r = vm->update_funcs->commit (¶ms, &vm->last_update); +if (r) + goto error; + }else { +amdgpu_sa_bo_free (adev, ¶ms.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
Christian König
NAKAm 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
Signed-off-by Monk Liu <[email protected]>--- 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@@ -1304,9 +1304,15 @@ int amdgpu_vm_update_directories(struct amdgpu_device *adev, goto error; } - r = vm->update_funcs->commit (¶ms, &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 (¶ms, &vm->last_update); +if (r) + goto error; + }else { +amdgpu_sa_bo_free (adev, ¶ms.ib->sa_bo,NULL ); + } +return 0 ; error:
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx