OSDN Git Service

drm/ttm: export memory type debug entrypoint.
authorDave Airlie <airlied@redhat.com>
Tue, 4 Aug 2020 02:55:41 +0000 (12:55 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 6 Aug 2020 02:16:39 +0000 (12:16 +1000)
commita2ff1e81d04eb938a670bce206de2963d98950d8
treea62d2cfbda0a1e6a4ce871faf8c4a886b987a1d8
parent5977ffeaf33c7239dd0cc6c8fb4c0dc68aa591d5
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
drivers/gpu/drm/ttm/ttm_bo.c
include/drm/ttm/ttm_bo_driver.h