<div dir="ltr"><div>Are you sure your drivers aren't MSI enabled ? Not any known issues with Legacy on ICH9 or I should rather say I didn't have any issue using Legacy interrupts.<br></div><div><br></div><div>I am assuming you invoked PDM*irq function with your device appropriately (upon receiving the interrupt) ?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 24, 2016 at 7:11 PM, Vilbig, Ric <span dir="ltr"><<a href="mailto:ric_vilbig@mentor.com" target="_blank">ric_vilbig@mentor.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Now I have the opposite question.  Are IRQ type interrupts (as in PCI Config 0x3d IntPin) expected to work with ICH9?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I have a virtual PCI device which works with PIIX3 quite nicely using IRQ4 — a USB3 mass storage device.  But when plugged into the ICH9 VM the device is not
 detected within the guest, using IRQ1/2/3/4.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">The guest must know the device is present, because it does lots of MMIO Rd/Wr to it, and then the device does some DMA, and raises an interrupt.  Everything
 looks quite similar between the ICH9 and PIIX3 case, except the former does nothing more after raising the interrupt, whereas the latter continues working with lots more DMA, interrupts, and a usable mass storage device in the guest.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">From what I have found so far, the interrupt is passed down into PDM, but does not actually do anything, and dmesg in the guest says "can't derive routing for
 PCI INT n".<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thanks,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">//  RicV<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt"><span class="">
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Ananth Pallapothu [mailto:<a href="mailto:apallapothu@gmail.com" target="_blank">apallapothu@gmail.com</a>]
<br>
<b>Sent:</b> Monday, March 21, 2016 15:55<br>
<b>To:</b> Vilbig, Ric<br>
<b>Cc:</b> VirtualBox developer's list<br>
<b>Subject:</b> Re: [vbox-dev] Chipset support for Message Signaled Interrupts (MSI)<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</span><p>MSI's came into existence after PIIX3.<u></u><u></u></p><div><div class="h5">
<p>Yes, if you need MSI you need to use ICH9.<br>
PIIX3 doesn't support MSI<u></u><u></u></p>
<div>
<p class="MsoNormal">On Mar 21, 2016 6:43 PM, "Vilbig, Ric" <<a href="mailto:ric_vilbig@mentor.com" target="_blank">ric_vilbig@mentor.com</a>> wrote:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><span style="color:#002060">Hi Experts,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:#002060"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:#002060">I posted the following on the VIrtualBox forum, but Perry recommended I contact you by the email list.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:#002060"><a href="https://forums.virtualbox.org/viewtopic.php?f=10&t=76867" target="_blank">https://forums.virtualbox.org/viewtopic.php?f=10&t=76867</a></span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:#002060"> </span><u></u><u></u></p>
<div style="margin-left:.5in">
<div class="MsoNormal" align="center" style="text-align:center"><span style="color:#002060">
<hr size="3" width="100%" align="center">
</span></div>
</div>
<p class="MsoNormal" style="margin-left:.5in">
<span style="color:#002060">I am working on a custom PCI device model, plugged into VirtualBox via PDM. It's mostly working, lspci for example shows it's present. But I am having a problem with Message Signaled Interrupts (MSI).</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">
<span style="color:#002060"> </span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">
<span style="color:#002060">The following quote from Ch.3 of the VirtualBox User Manual implies that the ICP9 chipset must be used for MSI support, and I have seen supporting evidence in web searches and VBox source code (OSE 5.0.16 tarball).</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">
<span style="color:#002060"> </span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">
<span style="color:#002060">“...VirtualBox 4.0 introduced an emulation of the more modern ICH9 chipset, which supports PCI express,</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">
<span style="color:#002060">three PCI buses, PCI-to-PCI bridges and Message Signaled Interrupts (MSI)...”</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">
<span style="color:#002060"> </span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">
<b><span style="color:#002060">Can someone confirm or refute with certainty that the PIIX3 chipset does not support MSI and ICH9 is required for device models using MSI?</span></b><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">
<span style="color:#002060"> </span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">
<span style="color:#002060">How worried should I be about this excerpt from the same paragraph? A quick test of ICH9 VM did not go well. I've actually tried with Fedora 23, Fedora 18 and Ubuntu 14 guests (all 64-bit) without success, but not yet dug into it
 because this quote worries me.</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">
<span style="color:#002060"> </span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">
<span style="color:#002060">“Note that the ICH9 support is experimental and not recommended for guest operating systems which do not require it.”</span><u></u><u></u></p>
<div style="margin-left:.5in">
<div class="MsoNormal" align="center" style="text-align:center"><span style="color:#002060">
<hr size="3" width="100%" align="center">
</span></div>
</div>
<p class="MsoNormal"><span style="color:#002060"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:#002060">Thanks in advance for your help.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:#002060"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:#002060">_____________________________________________</span><u></u><u></u></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;color:#002060"> </span></b><u></u><u></u></p>
<p class="MsoNormal"><b><span style="color:#002060">Ric Vilbig</span></b><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#002060">Mentor Graphics, Emulation Division</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#002060">46871 Bayside Parkway, Fremont CA, 94538</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#002060">Phone: 
<a href="tel:510-354-7360" target="_blank">510-354-7360</a></span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#002060">Mobile:
<a href="tel:408-529-2365" target="_blank">408-529-2365</a></span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#002060">email: 
<a href="mailto:ric_vilbig@mentor.com" target="_blank">ric_vilbig@mentor.com</a></span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#002060"> </span><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_______________________________________________<br>
vbox-dev mailing list<br>
<a href="mailto:vbox-dev@virtualbox.org" target="_blank">vbox-dev@virtualbox.org</a><br>
<a href="https://www.virtualbox.org/mailman/listinfo/vbox-dev" target="_blank">https://www.virtualbox.org/mailman/listinfo/vbox-dev</a><u></u><u></u></p>
</div>
</div></div></div>
</div>
</div>

<br>_______________________________________________<br>
vbox-dev mailing list<br>
<a href="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</a><br>
<a href="https://www.virtualbox.org/mailman/listinfo/vbox-dev" rel="noreferrer" target="_blank">https://www.virtualbox.org/mailman/listinfo/vbox-dev</a><br>
<br></blockquote></div><br></div>