]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix and cleanup amdgpu_gem_object_close v4
authorChristian König <christian.koenig@amd.com>
Thu, 12 Mar 2020 11:03:34 +0000 (12:03 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Apr 2020 18:44:46 +0000 (14:44 -0400)
commita07e3e49e363d660f7a63b47bdc63b8ec34a0f20
tree3dd05d2b0d90a0d10f20f3d36e383d56b6ca01a1
parent313c2c516457f1efef50d391d445d694047d0971
drm/amdgpu: fix and cleanup amdgpu_gem_object_close v4

The problem is that we can't add the clear fence to the BO
when there is an exclusive fence on it since we can't
guarantee the the clear fence will complete after the
exclusive one.

To fix this refactor the function and also add the exclusive
fence as shared to the resv object.

v2: fix warning
v3: add excl fence as shared instead
v4: squash in fix for fence handling in amdgpu_gem_object_close

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: xinhui pan <xinhui.pan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c