]> 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)
commit0892332e100b9059749e4ae2dca85a0c102cc27c
tree3dd05d2b0d90a0d10f20f3d36e383d56b6ca01a1
parentd56b24ab8a590ca555da16b8d1f7dd792b4e08c8
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