|
@@ -42,10 +42,8 @@ IOMMU_INIT_FINISH(pci_swiotlb_detect_override,
|
|
int __init pci_swiotlb_detect_4gb(void)
|
|
int __init pci_swiotlb_detect_4gb(void)
|
|
{
|
|
{
|
|
/* don't initialize swiotlb if iommu=off (no_iommu=1) */
|
|
/* don't initialize swiotlb if iommu=off (no_iommu=1) */
|
|
-#ifdef CONFIG_X86_64
|
|
|
|
if (!no_iommu && max_possible_pfn > MAX_DMA32_PFN)
|
|
if (!no_iommu && max_possible_pfn > MAX_DMA32_PFN)
|
|
swiotlb = 1;
|
|
swiotlb = 1;
|
|
-#endif
|
|
|
|
|
|
|
|
/*
|
|
/*
|
|
* If SME is active then swiotlb will be set to 1 so that bounce
|
|
* If SME is active then swiotlb will be set to 1 so that bounce
|