diff options
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_bo.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_bo.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_bo.c b/drivers/gpu/drm/nouveau/nouveau_bo.c index a2908a91495..ab661f459fe 100644 --- a/drivers/gpu/drm/nouveau/nouveau_bo.c +++ b/drivers/gpu/drm/nouveau/nouveau_bo.c | |||
@@ -816,12 +816,6 @@ nouveau_bo_move(struct ttm_buffer_object *bo, bool evict, bool intr, | |||
816 | if (ret) | 816 | if (ret) |
817 | return ret; | 817 | return ret; |
818 | 818 | ||
819 | /* Software copy if the card isn't up and running yet. */ | ||
820 | if (!dev_priv->channel) { | ||
821 | ret = ttm_bo_move_memcpy(bo, evict, no_wait_reserve, no_wait_gpu, new_mem); | ||
822 | goto out; | ||
823 | } | ||
824 | |||
825 | /* Fake bo copy. */ | 819 | /* Fake bo copy. */ |
826 | if (old_mem->mem_type == TTM_PL_SYSTEM && !bo->ttm) { | 820 | if (old_mem->mem_type == TTM_PL_SYSTEM && !bo->ttm) { |
827 | BUG_ON(bo->mem.mm_node != NULL); | 821 | BUG_ON(bo->mem.mm_node != NULL); |
@@ -830,6 +824,12 @@ nouveau_bo_move(struct ttm_buffer_object *bo, bool evict, bool intr, | |||
830 | goto out; | 824 | goto out; |
831 | } | 825 | } |
832 | 826 | ||
827 | /* Software copy if the card isn't up and running yet. */ | ||
828 | if (!dev_priv->channel) { | ||
829 | ret = ttm_bo_move_memcpy(bo, evict, no_wait_reserve, no_wait_gpu, new_mem); | ||
830 | goto out; | ||
831 | } | ||
832 | |||
833 | /* Hardware assisted copy. */ | 833 | /* Hardware assisted copy. */ |
834 | if (new_mem->mem_type == TTM_PL_SYSTEM) | 834 | if (new_mem->mem_type == TTM_PL_SYSTEM) |
835 | ret = nouveau_bo_move_flipd(bo, evict, intr, no_wait_reserve, no_wait_gpu, new_mem); | 835 | ret = nouveau_bo_move_flipd(bo, evict, intr, no_wait_reserve, no_wait_gpu, new_mem); |