aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.19.8/0909-dma-buf-make-fence-sequence-numbers-64-bit-v2.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/0909-dma-buf-make-fence-sequence-numbers-64-bit-v2.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.19.8/0909-dma-buf-make-fence-sequence-numbers-64-bit-v2.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/0909-dma-buf-make-fence-sequence-numbers-64-bit-v2.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/0909-dma-buf-make-fence-sequence-numbers-64-bit-v2.patch
new file mode 100644
index 00000000..13c734f6
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/0909-dma-buf-make-fence-sequence-numbers-64-bit-v2.patch
@@ -0,0 +1,43 @@
+From bcdd341cd81a6e9944df8121fe38644bdda41051 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com>
+Date: Wed, 14 Nov 2018 16:11:06 +0100
+Subject: [PATCH 0909/2940] dma-buf: make fence sequence numbers 64 bit v2
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+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/
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+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,
+ soffset, eoffset, eoffset - soffset);
+
+ if (i->fence)
+- seq_printf(m, " protected by 0x%08x on context %llu",
++ seq_printf(m, " protected by 0x%016llx on context %llu",
+ i->fence->seqno, i->fence->context);
+
+ seq_printf(m, "\n");
+--
+2.17.1
+