drm/amdgpu: fix amdgpu_ttm_bind
authorChristian König <christian.koenig@amd.com>
Tue, 22 Aug 2017 14:58:07 +0000 (16:58 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 24 Aug 2017 15:48:47 +0000 (11:48 -0400)
commit1d00402b4da29c53e846bd7499ce94643dd055b9
treed66147d548f6424e884fac6fa21c38a4af2306e6
parent457e0fee04b0c6c57a28a10e68b16c5f1386c80c
drm/amdgpu: fix amdgpu_ttm_bind

Use ttm_bo_mem_space instead of manually allocating GART space.

This allows us to evict BOs when there isn't enought GART space any more.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h