]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit82c416b13cb7d22b96ec0888b296a48dff8a09eb
tree3dd05d2b0d90a0d10f20f3d36e383d56b6ca01a1
parent9ec420d833413e39a46b5327ac27436e24d1ad12
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