<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div id="yiv4627309572"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt;"><div style="" class="yiv4627309572" id="yiv4627309572yui_3_16_0_1_1404771040457_15740">Hello,</div><div style="" class="yiv4627309572" id="yiv4627309572yui_3_16_0_8_1404771040457_9"><br style="" class="yiv4627309572" id="yiv4627309572yui_3_16_0_8_1404771040457_14"></div><div class="yiv4627309572" style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;" id="yiv4627309572yui_3_16_0_8_1404771040457_11">I have a Supermicro motherboard - <span class="yiv4627309572"
id="yiv4627309572yui_3_16_0_8_1404771040457_18" style="font-size:12.0pt;
">Kingstar X9DRW-iF (</span><span class="yiv4627309572" id="yiv4627309572yui_3_16_0_8_1404771040457_18" style="font-size:12.0pt;
"><span class="yiv4627309572" id="yiv4627309572yui_3_16_0_8_1404771040457_18" style="font-size:12.0pt;
"></span><span class="yiv4627309572" id="yiv4627309572yui_3_16_0_8_1404771040457_18" style="font-size:12.0pt;
"> <a rel="nofollow" id="yiv4627309572yui_3_16_0_1_1404771040457_16038" style="" class="yiv4627309572" target="_blank" href="http://www.supermicro.com/products/motherboard/Xeon/C600/X9DRW-iF.cfm">http://www.supermicro.com/products/motherboard/Xeon/C600/X9DRW-iF.cfm</a> )</span>, CPU present in both sockets. I have a FC hba inserted in the right slot (based on spec of motherboard,</span><span class="yiv4627309572" id="yiv4627309572yui_3_16_0_8_1404771040457_18" style="font-size:12.0pt;
">), which is connected to CPU2 / Socket 1. I unloaded the FC hba driver, and bound the hba device/ports to vfio using the programming API mentioned in vfio doc - <a rel="nofollow" style="" class="yiv4627309572" id="yiv4627309572yui_3_16_0_1_1404771040457_15879" target="_blank" href="https://www.kernel.org/doc/Documentation/vfio.txt">https://www.kernel.org/doc/Documentation/vfio.txt</a>. I am using a default container, with one group in it, which contains both ports of the hba (one PCI function per port). After I issue the first command to hba, when hba attempts to download (Read) a fw image from host memory, I am getting a DMAR error:</span></div><div id="yiv4627309572yui_3_16_0_8_1404771040457_21" class="yiv4627309572" style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;"><span class="yiv4627309572"
id="yiv4627309572yui_3_16_0_8_1404771040457_18" style="font-size:12.0pt;
"><br style="" class="yiv4627309572" id="yiv4627309572yui_3_16_0_8_1404771040457_28"></span></div> /var/log/syslog:9:Jul 7 08:29:11 host-11 kernel: [569259.473862] dmar: DRHD: handling fault status reg 202<br style="" class="yiv4627309572">/var/log/syslog:10:Jul 7 08:29:11 host-11 kernel: [569259.535230] dmar: DMAR:[DMA Read] Request device [05:00.1] fault addr 7fffe85e9000<br style="" class="yiv4627309572">/var/log/syslog:11:Jul 7 08:29:11 host-11 kernel: [569259.535230] DMAR:[fault reason 02] Present bit in context entry is clear<br style="" class="yiv4627309572"><br style="" class="yiv4627309572">From talking to people, it might be due to the IOMMU table not being correctly programmed. Can someone please give me some pointers which kernel function / data structure to look at to root cause the issue.<br style="" class="yiv4627309572"><br style="" class="yiv4627309572">Thank you,<br style="" class="yiv4627309572">Ahmed.<br
style="" class="yiv4627309572"><br style="" class="yiv4627309572"><br style="" class="yiv4627309572"></div></div></div></div></body></html>