Example #1
0
void __init pci_iommu_alloc(void)
{
	/*
	 * The order of these functions is important for
	 * fall-back/fail-over reasons
	 */
#ifdef CONFIG_IOMMU
	iommu_hole_init();
#endif

#ifdef CONFIG_CALGARY_IOMMU
	detect_calgary();
#endif

#ifdef CONFIG_DMAR
	detect_intel_iommu();
#endif

#ifdef CONFIG_AMD_IOMMU
	amd_iommu_detect();
#endif

#ifdef CONFIG_SWIOTLB
	pci_swiotlb_init();
#endif
}
Example #2
0
void __init pci_iommu_alloc(void)
{
    /* free the range so iommu could get some range less than 4G */
    dma32_free_bootmem();
    /*
     * The order of these functions is important for
     * fall-back/fail-over reasons
     */
#ifdef CONFIG_GART_IOMMU
    gart_iommu_hole_init();
#endif

#ifdef CONFIG_CALGARY_IOMMU
    detect_calgary();
#endif

    detect_intel_iommu();

#ifdef CONFIG_SWIOTLB
    pci_swiotlb_init();
#endif
}