drm/amdgpu: fix amdgpu_ttm_bind
authorChristian König <[email protected]>
Tue, 22 Aug 2017 14:58:07 +0000 (16:58 +0200)
committerAlex Deucher <[email protected]>
Tue, 29 Aug 2017 19:27:46 +0000 (15:27 -0400)
commit9b0655e3adb6f741b79ce8758f77bf9e08e58243
tree0b294f07c670343ee38bcf54b42b1f882af16a0f
parentfebb84a60304e7257d42b90cc191ef84279e5152
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 <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
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