drm: init TTM dev_mapping in ttm_bo_device_init()
authorDavid Herrmann <dh.herrmann@gmail.com>
Tue, 13 Aug 2013 17:10:30 +0000 (19:10 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Sun, 16 Mar 2014 11:23:42 +0000 (12:23 +0100)
commit44d847b7439bdea0b6c5640446427daa3ebcc7fa
tree53f8bef9b2f863ca0aa8989a98ee7ffa69add128
parent6796cb16c088905bf3af40548fda68c09e6f6ee5
drm: init TTM dev_mapping in ttm_bo_device_init()

With dev->anon_inode we have a global address_space ready for operation
right from the beginning. Therefore, there is no need to do a delayed
setup with TTM. Instead, set dev_mapping during initialization in
ttm_bo_device_init() and remove any "if (dev_mapping)" conditions.

Cc: Dave Airlie <airlied@redhat.com>
Cc: Ben Skeggs <bskeggs@redhat.com>
Cc: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Cc: Alex Deucher <alexdeucher@gmail.com>
Cc: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
14 files changed:
drivers/gpu/drm/ast/ast_ttm.c
drivers/gpu/drm/bochs/bochs_mm.c
drivers/gpu/drm/cirrus/cirrus_ttm.c
drivers/gpu/drm/mgag200/mgag200_ttm.c
drivers/gpu/drm/nouveau/nouveau_gem.c
drivers/gpu/drm/nouveau/nouveau_ttm.c
drivers/gpu/drm/qxl/qxl_object.c
drivers/gpu/drm/qxl/qxl_ttm.c
drivers/gpu/drm/radeon/radeon_object.c
drivers/gpu/drm/radeon/radeon_ttm.c
drivers/gpu/drm/ttm/ttm_bo.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
include/drm/drm_vma_manager.h
include/drm/ttm/ttm_bo_driver.h