|
@@ -375,8 +375,8 @@ int ttm_bo_move_memcpy(struct ttm_buffer_object *bo,
|
|
|
/*
|
|
|
* TTM might be null for moves within the same region.
|
|
|
*/
|
|
|
- if (ttm && ttm->state == tt_unpopulated) {
|
|
|
- ret = ttm->bdev->driver->ttm_tt_populate(ttm, ctx);
|
|
|
+ if (ttm) {
|
|
|
+ ret = ttm_tt_populate(ttm, ctx);
|
|
|
if (ret)
|
|
|
goto out1;
|
|
|
}
|
|
@@ -557,11 +557,9 @@ static int ttm_bo_kmap_ttm(struct ttm_buffer_object *bo,
|
|
|
|
|
|
BUG_ON(!ttm);
|
|
|
|
|
|
- if (ttm->state == tt_unpopulated) {
|
|
|
- ret = ttm->bdev->driver->ttm_tt_populate(ttm, &ctx);
|
|
|
- if (ret)
|
|
|
- return ret;
|
|
|
- }
|
|
|
+ ret = ttm_tt_populate(ttm, &ctx);
|
|
|
+ if (ret)
|
|
|
+ return ret;
|
|
|
|
|
|
if (num_pages == 1 && (mem->placement & TTM_PL_FLAG_CACHED)) {
|
|
|
/*
|