Skip to content

Commit e76e7ec

Browse files
Christian KönigChristianKoenigAMD
Christian König
authored andcommitted
drm/debugfs: drop debugfs_init() for the render and accel node v2
We want to remove per minor debugfs directories. Start by stopping drivers from adding anything inside of those in the mid layer callback. v2: drop it for the accel node as well Signed-off-by: Christian König <[email protected]> Tested-by: Stanislaw Gruszka <[email protected]> Reviewed-by: Andi Shyti <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent a5bb8a6 commit e76e7ec

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

drivers/accel/drm_accel.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,6 @@ void accel_debugfs_init(struct drm_minor *minor, int minor_id)
9999

100100
drm_debugfs_create_files(accel_debugfs_list, ACCEL_DEBUGFS_ENTRIES,
101101
minor->debugfs_root, minor);
102-
103-
if (dev->driver->debugfs_init)
104-
dev->driver->debugfs_init(minor);
105102
}
106103

107104
/**

drivers/gpu/drm/drm_debugfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ int drm_debugfs_init(struct drm_minor *minor, int minor_id,
284284
drm_client_debugfs_init(minor);
285285
}
286286

287-
if (dev->driver->debugfs_init)
287+
if (dev->driver->debugfs_init && dev->render != minor)
288288
dev->driver->debugfs_init(minor);
289289

290290
list_for_each_entry_safe(entry, tmp, &dev->debugfs_list, list) {

0 commit comments

Comments
 (0)