drm/amdgpu: add pipeline sync while vmid switch in same ctx
authorChunming Zhou <David1.Zhou@amd.com>
Wed, 27 Apr 2016 10:07:41 +0000 (18:07 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 9 Jun 2016 14:49:01 +0000 (10:49 -0400)
commit2ba272d7bde27e1db2cf1c6cee49b01b7ea08989
treec37802046a2008ad66a97535cf67326affa91014
parentfdff8cfa72b3e42d4d0c70684fa18b1dfee46d97
drm/amdgpu: add pipeline sync while vmid switch in same ctx

Since vmid-mgr supports vmid sharing in one vm, the same ctx could
get different vmids for two emits without vm flush, vm_flush could
be done in another ring.

Signed-off-by: Chunming Zhou <David1.Zhou@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.h
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c