Lines Matching full:gt

57  *    int foo(struct xe_gt *gt, struct drm_printer *p)
59 * drm_printf(p, "GT%u\n", gt->info.id);
67 * dir = debugfs_create_dir("gt", parent);
68 * dir->d_inode->i_private = gt;
78 struct xe_gt *gt = parent->d_inode->i_private; in xe_gt_debugfs_simple_show() local
84 return print(gt, &p); in xe_gt_debugfs_simple_show()
87 static int hw_engines(struct xe_gt *gt, struct drm_printer *p) in hw_engines() argument
89 struct xe_device *xe = gt_to_xe(gt); in hw_engines()
95 err = xe_force_wake_get(gt_to_fw(gt), XE_FORCEWAKE_ALL); in hw_engines()
101 for_each_hw_engine(hwe, gt, id) in hw_engines()
104 err = xe_force_wake_put(gt_to_fw(gt), XE_FORCEWAKE_ALL); in hw_engines()
112 static int force_reset(struct xe_gt *gt, struct drm_printer *p) in force_reset() argument
114 xe_pm_runtime_get(gt_to_xe(gt)); in force_reset()
115 xe_gt_reset_async(gt); in force_reset()
116 xe_pm_runtime_put(gt_to_xe(gt)); in force_reset()
121 static int force_reset_sync(struct xe_gt *gt, struct drm_printer *p) in force_reset_sync() argument
123 xe_pm_runtime_get(gt_to_xe(gt)); in force_reset_sync()
124 xe_gt_reset_async(gt); in force_reset_sync()
125 xe_pm_runtime_put(gt_to_xe(gt)); in force_reset_sync()
127 flush_work(&gt->reset.worker); in force_reset_sync()
132 static int sa_info(struct xe_gt *gt, struct drm_printer *p) in sa_info() argument
134 struct xe_tile *tile = gt_to_tile(gt); in sa_info()
136 xe_pm_runtime_get(gt_to_xe(gt)); in sa_info()
139 xe_pm_runtime_put(gt_to_xe(gt)); in sa_info()
144 static int topology(struct xe_gt *gt, struct drm_printer *p) in topology() argument
146 xe_pm_runtime_get(gt_to_xe(gt)); in topology()
147 xe_gt_topology_dump(gt, p); in topology()
148 xe_pm_runtime_put(gt_to_xe(gt)); in topology()
153 static int steering(struct xe_gt *gt, struct drm_printer *p) in steering() argument
155 xe_pm_runtime_get(gt_to_xe(gt)); in steering()
156 xe_gt_mcr_steering_dump(gt, p); in steering()
157 xe_pm_runtime_put(gt_to_xe(gt)); in steering()
162 static int ggtt(struct xe_gt *gt, struct drm_printer *p) in ggtt() argument
166 xe_pm_runtime_get(gt_to_xe(gt)); in ggtt()
167 ret = xe_ggtt_dump(gt_to_tile(gt)->mem.ggtt, p); in ggtt()
168 xe_pm_runtime_put(gt_to_xe(gt)); in ggtt()
173 static int register_save_restore(struct xe_gt *gt, struct drm_printer *p) in register_save_restore() argument
178 xe_pm_runtime_get(gt_to_xe(gt)); in register_save_restore()
180 xe_reg_sr_dump(&gt->reg_sr, p); in register_save_restore()
184 for_each_hw_engine(hwe, gt, id) in register_save_restore()
189 for_each_hw_engine(hwe, gt, id) in register_save_restore()
194 for_each_hw_engine(hwe, gt, id) in register_save_restore()
197 xe_pm_runtime_put(gt_to_xe(gt)); in register_save_restore()
202 static int workarounds(struct xe_gt *gt, struct drm_printer *p) in workarounds() argument
204 xe_pm_runtime_get(gt_to_xe(gt)); in workarounds()
205 xe_wa_dump(gt, p); in workarounds()
206 xe_pm_runtime_put(gt_to_xe(gt)); in workarounds()
211 static int pat(struct xe_gt *gt, struct drm_printer *p) in pat() argument
213 xe_pm_runtime_get(gt_to_xe(gt)); in pat()
214 xe_pat_dump(gt, p); in pat()
215 xe_pm_runtime_put(gt_to_xe(gt)); in pat()
220 static int mocs(struct xe_gt *gt, struct drm_printer *p) in mocs() argument
222 xe_pm_runtime_get(gt_to_xe(gt)); in mocs()
223 xe_mocs_dump(gt, p); in mocs()
224 xe_pm_runtime_put(gt_to_xe(gt)); in mocs()
229 static int rcs_default_lrc(struct xe_gt *gt, struct drm_printer *p) in rcs_default_lrc() argument
231 xe_pm_runtime_get(gt_to_xe(gt)); in rcs_default_lrc()
232 xe_lrc_dump_default(p, gt, XE_ENGINE_CLASS_RENDER); in rcs_default_lrc()
233 xe_pm_runtime_put(gt_to_xe(gt)); in rcs_default_lrc()
238 static int ccs_default_lrc(struct xe_gt *gt, struct drm_printer *p) in ccs_default_lrc() argument
240 xe_pm_runtime_get(gt_to_xe(gt)); in ccs_default_lrc()
241 xe_lrc_dump_default(p, gt, XE_ENGINE_CLASS_COMPUTE); in ccs_default_lrc()
242 xe_pm_runtime_put(gt_to_xe(gt)); in ccs_default_lrc()
247 static int bcs_default_lrc(struct xe_gt *gt, struct drm_printer *p) in bcs_default_lrc() argument
249 xe_pm_runtime_get(gt_to_xe(gt)); in bcs_default_lrc()
250 xe_lrc_dump_default(p, gt, XE_ENGINE_CLASS_COPY); in bcs_default_lrc()
251 xe_pm_runtime_put(gt_to_xe(gt)); in bcs_default_lrc()
256 static int vcs_default_lrc(struct xe_gt *gt, struct drm_printer *p) in vcs_default_lrc() argument
258 xe_pm_runtime_get(gt_to_xe(gt)); in vcs_default_lrc()
259 xe_lrc_dump_default(p, gt, XE_ENGINE_CLASS_VIDEO_DECODE); in vcs_default_lrc()
260 xe_pm_runtime_put(gt_to_xe(gt)); in vcs_default_lrc()
265 static int vecs_default_lrc(struct xe_gt *gt, struct drm_printer *p) in vecs_default_lrc() argument
267 xe_pm_runtime_get(gt_to_xe(gt)); in vecs_default_lrc()
268 xe_lrc_dump_default(p, gt, XE_ENGINE_CLASS_VIDEO_ENHANCE); in vecs_default_lrc()
269 xe_pm_runtime_put(gt_to_xe(gt)); in vecs_default_lrc()
274 static int hwconfig(struct xe_gt *gt, struct drm_printer *p) in hwconfig() argument
276 xe_pm_runtime_get(gt_to_xe(gt)); in hwconfig()
277 xe_guc_hwconfig_dump(&gt->uc.guc, p); in hwconfig()
278 xe_pm_runtime_put(gt_to_xe(gt)); in hwconfig()
304 void xe_gt_debugfs_register(struct xe_gt *gt) in xe_gt_debugfs_register() argument
306 struct xe_device *xe = gt_to_xe(gt); in xe_gt_debugfs_register()
307 struct drm_minor *minor = gt_to_xe(gt)->drm.primary; in xe_gt_debugfs_register()
311 xe_gt_assert(gt, minor->debugfs_root); in xe_gt_debugfs_register()
313 snprintf(name, sizeof(name), "gt%d", gt->info.id); in xe_gt_debugfs_register()
316 drm_warn(&xe->drm, "Create GT directory failed"); in xe_gt_debugfs_register()
321 * Store the xe_gt pointer as private data of the gt/ directory node in xe_gt_debugfs_register()
322 * so other GT specific attributes under that directory may refer to in xe_gt_debugfs_register()
325 root->d_inode->i_private = gt; in xe_gt_debugfs_register()
331 xe_uc_debugfs_register(&gt->uc, root); in xe_gt_debugfs_register()
334 xe_gt_sriov_pf_debugfs_register(gt, root); in xe_gt_debugfs_register()
336 xe_gt_sriov_vf_debugfs_register(gt, root); in xe_gt_debugfs_register()