[PATCH 4/7] drm/amdgpu: SMI debugfs tracking

Roy Sun Roy.Sun at amd.com
Mon Mar 22 03:05:08 UTC 2021


From: David M Nieto <david.nieto at amd.com>

Add folder in debugfs structure for tracking of per
pid fences

Signed-off-by: David M Nieto <david.nieto at amd.com>
Signed-off-by: Roy Sun <Roy.Sun at amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
index bcaf271b39bf..02534a059f42 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
@@ -1544,7 +1544,12 @@ int amdgpu_debugfs_init(struct amdgpu_device *adev)
 	struct dentry *ent;
 	int r, i;
 
+	ent = debugfs_create_dir("proc", root);
 
+	if (!ent) {
+		DRM_ERROR("unable to create proc debugfs dir\n");
+		return -EIO;
+	}
 
 	ent = debugfs_create_file("amdgpu_preempt_ib", 0600, root, adev,
 				  &fops_ib_preempt);
-- 
2.29.0



More information about the amd-gfx mailing list