drm/xe: Use a define to set initial seqno for fences
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Thu, 9 Mar 2023 16:20:20 +0000 (17:20 +0100)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 19 Dec 2023 23:30:13 +0000 (18:30 -0500)
commit7c51050b3b0799f5d74331a7eb81a7066d520731
treea8f43681ea3425112ee321a02a3214c475207575
parent8eb7ad99ae66b4244a1239bfa8723d1a06beddb9
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>
drivers/gpu/drm/xe/xe_engine.c
drivers/gpu/drm/xe/xe_hw_fence.c
drivers/gpu/drm/xe/xe_hw_fence.h
drivers/gpu/drm/xe/xe_lrc.c