aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2015-08-05 12:33:21 -0400
committerAlex Deucher <alexander.deucher@amd.com>2015-08-17 16:51:05 -0400
commit91404fb20825418fd9ab8e6533bc336e1ffc748e (patch)
treedc16e974fdfac848cee65f1f9ce4e6c2e7c2e0d7 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
parent4cd7f42cf8f57512b13a13bb7dcbeabb644f5264 (diff)
drm/amdgpu: merge amd_sched_entity and amd_context_entity v2
Avoiding a couple of casts. v2: rename c_entity to entity as well Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
index 9d5043c42fc5..230bf1f34ead 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
@@ -379,12 +379,12 @@ static int amdgpu_vm_clear_bo(struct amdgpu_device *adev,
379 sched_job->job_param.vm.bo = bo; 379 sched_job->job_param.vm.bo = bo;
380 sched_job->run_job = amdgpu_vm_run_job; 380 sched_job->run_job = amdgpu_vm_run_job;
381 sched_job->free_job = amdgpu_vm_free_job; 381 sched_job->free_job = amdgpu_vm_free_job;
382 v_seq = atomic64_inc_return(&adev->kernel_ctx.rings[ring->idx].c_entity.last_queued_v_seq); 382 v_seq = atomic64_inc_return(&adev->kernel_ctx.rings[ring->idx].entity.last_queued_v_seq);
383 ib->sequence = v_seq; 383 ib->sequence = v_seq;
384 amd_sched_push_job(ring->scheduler, 384 amd_sched_push_job(ring->scheduler,
385 &adev->kernel_ctx.rings[ring->idx].c_entity, 385 &adev->kernel_ctx.rings[ring->idx].entity,
386 sched_job); 386 sched_job);
387 r = amd_sched_wait_emit(&adev->kernel_ctx.rings[ring->idx].c_entity, 387 r = amd_sched_wait_emit(&adev->kernel_ctx.rings[ring->idx].entity,
388 v_seq, 388 v_seq,
389 false, 389 false,
390 -1); 390 -1);
@@ -530,12 +530,12 @@ int amdgpu_vm_update_page_directory(struct amdgpu_device *adev,
530 sched_job->job_param.vm.bo = pd; 530 sched_job->job_param.vm.bo = pd;
531 sched_job->run_job = amdgpu_vm_run_job; 531 sched_job->run_job = amdgpu_vm_run_job;
532 sched_job->free_job = amdgpu_vm_free_job; 532 sched_job->free_job = amdgpu_vm_free_job;
533 v_seq = atomic64_inc_return(&adev->kernel_ctx.rings[ring->idx].c_entity.last_queued_v_seq); 533 v_seq = atomic64_inc_return(&adev->kernel_ctx.rings[ring->idx].entity.last_queued_v_seq);
534 ib->sequence = v_seq; 534 ib->sequence = v_seq;
535 amd_sched_push_job(ring->scheduler, 535 amd_sched_push_job(ring->scheduler,
536 &adev->kernel_ctx.rings[ring->idx].c_entity, 536 &adev->kernel_ctx.rings[ring->idx].entity,
537 sched_job); 537 sched_job);
538 r = amd_sched_wait_emit(&adev->kernel_ctx.rings[ring->idx].c_entity, 538 r = amd_sched_wait_emit(&adev->kernel_ctx.rings[ring->idx].entity,
539 v_seq, 539 v_seq,
540 false, 540 false,
541 -1); 541 -1);
@@ -883,12 +883,12 @@ static int amdgpu_vm_bo_update_mapping(struct amdgpu_device *adev,
883 sched_job->job_param.vm_mapping.fence = fence; 883 sched_job->job_param.vm_mapping.fence = fence;
884 sched_job->run_job = amdgpu_vm_bo_update_mapping_run_job; 884 sched_job->run_job = amdgpu_vm_bo_update_mapping_run_job;
885 sched_job->free_job = amdgpu_vm_free_job; 885 sched_job->free_job = amdgpu_vm_free_job;
886 v_seq = atomic64_inc_return(&adev->kernel_ctx.rings[ring->idx].c_entity.last_queued_v_seq); 886 v_seq = atomic64_inc_return(&adev->kernel_ctx.rings[ring->idx].entity.last_queued_v_seq);
887 ib->sequence = v_seq; 887 ib->sequence = v_seq;
888 amd_sched_push_job(ring->scheduler, 888 amd_sched_push_job(ring->scheduler,
889 &adev->kernel_ctx.rings[ring->idx].c_entity, 889 &adev->kernel_ctx.rings[ring->idx].entity,
890 sched_job); 890 sched_job);
891 r = amd_sched_wait_emit(&adev->kernel_ctx.rings[ring->idx].c_entity, 891 r = amd_sched_wait_emit(&adev->kernel_ctx.rings[ring->idx].entity,
892 v_seq, 892 v_seq,
893 false, 893 false,
894 -1); 894 -1);