All of lore.kernel.org
 help / color / mirror / Atom feed
* DRM debugfs cleanup take 6
@ 2023-08-29 11:01 Christian König
  2023-08-29 11:01 ` [PATCH 1/5] drm/debugfs: drop debugfs_init() for the render and accel node v2 Christian König
                   ` (4 more replies)
  0 siblings, 5 replies; 20+ messages in thread
From: Christian König @ 2023-08-29 11:01 UTC (permalink / raw)
  To: ogabbay, ttayar, dri-devel

Hi guys,

Tomer found a few more issues (mostly kerneldoc) which are fixed in this
spin. I think we can land that now.

Please review and/or comment,
Christian.



^ permalink raw reply	[flat|nested] 20+ messages in thread
* DRM debugfs cleanup take 5 (resend)
@ 2023-07-11 14:04 Christian König
  2023-07-11 14:04 ` [PATCH 4/5] drm/debugfs: remove dev->debugfs_list and debugfs_mutex v2 Christian König
  0 siblings, 1 reply; 20+ messages in thread
From: Christian König @ 2023-07-11 14:04 UTC (permalink / raw)
  To: ogabbay, dri-devel

Hi guys,

sorry for the delay, just sending it out to the list once more to get
some acks and rbs.

Apart from that the CI systems seems to be happy with that and I think
it can get merged now.

Regards,
Christian.



^ permalink raw reply	[flat|nested] 20+ messages in thread
* [PATCH 1/5] drm/debugfs: drop debugfs_init() for the render and accel node v2
@ 2023-04-24 12:30 Christian König
  2023-04-24 12:30 ` [PATCH 4/5] drm/debugfs: remove dev->debugfs_list and debugfs_mutex v2 Christian König
  0 siblings, 1 reply; 20+ messages in thread
From: Christian König @ 2023-04-24 12:30 UTC (permalink / raw)
  To: dri-devel

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 <christian.koenig@amd.com>
---
 drivers/accel/drm_accel.c     | 3 ---
 drivers/gpu/drm/drm_debugfs.c | 2 +-
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/accel/drm_accel.c b/drivers/accel/drm_accel.c
index 1b69824286fd..d473388ee807 100644
--- a/drivers/accel/drm_accel.c
+++ b/drivers/accel/drm_accel.c
@@ -99,9 +99,6 @@ void accel_debugfs_init(struct drm_minor *minor, int minor_id)
 
 	drm_debugfs_create_files(accel_debugfs_list, ACCEL_DEBUGFS_ENTRIES,
 				 minor->debugfs_root, minor);
-
-	if (dev->driver->debugfs_init)
-		dev->driver->debugfs_init(minor);
 }
 
 /**
diff --git a/drivers/gpu/drm/drm_debugfs.c b/drivers/gpu/drm/drm_debugfs.c
index 4855230ba2c6..54376e2400bb 100644
--- a/drivers/gpu/drm/drm_debugfs.c
+++ b/drivers/gpu/drm/drm_debugfs.c
@@ -242,7 +242,7 @@ int drm_debugfs_init(struct drm_minor *minor, int minor_id,
 		drm_client_debugfs_init(minor);
 	}
 
-	if (dev->driver->debugfs_init)
+	if (dev->driver->debugfs_init && dev->render != minor)
 		dev->driver->debugfs_init(minor);
 
 	list_for_each_entry_safe(entry, tmp, &dev->debugfs_list, list) {
-- 
2.34.1


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

end of thread, other threads:[~2023-09-01  8:37 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-29 11:01 DRM debugfs cleanup take 6 Christian König
2023-08-29 11:01 ` [PATCH 1/5] drm/debugfs: drop debugfs_init() for the render and accel node v2 Christian König
2023-08-30  8:19   ` Andi Shyti
2023-08-30 14:22     ` Christian König
2023-09-01  8:00   ` Tomer Tayar
2023-08-29 11:01 ` [PATCH 2/5] drm/debugfs: disallow debugfs access when device isn't registered Christian König
2023-08-29 11:31   ` Andi Shyti
2023-08-29 11:35     ` Christian König
2023-08-29 11:38       ` Andi Shyti
2023-08-29 12:31         ` Christian König
2023-08-30  7:57           ` Christian König
2023-08-30  8:48             ` Andi Shyti
2023-08-29 11:01 ` [PATCH 3/5] drm/debugfs: rework debugfs directory creation v5 Christian König
2023-08-31 21:49   ` Andi Shyti
2023-08-29 11:01 ` [PATCH 4/5] drm/debugfs: remove dev->debugfs_list and debugfs_mutex v2 Christian König
2023-08-31 21:56   ` Andi Shyti
2023-08-29 11:01 ` [PATCH 5/5] drm/debugfs: rework drm_debugfs_create_files implementation v2 Christian König
2023-08-31 22:06   ` Andi Shyti
  -- strict thread matches above, loose matches on Subject: below --
2023-07-11 14:04 DRM debugfs cleanup take 5 (resend) Christian König
2023-07-11 14:04 ` [PATCH 4/5] drm/debugfs: remove dev->debugfs_list and debugfs_mutex v2 Christian König
2023-04-24 12:30 [PATCH 1/5] drm/debugfs: drop debugfs_init() for the render and accel node v2 Christian König
2023-04-24 12:30 ` [PATCH 4/5] drm/debugfs: remove dev->debugfs_list and debugfs_mutex v2 Christian König

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.