Skip to content

Commit

Permalink
iommu/amd: Fix pci_request_acs() call-place
Browse files Browse the repository at this point in the history
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: Joerg Roedel <joerg.roedel@amd.com>
  • Loading branch information
Joerg Roedel committed Aug 6, 2012
1 parent eb51637 commit 1adb7d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/iommu/amd_iommu_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -1131,9 +1131,6 @@ static int __init amd_iommu_init_pci(void)
break;
}

/* Make sure ACS will be enabled */
pci_request_acs();

ret = amd_iommu_init_devices();

print_iommu_info();
Expand Down Expand Up @@ -1652,6 +1649,9 @@ static bool detect_ivrs(void)

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;
}

Expand Down

0 comments on commit 1adb7d3

Please sign in to comment.