]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] x86_64: iommu_gart_bitmap search to cross next_bit
authorMike Waychison <mikew@google.com>
Mon, 26 Jun 2006 11:56:31 +0000 (13:56 +0200)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 26 Jun 2006 17:48:15 +0000 (10:48 -0700)
Allow search for a contiguous block of iommu space to cross the next_bit
marker if we have already committed ourselves to flushing the gart.

There shouldn't be any reason why we'd restrict the search.

Signed-off-by: Mike Waychison <mikew@google.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/x86_64/kernel/pci-gart.c

index 82a7c9bfdfa0f3e0bd1945225fd0f86df67b1c96..e0198da7451d2d1bb27e4aae3199ed0c73733b6a 100644 (file)
@@ -93,7 +93,7 @@ static unsigned long alloc_iommu(int size)
        offset = find_next_zero_string(iommu_gart_bitmap,next_bit,iommu_pages,size);
        if (offset == -1) {
                need_flush = 1;
-               offset = find_next_zero_string(iommu_gart_bitmap,0,next_bit,size);
+               offset = find_next_zero_string(iommu_gart_bitmap,0,iommu_pages,size);
        }
        if (offset != -1) { 
                set_bit_string(iommu_gart_bitmap, offset, size);