From: Tom Rotenberg Subject: Re: Bug when disabling/enabling a PT device with MSI enabled Date: Wed, 25 Nov 2009 10:27:11 +0200 Message-ID: <8686c3cd0911250027g696b8222qc5d3b1f4a39265ef@mail.gmail.com> References: <8686c3cd0911241042n1b6f84a9u3623518baa021cc2@mail.gmail.com> <5997D0BE578D47409D1EBD41DFD341F489F5F54E84@FTLPMAILBOX01.citrite.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <5997D0BE578D47409D1EBD41DFD341F489F5F54E84@FTLPMAILBOX01.citrite.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Kamala Narasimhan Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org Well, just tested it with the 2.6.18 latest kernel, and the bug still exist= s. Also, i think that iit's more related to how qemu handles the "disable/enable" of domU for PT devices with MSI... but i don't know where to start from? it looks like when re-enabling a PT device with MSI, we need qemu to re-initialize the device according to it's original MSI state (and not to what it was resetted before). Does anyone has any clue about it? On Wed, Nov 25, 2009 at 4:25 AM, Kamala Narasimhan wrote: > > Couple of questions - > > 1) What kind of device are you referring to below? =A0Display by any chan= ce? > 2) Which tree is your dom0 kernel based on? > > There is a chance you are missing some msi patches in your dom0 kernel. = =A0You might want to do a quick search for msi patches in http://xenbits.xe= n.org/staging/linux-2.6.18-xen.hg?rev=3Dmsi and see if you are missing anyt= hing obvious. =A0I recently encountered a similar issue in a slightly diffe= rent situation, a subset of the problem was caused because of missing msi p= atches. > > Kamala > >> -----Original Message----- >> From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel- >> bounces@lists.xensource.com] On Behalf Of Tom Rotenberg >> Sent: Tuesday, November 24, 2009 1:43 PM >> To: xen-devel@lists.xensource.com >> Subject: [Xen-devel] Bug when disabling/enabling a PT device with MSI >> enabled >> >> Hi, >> >> I am using the xen-3,4, and i am doing pass-through for a device with >> MSI enabled (the device of-course supports MSI) to a domU with Windows >> XP. When i disable and then re-enable the device using Windows device >> manager, everything looks like it's working fine, but the device seems >> to malfunction. >> After digging a little bit, i saw that the problem is, because the bit >> of the interrupt-status (bit 3) in the status register (offset 0x6 in >> the PCI config space) was turned on somehow - =A0this proibably caused >> the MSI to malfunction (because the IntX assertion was enabled - thus >> disabling the MSI) - and this lead to the problem i experienced. >> >> Any ideas on how to solve this issue? >> >> Tom >> >> _______________________________________________ >> Xen-devel mailing list >> Xen-devel@lists.xensource.com >> http://lists.xensource.com/xen-devel >