From: Michal Wajdeczko <michal.wajdeczko@intel.com>
To: intel-xe@lists.freedesktop.org
Subject: [CI 1/3] drm/xe: Store pointer to struct xe_gt in gt/ debugfs directory
Date: Thu, 28 Mar 2024 17:28:06 +0100 [thread overview]
Message-ID: <20240328162808.451-2-michal.wajdeczko@intel.com> (raw)
In-Reply-To: <20240328162808.451-1-michal.wajdeczko@intel.com>
Attributes added under 'gt/' directories may wish to use that
in case they can't obtain it from elsewhere.
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Acked-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://lore.kernel.org/r/20240214115756.1525-2-michal.wajdeczko@intel.com
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
---
v2: improved comment
---
drivers/gpu/drm/xe/xe_gt_debugfs.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/gpu/drm/xe/xe_gt_debugfs.c b/drivers/gpu/drm/xe/xe_gt_debugfs.c
index 6b4dc2927727..abec616927f0 100644
--- a/drivers/gpu/drm/xe/xe_gt_debugfs.c
+++ b/drivers/gpu/drm/xe/xe_gt_debugfs.c
@@ -268,6 +268,13 @@ void xe_gt_debugfs_register(struct xe_gt *gt)
return;
}
+ /*
+ * Store the xe_gt pointer as private data of the gt/ directory node
+ * so other GT specific attributes under that directory may refer to
+ * it by looking at its parent node private data.
+ */
+ 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
next prev parent reply other threads:[~2024-03-28 16:28 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-28 16:28 [CI 0/3] Refactor GT debugfs Michal Wajdeczko
2024-03-28 16:28 ` Michal Wajdeczko [this message]
2024-03-28 16:28 ` [CI 2/3] drm/xe: Define helper for GT specific debugfs files Michal Wajdeczko
2024-03-28 16:28 ` [CI 3/3] drm/xe: Refactor GT debugfs Michal Wajdeczko
2024-03-28 21:57 ` ✓ CI.Patch_applied: success for Refactor GT debugfs (rev2) Patchwork
2024-03-28 21:57 ` ✓ CI.checkpatch: " Patchwork
2024-03-28 21:58 ` ✓ CI.KUnit: " Patchwork
2024-03-28 22:10 ` ✓ CI.Build: " Patchwork
2024-03-28 22:12 ` ✓ CI.Hooks: " Patchwork
2024-03-28 22:14 ` ✓ CI.checksparse: " Patchwork
2024-03-28 22:57 ` ✓ CI.BAT: " Patchwork
2024-03-29 12:59 ` Michal Wajdeczko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240328162808.451-2-michal.wajdeczko@intel.com \
--to=michal.wajdeczko@intel.com \
--cc=intel-xe@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).