Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/xe/pf: Update LMTT to use tile-based messages

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

+5 -6
+5 -6
drivers/gpu/drm/xe/xe_lmtt.c
··· 17 17 #include "xe_mmio.h" 18 18 #include "xe_res_cursor.h" 19 19 #include "xe_sriov.h" 20 - #include "xe_sriov_printk.h" 20 + #include "xe_tile_sriov_printk.h" 21 21 22 22 /** 23 23 * DOC: Local Memory Translation Table ··· 32 32 */ 33 33 34 34 #define lmtt_assert(lmtt, condition) xe_tile_assert(lmtt_to_tile(lmtt), condition) 35 - #define lmtt_debug(lmtt, msg...) xe_sriov_dbg_verbose(lmtt_to_xe(lmtt), "LMTT: " msg) 35 + #define lmtt_debug(lmtt, msg...) xe_tile_sriov_dbg_verbose(lmtt_to_tile(lmtt), "LMTT: " msg) 36 36 37 37 static bool xe_has_multi_level_lmtt(struct xe_device *xe) 38 38 { ··· 267 267 */ 268 268 void xe_lmtt_invalidate_hw(struct xe_lmtt *lmtt) 269 269 { 270 - struct xe_device *xe = lmtt_to_xe(lmtt); 271 270 int err; 272 271 273 - lmtt_assert(lmtt, IS_SRIOV_PF(xe)); 272 + lmtt_assert(lmtt, IS_SRIOV_PF(lmtt_to_xe(lmtt))); 274 273 275 274 err = lmtt_invalidate_hw(lmtt); 276 275 if (err) 277 - xe_sriov_warn(xe, "LMTT%u invalidation failed (%pe)", 278 - lmtt_to_tile(lmtt)->id, ERR_PTR(err)); 276 + xe_tile_sriov_err(lmtt_to_tile(lmtt), "LMTT invalidation failed (%pe)", 277 + ERR_PTR(err)); 279 278 } 280 279 281 280 static void lmtt_write_pte(struct xe_lmtt *lmtt, struct xe_lmtt_pt *pt,