aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2026-09-18 11:28:31 +0000
committerAndrew Turner <andrew@FreeBSD.org>2026-09-18 11:28:31 +0000
commit0bcd0616ff86675869d998a491eccc38e413cdad (patch)
tree29dbc8d6bc78af3f661d0254ff99f3d2f322b7f6
parentd95b62db76b9bb4d51bc5e555b26a3aaf8afa44a (diff)
arm64/smmu: Move smmu later
We need to wait for the interrupt drivers to attach before the smmu driver. As both of these happened at BUS_PASS_INTERRUPT + BUS_PASS_ORDER_MIDDLE there was no guarantee this would happen in the correct order. Fix by moving the smmu driver to BUS_PASS_ORDER_LATE. Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D59485
-rw-r--r--sys/arm64/iommu/smmu_acpi.c2
-rw-r--r--sys/arm64/iommu/smmu_fdt.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/arm64/iommu/smmu_acpi.c b/sys/arm64/iommu/smmu_acpi.c
index 56cdd371174c..a031170c8760 100644
--- a/sys/arm64/iommu/smmu_acpi.c
+++ b/sys/arm64/iommu/smmu_acpi.c
@@ -288,4 +288,4 @@ DEFINE_CLASS_1(smmu, smmu_acpi_driver, smmu_acpi_methods,
sizeof(struct smmu_softc), smmu_driver);
EARLY_DRIVER_MODULE(smmu, acpi, smmu_acpi_driver, 0, 0,
- BUS_PASS_INTERRUPT + BUS_PASS_ORDER_MIDDLE);
+ BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LATE);
diff --git a/sys/arm64/iommu/smmu_fdt.c b/sys/arm64/iommu/smmu_fdt.c
index 9aa41f1070be..31105054ddb2 100644
--- a/sys/arm64/iommu/smmu_fdt.c
+++ b/sys/arm64/iommu/smmu_fdt.c
@@ -200,4 +200,4 @@ DEFINE_CLASS_1(smmu, smmu_fdt_driver, smmu_fdt_methods,
sizeof(struct smmu_softc), smmu_driver);
EARLY_DRIVER_MODULE(smmu, simplebus, smmu_fdt_driver, 0, 0,
- BUS_PASS_INTERRUPT + BUS_PASS_ORDER_MIDDLE);
+ BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LATE);