- x86_64-check-for-too-many-northbridges-in-iommu.patch removed from -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 removed from the -mm tree.  Its filename is

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

This patch was probably dropped from -mm because
it has now been merged into a subsystem tree or
into Linus's tree, or because it was folded into
its parent patch in the -mm tree.


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-11 15:17:44.000000000 -0700
+++ devel-akpm/arch/x86_64/kernel/pci-gart.c	2006-05-11 15:17:44.000000000 -0700
@@ -647,6 +647,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-check-for-too-many-northbridges-in-iommu.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