Skip to contentSkip to conversation

drm/i915: Invalidate all GTs in flush_tlb_invalidate()

PATCH In review Nirmoy Das 2 participants 3 messages Oct 2, 2023

Subsystems (2)
lore
Share & tools
lore

Nirmoy Das

author
#0 lore raw

PATCH 1/1 drm/i915: Invalidate all GTs in flush_tlb_invalidate()

Don't return early if one of the GT doesn't require any flushing.

Fixes d6c531ab4820 ("drm/i915: Invalidate the TLBs on each GT")
Cc Chris Wilson <[email protected]>
Cc Fei Yang <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
Cc Andi Shyti <[email protected]>
Cc Jani Nikula <[email protected]>
Cc Joonas Lahtinen <[email protected]>
Cc Rodrigo Vivi <[email protected]>
Cc Tvrtko Ursulin <[email protected]>
Cc Nirmoy Das <[email protected]>
Cc Matthew Auld <[email protected]>
Cc "Ville Syrjälä" <[email protected]>
Cc Andrzej Hajda <[email protected]>
Cc "Christian König" <[email protected]>
Cc Jonathan Cavitt <[email protected]>
Cc Matt Roper <[email protected]>
---
 drivers/gpu/drm/i915/gem/i915_gem_pages.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/gem/i915_gem_pages.c +1 -1
index 6b6d22c19411..0ba955611dfb 100644
@@ -198,7 +198,7 @@ static void flush_tlb_invalidate(struct drm_i915_gem_object *obj)
 
 	for_each_gt(gt, i915, id) {
 		if (!obj->mm.tlb[id])
-			return;
+			continue;
 
 		intel_gt_invalidate_tlb_full(gt, obj->mm.tlb[id]);
 		obj->mm.tlb[id] = 0;
Signature · 1 line
2.41.0
#1 lore raw

Hi Nirmoy,

Quoted 13 lines · Nirmoy Das

Don't return early if one of the GT doesn't require any flushing.

Fixes d6c531ab4820 ("drm/i915: Invalidate the TLBs on each GT")
Cc Chris Wilson <[email protected]>
Cc Fei Yang <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
Cc Andi Shyti <[email protected]>
Cc Jani Nikula <[email protected]>
Cc Joonas Lahtinen <[email protected]>
Cc Rodrigo Vivi <[email protected]>
Cc Tvrtko Ursulin <[email protected]>
Cc Nirmoy Das <[email protected]>
Quoted 8 lines
Cc Matthew Auld <[email protected]>
Cc "Ville Syrjälä" <[email protected]>
Cc Andrzej Hajda <[email protected]>
Cc "Christian König" <[email protected]>
Cc Jonathan Cavitt <[email protected]>
Cc Matt Roper <[email protected]>

This patch has been sent already here:

https://patchwork.freedesktop.org/patch/560309/?series=124472&rev=1

Can we take it from there?

Andi

author
#2 lore raw

Hi Andi,

Quoted 24 lines · Andi Shyti

Hi Nirmoy,

Quoted 13 lines · Nirmoy Das

Don't return early if one of the GT doesn't require any flushing.

Fixes d6c531ab4820 ("drm/i915: Invalidate the TLBs on each GT")
Cc Chris Wilson <[email protected]>
Cc Fei Yang <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
Cc Andi Shyti <[email protected]>
Cc Jani Nikula <[email protected]>
Cc Joonas Lahtinen <[email protected]>
Cc Rodrigo Vivi <[email protected]>
Cc Tvrtko Ursulin <[email protected]>
Cc Nirmoy Das <[email protected]>
Quoted 8 lines
Cc Matthew Auld <[email protected]>
Cc "Ville Syrjälä" <[email protected]>
Cc Andrzej Hajda <[email protected]>
Cc "Christian König" <[email protected]>
Cc Jonathan Cavitt <[email protected]>
Cc Matt Roper <[email protected]>
Quoted 5 lines

This patch has been sent already here:

https://patchwork.freedesktop.org/patch/560309/?series=124472&rev=1

Can we take it from there?

Missed it. Sure,  works for me.

Thanks,

Nirmoy

Quoted 2 lines

Andi