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

drm/xe/debugfs: Make ggtt file per-tile

Due to initial lack of per-tile debugfs directories, the ggtt file
attribute was created as per-GT file. Fix that since now we have
proper per-tile directories.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://lore.kernel.org/r/20250919160430.573-2-michal.wajdeczko@intel.com

+7 -13
-13
drivers/gpu/drm/xe/xe_gt_debugfs.c
··· 12 12 13 13 #include "xe_device.h" 14 14 #include "xe_force_wake.h" 15 - #include "xe_ggtt.h" 16 15 #include "xe_gt.h" 17 16 #include "xe_gt_mcr.h" 18 17 #include "xe_gt_idle.h" ··· 141 142 return 0; 142 143 } 143 144 144 - static int ggtt(struct xe_gt *gt, struct drm_printer *p) 145 - { 146 - int ret; 147 - 148 - xe_pm_runtime_get(gt_to_xe(gt)); 149 - ret = xe_ggtt_dump(gt_to_tile(gt)->mem.ggtt, p); 150 - xe_pm_runtime_put(gt_to_xe(gt)); 151 - 152 - return ret; 153 - } 154 - 155 145 static int register_save_restore(struct xe_gt *gt, struct drm_printer *p) 156 146 { 157 147 struct xe_hw_engine *hwe; ··· 267 279 */ 268 280 static const struct drm_info_list vf_safe_debugfs_list[] = { 269 281 {"topology", .show = xe_gt_debugfs_simple_show, .data = topology}, 270 - {"ggtt", .show = xe_gt_debugfs_simple_show, .data = ggtt}, 271 282 {"register-save-restore", .show = xe_gt_debugfs_simple_show, .data = register_save_restore}, 272 283 {"workarounds", .show = xe_gt_debugfs_simple_show, .data = workarounds}, 273 284 {"tunings", .show = xe_gt_debugfs_simple_show, .data = tunings},
+7
drivers/gpu/drm/xe/xe_tile_debugfs.c
··· 6 6 #include <linux/debugfs.h> 7 7 #include <drm/drm_debugfs.h> 8 8 9 + #include "xe_ggtt.h" 9 10 #include "xe_pm.h" 10 11 #include "xe_sa.h" 11 12 #include "xe_tile_debugfs.h" ··· 91 90 return ret; 92 91 } 93 92 93 + static int ggtt(struct xe_tile *tile, struct drm_printer *p) 94 + { 95 + return xe_ggtt_dump(tile->mem.ggtt, p); 96 + } 97 + 94 98 static int sa_info(struct xe_tile *tile, struct drm_printer *p) 95 99 { 96 100 drm_suballoc_dump_debug_info(&tile->mem.kernel_bb_pool->base, p, ··· 106 100 107 101 /* only for debugfs files which can be safely used on the VF */ 108 102 static const struct drm_info_list vf_safe_debugfs_list[] = { 103 + { "ggtt", .show = tile_debugfs_show_with_rpm, .data = ggtt }, 109 104 { "sa_info", .show = tile_debugfs_show_with_rpm, .data = sa_info }, 110 105 }; 111 106