Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19787
b: refs/heads/master
c: 5b7b644
h: refs/heads/master
i:
  19785: c5f0f13
  19783: 9d47ac5
v: v3
  • Loading branch information
Jon Mason authored and Linus Torvalds committed Feb 5, 2006
1 parent 3e8bd83 commit 288f858
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 14c3f8558717adb192c364f58b0d63dfc850ecca
refs/heads/master: 5b7b644ca9a12396a46fad825a973fb8bed17102
10 changes: 9 additions & 1 deletion trunk/arch/x86_64/kernel/pci-gart.c
Original file line number Diff line number Diff line change
Expand Up @@ -645,9 +645,18 @@ static int __init pci_iommu_init(void)
(no_agp && init_k8_gatt(&info) < 0)) {
no_iommu = 1;
no_iommu_init();
printk(KERN_INFO "PCI-DMA: Disabling IOMMU.\n");
if (end_pfn > MAX_DMA32_PFN) {
printk(KERN_ERR "WARNING more than 4GB of memory "
"but IOMMU not compiled in.\n"
KERN_ERR "WARNING 32bit PCI may malfunction.\n"
KERN_ERR "You might want to enable "
"CONFIG_GART_IOMMU\n");
}
return -1;
}

printk(KERN_INFO "PCI-DMA: using GART IOMMU.\n");
aper_size = info.aper_size * 1024 * 1024;
iommu_size = check_iommu_size(info.aper_base, aper_size);
iommu_pages = iommu_size >> PAGE_SHIFT;
Expand Down Expand Up @@ -721,7 +730,6 @@ static int __init pci_iommu_init(void)

flush_gart(NULL);

printk(KERN_INFO "PCI-DMA: using GART IOMMU.\n");
dma_ops = &gart_dma_ops;

return 0;
Expand Down
7 changes: 0 additions & 7 deletions trunk/arch/x86_64/kernel/pci-nommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,5 @@ void __init no_iommu_init(void)
{
if (dma_ops)
return;
printk(KERN_INFO "PCI-DMA: Disabling IOMMU.\n");
dma_ops = &nommu_dma_ops;
if (end_pfn > MAX_DMA32_PFN) {
printk(KERN_ERR
"WARNING more than 4GB of memory but IOMMU not compiled in.\n"
KERN_ERR "WARNING 32bit PCI may malfunction.\n"
KERN_ERR "You might want to enable CONFIG_GART_IOMMU\n");
}
}
2 changes: 1 addition & 1 deletion trunk/arch/x86_64/kernel/pci-swiotlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ void pci_swiotlb_init(void)
(end_pfn > MAX_DMA32_PFN || force_iommu))
swiotlb = 1;
if (swiotlb) {
swiotlb_init();
printk(KERN_INFO "PCI-DMA: Using software bounce buffering for IO (SWIOTLB)\n");
swiotlb_init();
dma_ops = &swiotlb_dma_ops;
}
}
2 changes: 1 addition & 1 deletion trunk/arch/x86_64/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ void __init setup_arch(char **cmdline_p)
e820_setup_gap();

#ifdef CONFIG_GART_IOMMU
iommu_hole_init();
iommu_hole_init();
#endif

#ifdef CONFIG_VT
Expand Down

0 comments on commit 288f858

Please sign in to comment.