drm/vram: use drm_gem_ttm_print_info
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 4 Sep 2019 05:47:36 +0000 (07:47 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 10 Sep 2019 06:53:08 +0000 (08:53 +0200)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20190904054740.20817-4-kraxel@redhat.com
drivers/gpu/drm/Kconfig
drivers/gpu/drm/drm_gem_vram_helper.c

index f7b2551..1be8ad3 100644 (file)
@@ -169,6 +169,7 @@ config DRM_VRAM_HELPER
        tristate
        depends on DRM
        select DRM_TTM
+       select DRM_TTM_HELPER
        help
          Helpers for VRAM memory management
 
index 0990f0e..becf101 100644 (file)
@@ -1,5 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-or-later
 
+#include <drm/drm_gem_ttm_helper.h>
 #include <drm/drm_gem_vram_helper.h>
 #include <drm/drm_device.h>
 #include <drm/drm_mode.h>
@@ -732,5 +733,6 @@ static const struct drm_gem_object_funcs drm_gem_vram_object_funcs = {
        .pin    = drm_gem_vram_object_pin,
        .unpin  = drm_gem_vram_object_unpin,
        .vmap   = drm_gem_vram_object_vmap,
-       .vunmap = drm_gem_vram_object_vunmap
+       .vunmap = drm_gem_vram_object_vunmap,
+       .print_info = drm_gem_ttm_print_info,
 };