summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2022-03-08 17:06:49 +0300
committerAlex Deucher <alexander.deucher@amd.com>2022-03-25 19:40:26 +0300
commite997b82745a5b2419bc5b72735811d7162ac994a (patch)
tree2a411c227d2a25ad4c4a19f9aeef46a78c5023c9 /drivers/gpu/drm/amd/amdgpu/amdgpu_sync.h
parent184a69ca4d4125eee07f853cde45ee19dd21c437 (diff)
downloadlinux-e997b82745a5b2419bc5b72735811d7162ac994a.tar.xz
drm/amdgpu: simplify VM update tracking a bit
Store the 64bit sequence directly. Makes it simpler to use and saves a bit of fence reference counting overhead. Signed-off-by: Christian König <christian.koenig@amd.com> Acked-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sync.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_sync.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.h
index 7c0fe20c470d..876c1ee8869c 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.h
@@ -43,7 +43,7 @@ enum amdgpu_sync_mode {
*/
struct amdgpu_sync {
DECLARE_HASHTABLE(fences, 4);
- struct dma_fence *last_vm_update;
+ uint64_t last_vm_update;
};
void amdgpu_sync_create(struct amdgpu_sync *sync);