drm/amdgpu: use TTM_PL_FLAG_CONTIGUOUS v2
authorChristian König <christian.koenig@amd.com>
Wed, 29 Mar 2017 11:41:57 +0000 (13:41 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 5 Apr 2017 03:34:27 +0000 (23:34 -0400)
commit89bb5752c054e971fd453456792cb3db3d738f75
tree2d9a9d7b1d1954f62788074ae5767046ed84b651
parentf75e237c41587b5e438cbf5d5c90ffcda4080955
drm/amdgpu: use TTM_PL_FLAG_CONTIGUOUS v2

Implement AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS using TTM_PL_FLAG_CONTIGUOUS
instead of a placement limit. That allows us to better handle CPU
accessible placements.

v2: prevent virtual BO start address from overflowing

Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c