aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
diff options
context:
space:
mode:
authorChristian König <[email protected]>2023-09-08 08:27:23 +0000
committerLuben Tuikov <[email protected]>2023-11-01 02:24:10 +0000
commit0da611a8702101814257a7c03f6caf0574c83b98 (patch)
tree91cd74ac65b2918f99839df290d988f8c9126d09 /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
parentaccel/ivpu: Rename VPU to NPU in product strings (diff)
downloadkernel-0da611a8702101814257a7c03f6caf0574c83b98.tar.gz
kernel-0da611a8702101814257a7c03f6caf0574c83b98.zip
dma-buf: add dma_fence_timestamp helper
When a fence signals there is a very small race window where the timestamp isn't updated yet. sync_file solves this by busy waiting for the timestamp to appear, but on other ocassions didn't handled this correctly. Provide a dma_fence_timestamp() helper function for this and use it in all appropriate cases. Another alternative would be to grab the spinlock when that happens. v2 by teddy: add a wait parameter to wait for the timestamp to show up, in case the accurate timestamp is needed and/or the timestamp is not based on ktime (e.g. hw timestamp) v3 chk: drop the parameter again for unified handling Signed-off-by: Yunxiang Li <[email protected]> Signed-off-by: Christian König <[email protected]> Fixes: 1774baa64f93 ("drm/scheduler: Change scheduled fence track v2") Reviewed-by: Alex Deucher <[email protected]> CC: [email protected] Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions