Skip to content

Commit

Permalink
[PATCH] x86-64: Don't allocate aperture when swiotlb is enabled and n…
Browse files Browse the repository at this point in the history
…o AGP found

No-one needs it then

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Sep 12, 2005
1 parent 5d3d0f7 commit 63f02fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/x86_64/kernel/aperture.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@ void __init iommu_hole_init(void)

if (aper_alloc) {
/* Got the aperture from the AGP bridge */
} else if (swiotlb && !valid_agp) {
/* Do nothing */
} else if ((!no_iommu && end_pfn >= 0xffffffff>>PAGE_SHIFT) ||
force_iommu ||
valid_agp ||
Expand Down

0 comments on commit 63f02fd

Please sign in to comment.