OSDN Git Service

drm/amdgpu: rename page_directory_fence to last_dir_update
authorChristian König <christian.koenig@amd.com>
Wed, 12 Oct 2016 11:20:52 +0000 (13:20 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Mar 2017 03:55:22 +0000 (23:55 -0400)
Decribes better what this is used for.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h

index e83a6dc..e68a3a5 100644 (file)
@@ -781,7 +781,7 @@ static int amdgpu_bo_vm_update_pte(struct amdgpu_cs_parser *p)
        if (r)
                return r;
 
-       r = amdgpu_sync_fence(adev, &p->job->sync, vm->page_directory_fence);
+       r = amdgpu_sync_fence(adev, &p->job->sync, vm->last_dir_update);
        if (r)
                return r;
 
index 3d6b9a9..250fa94 100644 (file)
@@ -780,8 +780,8 @@ int amdgpu_vm_update_page_directory(struct amdgpu_device *adev,
                goto error_free;
 
        amdgpu_bo_fence(vm->page_directory, fence, true);
-       dma_fence_put(vm->page_directory_fence);
-       vm->page_directory_fence = dma_fence_get(fence);
+       dma_fence_put(vm->last_dir_update);
+       vm->last_dir_update = dma_fence_get(fence);
        dma_fence_put(fence);
 
        return 0;
@@ -1913,7 +1913,7 @@ int amdgpu_vm_init(struct amdgpu_device *adev, struct amdgpu_vm *vm)
        if (r)
                goto err;
 
-       vm->page_directory_fence = NULL;
+       vm->last_dir_update = NULL;
 
        r = amdgpu_bo_create(adev, pd_size, align, true,
                             AMDGPU_GEM_DOMAIN_VRAM,
@@ -1996,7 +1996,7 @@ void amdgpu_vm_fini(struct amdgpu_device *adev, struct amdgpu_vm *vm)
 
        amdgpu_bo_unref(&vm->page_directory->shadow);
        amdgpu_bo_unref(&vm->page_directory);
-       dma_fence_put(vm->page_directory_fence);
+       dma_fence_put(vm->last_dir_update);
 }
 
 /**
index 5c74352..69535d9 100644 (file)
@@ -100,7 +100,7 @@ struct amdgpu_vm {
        /* contains the page directory */
        struct amdgpu_bo        *page_directory;
        unsigned                max_pde_used;
-       struct dma_fence                *page_directory_fence;
+       struct dma_fence        *last_dir_update;
        uint64_t                last_eviction_counter;
 
        /* array of page tables, one for each page directory entry */