summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorZack Rusin <zackr@vmware.com>2022-04-11 23:35:22 -0400
committerZack Rusin <zackr@vmware.com>2022-04-20 21:06:01 -0400
commit8cd9efd1b7fb329681d5a5fdf441c8fc8dc4f5ae (patch)
tree884186cf8743bb509b384365848b0a7b49d9facb /include
parent74373977d2ca26e5735377f8874be70bc2f030f5 (diff)
downloadlinux-8cd9efd1b7fb329681d5a5fdf441c8fc8dc4f5ae.tar.bz2
drm/ttm: Add common debugfs code for resource managers
Drivers duplicate the code required to add debugfs entries for various ttm resource managers. To fix it add common TTM resource manager debugfs code that each driver can reuse. Specific resource managers can overwrite ttm_resource_manager_func::debug to get more information from those debugfs entries. Signed-off-by: Zack Rusin <zackr@vmware.com> Cc: Huang Rui <ray.huang@amd.com> Cc: David Airlie <airlied@linux.ie> Cc: Daniel Vetter <daniel@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20220412033526.369115-2-zack@kde.org Reviewed-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'include')
-rw-r--r--include/drm/ttm/ttm_resource.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/drm/ttm/ttm_resource.h b/include/drm/ttm/ttm_resource.h
index f82fee18c07f..441653693970 100644
--- a/include/drm/ttm/ttm_resource.h
+++ b/include/drm/ttm/ttm_resource.h
@@ -381,4 +381,8 @@ ttm_kmap_iter_linear_io_init(struct ttm_kmap_iter_linear_io *iter_io,
void ttm_kmap_iter_linear_io_fini(struct ttm_kmap_iter_linear_io *iter_io,
struct ttm_device *bdev,
struct ttm_resource *mem);
+
+void ttm_resource_manager_create_debugfs(struct ttm_resource_manager *man,
+ struct dentry * parent,
+ const char *name);
#endif