]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9b8201689bdadaad47891a80ea53acbe678b1a3c
tree3c76192d5f67d48ba1d70a2fbd323355ebf16567
parent81acf78fc2cc857913cadf8766543a4e9784219c
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