drm/amdgpu: fix VM faults caused by vm_grab_id() v4
authorChristian König <christian.koenig@amd.com>
Fri, 26 Feb 2016 15:18:26 +0000 (16:18 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 29 Feb 2016 16:33:46 +0000 (11:33 -0500)
commit4ff37a83f19dab4e67299325ee22e98346eee857
treea8778a8fb2140caebf7cf8f2fd080e9828606c90
parentce22c4bfdf70c03e9308751df5c2bf78b79a893f
drm/amdgpu: fix VM faults caused by vm_grab_id() v4

The owner must be per ring as long as we don't
support sharing VMIDs per process. Also move the
assigned VMID and page directory address into the
IB structure.

v3: assign the VMID to all IBs, not just the first one.
v4: use correct pointer for owner

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Acked-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_job.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
drivers/gpu/drm/amd/amdgpu/cik_sdma.c
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c
drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c