Skip to contentSkip to conversation

drm/amdgpu: remove amdgpu_bo_gpu_accessible

PATCH In review Christian König 3 participants 3 messages Aug 28, 2018 1 message not in the archive

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

PATCH 1/1 drm/amdgpu: remove amdgpu_bo_gpu_accessible

Not used any more.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | 13 -------------
 1 file changed, 13 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_object.h +0 -13
index 18945dd6982d..907fdf46d895 100644
@@ -193,19 +193,6 @@ static inline u64 amdgpu_bo_mmap_offset(struct amdgpu_bo *bo)
 	return drm_vma_node_offset_addr(&bo->tbo.vma_node);
 }
 
-/**
- * amdgpu_bo_gpu_accessible - return whether the bo is currently in memory that
- * is accessible to the GPU.
- */
-static inline bool amdgpu_bo_gpu_accessible(struct amdgpu_bo *bo)
-{
-	switch (bo->tbo.mem.mem_type) {
-	case TTM_PL_TT: return amdgpu_gtt_mgr_has_gart_addr(&bo->tbo.mem);
-	case TTM_PL_VRAM: return true;
-	default: return false;
-	}
-}
-
 /**
  * amdgpu_bo_in_cpu_visible_vram - check if BO is (partly) in visible VRAM
  */
Signature · 6 lines
2.17.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): 20180828122052.17669-1-christian.koenig-5C7GfCeVMHo@public.gmane.org

Reviewed-by
#2 lore raw
Quoted 22 lines · Christian König

Not used any more.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | 13 -------------
 1 file changed, 13 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_object.h +0 -6
index 18945dd6982d..907fdf46d895 100644
@@ -193,19 +193,6 @@ static inline u64 amdgpu_bo_mmap_offset(struct amdgpu_bo *bo)
 	return drm_vma_node_offset_addr(&bo->tbo.vma_node);
 }
 
-/**
- * amdgpu_bo_gpu_accessible - return whether the bo is currently in memory that
- * is accessible to the GPU.
- */
-static inline bool amdgpu_bo_gpu_accessible(struct amdgpu_bo *bo)
-{

drivers/gpu/drm/amd/amdgpu/amdgpu_object.h static inline u64 amdgpu_bo_mmap_offset(struct amdgpu_bo *bo) · line 198

Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_object.h +0 -7
-	switch (bo->tbo.mem.mem_type) {
-	case TTM_PL_TT: return amdgpu_gtt_mgr_has_gart_addr(&bo->tbo.mem);
-	case TTM_PL_VRAM: return true;
-	default: return false;
-	}
-}
-
 /**
  * amdgpu_bo_in_cpu_visible_vram - check if BO is (partly) in visible VRAM
  */
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
#3 lore raw
In reply to a message not in the archive
Quoted 3 lines · Christian König

Not used any more.

Quoted 18 lines
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | 13 -------------
 1 file changed, 13 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_object.h +0 -6
index 18945dd6982d..907fdf46d895 100644
@@ -193,19 +193,6 @@ static inline u64 amdgpu_bo_mmap_offset(struct amdgpu_bo *bo)
 	return drm_vma_node_offset_addr(&bo->tbo.vma_node);
 }
 
-/**
- * amdgpu_bo_gpu_accessible - return whether the bo is currently in memory that
- * is accessible to the GPU.
- */
-static inline bool amdgpu_bo_gpu_accessible(struct amdgpu_bo *bo)
-{

drivers/gpu/drm/amd/amdgpu/amdgpu_object.h static inline u64 amdgpu_bo_mmap_offset(struct amdgpu_bo *bo) · line 198

Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_object.h +0 -7
-	switch (bo->tbo.mem.mem_type) {
-	case TTM_PL_TT: return amdgpu_gtt_mgr_has_gart_addr(&bo->tbo.mem);
-	case TTM_PL_VRAM: return true;
-	default: return false;
-	}
-}
-
 /**
  * amdgpu_bo_in_cpu_visible_vram - check if BO is (partly) in visible VRAM
  */

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