]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/xe/pf: Update LMTT to use tile-based messages
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Sun, 5 Oct 2025 13:36:39 +0000 (15:36 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Mon, 6 Oct 2025 17:39:25 +0000 (19:39 +0200)
Since now we have tile-based SR-IOV printk macros, there is no
need to manually prepare the LMTT specific warning message (that
is now upgraded to proper error level message) nor to use generic
debug message without tile/LMTT identification.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Piotr Piórkowski <piotr.piorkowski@intel.com>
Link: https://lore.kernel.org/r/20251005133641.2651-4-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_lmtt.c

index 62fc5a1a332d7789ee8d55e04961ba2491a3236c..4dc1de482eeed743ad6392448683dcb7dcdc3f82 100644 (file)
@@ -17,7 +17,7 @@
 #include "xe_mmio.h"
 #include "xe_res_cursor.h"
 #include "xe_sriov.h"
-#include "xe_sriov_printk.h"
+#include "xe_tile_sriov_printk.h"
 
 /**
  * DOC: Local Memory Translation Table
@@ -32,7 +32,7 @@
  */
 
 #define lmtt_assert(lmtt, condition)   xe_tile_assert(lmtt_to_tile(lmtt), condition)
-#define lmtt_debug(lmtt, msg...)       xe_sriov_dbg_verbose(lmtt_to_xe(lmtt), "LMTT: " msg)
+#define lmtt_debug(lmtt, msg...)       xe_tile_sriov_dbg_verbose(lmtt_to_tile(lmtt), "LMTT: " msg)
 
 static bool xe_has_multi_level_lmtt(struct xe_device *xe)
 {
@@ -267,15 +267,14 @@ static int lmtt_invalidate_hw(struct xe_lmtt *lmtt)
  */
 void xe_lmtt_invalidate_hw(struct xe_lmtt *lmtt)
 {
-       struct xe_device *xe = lmtt_to_xe(lmtt);
        int err;
 
-       lmtt_assert(lmtt, IS_SRIOV_PF(xe));
+       lmtt_assert(lmtt, IS_SRIOV_PF(lmtt_to_xe(lmtt)));
 
        err = lmtt_invalidate_hw(lmtt);
        if (err)
-               xe_sriov_warn(xe, "LMTT%u invalidation failed (%pe)",
-                             lmtt_to_tile(lmtt)->id, ERR_PTR(err));
+               xe_tile_sriov_err(lmtt_to_tile(lmtt), "LMTT invalidation failed (%pe)",
+                                 ERR_PTR(err));
 }
 
 static void lmtt_write_pte(struct xe_lmtt *lmtt, struct xe_lmtt_pt *pt,