git: 0bcd0616ff86 - main - arm64/smmu: Move smmu later
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 21 Sep 2026 15:26:06 UTC
The branch main has been updated by andrew:
URL: https://cgit.FreeBSD.org/src/commit/?id=0bcd0616ff86675869d998a491eccc38e413cdad
commit 0bcd0616ff86675869d998a491eccc38e413cdad
Author: Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2026-09-18 11:28:31 +0000
Commit: Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2026-09-18 11:28:31 +0000
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
---
sys/arm64/iommu/smmu_acpi.c | 2 +-
sys/arm64/iommu/smmu_fdt.c | 2 +-
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);