···589589 DRM_INFO("radeon: ttm finalized\n");590590}591591592592+/* this should only be called at bootup or when userspace593593+ * isn't running */594594+void radeon_ttm_set_active_vram_size(struct radeon_device *rdev, u64 size)595595+{596596+ struct ttm_mem_type_manager *man;597597+598598+ if (!rdev->mman.initialized)599599+ return;600600+601601+ man = &rdev->mman.bdev.man[TTM_PL_VRAM];602602+ /* this just adjusts TTM size idea, which sets lpfn to the correct value */603603+ man->size = size >> PAGE_SHIFT;604604+}605605+592606static struct vm_operations_struct radeon_ttm_vm_ops;593607static const struct vm_operations_struct *ttm_vm_ops = NULL;594608