diff options
author | Christian König <christian.koenig@amd.com> | 2016-07-08 10:21:02 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-07-14 16:46:07 -0400 |
commit | 090b767e97fcdabe8ecd71cf43e7d39d94e6cfef (patch) | |
tree | 68cbae5a009f06c5fbcd91f29d85856967fbb5d9 /drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c | |
parent | d3200be6c423afa1c34f7e39e9f6d04dd5b0af9d (diff) | |
download | linux-090b767e97fcdabe8ecd71cf43e7d39d94e6cfef.tar.bz2 |
drm/amdgpu: check flush fence context instead of same ring v2
Otherwise we can run into the following situation:
1. Process A grabs ID 1 for ring 0.
2. Process B grabs ID 1 for ring 0.
3. Process A grabs ID 1 for ring 1.
4. Process A tries to reuse ID1 for ring 0 but things he doesn't need to flush.
v2: check the context of the flush fence instead of messing with the owner field.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c')
0 files changed, 0 insertions, 0 deletions