@@ -13,6 +13,7 @@
#include "i915_gem_mman.h"
#include "gt/intel_gt.h"
+#include "gt/intel_gt_pm.h"
void __i915_gem_object_set_pages(struct drm_i915_gem_object *obj,
struct sg_table *pages,
@@ -217,10 +218,15 @@ __i915_gem_object_unset_pages(struct drm_i915_gem_object *obj)
if (test_and_clear_bit(I915_BO_WAS_BOUND_BIT, &obj->flags)) {
struct drm_i915_private *i915 = to_i915(obj->base.dev);
- intel_wakeref_t wakeref;
+ struct intel_gt *gt;
+ int i;
- with_intel_runtime_pm_if_active(&i915->runtime_pm, wakeref)
- intel_gt_invalidate_tlbs(to_gt(i915));
+ for_each_gt(gt, i915, i) {
+ int tmp;
+
+ with_intel_gt_pm_if_awake(gt, tmp)
+ intel_gt_invalidate_tlbs(gt);
+ }
}
return pages;
During object cleanup we invalidate the TLBs but we do it only for gt0. Invalidate the caches for all the tiles. Reported-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Andi Shyti <andi.shyti@studenti.polito.it> --- drivers/gpu/drm/i915/gem/i915_gem_pages.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-)