summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/nouveau_debugfs.h
diff options
context:
space:
mode:
authorDanilo Krummrich <dakr@kernel.org>2024-11-25 15:25:49 +0100
committerDanilo Krummrich <dakr@kernel.org>2024-12-04 21:43:46 +0100
commit97118a1816d2be258d360da8a9819ff0f34949eb (patch)
tree449e0cd24157cb49953bf4f60652c63ab0bbe640 /drivers/gpu/drm/nouveau/nouveau_debugfs.h
parentc6eabbab359c156669e10d5dec3e71e80ff09bd2 (diff)
drm/nouveau: create module debugfs root
Typically DRM drivers use the DRM debugfs root entry. However, since Nouveau is heading towards a split into a core and a DRM driver, create a module specific debugfs root directory. Subsequent patches make use of this new debugfs root in order to store GSP-RM log bufferes (optionally beyond a device driver binding). Acked-by: Timur Tabi <ttabi@nvidia.com> Signed-off-by: Danilo Krummrich <dakr@kernel.org> Link: https://patchwork.freedesktop.org/patch/msgid/20241125142639.9126-1-dakr@kernel.org
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_debugfs.h')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_debugfs.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_debugfs.h b/drivers/gpu/drm/nouveau/nouveau_debugfs.h
index 77f0323b38ba..b7617b344ee2 100644
--- a/drivers/gpu/drm/nouveau/nouveau_debugfs.h
+++ b/drivers/gpu/drm/nouveau/nouveau_debugfs.h
@@ -21,6 +21,11 @@ nouveau_debugfs(struct drm_device *dev)
extern void nouveau_drm_debugfs_init(struct drm_minor *);
extern int nouveau_debugfs_init(struct nouveau_drm *);
extern void nouveau_debugfs_fini(struct nouveau_drm *);
+
+extern struct dentry *nouveau_debugfs_root;
+
+int nouveau_module_debugfs_init(void);
+void nouveau_module_debugfs_fini(void);
#else
static inline void
nouveau_drm_debugfs_init(struct drm_minor *minor)
@@ -37,6 +42,17 @@ nouveau_debugfs_fini(struct nouveau_drm *drm)
{
}
+static inline int
+nouveau_module_debugfs_init(void)
+{
+ return 0;
+}
+
+static inline void
+nouveau_module_debugfs_fini(void)
+{
+}
+
#endif
#endif