From: Thomas Hellström Date: Fri, 10 Mar 2023 11:07:12 +0000 (+0100) Subject: drm/xe: Use a small negative initial seqno X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a5dfb471bba18fc38dc623ff1fa4387f48dacba6;p=linux.git drm/xe: Use a small negative initial seqno 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 Reviewed-by: Matthew Auld Signed-off-by: Rodrigo Vivi --- diff --git a/drivers/gpu/drm/xe/xe_hw_fence.h b/drivers/gpu/drm/xe/xe_hw_fence.h index 523c2611ef5d6..cfe5fd603787e 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);