drm/amdgpu: fix context switch
authorChristian König <christian.koenig@amd.com>
Mon, 11 May 2015 13:34:59 +0000 (15:34 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 4 Jun 2015 01:03:34 +0000 (21:03 -0400)
commit3cb485f34049b7f3a00f6f73d2325e0858f64ddb
treeed523717c68630c27010a39d112b360492b23c93
parentd919ad49ac04e1e417ea511d61455786a0f0fdb7
drm/amdgpu: fix context switch

Properly protect the state and also handle submission failures.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
Reviewed-by: Monk Liu <monk.liu@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c