Received: from eggs.gnu.org ([2001:4830:134:3::10]:37524) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkF7n-0006N7-IC for qemu-devel@nongnu.org; Thu, 08 Oct 2015 13:37:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZkF7k-00083z-DE for qemu-devel@nongnu.org; Thu, 08 Oct 2015 13:37:03 -0400 Received: from rrcs-67-79-241-250.sw.biz.rr.com ([67.79.241.250]:41381 helo=nuntius.signalogic.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkF7k-00082C-8V for qemu-devel@nongnu.org; Thu, 08 Oct 2015 13:37:00 -0400 Received: from localhost (localhost [127.0.0.1]) by nuntius.signalogic.com (Postfix) with ESMTP id 54BC412880F2 for ; Thu, 8 Oct 2015 11:51:57 -0500 (CDT) Received: from nuntius.signalogic.com ([127.0.0.1]) by localhost (/bin/uname -n [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21398-03 for ; Thu, 8 Oct 2015 11:51:50 -0500 (CDT) Received: from office.signalogic.com (nuntius [127.0.0.1]) by nuntius.signalogic.com (Postfix) with SMTP id 70A2C12880F1 for ; Thu, 8 Oct 2015 11:51:49 -0500 (CDT) Message-ID: <2927.67.79.241.252.1444323109.squirrel@office.signalogic.com> Date: Thu, 8 Oct 2015 11:51:49 -0500 (CDT) From: "Jeff Brower" MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] how to debug PCI passthrough with PLX (Avago) bridge and TI endpoint List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org All- We're trying to get a PCIe card working with PCI passthrough and it's close but not yet. The card has a PLX (Avago) PEX 8624 bridge chip and multiple Texas Instruments CPU end-points, and there is a second card with PEX 8748 and same TI endpoints. Both cards are recognized, all TI devices show up as separate PCI devices and the PLX chip shows up as several separate PCI devices. Per PCI passthrough instructions, we're only attempting to pass through endpoints and not PLX (bridge) devices. The card drivers load ok, endpoint config space reads look ok, but endpoint writes are not correct, for example we cannot reliably write values to endpoint config space. My question is about how to debug this. Neither Avago nor card vendor tech guys think this is their problem; in fact, they're not even clear on what is PCI passthrough and they don't have VMs set up to reproduce the problem. My first thought is to get a reference card from Avago that has the PEX device and a couple PCIe slots for arbitrary endpoint cards, and test with a simple single-endpoint card that we already have working with passthrough, with the objective being to rule out the PEX bridge devices as causing problems. If that passes, then go the other way, and find a card with the TI endpoint but no PEX device. Maybe there are other approaches? Could there be timing issues? Some parameters known to cause variations in host vs. passthrough operation that we might try adjusting? Any advice welcome, thanks. -Jeff