drm/amdgpu: Rename kfd_bo_va_list to kfd_mem_attachment

This name is more fitting, especially for the changes coming next to
support multi-GPU systems with proper DMA mappings. Cleaned up the code
and renamed some related functions and variables to improve readability.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Acked-by: Oak Zeng <Oak.Zeng@amd.com>
Acked-by: Ramesh Errabolu <Ramesh.Errabolu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Felix Kuehling
2021-04-08 19:56:12 -04:00
committed by Alex Deucher
parent 0a6fb50286
commit c780b2eedb
2 changed files with 105 additions and 114 deletions

View File

@@ -44,10 +44,10 @@ enum TLB_FLUSH_TYPE {
struct amdgpu_device;
struct kfd_bo_va_list {
struct list_head bo_list;
struct kfd_mem_attachment {
struct list_head list;
struct amdgpu_bo_va *bo_va;
void *kgd_dev;
struct amdgpu_device *adev;
bool is_mapped;
uint64_t va;
uint64_t pte_flags;
@@ -56,7 +56,7 @@ struct kfd_bo_va_list {
struct kgd_mem {
struct mutex lock;
struct amdgpu_bo *bo;
struct list_head bo_va_list;
struct list_head attachments;
/* protected by amdkfd_process_info.lock */
struct ttm_validate_buffer validate_list;
struct ttm_validate_buffer resv_list;