|
@@ -2407,12 +2407,13 @@ static int si_pcie_gart_enable(struct radeon_device *rdev)
|
|
|
WREG32(0x15DC, 0);
|
|
|
|
|
|
/* empty context1-15 */
|
|
|
- /* FIXME start with 4G, once using 2 level pt switch to full
|
|
|
- * vm size space
|
|
|
- */
|
|
|
/* set vm size, must be a multiple of 4 */
|
|
|
WREG32(VM_CONTEXT1_PAGE_TABLE_START_ADDR, 0);
|
|
|
WREG32(VM_CONTEXT1_PAGE_TABLE_END_ADDR, rdev->vm_manager.max_pfn);
|
|
|
+ /* Assign the pt base to something valid for now; the pts used for
|
|
|
+ * the VMs are determined by the application and setup and assigned
|
|
|
+ * on the fly in the vm part of radeon_gart.c
|
|
|
+ */
|
|
|
for (i = 1; i < 16; i++) {
|
|
|
if (i < 8)
|
|
|
WREG32(VM_CONTEXT0_PAGE_TABLE_BASE_ADDR + (i << 2),
|