summaryrefslogtreecommitdiffstats
path: root/include/drm/drm_accel.h
diff options
context:
space:
mode:
authorChristian König <ckoenig.leichtzumerken@gmail.com>2023-08-29 13:01:13 +0200
committerChristian König <christian.koenig@amd.com>2023-09-01 08:51:18 +0200
commit0b30d57acafcaa5374756d314ee54f80d0bcc860 (patch)
tree39096f84ff057c447719d6cb284578f149802c55 /include/drm/drm_accel.h
parent19ecbe8325a2a7ffda5ff4790955b84eaccba49f (diff)
downloadlinux-stable-0b30d57acafcaa5374756d314ee54f80d0bcc860.tar.gz
linux-stable-0b30d57acafcaa5374756d314ee54f80d0bcc860.tar.bz2
linux-stable-0b30d57acafcaa5374756d314ee54f80d0bcc860.zip
drm/debugfs: rework debugfs directory creation v5
Instead of the per minor directories only create a single debugfs directory for the whole device directly when the device is initialized. For DRM devices each minor gets a symlink to the per device directory for now until we can be sure that this isn't useful any more in any way. Accel devices create only the per device directory and also drops the mid layer callback to create driver specific files. v2: cleanup accel component as well v3: fix typo when debugfs is disabled v4: call drm_debugfs_dev_fini() during release as well, some kerneldoc typos fixed v5: rebased and one more kerneldoc fix Signed-off-by: Christian König <christian.koenig@amd.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230829110115.3442-4-christian.koenig@amd.com Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Diffstat (limited to 'include/drm/drm_accel.h')
-rw-r--r--include/drm/drm_accel.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/drm/drm_accel.h b/include/drm/drm_accel.h
index d4955062c77e..f4d3784b1dce 100644
--- a/include/drm/drm_accel.h
+++ b/include/drm/drm_accel.h
@@ -58,7 +58,8 @@ int accel_minor_alloc(void);
void accel_minor_replace(struct drm_minor *minor, int index);
void accel_set_device_instance_params(struct device *kdev, int index);
int accel_open(struct inode *inode, struct file *filp);
-void accel_debugfs_init(struct drm_minor *minor, int minor_id);
+void accel_debugfs_init(struct drm_device *dev);
+void accel_debugfs_register(struct drm_device *dev);
#else
@@ -89,7 +90,11 @@ static inline void accel_set_device_instance_params(struct device *kdev, int ind
{
}
-static inline void accel_debugfs_init(struct drm_minor *minor, int minor_id)
+static inline void accel_debugfs_init(struct drm_device *dev)
+{
+}
+
+static inline void accel_debugfs_register(struct drm_device *dev)
{
}