Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Nov 2025 11:31:04 +0100
From:      Dries Michiels <driesm@freebsd.org>
To:        freebsd-virtualization@freebsd.org
Subject:   PCIe passthrough of Intel I226-LM fails to attach in the guest
Message-ID:  <CACx_iRF3FAJNc2U4X2pOhaV0iQnzjXYFObWeE%2BuoE0GkFRN=LA@mail.gmail.com>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Hi virtualization mailing list,

I'm scratching my hair atm, I passed through a plain PCIe NIC thats on its
seperate PCIe bus (on-board NIC), so no shared IOMMU with other devices but
I get the following error in the VM also based on FreeBSD:

igc0: Setup of Shared code failed, error -13
igc0: IFDI_ATTACH_PRE failed 6
device_attach: igc0 attach returned 6

Any pointers or ideas?

FYI; I'm also passing 2 virtual functions from a MLX CNX4-LX and those
attach with the mce driver without problem

Regards
Dries

vm config is basic:

uuid="e96341b0-cc3d-11f0-80c6-c87f545c9b33"

loader="uefi"
uefi_vars="yes"

cpu="8"
memory="8G"

disk0_name="disk0"
disk0_dev="sparse-zvol"
disk0_type="virtio-blk"

passthru0="8/0/0" # igc1
passthru1="2/0/2" # mce0
passthru2="2/0/10" # mce1

[-- Attachment #2 --]
<div dir="ltr"><div>Hi virtualization mailing list,</div><div><br></div><div>I&#39;m scratching my hair atm, I passed through a plain PCIe NIC thats on its seperate PCIe bus (on-board NIC), so no shared IOMMU with other devices but I get the following error in the VM also based on FreeBSD:</div><div><br></div><div>igc0: Setup of Shared code failed, error -13 </div><div>igc0: IFDI_ATTACH_PRE failed 6 </div><div>device_attach: igc0 attach returned 6</div><div><br></div><div>Any pointers or ideas?</div><div><br></div><div>FYI; I&#39;m also passing 2 virtual functions from a MLX CNX4-LX and those attach with the mce driver without problem</div><div><br></div><div>Regards</div><div>Dries</div><div><br></div><div>vm config is basic:</div><div><br></div><div>uuid=&quot;e96341b0-cc3d-11f0-80c6-c87f545c9b33&quot;<br><br>loader=&quot;uefi&quot;<br>uefi_vars=&quot;yes&quot;<br><br>cpu=&quot;8&quot;<br>memory=&quot;8G&quot;<br><br>disk0_name=&quot;disk0&quot;<br>disk0_dev=&quot;sparse-zvol&quot;<br>disk0_type=&quot;virtio-blk&quot;<br><br>passthru0=&quot;8/0/0&quot; # igc1<br>passthru1=&quot;2/0/2&quot; # mce0<br>passthru2=&quot;2/0/10&quot; # mce1</div><div class="gmail-yj6qo"></div><div class="gmail-adL"><br></div></div>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACx_iRF3FAJNc2U4X2pOhaV0iQnzjXYFObWeE%2BuoE0GkFRN=LA>