]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/xe/tlb: ensure we access seqno_recv once
authorMatthew Auld <matthew.auld@intel.com>
Mon, 10 Jul 2023 09:40:40 +0000 (10:40 +0100)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:35:22 +0000 (11:35 -0500)
commit86ed09250e068faa840dadcd175d3cd8d174f998
tree05c70938ca24e669dd9e6097a74f287cf1e94990
parent38fa29dc2b73b54299e973d292ec7fd507d3b8c0
drm/xe/tlb: ensure we access seqno_recv once

Ensure we load gt->tlb_invalidation.seqno_recv once, and use that for
our seqno checking. The gt->tlb_invalidation_seqno_past is a shared
global variable and can potentially change at any point here.  However
the checks here need to operate on a stable version of seqno_recv for
this to make any sense.

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