Displaying 1 result from an estimated 1 matches for "agp_gatt_table".
2006 Jan 16
13
Support for AGP aperture as IOMMU in AMD64 mode [2/2]
...;>20; 
 
 	gatt_size = (aper_size >> PAGE_SHIFT) * sizeof(u32); 
-	gatt = (void *)__get_free_pages(GFP_KERNEL,
get_order(gatt_size)); 
+	gatt = (void *) alloc_gatt_pages(get_order(gatt_size));
 	if (!gatt) 
 		panic("Cannot allocate GATT table"); 
 	memset(gatt, 0, gatt_size); 
-	agp_gatt_table = gatt;
+	if (!agp_gatt_table)
+		agp_gatt_table = gatt;
+	else
+		goto nommu;
 	
 	for_all_nb(dev) { 
 		u32 ctl; 
 		u32 gatt_reg; 
 
-		gatt_reg = __pa(gatt) >> 12; 
+		gatt_reg = (0xffffffff & virt_to_gart(gatt)) >> 12;
 		gatt_reg <<= 4; 
 		pci_write_config_dword(dev, 0x...