From bf1f20c4a736b8360e2f70cf85d5c7dab9946c14 Mon Sep 17 00:00:00 2001 From: Alex Zenla Date: Sat, 10 Oct 2026 16:52:18 +0000 Subject: [PATCH] iommu/xen: register before xen-pciback binds its devices xen-pciback seizes a hidden device in an fs_initcall, but the Xen IOMMU registered from a device_initcall. Registering probes every PCI device that already exists, so a hidden device was found with a driver bound and the IOMMU core warned about a late probe at driver bind. Register from subsys_initcall_sync instead, so the IOMMU is in place before pciback binds anything. Signed-off-by: Alex Zenla (cherry picked from commit cfb58095c90877819a53565082fac4f283527a1a) --- drivers/iommu/xen-iommu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/iommu/xen-iommu.c b/drivers/iommu/xen-iommu.c index 36ad0dbee42c01..b4c2ea39ddae6c 100644 --- a/drivers/iommu/xen-iommu.c +++ b/drivers/iommu/xen-iommu.c @@ -567,4 +567,5 @@ static int __init xen_iommu_init(void) return 0; } -module_init(xen_iommu_init); +/* Must precede xen-pciback's fs_initcall bind, or the IOMMU core sees a bound device. */ +subsys_initcall_sync(xen_iommu_init);