diff options
author | Christian König <christian.koenig@amd.com> | 2017-12-18 11:08:25 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-12-27 11:34:02 -0500 |
commit | c4f46f22c448ff571eb8fdbe4ab71a25805228d1 (patch) | |
tree | 50d8eafedcb7b1bbc3fa00561101d395d9ec003b /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |
parent | 620f774f4687d86c420152309eefb0ef0fcc7e51 (diff) |
drm/amdgpu: rename vm_id to vmid
sed -i "s/vm_id/vmid/g" drivers/gpu/drm/amd/amdgpu/*.c
sed -i "s/vm_id/vmid/g" drivers/gpu/drm/amd/amdgpu/*.h
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c index 01ee8e2258c8..946bc21c6d7d 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |||
@@ -446,9 +446,9 @@ bool amdgpu_vm_need_pipeline_sync(struct amdgpu_ring *ring, | |||
446 | bool gds_switch_needed; | 446 | bool gds_switch_needed; |
447 | bool vm_flush_needed = job->vm_needs_flush || ring->has_compute_vm_bug; | 447 | bool vm_flush_needed = job->vm_needs_flush || ring->has_compute_vm_bug; |
448 | 448 | ||
449 | if (job->vm_id == 0) | 449 | if (job->vmid == 0) |
450 | return false; | 450 | return false; |
451 | id = &id_mgr->ids[job->vm_id]; | 451 | id = &id_mgr->ids[job->vmid]; |
452 | gds_switch_needed = ring->funcs->emit_gds_switch && ( | 452 | gds_switch_needed = ring->funcs->emit_gds_switch && ( |
453 | id->gds_base != job->gds_base || | 453 | id->gds_base != job->gds_base || |
454 | id->gds_size != job->gds_size || | 454 | id->gds_size != job->gds_size || |
@@ -472,7 +472,7 @@ static bool amdgpu_vm_is_large_bar(struct amdgpu_device *adev) | |||
472 | * amdgpu_vm_flush - hardware flush the vm | 472 | * amdgpu_vm_flush - hardware flush the vm |
473 | * | 473 | * |
474 | * @ring: ring to use for flush | 474 | * @ring: ring to use for flush |
475 | * @vm_id: vmid number to use | 475 | * @vmid: vmid number to use |
476 | * @pd_addr: address of the page directory | 476 | * @pd_addr: address of the page directory |
477 | * | 477 | * |
478 | * Emit a VM flush when it is necessary. | 478 | * Emit a VM flush when it is necessary. |
@@ -482,7 +482,7 @@ int amdgpu_vm_flush(struct amdgpu_ring *ring, struct amdgpu_job *job, bool need_ | |||
482 | struct amdgpu_device *adev = ring->adev; | 482 | struct amdgpu_device *adev = ring->adev; |
483 | unsigned vmhub = ring->funcs->vmhub; | 483 | unsigned vmhub = ring->funcs->vmhub; |
484 | struct amdgpu_vmid_mgr *id_mgr = &adev->vm_manager.id_mgr[vmhub]; | 484 | struct amdgpu_vmid_mgr *id_mgr = &adev->vm_manager.id_mgr[vmhub]; |
485 | struct amdgpu_vmid *id = &id_mgr->ids[job->vm_id]; | 485 | struct amdgpu_vmid *id = &id_mgr->ids[job->vmid]; |
486 | bool gds_switch_needed = ring->funcs->emit_gds_switch && ( | 486 | bool gds_switch_needed = ring->funcs->emit_gds_switch && ( |
487 | id->gds_base != job->gds_base || | 487 | id->gds_base != job->gds_base || |
488 | id->gds_size != job->gds_size || | 488 | id->gds_size != job->gds_size || |
@@ -511,8 +511,8 @@ int amdgpu_vm_flush(struct amdgpu_ring *ring, struct amdgpu_job *job, bool need_ | |||
511 | if (ring->funcs->emit_vm_flush && vm_flush_needed) { | 511 | if (ring->funcs->emit_vm_flush && vm_flush_needed) { |
512 | struct dma_fence *fence; | 512 | struct dma_fence *fence; |
513 | 513 | ||
514 | trace_amdgpu_vm_flush(ring, job->vm_id, job->vm_pd_addr); | 514 | trace_amdgpu_vm_flush(ring, job->vmid, job->vm_pd_addr); |
515 | amdgpu_ring_emit_vm_flush(ring, job->vm_id, job->vm_pd_addr); | 515 | amdgpu_ring_emit_vm_flush(ring, job->vmid, job->vm_pd_addr); |
516 | 516 | ||
517 | r = amdgpu_fence_emit(ring, &fence); | 517 | r = amdgpu_fence_emit(ring, &fence); |
518 | if (r) | 518 | if (r) |
@@ -532,7 +532,7 @@ int amdgpu_vm_flush(struct amdgpu_ring *ring, struct amdgpu_job *job, bool need_ | |||
532 | id->gws_size = job->gws_size; | 532 | id->gws_size = job->gws_size; |
533 | id->oa_base = job->oa_base; | 533 | id->oa_base = job->oa_base; |
534 | id->oa_size = job->oa_size; | 534 | id->oa_size = job->oa_size; |
535 | amdgpu_ring_emit_gds_switch(ring, job->vm_id, job->gds_base, | 535 | amdgpu_ring_emit_gds_switch(ring, job->vmid, job->gds_base, |
536 | job->gds_size, job->gws_base, | 536 | job->gds_size, job->gws_base, |
537 | job->gws_size, job->oa_base, | 537 | job->gws_size, job->oa_base, |
538 | job->oa_size); | 538 | job->oa_size); |