aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma-buf/sw_sync.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2019-04-15 14:46:34 +0200
committerChristian König <christian.koenig@amd.com>2019-04-16 14:49:10 +0200
commit5e498abf14858945f1249d9cc4ff1e8715a307e3 (patch)
treed8c599a61c51f700fd5dd9ae5d5492ce64e38b45 /drivers/dma-buf/sw_sync.c
parentdrm/panfrost: Add support for 2MB page entries (diff)
downloadlinux-dev-5e498abf14858945f1249d9cc4ff1e8715a307e3.tar.xz
linux-dev-5e498abf14858945f1249d9cc4ff1e8715a307e3.zip
dma-buf: explicitely note that dma-fence-chains use 64bit seqno
Instead of checking the upper values of the sequence number use an explicit field in the dma_fence_ops structure to note if a sequence should be 32bit or 64bit. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Link: https://patchwork.freedesktop.org/patch/299655/
Diffstat (limited to 'drivers/dma-buf/sw_sync.c')
-rw-r--r--drivers/dma-buf/sw_sync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma-buf/sw_sync.c b/drivers/dma-buf/sw_sync.c
index 32dcf7b4c935..119b2ffbc2c9 100644
--- a/drivers/dma-buf/sw_sync.c
+++ b/drivers/dma-buf/sw_sync.c
@@ -161,7 +161,7 @@ static bool timeline_fence_signaled(struct dma_fence *fence)
{
struct sync_timeline *parent = dma_fence_parent(fence);
- return !__dma_fence_is_later(fence->seqno, parent->value);
+ return !__dma_fence_is_later(fence->seqno, parent->value, fence->ops);
}
static bool timeline_fence_enable_signaling(struct dma_fence *fence)