Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100165
b: refs/heads/master
c: 7ab073b
h: refs/heads/master
i:
  100163: c60475a
v: v3
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Jul 13, 2008
1 parent 7a8e5b9 commit 90e12d9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ae94b8075a2ed58d2318ef03827b25bc844f844e
refs/heads/master: 7ab073b6e0cde1544f4e79fadb75532528af7595
11 changes: 11 additions & 0 deletions trunk/arch/x86/kernel/pci-gart_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,7 @@ static __init int init_k8_gatt(struct agp_kern_info *info)
struct pci_dev *dev;
void *gatt;
int i, error;
unsigned long start_pfn, end_pfn;

printk(KERN_INFO "PCI-DMA: Disabling AGP.\n");
aper_size = aper_base = info->aper_size = 0;
Expand Down Expand Up @@ -674,6 +675,16 @@ static __init int init_k8_gatt(struct agp_kern_info *info)

printk(KERN_INFO "PCI-DMA: aperture base @ %x size %u KB\n",
aper_base, aper_size>>10);

/* need to map that range */
end_pfn = (aper_base>>PAGE_SHIFT) + (aper_size>>PAGE_SHIFT);
if (end_pfn > max_low_pfn_mapped) {
start_pfn = max_low_pfn_mapped;
max_low_pfn_mapped = init_memory_mapping(start_pfn<<PAGE_SHIFT,
end_pfn<<PAGE_SHIFT);
if (max_pfn_mapped < max_low_pfn_mapped)
max_pfn_mapped = max_low_pfn_mapped;
}
return 0;

nommu:
Expand Down

0 comments on commit 90e12d9

Please sign in to comment.