Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[PATCH] x86_64: Check for too many northbridges in IOMMU code

The IOMMU code can only deal with 8 northbridges. Error out when
more are found.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Andi Kleen and committed by
Linus Torvalds
5192d84e e0c1e9bf

+8
+8
arch/x86_64/kernel/pci-gart.c
··· 639 639 return -1; 640 640 } 641 641 642 + i = 0; 643 + for_all_nb(dev) 644 + i++; 645 + if (i > MAX_NB) { 646 + printk(KERN_ERR "PCI-GART: Too many northbridges (%ld). Disabled\n", i); 647 + return -1; 648 + } 649 + 642 650 printk(KERN_INFO "PCI-DMA: using GART IOMMU.\n"); 643 651 aper_size = info.aper_size * 1024 * 1024; 644 652 iommu_size = check_iommu_size(info.aper_base, aper_size);