diff options
| author | 2015-05-08 22:18:47 +0800 | |
|---|---|---|
| committer | 2015-06-03 21:03:29 -0400 | |
| commit | 72efa7ebdea084b96f25021d0ba9c29074c2906f (patch) | |
| tree | a209c2b373636fb047f4b0b8cbdbf0214f7d3998 /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
| parent | drm/amdgpu: add ctx_id to the WAIT_CS IOCTL (v4) (diff) | |
| download | linux-dev-72efa7ebdea084b96f25021d0ba9c29074c2906f.tar.xz linux-dev-72efa7ebdea084b96f25021d0ba9c29074c2906f.zip | |
drm/amdgpu: check context id for context switching (v2)
check the filp is not robust, and sometimes different contexts may
have same filp value.
v2: check both filp and ctx_id
Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index bf0c607de195..a88302c0c93a 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h @@ -945,6 +945,7 @@ struct amdgpu_ring { unsigned next_rptr_offs; unsigned fence_offs; struct drm_file *current_filp; + unsigned current_ctx; bool need_ctx_switch; enum amdgpu_ring_type type; char name[16]; |
