Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/xe/debugfs: Expose debugfs entry to check guc pc support
@ 2024-01-19  8:18 Badal Nilawar
  2024-01-19  8:25 ` Nilawar, Badal
                   ` (8 more replies)
  0 siblings, 9 replies; 16+ messages in thread
From: Badal Nilawar @ 2024-01-19  8:18 UTC (permalink / raw)
  To: intel-xe; +Cc: matthew.d.roper, rodrigo.vivi

Expose debugfs entry to check if platform support GuC PC (SLPC) feature.

Signed-off-by: Badal Nilawar <badal.nilawar@intel.com>
---
 drivers/gpu/drm/xe/xe_debugfs.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/gpu/drm/xe/xe_debugfs.c b/drivers/gpu/drm/xe/xe_debugfs.c
index c56fd7d59f05..2f474bf0e7c7 100644
--- a/drivers/gpu/drm/xe/xe_debugfs.c
+++ b/drivers/gpu/drm/xe/xe_debugfs.c
@@ -30,6 +30,13 @@ static struct xe_device *node_to_xe(struct drm_info_node *node)
 	return to_xe_device(node->minor->dev);
 }
 
+static int is_gucpc_supported(struct seq_file *m, void *data)
+{
+	struct xe_device *xe = node_to_xe(m->private);
+
+	return (int)!xe->info.skip_guc_pc;
+}
+
 static int info(struct seq_file *m, void *data)
 {
 	struct xe_device *xe = node_to_xe(m->private);
@@ -67,6 +74,7 @@ static int info(struct seq_file *m, void *data)
 
 static const struct drm_info_list debugfs_list[] = {
 	{"info", info, 0},
+	{"is_gucpc_supported", is_gucpc_supported, 0},
 };
 
 static int forcewake_open(struct inode *inode, struct file *file)
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2024-01-19 12:40 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-19  8:18 [PATCH] drm/xe/debugfs: Expose debugfs entry to check guc pc support Badal Nilawar
2024-01-19  8:25 ` Nilawar, Badal
2024-01-19 11:42   ` Jani Nikula
2024-01-19  8:29 ` ✓ CI.Patch_applied: success for " Patchwork
2024-01-19  8:29 ` ✓ CI.checkpatch: " Patchwork
2024-01-19  8:30 ` ✓ CI.KUnit: " Patchwork
2024-01-19  8:37 ` ✓ CI.Build: " Patchwork
2024-01-19  8:37 ` ✓ CI.Hooks: " Patchwork
2024-01-19  8:39 ` ✓ CI.checksparse: " Patchwork
2024-01-19  9:03 ` ✓ CI.BAT: " Patchwork
2024-01-19  9:28 ` [PATCH] " Gupta, Anshuman
2024-01-19  9:31   ` Nilawar, Badal
2024-01-19  9:35     ` Gupta, Anshuman
2024-01-19  9:57       ` Riana Tauro
2024-01-19 12:40         ` Nilawar, Badal
2024-01-19 12:22       ` Nilawar, Badal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox