• Jon Mason's avatar
    [PATCH] x86_64: no_iommu removal in pci-gart.c · 60b08c67
    Jon Mason authored
    In previous versions of pci-gart.c, no_iommu was used to determine if IOMMU was
    disabled in the GART DMA mapping functions.  This changed in 2.6.16 and now
    gart_xxx() functions are only called if gart is enabled.  Therefore, uses of
    no_iommu in the GART code are no longer necessary and can be removed.
    
    Also, it removes double deceleration of no_iommu and force_iommu in pci.h and
    proto.h, by removing the deceleration in pci.h.
    
    Lastly, end_pfn off by one error.
    
    Tested (along with patch 1/2) on dual opteron with gart enabled, iommu=soft,
    and iommu=off.
    Signed-off-by: default avatarJon Mason <jdmason@us.ibm.com>
    Signed-off-by: default avatarAndi Kleen <ak@suse.de>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    60b08c67
pci.h 4.08 KB