[Intel-xe] [PATCH 5/6] drm/xe: Use a small negative initial seqno

Matthew Brost matthew.brost at intel.com
Wed Mar 15 15:44:55 UTC 2023


On Mon, Mar 13, 2023 at 09:45:18PM +0100, Thomas Hellström wrote:
> Causes an early 32-bit wrap and may thus help CI catch wrapping errors
> that may otherwise not show early enough.
> 

Again let's use 64 bit seqno to wrap impossible in practice. That being said,
not trying to hold up this patch though.

Matt

> Signed-off-by: Thomas Hellström <thomas.hellstrom at linux.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