diff options
author | Dave Airlie <airlied@redhat.com> | 2020-08-04 04:55:41 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2020-08-06 04:16:39 +0200 |
commit | a2ff1e81d04eb938a670bce206de2963d98950d8 (patch) | |
tree | a62d2cfbda0a1e6a4ce871faf8c4a886b987a1d8 /include/drm/ttm/ttm_bo_driver.h | |
parent | drm/vram-helper: remove populate/unpopulate (diff) | |
download | linux-a2ff1e81d04eb938a670bce206de2963d98950d8.tar.xz linux-a2ff1e81d04eb938a670bce206de2963d98950d8.zip |
drm/ttm: export memory type debug entrypoint.
As suggested on review, just export the memory type debug for
drivers to use, while also making the debug callback optional
(don't need to test for system as it won't init it).
rename it to be more consistent with object name for now.
(we may rename all the objects later.)
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200804025632.3868079-9-airlied@gmail.com
Diffstat (limited to 'include/drm/ttm/ttm_bo_driver.h')
-rw-r--r-- | include/drm/ttm/ttm_bo_driver.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/drm/ttm/ttm_bo_driver.h b/include/drm/ttm/ttm_bo_driver.h index 049ebf85712f..ee11ae621c3b 100644 --- a/include/drm/ttm/ttm_bo_driver.h +++ b/include/drm/ttm/ttm_bo_driver.h @@ -806,4 +806,12 @@ pgprot_t ttm_io_prot(uint32_t caching_flags, pgprot_t tmp); extern const struct ttm_mem_type_manager_func ttm_bo_manager_func; +/** + * ttm_mem_type_manager_debug + * + * @man: manager type to dump. + * @p: printer to use for debug. + */ +void ttm_mem_type_manager_debug(struct ttm_mem_type_manager *man, + struct drm_printer *p); #endif |