Date: Thu, 26 Jan 2023 22:46:07 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 268486] panic: vtd_add_device: device 0 is not in scope for any DMA remapping unit Message-ID: <bug-268486-227-wKCn9JGZVF@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-268486-227@https.bugs.freebsd.org/bugzilla/> References: <bug-268486-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268486 --- Comment #3 from Eric Joyner <erj@freebsd.org> --- Ok; I'm seeing the same problem on the dual processor Ice Lake-SP system th= at 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 w= ill 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(). --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-268486-227-wKCn9JGZVF>