diff options
| author | 2026-08-23 06:20:16 +0800 | |
|---|---|---|
| committer | 2026-09-24 13:20:53 +0200 | |
| commit | f6e14328620efb98f3c988db4dddcaf8cfbb3a94 (patch) | |
| tree | 13363c457a6f913dcc54736d051679408c00a4c7 /scripts/Makefile.thinlto | |
| parent | iommu/amd: Do not request ACS when IOMMU is not going to be initialized (diff) | |
iommu/amd: Disallow implicit START_STATE => IVRS_DETECTED transition
Xen PV intentionally skips calling amd_iommu_detect() in order to gate
IOMMU initialization, as the Xen hypervisor has taken over the hardware.
However, due to amd_iommu_prepare() requesting ACPI_FINISHED while
setting up APIC, the state machine is still progressed, only to be
stopped midway due to the `!amd_iommu_detected' check in
early_amd_iommu_init(). This is worthless and fragile. It unnecessarily
calls detect_ivrs(), which leads to extra overhead, i.e., getting the
IVRS table and accessing the PCI config space.
Disallow implicit START_STATE => IVRS_DETECTED transition, so that
amd_iommu_prepare() and other paths no longer progress the state machine
accidentally. This should also help prevent potential bugs if more
housekeeping work is added to amd_iommu_detect() in the future.
Signed-off-by: Rong Zhang <i@rong.moe>
Reviewed-by: Ankit Soni <Ankit.Soni@amd.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
