drm/xe/tlb: increment next seqno after successful CT send
authorMatthew Auld <matthew.auld@intel.com>
Mon, 10 Jul 2023 09:40:43 +0000 (10:40 +0100)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:35:22 +0000 (11:35 -0500)
commit4803f6e26f1678b8b5af2924199bc137e7ec5fad
treeb761fb5db092949638a8815fd7403550243d1518
parentdad33831d8d137ee28b21c3c2296463a01aa5b78
drm/xe/tlb: increment next seqno after successful CT send

If we are in the middle of a GT reset or similar the CT might be
disabled, such that the CT send fails. However we already incremented
gt->tlb_invalidation.seqno which might lead to warnings, since we
effectively just skipped a seqno:

    0000:00:02.0: drm_WARN_ON(expected_seqno != msg[0])

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Cc: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c