OSDN Git Service

drm/i915: Fix TLB-Invalidation seqno store
authorAlan Previn <alan.previn.teres.alexis@intel.com>
Mon, 14 Aug 2023 18:24:49 +0000 (11:24 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 22 Aug 2023 15:21:29 +0000 (11:21 -0400)
When getting the next gt's seqno to be stored into an
objects mm.tlb[gt_id] array, fix the retrieval code
to get it from the correct gt instead of the same one.

Fixes: d6c531ab4820 ("drm/i915: Invalidate the TLBs on each GT")
Signed-off-by: Alan Previn <alan.previn.teres.alexis@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230814182449.1060747-1-alan.previn.teres.alexis@intel.com
(cherry picked from commit 90b8ad13536e80b1b4d9ed1c9d527e64ee757c26)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/i915_vma.c

index e520895..6f180ee 100644 (file)
@@ -1356,7 +1356,7 @@ void vma_invalidate_tlb(struct i915_address_space *vm, u32 *tlb)
         */
        for_each_gt(gt, vm->i915, id)
                WRITE_ONCE(tlb[id],
-                          intel_gt_next_invalidate_tlb_full(vm->gt));
+                          intel_gt_next_invalidate_tlb_full(gt));
 }
 
 static void __vma_put_pages(struct i915_vma *vma, unsigned int count)