Skip to contentSkip to conversation

drm/amdgpu: stop touching bo->tbo.ttm

PATCH In review Christian König 2 participants 2 messages Aug 7, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu: stop touching bo->tbo.ttm

This is not allocated any more for SG BOs.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c +1 -3
index 9015c7b76d60..2470b913038b 100644
@@ -1232,10 +1232,8 @@ int amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu(
 				domain_string(alloc_domain), ret);
 		goto err_bo_create;
 	}
-	if (bo_type == ttm_bo_type_sg) {
+	if (bo_type == ttm_bo_type_sg)
 		bo->tbo.sg = sg;
-		bo->tbo.ttm->sg = sg;
-	}
 	bo->kfd_bo = *mem;
 	(*mem)->bo = bo;
 	if (user_addr)
Signature · 6 lines
2.25.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
maintainer
#1 lore raw

Am 2020-08-07 um 8:33 a.m. schrieb Christian König:

Quoted 1 line

This is not allocated any more for SG BOs.

Can you point me at the relevant TTM changes that require this change?

We'd need to test that the SG BO is still working as expected. A doorbell self-ring test or a GPU HDP flush test in KFDTest should do the trick.

Regards,
  Felix

Quoted 12 lines
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c +0 -0
index 9015c7b76d60..2470b913038b 100644
@@ -1232,10 +1232,8 @@ int amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu(
 				domain_string(alloc_domain), ret);

drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c int amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu( · line 1239

Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c +1 -3
 		goto err_bo_create;
 	}
-	if (bo_type == ttm_bo_type_sg) {
+	if (bo_type == ttm_bo_type_sg)
 		bo->tbo.sg = sg;
-		bo->tbo.ttm->sg = sg;
-	}
 	bo->kfd_bo = *mem;
 	(*mem)->bo = bo;
 	if (user_addr)

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