[PATCH] iommu/amd: Enable PCIe ACS once AMD IOMMU initialization succeeds

From: Jinhui Guo

Date: Sun Sep 28 2025 - 03:26:57 EST


Date: Sun, 28 Sep 2025 14:58:17 +0800, Jinhui Guo wrote:
>@@ -3212,9 +3212,6 @@ static bool __init detect_ivrs(void)
> }
>
>out:
>- /* Make sure ACS will be enabled during PCI probe */
>- pci_request_acs();
>-
> return true;
>}
>
>@@ -3284,6 +3281,10 @@ static int __init state_next(void)
> ret = -EINVAL;
> } else {
> ret = early_amd_iommu_init();
>+ if (!ret) {
>+ /* Make sure ACS will be enabled during PCI probe */
>+ pci_request_acs();
>+ }
> init_state = ret ? IOMMU_INIT_ERROR : IOMMU_ACPI_FINISHED;
> }
> break;

Please discard this patch. It breaks when interrupt remapping is off.