[Intel-xe] [PATCH v2 5/7] drm/xe: Use a small negative initial seqno
Thomas Hellström
thomas.hellstrom at linux.intel.com
Wed Mar 15 15:55:05 UTC 2023
Causes an early 32-bit wrap and may thus help CI catch wrapping errors
that may otherwise not show early enough.
Signed-off-by: Thomas Hellström <thomas.hellstrom at linux.intel.com>
Reviewed-by: Matthew Auld <matthew.auld at intel.com>
---
drivers/gpu/drm/xe/xe_hw_fence.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/xe/xe_hw_fence.h b/drivers/gpu/drm/xe/xe_hw_fence.h
index 523c2611ef5d..cfe5fd603787 100644
--- a/drivers/gpu/drm/xe/xe_hw_fence.h
+++ b/drivers/gpu/drm/xe/xe_hw_fence.h
@@ -8,7 +8,8 @@
#include "xe_hw_fence_types.h"
-#define XE_FENCE_INITIAL_SEQNO 1
+/* Cause an early wrap to catch wrapping errors */
+#define XE_FENCE_INITIAL_SEQNO (-127)
int xe_hw_fence_module_init(void);
void xe_hw_fence_module_exit(void);
--
2.39.2
More information about the Intel-xe
mailing list