diff options
Diffstat (limited to 'arch/x86/kernel/pci-swiotlb.c')
| -rw-r--r-- | arch/x86/kernel/pci-swiotlb.c | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/x86/kernel/pci-swiotlb.c b/arch/x86/kernel/pci-swiotlb.c index 221a3853e26..6af96ee4420 100644 --- a/arch/x86/kernel/pci-swiotlb.c +++ b/arch/x86/kernel/pci-swiotlb.c @@ -28,7 +28,7 @@ dma_addr_t swiotlb_phys_to_bus(struct device *hwdev, phys_addr_t paddr)  	return paddr;  } -phys_addr_t swiotlb_bus_to_phys(dma_addr_t baddr) +phys_addr_t swiotlb_bus_to_phys(struct device *hwdev, dma_addr_t baddr)  {  	return baddr;  } @@ -71,7 +71,8 @@ void __init pci_swiotlb_init(void)  {  	/* don't initialize swiotlb if iommu=off (no_iommu=1) */  #ifdef CONFIG_X86_64 -	if (!iommu_detected && !no_iommu && max_pfn > MAX_DMA32_PFN) +	if ((!iommu_detected && !no_iommu && max_pfn > MAX_DMA32_PFN) || +		iommu_pass_through)  	       swiotlb = 1;  #endif  	if (swiotlb_force)  |