]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: Add common debugfs code for resource managers
authorZack Rusin <zackr@vmware.com>
Tue, 12 Apr 2022 03:35:22 +0000 (23:35 -0400)
committerZack Rusin <zackr@vmware.com>
Thu, 21 Apr 2022 01:06:01 +0000 (21:06 -0400)
commitadc7371c00e23ba0a5e4d7896ea6ad08a9b30e7d
tree884186cf8743bb509b384365848b0a7b49d9facb
parent5a192f74c010cb6249d5571300c03ca84c646487
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>
drivers/gpu/drm/ttm/ttm_resource.c
include/drm/ttm/ttm_resource.h