diff options
author | John W. Linville <linville@tuxdriver.com> | 2006-08-02 14:15:39 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2006-08-02 14:15:39 -0400 |
commit | 02b311bce9fc87987a123adc3e6a2d0a2caa70e2 (patch) | |
tree | ba5c42ecf98de1a1a72f4bd5d94dc729ca8196c9 /arch/x86_64/kernel/pci-swiotlb.c | |
parent | 8f0f850e240df5bea027caeb1723142c50e37e57 (diff) | |
parent | 49b1e3ea19b1c95c2f012b8331ffb3b169e4c042 (diff) |
Merge branch 'from-linus' into upstream
Diffstat (limited to 'arch/x86_64/kernel/pci-swiotlb.c')
-rw-r--r-- | arch/x86_64/kernel/pci-swiotlb.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/x86_64/kernel/pci-swiotlb.c b/arch/x86_64/kernel/pci-swiotlb.c index ebdb77fe205..6a55f87ba97 100644 --- a/arch/x86_64/kernel/pci-swiotlb.c +++ b/arch/x86_64/kernel/pci-swiotlb.c @@ -31,9 +31,10 @@ struct dma_mapping_ops swiotlb_dma_ops = { void pci_swiotlb_init(void) { /* don't initialize swiotlb if iommu=off (no_iommu=1) */ - if (!iommu_detected && !no_iommu && - (end_pfn > MAX_DMA32_PFN || force_iommu)) + if (!iommu_detected && !no_iommu && end_pfn > MAX_DMA32_PFN) swiotlb = 1; + if (swiotlb_force) + swiotlb = 1; if (swiotlb) { printk(KERN_INFO "PCI-DMA: Using software bounce buffering for IO (SWIOTLB)\n"); swiotlb_init(); |