]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: only keep most recent fence for each context
authorArvind Yadav <Arvind.Yadav@amd.com>
Fri, 25 Apr 2025 14:19:05 +0000 (19:49 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 May 2025 17:29:58 +0000 (13:29 -0400)
commit3e50b1d625f25cfa6336823c7ffd5b30893b8ac7
treedf0eb53acb6253655f7d88de1be05cfe6bcf74ee
parent68071eb0ae64c076ed93897be644ebbd1c89a278
drm/amdgpu: only keep most recent fence for each context

Keep only the latest fences to reduce the number of values
given back to userspace

v2: - Export this code from dma-fence-unwrap.c(by Christian).
v3: - To split this in a dma_buf patch and amd userq patch(by Sunil).
    - No need to add a new function just re-use existing(by Christian).
v4: Export dma_fence_dedub_array function and used it(by Christian).

Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Reviewed-by: Sunil Khatri <sunil.khatri@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Arvind Yadav <Arvind.Yadav@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_userq_fence.c