diff options
author | Christian König <christian.koenig@amd.com> | 2018-11-14 10:11:06 -0500 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2018-12-07 06:44:16 -0500 |
commit | b312d8ca3a7cebe19941d969a51f2b7f899b81e2 (patch) | |
tree | b38afe698b8f8c4cfb9a9e8e8ee1808fad4c33e5 /drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c | |
parent | fcc4a00294a585dfee7588410d5cc9768abc7f00 (diff) |
dma-buf: make fence sequence numbers 64 bit v2
For a lot of use cases we need 64bit sequence numbers. Currently drivers
overload the dma_fence structure to store the additional bits.
Stop doing that and make the sequence number in the dma_fence always
64bit.
For compatibility with hardware which can do only 32bit sequences the
comparisons in __dma_fence_is_later only takes the lower 32bits as significant
when the upper 32bits are all zero.
v2: change the logic in __dma_fence_is_later
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Link: https://patchwork.freedesktop.org/patch/266927/
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c index 12f2bf97611f..bfaf5c6323be 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c | |||
@@ -388,7 +388,7 @@ void amdgpu_sa_bo_dump_debug_info(struct amdgpu_sa_manager *sa_manager, | |||
388 | soffset, eoffset, eoffset - soffset); | 388 | soffset, eoffset, eoffset - soffset); |
389 | 389 | ||
390 | if (i->fence) | 390 | if (i->fence) |
391 | seq_printf(m, " protected by 0x%08x on context %llu", | 391 | seq_printf(m, " protected by 0x%016llx on context %llu", |
392 | i->fence->seqno, i->fence->context); | 392 | i->fence->seqno, i->fence->context); |
393 | 393 | ||
394 | seq_printf(m, "\n"); | 394 | seq_printf(m, "\n"); |