SpaceInvaderOne Posted May 17, 2018 Share Posted May 17, 2018 (edited) Hi guys. This video is about PCIe passthrough. It discusses what IOMMU is and how it works, the PCIe architecture and how it can effect iommu groupings. The video also shows some solutions for dealing with passing through devices when they are not alone in an iommu group. Hope its useful. Edited August 29, 2018 by gridrunner 1 1 2 Quote Link to comment
steve1977 Posted July 21, 2018 Share Posted July 21, 2018 Thanks for sharing. I am trying to pass-through my on-board audio card. Did some changes in syslinux, but still not succeeding to pass the soundcard to my VM. Any chance you can have a look at below? Quote Link to comment
steve1977 Posted July 22, 2018 Share Posted July 22, 2018 (edited) I am trying to pass-through my on-board audio card (S1220A), but not successful. I tried all three options in your youtube video and none of them allows me to start the VM with the audio card passed through. No matter what I do, the IOMMU group includes the four devices below. When using the multifunction command, the group number changes, but the four devices stay grouped. IOMMU group 13: [8086:a2d2] 00:1f.0 ISA bridge: Intel Corporation Device a2d2 [8086:a2a1] 00:1f.2 Memory controller: Intel Corporation 200 Series PCH PMC [8086:a2f0] 00:1f.3 Audio device: Intel Corporation 200 Series PCH HD Audio [8086:a2a3] 00:1f.4 SMBus: Intel Corporation 200 Series PCH SMBus Controller I can get the audio card to passthrough with two different syslinux configs: append vfio-pci.ids=8086:a2f0 modprobe.blacklist=i2c_i801,i2c_smbus initrd=/bzroot append pcie_acs_override=downstream vfio-pci.ids=8086:a2f0 modprobe.blacklist=i2c_i801,i2c_smbus initrd=/bzroot I don't get an error message and can start the VM. However, the audio card is not visible in Windows. Log file reveals that something is still wrong. 2018-07-22T03:10:12.081712Z qemu-system-x86_64: vfio: Cannot reset device 0000:00:1f.3, no available reset mechanism. Any thoughts? @gridrunner @matthope Edited July 22, 2018 by steve1977 Quote Link to comment
steve1977 Posted July 27, 2018 Share Posted July 27, 2018 Any thoughts on this issue and how to address? Quote Link to comment
matthope Posted July 27, 2018 Share Posted July 27, 2018 8 minutes ago, steve1977 said: Any thoughts on this issue and how to address? I know it sounds stupid, but have you tried to power off your server (remove the ac plug for 10 seconds) ? Sometime in my case the motherboard seems to lockup the control of the i2c bus. The only way to make it work again is to power it off. Hope it will help. Quote Link to comment
steve1977 Posted July 28, 2018 Share Posted July 28, 2018 Thanks for your note. I had tried the "AC trick" before and just again. Unfortunately, it is not working for me. Any other idea what I could try? I tried to pass-through the card to both a Win and Mac VM, but unfortunately with the same result. Quote Link to comment
steve1977 Posted July 29, 2018 Share Posted July 29, 2018 On 7/22/2018 at 11:15 AM, steve1977 said: I am trying to pass-through my on-board audio card (S1220A), but not successful. I tried all three options in your youtube video and none of them allows me to start the VM with the audio card passed through. No matter what I do, the IOMMU group includes the four devices below. When using the multifunction command, the group number changes, but the four devices stay grouped. IOMMU group 13: [8086:a2d2] 00:1f.0 ISA bridge: Intel Corporation Device a2d2 [8086:a2a1] 00:1f.2 Memory controller: Intel Corporation 200 Series PCH PMC [8086:a2f0] 00:1f.3 Audio device: Intel Corporation 200 Series PCH HD Audio [8086:a2a3] 00:1f.4 SMBus: Intel Corporation 200 Series PCH SMBus Controller I can get the audio card to passthrough with two different syslinux configs: append vfio-pci.ids=8086:a2f0 modprobe.blacklist=i2c_i801,i2c_smbus initrd=/bzroot append pcie_acs_override=downstream vfio-pci.ids=8086:a2f0 modprobe.blacklist=i2c_i801,i2c_smbus initrd=/bzroot I don't get an error message and can start the VM. However, the audio card is not visible in Windows. Log file reveals that something is still wrong. 2018-07-22T03:10:12.081712Z qemu-system-x86_64: vfio: Cannot reset device 0000:00:1f.3, no available reset mechanism. Any thoughts? @gridrunner @matthope There is some more in the log this time. Please see the full one below. Thanks for any thoughts you may have to trouble-shoot? 2018-07-28 12:40:32.264+0000: Domain id=1 is tainted: high-privileges2018-07-28 12:40:32.264+0000: Domain id=1 is tainted: custom-argv2018-07-28 12:40:32.264+0000: Domain id=1 is tainted: host-cpu2018-07-28T12:40:32.303473Z qemu-system-x86_64: -chardev pty,id=charserial0: char device redirected to /dev/pts/0 (label charserial0)2018-07-28T12:40:32.970282Z qemu-system-x86_64: vfio: Cannot reset device 0000:00:1f.3, no available reset mechanism.2018-07-28T12:40:32.974277Z qemu-system-x86_64: vfio: Cannot reset device 0000:00:1f.3, no available reset mechanism.usb_desc_get_descriptor: 2 unknown type 33 (len 10)usb_desc_get_descriptor: 1 unknown type 33 (len 10)usb_desc_get_descriptor: 1 unknown type 33 (len 10) Quote Link to comment
matthope Posted July 30, 2018 Share Posted July 30, 2018 On 7/28/2018 at 8:03 PM, steve1977 said: There is some more in the log this time. Please see the full one below. Thanks for any thoughts you may have to trouble-shoot? 2018-07-28 12:40:32.264+0000: Domain id=1 is tainted: high-privileges2018-07-28 12:40:32.264+0000: Domain id=1 is tainted: custom-argv2018-07-28 12:40:32.264+0000: Domain id=1 is tainted: host-cpu2018-07-28T12:40:32.303473Z qemu-system-x86_64: -chardev pty,id=charserial0: char device redirected to /dev/pts/0 (label charserial0)2018-07-28T12:40:32.970282Z qemu-system-x86_64: vfio: Cannot reset device 0000:00:1f.3, no available reset mechanism.2018-07-28T12:40:32.974277Z qemu-system-x86_64: vfio: Cannot reset device 0000:00:1f.3, no available reset mechanism.usb_desc_get_descriptor: 2 unknown type 33 (len 10)usb_desc_get_descriptor: 1 unknown type 33 (len 10)usb_desc_get_descriptor: 1 unknown type 33 (len 10) I don't know for the usb_desc, but the others are normal. Quote Link to comment
steve1977 Posted July 30, 2018 Share Posted July 30, 2018 What about the "cannot reset device"? I thought this poses an issue? If not, anything I need to do to make my VM "see" the audio card? Quote Link to comment
matthope Posted July 31, 2018 Share Posted July 31, 2018 (edited) On 7/30/2018 at 5:40 AM, steve1977 said: What about the "cannot reset device"? I thought this poses an issue? If not, anything I need to do to make my VM "see" the audio card? Like I said that's normal. There is actually no reset mecanism for this device, so when the VM start the peripheral must be already in a appropriate state. That's why you need to blacklist the i2c bus and that a power cycle could resolve this issue (sadly not in your case). You could do a lsmod to see if a i2c driver is loaded, after that your only chance are the redhat mail chain. Edited July 31, 2018 by matthope Quote Link to comment
steve1977 Posted August 1, 2018 Share Posted August 1, 2018 Mmh... This is weird. I only cycled down for 5min. Maybe I'll give it a try keeping it shut down for an hour or so. I noticed that it takes a minute or so after I pull the plug for all lights to disappear. Maybe more time will allow it to fully reset... Seems my only hope... Quote Link to comment
steve1977 Posted September 28, 2018 Share Posted September 28, 2018 I disconnected from AC for some more time, but still not working. I still keep seeing below error in the log. Any more thoughts? Anything I can help to provide for trouble-shooting? 2018-07-28T12:40:32.970282Z qemu-system-x86_64: vfio: Cannot reset device 0000:00:1f.3, no available reset mechanism.2018-07-28T12:40:32.974277Z qemu-system-x86_64: vfio: Cannot reset device 0000:00:1f.3, no available reset mechanism. Quote Link to comment
Guest Posted October 24, 2018 Share Posted October 24, 2018 Is there any way to use a network adapter for pfsense without passing it though as I want the ability to use a 10gb adapter to access unraid array, plex media library and pfsense ethernet cahce Quote Link to comment
SpaceInvaderOne Posted October 25, 2018 Author Share Posted October 25, 2018 You can enable bridging on the 10 gbe adapter in Unraid then pass a virtual adapter to pfSense. Using vmxnet3 ( <model type='vmxnet3'/> ) will probably give better performance than the virtual e1000 in the pfSense vm for the 10 gbe. Quote Link to comment
Unraid4Idiot Posted February 26, 2020 Share Posted February 26, 2020 For me the only way to fix this as I am not confident to install custom kernals nor understand how to insert the GPU into the XML was to reverse the change that caused the problem. Which was the bios update for ASUS mobo users I highly recommend the video link below to do this it is obviously very risky but was very rewarding when I saw my VM screen once again. https://youtu.be/DwJS8-GTgRU Sorry if someone has already highlighted this option. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.