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 e83a6dcf2f687192ce709244623c4f804cfa87c5..e68a3a5118475112f725296996321e9f47e23a78 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 3d6b9a904350b1df1f3ce44fa0b5d1aef6354bf5..250fa947df310650a1bdc72a49a70b5b41d82ca0 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 5c7435227995789204021852819686573c36f9d4..69535d9c1ed117e832d5885dc37fcf8b38f7ba64 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 */