drm/vram-helper: Remove BO device from public interface
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 6 Jan 2020 12:57:44 +0000 (13:57 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 7 Jan 2020 10:53:19 +0000 (11:53 +0100)
commita4d46a8e268fcd0cc4235a23d1baabfc588f66f4
tree3c76192d5f67d48ba1d70a2fbd323355ebf16567
parentebe9428b3f60fd15f6b309cf0c65a995f1732c4f
drm/vram-helper: Remove BO device from public interface

TTM is an implementation detail of the VRAM helpers and therefore
shouldn't be exposed to the callers. There's only one correct value
for the BO device anyway, which is the one stored in the DRM device.

So remove struct ttm_bo_device from the VRAM-helper interface and
use the device's VRAM manager unconditionally. The GEM initializer
function fails if the VRAM manager has not been initialized.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200106125745.13797-8-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_mode.c
drivers/gpu/drm/drm_gem_vram_helper.c
drivers/gpu/drm/hisilicon/hibmc/hibmc_ttm.c
drivers/gpu/drm/mgag200/mgag200_cursor.c
drivers/gpu/drm/mgag200/mgag200_drv.c
include/drm/drm_gem_vram_helper.h