]> asedeno.scripts.mit.edu Git - linux.git/commit
drm: Use the same mmap-range offset and size for GEM and TTM
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 7 Feb 2019 08:59:31 +0000 (09:59 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:03:53 +0000 (15:03 -0500)
commitbf141a88b329d12c9aaea4f7e7a8fdbd2dfe987d
tree2046b3bd8faca73da578d2ee8a9ef0318e254af3
parentbed2dd84212eb0151ae3bfc39cdaa25a951749c1
drm: Use the same mmap-range offset and size for GEM and TTM

GEM defines DRM_FILE_PAGE_OFFSET_{START,SIZE} constants for the
mmap-able range of addresses. TTM can use them as well.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Christian König <christian.koenig@amd.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/drm_gem.c
drivers/gpu/drm/ttm/ttm_bo.c
drivers/gpu/drm/ttm/ttm_bo_vm.c
include/drm/drm_vma_manager.h
include/drm/ttm/ttm_bo_driver.h