]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe/guc: Refactor GuC debugfs initialization
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 3 Apr 2025 14:26:33 +0000 (16:26 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Fri, 11 Apr 2025 10:13:46 +0000 (12:13 +0200)
commite15826bb3c2c5377eedc757f2adec8dcaa5255f7
tree19b34fd5f14f0bc20dfc838dd789ad4fcc9dd2d3
parent80742a1aa26ea31a5c48da6f4da1d2e6ce6a2ab2
drm/xe/guc: Refactor GuC debugfs initialization

We don't have to drmm_kmalloc() local copy of debugfs_list to
write there our pointer to the struct xe_guc as we can extract
pointer to the struct xe_gt from the grandparent debugfs entry,
in similar way to what we did for GT debugfs files.

Note that there is no change in file/directory structure, just
refactored how files are created and how functions are called.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://lore.kernel.org/r/20250403142635.1821-2-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_guc_debugfs.c