[Bug 268486] panic: vtd_add_device: device 0 is not in scope for any DMA remapping unit
Date: Thu, 26 Jan 2023 22:46:07 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268486 --- Comment #3 from Eric Joyner <email@example.com> --- Ok; I'm seeing the same problem on the dual processor Ice Lake-SP system that I have, and I think I've found a temporary fix: Go to /usr/src/sys/amd64/vmm/intel/vtd.c and change DRHD_MAX_UNITS from 8 to 10. You can verify that your system probably has more DRHDs than what FreeBSD will look at by doing "acpidump -dt" and checking the DMAR section and counting the number of DRHD sections you find under there. My system has exactly 10, and since FreeBSD was missing two of the sections, some device scopes were missing. So, when FreeBSD decided to add all of the devices in the system on iommu initialization, there existed devices with no stored scopes, so the code there called panic(). -- You are receiving this mail because: You are the assignee for the bug.