]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
drm/xe: Make GGTT TLB invalidation failure message GT oriented
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 23 Jul 2025 13:30:15 +0000 (15:30 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 24 Jul 2025 12:44:31 +0000 (14:44 +0200)
GGTT TLB invalidation is performed on the specific GT, thus any
failure message shall be also GT specific. And to help investigate
any unexpected failures, promote message from warn level to WARN
to get full call stack of this unlikely case.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://lore.kernel.org/r/20250723133015.206601-1-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_ggtt.c

index 29d4d3f51da17b7020348104565645792325de2d..249713139f6943b0c1ba8c6d6264214ac9cf07ec 100644 (file)
@@ -439,8 +439,7 @@ static void ggtt_invalidate_gt_tlb(struct xe_gt *gt)
                return;
 
        err = xe_gt_tlb_invalidation_ggtt(gt);
-       if (err)
-               drm_warn(&gt_to_xe(gt)->drm, "xe_gt_tlb_invalidation_ggtt error=%d", err);
+       xe_gt_WARN(gt, err, "Failed to invalidate GGTT (%pe)", ERR_PTR(err));
 }
 
 static void xe_ggtt_invalidate(struct xe_ggtt *ggtt)