drm/xe: Refactor GT debugfs
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 28 Mar 2024 16:28:08 +0000 (17:28 +0100)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Fri, 29 Mar 2024 13:00:07 +0000 (14:00 +0100)
commitc54eb24f713dfe19229bc0dec55f50b96058db43
treed71cd8771f49d314c90b5fc676715175268dd02b
parent19b8f86f4aaa56ee0c8ee56eb8e2b30f6d272199
drm/xe: Refactor GT debugfs

We are abusing struct drm_info_list.data by storing there pointer
to the xe_gt, while it shouldn't be used for any device specific
data.  Use recently introduced xe_gt_debugfs_simple_show() that
hides all details how to obtain the xe_gt pointer.  This will also
remove the need for making copies of the struct drm_info_list
to get GT specific definitions.

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://lore.kernel.org/r/20240214115756.1525-4-michal.wajdeczko@intel.com
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240328162808.451-4-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_gt_debugfs.c