[PATCH 1/3] drm/xe: Store pointer to struct xe_gt in gt/ debugfs directory
Michal Wajdeczko
michal.wajdeczko at intel.com
Wed Feb 14 11:57:54 UTC 2024
Attributes added under 'gt/' directories may wish to use that
in case they can't obtain it from elsewhere.
Signed-off-by: Michal Wajdeczko <michal.wajdeczko at intel.com>
---
drivers/gpu/drm/xe/xe_gt_debugfs.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/xe/xe_gt_debugfs.c b/drivers/gpu/drm/xe/xe_gt_debugfs.c
index c4b67cf09f8f..207b992f1240 100644
--- a/drivers/gpu/drm/xe/xe_gt_debugfs.c
+++ b/drivers/gpu/drm/xe/xe_gt_debugfs.c
@@ -225,6 +225,9 @@ void xe_gt_debugfs_register(struct xe_gt *gt)
return;
}
+ /* other attributes may use parent->d_inode->i_private */
+ root->d_inode->i_private = gt;
+
/*
* Allocate local copy as we need to pass in the GT to the debugfs
* entry and drm_debugfs_create_files just references the drm_info_list
--
2.43.0
More information about the Intel-xe
mailing list