summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/xe_hw_fence.h
diff options
context:
space:
mode:
authorThomas Hellström <thomas.hellstrom@linux.intel.com>2023-03-09 17:20:20 +0100
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-19 18:30:13 -0500
commit7c51050b3b0799f5d74331a7eb81a7066d520731 (patch)
treea8f43681ea3425112ee321a02a3214c475207575 /drivers/gpu/drm/xe/xe_hw_fence.h
parent8eb7ad99ae66b4244a1239bfa8723d1a06beddb9 (diff)
drm/xe: Use a define to set initial seqno for fences
Also for HW fences, write the initial seqno - 1 to the HW completed seqno to initialize. v2: - Use __dma_fence_is_later() to compare hw fence seqnos. (Matthew Auld) Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_hw_fence.h')
-rw-r--r--drivers/gpu/drm/xe/xe_hw_fence.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_hw_fence.h b/drivers/gpu/drm/xe/xe_hw_fence.h
index 07f202db6526..523c2611ef5d 100644
--- a/drivers/gpu/drm/xe/xe_hw_fence.h
+++ b/drivers/gpu/drm/xe/xe_hw_fence.h
@@ -8,6 +8,8 @@
#include "xe_hw_fence_types.h"
+#define XE_FENCE_INITIAL_SEQNO 1
+
int xe_hw_fence_module_init(void);
void xe_hw_fence_module_exit(void);