Return to Level1Techs.com

IOMMU freezes when display manager starts


#1

HI,

So i’ve tried to enable the iommu kernel flag and getting a freeze when my display manager starts. I’m using Manjaro KDE with kernel 4.19.16. Using a GTX 970 and a GTX 660 however with only the 970 in i still get the same issue. Processor definitely supports VT-D i7-3770. I tried changing X session with ctrl+alt+f2, that doesn’t work at all when i get this freeze.

Anyone have any suggestions?


#2

So, to get out of this, you need to hard reset?

Please enable systemd persistent logs, boot up and post logs of what’s going on during the freeze.

Additionally, what kernel parameters are you using for enabling IOMMU? Have you enabled vt-d and IOMMU it in the BIOS?


#3

Yes i need to hard reset to get out.

What is the easiest way to post the logs as i can’t upload files here yet? Is there a preferred site? Here is a snippet of the last bit of logs during a failed bootup with the IOMMU flag.

Jan 27 01:33:23 TheSwarm audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=grub-boot-indeterminate comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 27 01:33:23 TheSwarm audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=grub-boot-indeterminate comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 27 01:33:23 TheSwarm systemd[1]: Reached target Offline System Update (Pre).
Jan 27 01:33:23 TheSwarm avahi-daemon[424]: Successfully dropped root privileges.
Jan 27 01:33:23 TheSwarm avahi-daemon[424]: avahi-daemon 0.7 starting up.
Jan 27 01:33:23 TheSwarm dbus-daemon[428]: [system] Activating via systemd: service name='org.freedesktop.PolicyKit1' unit='polkit.service' requested by ':1.4' (uid=0 pid=426 comm="/usr/bin/ModemManager ")
Jan 27 01:33:23 TheSwarm avahi-daemon[424]: Successfully called chroot().
Jan 27 01:33:23 TheSwarm avahi-daemon[424]: Successfully dropped remaining capabilities.
Jan 27 01:33:23 TheSwarm systemd[1]: Started Avahi mDNS/DNS-SD Stack.
Jan 27 01:33:23 TheSwarm audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=avahi-daemon comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 27 01:33:23 TheSwarm avahi-daemon[424]: No service file found in /etc/avahi/services.
Jan 27 01:33:23 TheSwarm systemd[1]: Starting Authorization Manager...
Jan 27 01:33:23 TheSwarm avahi-daemon[424]: Network interface enumeration completed.
Jan 27 01:33:23 TheSwarm avahi-daemon[424]: Server startup complete. Host name is TheSwarm.local. Local service cookie is 3772681816.
Jan 27 01:33:23 TheSwarm polkitd[435]: Started polkitd version 0.116
Jan 27 01:33:23 TheSwarm NetworkManager[429]: <info>  [1548570803.7759] NetworkManager (version 1.14.5dev+17+gba83251bb-2) is starting... (for the first time)
Jan 27 01:33:23 TheSwarm NetworkManager[429]: <info>  [1548570803.7761] Read config: /etc/NetworkManager/NetworkManager.conf (lib: 20-connectivity.conf)
Jan 27 01:33:23 TheSwarm kernel: input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input21
Jan 27 01:33:23 TheSwarm kernel: input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input22
Jan 27 01:33:23 TheSwarm kernel: input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input23
Jan 27 01:33:23 TheSwarm kernel: input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input24
Jan 27 01:33:23 TheSwarm systemd[1]: Started Network Manager.
Jan 27 01:33:23 TheSwarm audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 27 01:33:23 TheSwarm NetworkManager[429]: <info>  [1548570803.7845] bus-manager: acquired D-Bus service "org.freedesktop.NetworkManager"
Jan 27 01:33:23 TheSwarm systemd[1]: Reached target Network.
Jan 27 01:33:23 TheSwarm systemd[1]: Starting Permit User Sessions...
Jan 27 01:33:23 TheSwarm systemd-udevd[327]: Process '/usr/bin/alsactl restore 1' failed with exit code 99.
Jan 27 01:33:23 TheSwarm NetworkManager[429]: <info>  [1548570803.7871] manager[0x55eae9638080]: monitoring kernel firmware directory '/lib/firmware'.
Jan 27 01:33:23 TheSwarm dbus-daemon[428]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.16' (uid=0 pid=429 comm="/usr/bin/NetworkManager --no-daemon ")
Jan 27 01:33:23 TheSwarm systemd[1]: Started Permit User Sessions.
Jan 27 01:33:23 TheSwarm audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-user-sessions comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 27 01:33:23 TheSwarm systemd[1]: Starting Hostname Service...
Jan 27 01:33:23 TheSwarm polkitd[435]: Loading rules from directory /etc/polkit-1/rules.d
Jan 27 01:33:23 TheSwarm polkitd[435]: Loading rules from directory /usr/share/polkit-1/rules.d
Jan 27 01:33:23 TheSwarm polkitd[435]: Finished loading, compiling and executing 5 rules
Jan 27 01:33:23 TheSwarm dbus-daemon[428]: [system] Successfully activated service 'org.freedesktop.PolicyKit1'
Jan 27 01:33:23 TheSwarm systemd[1]: Started Authorization Manager.
Jan 27 01:33:23 TheSwarm audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=polkit comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 27 01:33:23 TheSwarm polkitd[435]: Acquired the name org.freedesktop.PolicyKit1 on the system bus
Jan 27 01:33:23 TheSwarm systemd[1]: Started Modem Manager.
Jan 27 01:33:23 TheSwarm audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=ModemManager comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 27 01:33:23 TheSwarm dbus-daemon[428]: [system] Successfully activated service 'org.freedesktop.hostname1'
Jan 27 01:33:23 TheSwarm systemd[1]: Started Hostname Service.
Jan 27 01:33:23 TheSwarm audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 27 01:33:23 TheSwarm systemd-logind[427]: Watching system buttons on /dev/input/event2 (Logitech MX Master 2S)
Jan 27 01:33:23 TheSwarm systemd-logind[427]: Watching system buttons on /dev/input/event3 (Gaming KB  Gaming KB )
Jan 27 01:33:23 TheSwarm systemd-logind[427]: Watching system buttons on /dev/input/event4 (Gaming KB  Gaming KB  System Control)
Jan 27 01:33:23 TheSwarm systemd-logind[427]: Watching system buttons on /dev/input/event5 (Gaming KB  Gaming KB  Consumer Control)
Jan 27 01:33:23 TheSwarm systemd-logind[427]: Watching system buttons on /dev/input/event6 (Gaming KB  Gaming KB  Keyboard)
Jan 27 01:33:23 TheSwarm NetworkManager[429]: <info>  [1548570803.9717] hostname: hostname: using hostnamed
Jan 27 01:33:23 TheSwarm NetworkManager[429]: <info>  [1548570803.9718] hostname: hostname changed from (none) to "TheSwarm"
Jan 27 01:33:23 TheSwarm NetworkManager[429]: <info>  [1548570803.9721] dns-mgr[0x55eae9642930]: init: dns=default, rc-manager=symlink
Jan 27 01:33:23 TheSwarm NetworkManager[429]: <info>  [1548570803.9724] manager[0x55eae9638080]: rfkill: WiFi hardware radio set enabled
Jan 27 01:33:23 TheSwarm NetworkManager[429]: <info>  [1548570803.9725] manager[0x55eae9638080]: rfkill: WWAN hardware radio set enabled
Jan 27 01:33:23 TheSwarm dbus-daemon[428]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.16' (uid=0 pid=429 comm="/usr/bin/NetworkManager --no-daemon ")
Jan 27 01:33:23 TheSwarm systemd[1]: Starting Network Manager Script Dispatcher Service...
Jan 27 01:33:24 TheSwarm dbus-daemon[428]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Jan 27 01:33:24 TheSwarm systemd[1]: Started Network Manager Script Dispatcher Service.
Jan 27 01:33:24 TheSwarm audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 27 01:33:24 TheSwarm NetworkManager[429]: <info>  [1548570804.0065] settings: Loaded settings plugin: NMSKeyfilePlugin (internal)
Jan 27 01:33:24 TheSwarm NetworkManager[429]: <info>  [1548570804.0077] settings: Loaded settings plugin: NMSIbftPlugin ("/usr/lib/NetworkManager/1.14.5dev+17+gba83251bb-2/libnm-settings-plugin-ibft.so")
Jan 27 01:33:24 TheSwarm NetworkManager[429]: <info>  [1548570804.0095] manager: rfkill: WiFi enabled by radio killswitch; enabled by state file
Jan 27 01:33:24 TheSwarm NetworkManager[429]: <info>  [1548570804.0096] manager: rfkill: WWAN enabled by radio killswitch; enabled by state file
Jan 27 01:33:24 TheSwarm NetworkManager[429]: <info>  [1548570804.0098] manager: Networking is enabled by state file
Jan 27 01:33:24 TheSwarm NetworkManager[429]: <info>  [1548570804.0100] dhcp-init: Using DHCP client 'internal'
Jan 27 01:33:24 TheSwarm nm-dispatcher[463]: req:1 'hostname': new request (0 scripts)
Jan 27 01:33:24 TheSwarm nm-dispatcher[463]: req:1 'hostname': completed: no scripts
Jan 27 01:33:24 TheSwarm NetworkManager[429]: <info>  [1548570804.0135] Loaded device plugin: NMOvsFactory (/usr/lib/NetworkManager/1.14.5dev+17+gba83251bb-2/libnm-device-plugin-ovs.so)
Jan 27 01:33:24 TheSwarm NetworkManager[429]: <info>  [1548570804.0147] Loaded device plugin: NMAtmManager (/usr/lib/NetworkManager/1.14.5dev+17+gba83251bb-2/libnm-device-plugin-adsl.so)
Jan 27 01:33:24 TheSwarm NetworkManager[429]: <info>  [1548570804.0179] Loaded device plugin: NMWwanFactory (/usr/lib/NetworkManager/1.14.5dev+17+gba83251bb-2/libnm-device-plugin-wwan.so)
Jan 27 01:33:24 TheSwarm NetworkManager[429]: <info>  [1548570804.0215] Loaded device plugin: NMBluezManager (/usr/lib/NetworkManager/1.14.5dev+17+gba83251bb-2/libnm-device-plugin-bluetooth.so)
Jan 27 01:33:24 TheSwarm NetworkManager[429]: <info>  [1548570804.0234] Loaded device plugin: NMWifiFactory (/usr/lib/NetworkManager/1.14.5dev+17+gba83251bb-2/libnm-device-plugin-wifi.so)
Jan 27 01:33:24 TheSwarm NetworkManager[429]: <info>  [1548570804.0353] Loaded device plugin: NMTeamFactory (/usr/lib/NetworkManager/1.14.5dev+17+gba83251bb-2/libnm-device-plugin-team.so)
Jan 27 01:33:24 TheSwarm NetworkManager[429]: <info>  [1548570804.0368] device (lo): carrier: link connected
Jan 27 01:33:24 TheSwarm NetworkManager[429]: <info>  [1548570804.0373] manager: (lo): new Generic device (/org/freedesktop/NetworkManager/Devices/1)
Jan 27 01:33:24 TheSwarm NetworkManager[429]: <info>  [1548570804.0387] manager: (enp3s0): new Ethernet device (/org/freedesktop/NetworkManager/Devices/2)
Jan 27 01:33:24 TheSwarm NetworkManager[429]: <info>  [1548570804.0419] keyfile: add connection /var/run/NetworkManager/system-connections/Wired connection 1.nmconnection (8d35a815-bd57-3a75-9433-f863f52bba4c,"Wired connection 1")
Jan 27 01:33:24 TheSwarm NetworkManager[429]: <info>  [1548570804.0437] settings: (enp3s0): created default wired connection 'Wired connection 1'
Jan 27 01:33:24 TheSwarm NetworkManager[429]: <info>  [1548570804.0445] device (enp3s0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
Jan 27 01:33:24 TheSwarm kernel: IPv6: ADDRCONF(NETDEV_UP): enp3s0: link is not ready
Jan 27 01:33:24 TheSwarm kernel: enp3s0: 0xffffa81d41a35000, 10:bf:48:83:5d:2f, IRQ 35
Jan 27 01:33:24 TheSwarm systemd[1]: Started Login Service.
Jan 27 01:33:24 TheSwarm audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-logind comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 27 01:33:24 TheSwarm systemd[1]: Reached target Multi-User System.
Jan 27 01:33:24 TheSwarm systemd[1]: Starting TLP system startup/shutdown...
Jan 27 01:33:24 TheSwarm systemd[1]: Started Simple Desktop Display Manager.
Jan 27 01:33:24 TheSwarm audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=sddm comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 27 01:33:24 TheSwarm systemd[1]: Reached target Graphical Interface.
Jan 27 01:33:24 TheSwarm kernel: IPv6: ADDRCONF(NETDEV_UP): enp3s0: link is not ready
Jan 27 01:33:24 TheSwarm NetworkManager[429]: <info>  [1548570804.1270] ovsdb: Could not connect: No such file or directory
Jan 27 01:33:24 TheSwarm NetworkManager[429]: <info>  [1548570804.1284] modem-manager: ModemManager available
Jan 27 01:33:24 TheSwarm nm-dispatcher[463]: req:2 'connectivity-change': new request (0 scripts)
Jan 27 01:33:24 TheSwarm nm-dispatcher[463]: req:2 'connectivity-change': completed: no scripts

I’m using “intel_iommu=on” as the parameter to enable IOMMU. In the BIOS i enabled virtualization technology which is from what i understand Asus’ way of saying VT-X/VT-D.


#4

Pastebin works, but I’m not seeing anything in here.

Try iommu=pt in your kernel command line in addition to intel_iommu=on

That should be good.


#5

iommu=pt worked and checking for the iommu_group folder shows the devices in there correctly.

I’m curious, is iommu=pt always required cause i haven’t seen that before when researched how to enable iommu?


#6

Perfect!

It’s not always required, but basically, it only maps the devices that can be passed through.

Some systems work better with iommu=pt, and some won’t work at all without it.


#7

Thanks a lot for your help, time and explanation. :slight_smile:


#8

Always happy to help.