drm/ttm: cleanup LRU handling further
[linux-2.6-microblaze.git] / drivers / gpu / drm / amd / amdgpu / amdgpu_vm.c
index 0768c86..ad91c0c 100644 (file)
@@ -653,9 +653,11 @@ void amdgpu_vm_move_to_lru_tail(struct amdgpu_device *adev,
                if (!bo->parent)
                        continue;
 
-               ttm_bo_move_to_lru_tail(&bo->tbo, &vm->lru_bulk_move);
+               ttm_bo_move_to_lru_tail(&bo->tbo, &bo->tbo.mem,
+                                       &vm->lru_bulk_move);
                if (bo->shadow)
                        ttm_bo_move_to_lru_tail(&bo->shadow->tbo,
+                                               &bo->shadow->tbo.mem,
                                                &vm->lru_bulk_move);
        }
        spin_unlock(&ttm_bo_glob.lru_lock);