提交 1adb7d31 编写于 作者: J Joerg Roedel

iommu/amd: Fix pci_request_acs() call-place

The pci_request_acs() function needs to be called before PCI
probing to be effective. So move it to another call-place to
ensure that.
Signed-off-by: NJoerg Roedel <joerg.roedel@amd.com>
上级 eb51637b
...@@ -1131,9 +1131,6 @@ static int __init amd_iommu_init_pci(void) ...@@ -1131,9 +1131,6 @@ static int __init amd_iommu_init_pci(void)
break; break;
} }
/* Make sure ACS will be enabled */
pci_request_acs();
ret = amd_iommu_init_devices(); ret = amd_iommu_init_devices();
print_iommu_info(); print_iommu_info();
...@@ -1652,6 +1649,9 @@ static bool detect_ivrs(void) ...@@ -1652,6 +1649,9 @@ static bool detect_ivrs(void)
early_acpi_os_unmap_memory((char __iomem *)ivrs_base, ivrs_size); early_acpi_os_unmap_memory((char __iomem *)ivrs_base, ivrs_size);
/* Make sure ACS will be enabled during PCI probe */
pci_request_acs();
return true; return true;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册