]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm/amdgpu: check flush fence context instead of same ring v2
authorChristian König <christian.koenig@amd.com>
Fri, 8 Jul 2016 08:21:02 +0000 (10:21 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 14 Jul 2016 20:46:07 +0000 (16:46 -0400)
commit090b767e97fcdabe8ecd71cf43e7d39d94e6cfef
tree68cbae5a009f06c5fbcd91f29d85856967fbb5d9
parentd3200be6c423afa1c34f7e39e9f6d04dd5b0af9d
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c