aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Previn <[email protected]>2023-08-14 11:24:49 -0700
committerJohn Harrison <[email protected]>2023-08-15 12:28:36 -0700
commit90b8ad13536e80b1b4d9ed1c9d527e64ee757c26 (patch)
tree463c5885cfefab92a8fffb4468bb956db2ce4205
parent788568fad4015406fa84fc86cefbef7c470c7c1f (diff)
drm/i915: Fix TLB-Invalidation seqno store
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 <[email protected]> Reviewed-by: Andi Shyti <[email protected]> Signed-off-by: John Harrison <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
-rw-r--r--drivers/gpu/drm/i915/i915_vma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_vma.c b/drivers/gpu/drm/i915/i915_vma.c
index e52089564d79..6f180ee13853 100644
--- a/drivers/gpu/drm/i915/i915_vma.c
+++ b/drivers/gpu/drm/i915/i915_vma.c
@@ -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)