+ x86_64-check-for-too-many-northbridges-in-iommu.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     x86_64: Check for too many northbridges in IOMMU code

has been added to the -mm tree.  Its filename is

     x86_64-check-for-too-many-northbridges-in-iommu.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this


From: Andi Kleen <ak@xxxxxxx>

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

Signed-off-by: Andi Kleen <ak@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 arch/x86_64/kernel/pci-gart.c |    8 ++++++++
 1 files changed, 8 insertions(+)

diff -puN arch/x86_64/kernel/pci-gart.c~x86_64-check-for-too-many-northbridges-in-iommu arch/x86_64/kernel/pci-gart.c
--- devel/arch/x86_64/kernel/pci-gart.c~x86_64-check-for-too-many-northbridges-in-iommu	2006-05-10 21:18:06.000000000 -0700
+++ devel-akpm/arch/x86_64/kernel/pci-gart.c	2006-05-10 21:18:06.000000000 -0700
@@ -639,6 +639,14 @@ static int __init pci_iommu_init(void)
 		return -1;
 	}
 
+	i = 0;
+	for_all_nb(dev)
+		i++;
+	if (i > MAX_NB) {
+		printk(KERN_ERR "PCI-GART: Too many northbridges (%ld). Disabled\n", i);
+		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); 
_

Patches currently in -mm which might be from ak@xxxxxxx are

origin.patch
x86_64-disable-aperture-pci-region-check-in-amd64.patch
x86_64-avoid-irq0-ioapic-pin-collision.patch
x86_64-check-for-too-many-northbridges-in-iommu.patch
x86_64-fix-die_lock-nesting.patch
x86_64-add-nmi_exit-to-die_nmi.patch
x86_64-avoid-ebda-area-in-early-boot-allocator.patch
x86_64-move-ondemand-timer-into-own-work-queue.patch
git-acpi.patch
git-agpgart.patch
x86_64-mm-serialize-assign_irq_vector-use-of-static-variables-fix.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux