drm/amdgpu: add a bool to specify if needing vm flush V2
authorChunming Zhou <David1.Zhou@amd.com>
Fri, 1 Jul 2016 09:59:01 +0000 (17:59 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 7 Jul 2016 19:06:16 +0000 (15:06 -0400)
commitfd53be302f0efabead8e37553eaeed1572d0f727
treed5f9d42c13951d785eb8c2df449e66036048de3a
parentec75f573c358bf4b36148659534b3674b80f7a09
drm/amdgpu: add a bool to specify if needing vm flush V2

which avoids job->vm_pd_addr be changed.

V2: pass job structure to amdgpu_vm_grab_id and amdgpu_vm_flush directly.

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