drm/amdgpu: fix shadow bo skip condition
Subsystems (2)
PATCH 1/1 drm/amdgpu: fix shadow bo skip condition
Create shadow BOs only for no-compute VM context and only for dGPU. The existing if-condition would create shadow bo for compute context on dGPU which not what we wanted.
Signed-off-by Nirmoy Das <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +1 -1
@@ -908,7 +908,7 @@ static int amdgpu_vm_pt_create(struct amdgpu_device *adev,return r; bo = &(*vmbo)->bo; -if (vm->is_compute_context && (adev->flags &AMD_IS_APU )) { +if (vm->is_compute_context || (adev->flags &AMD_IS_APU )) { (*vmbo)->shadow =NULL ;return 0 ; }
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Am 08.06.21 um 12:06 schrieb Nirmoy Das:
Quoted 5 lines
Create shadow BOs only for no-compute VM context and only for dGPU. The existing if-condition would create shadow bo for compute context on dGPU which not what we wanted.
Signed-off-by Nirmoy Das <[email protected]>
Reviewed-by Christian König <[email protected]>
Quoted 9 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +0
-0
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c static int amdgpu_vm_pt_create(struct amdgpu_device *adev, · line 914
Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +1
-1@@ -908,7 +908,7 @@ static int amdgpu_vm_pt_create(struct amdgpu_device *adev,return r; bo = &(*vmbo)->bo; -if (vm->is_compute_context && (adev->flags &AMD_IS_APU )) { +if (vm->is_compute_context || (adev->flags &AMD_IS_APU )) { (*vmbo)->shadow =NULL ;return 0 ; }
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx