Bug #8679
closedfailed to attach AMD IOMMU
100%
Description
When I boot OI on my system, I see these debug messages on the console:
startup.c:2306: Calling configure()... startup.c:2308: configure() done startup.c:2329: NULLing out bootops startup.c:2346: Enabling interrupts ERROR: failed to attach AMD IOMMU startup.c:2377: startup_end() done startup.c:2520: Unmapping lower boot pages startup.c:2539: Releasing boot pages startup.c:2565: Boot pages released
Without debugging, the ERROR line appears on the console immediately after the SunOS banner. It's not written to the messages log. I don't notice any ill effects from this error.
My hardware is an ASUS PRIME B350M-A motherboard with an AMD Ryzen 3 1200 Quad-Core CPU. It has two 4-gig unbuffered ECC DIMMs with an ASUS HD 6450 Silent video card. Booting the latest USB image on this system requires a loader that has been patched to fix bug #8651.
Files
Related issues
Updated by Gary Mills over 5 years ago
- Related to Bug #8681: loader: bios loader should check the smap while loading the modules added
Updated by Dan McDonald almost 3 years ago
I see this too on a Ryzen 7 3700x attached to an ASRock Rack X470DU4.
Updated by Marcel Telka about 2 years ago
- Has duplicate Bug #13621: OpenIndiana boot problem with AMD IOMMU added
Updated by r a about 2 years ago
The bug is also present on MSI MPG B550 Gaming Plus motherboard (with latest production Bios) with a Ryzen 5 5600X and Gigabyte Geforce GTX1650 OC and OpenIndiana illumos-9ecd05bdc5 i86pc i386 i86pc
Updated by r a about 2 years ago
- File prtconf-pv.txt prtconf-pv.txt added
I have upgraded the BIOS on my MSI MPG Gaming Plus motherboard, after searching on Google I found a fix for the Failed to attach the AMD IOMMU which was to set in the BIOS Power Supply Idle Control and set it to typical as per the advice in OpenIndiana bug #13621. However making this change did not resolve the problem and the AMD IOMMU still failed to connect. I tried specifically enabling the AMD IOMMU in the bios instead of leaving it at Auto but the problem was not resolved.
$ prtdiag -lv
System Configuration: Micro-Star International Co., Ltd. MS-7C56
BIOS Configuration: American Megatrends International, LLC. 1.62 04/09/2021
==== Processor Sockets ====================================
Version Location Tag
-------------------------------- --------------------------
AMD Ryzen 5 5600X 6-Core Processor AM4
==== Memory Device Sockets ================================
Type Status Set Device Locator Bank Locator
----------- ------ --- ------------------- ----------------
unknown empty 0 DIMM 0 P0 CHANNEL A
DDR4 in use 0 DIMM 1 P0 CHANNEL A
unknown empty 0 DIMM 0 P0 CHANNEL B
DDR4 in use 0 DIMM 1 P0 CHANNEL B
==== On-Board Devices =====================================
==== Upgradeable Slots ====================================
ID Status Type Description
--- --------- ---------------- ----------------------------
0 in use PCI Express J6B2
1 in use PCI Express J6B1
2 in use PCI Express J6D1
3 in use PCI Express J7B1
4 in use PCI Express J8B4
5 in use PCI Express J8D1
6 in use PCI J8B3
12 in use PCI Express x16 J10
14 available PCI Express x1 J3700 M.2 Slot
128 in use PCI Express x4 J3708 PCIE x4 slot from Promontory, pci1022,43ea (pcieb)
134 available PCI Express x1 J3703 PCIE x1 slot from Promontory
135 in use PCI Express x1 J3702 PCIE x1 slot from Promontory, pci1022,43ea (pcieb)
132 available PCI Express x4 J3707 PCIE x4 slot from Promontory
137 in use PCI Express x1 J3701 M.2 WLAN/BT slot from Promontory, pci1022,43ea (pcieb)
Updated by Andrew R almost 2 years ago
I am also seeing this on an ASUS "ROG STRIX B550-F Gaming" board with a Ryzen 7 5800X CPU. Latest BIOS 2403 dated 06/16/2021, with AGESA "ComboV_1203a" is installed
Message appears after Hipster version banner is displayed:
OpenIndiana Hipster. 2021.04 ....
ERROR: failed to attach AMD IOMMU
I have already explicitly enabled the AMD IOMMU in the BIOS and also changed the power supply entry to Typical as suggested in earlier posts.
Updated by Tim Mooney over 1 year ago
Andrew R wrote in #note-7:
I am also seeing this on an ASUS "ROG STRIX B550-F Gaming" board with a Ryzen 7 5800X CPU. Latest BIOS 2403 dated 06/16/2021, with AGESA "ComboV_1203a" is installed
I have a new system build very similar to Andrew's
ASUS "ROG STRIX B550-F Gaming (WiFi)" with a Ryzen 9 5900X CPU. I have a newer BIOS (2423, August 10 2021) and slightly newer AGESA (ComboV2_1203c).
I'm seeing the exact same "ERROR: failed to attach AMD IOMMU".
I've looked all over in this Motherboard's setup and cannot find the power supply setting or anything resembling it that has been mentioned in other posts.
Updated by Gordon Ross 4 months ago
- Status changed from New to In Progress
- Assignee set to Gordon Ross
Updated by Gordon Ross 4 months ago
- Status changed from In Progress to Pending RTI
Testing: Reboot, observe console. Message gone.
Updated by Electric Monk 4 months ago
- Status changed from Pending RTI to Closed
- % Done changed from 0 to 100
git commit e39dbc5265de2614735b29cec9d30d14bef133cb
commit e39dbc5265de2614735b29cec9d30d14bef133cb Author: Gordon Ross <gordon.w.ross@gmail.com> Date: 2023-02-14T00:21:47.000Z 8679 failed to attach AMD IOMMU Reviewed by: Toomas Soome <tsoome@me.com> Reviewed by: Marco van Wieringen <marco.van.wieringen@planets.elm.net> Reviewed by: Andy Fiddaman <illumos@fiddaman.net> Approved by: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>