Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753782AbZIKOuN (ORCPT ); Fri, 11 Sep 2009 10:50:13 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752275AbZIKOuM (ORCPT ); Fri, 11 Sep 2009 10:50:12 -0400 Received: from mx2.compro.net ([216.54.166.4]:37751 "EHLO mx2.compro.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751519AbZIKOuL (ORCPT ); Fri, 11 Sep 2009 10:50:11 -0400 X-IronPort-AV: E=Sophos;i="4.44,370,1249272000"; d="scan'208";a="4352602" Message-ID: <4AAA63A4.6080900@compro.net> Date: Fri, 11 Sep 2009 10:50:12 -0400 From: Mark Hounschell Reply-To: markh@compro.net Organization: Compro Computer Svcs. User-Agent: Thunderbird 2.0.0.22 (X11/20090605) MIME-Version: 1.0 To: "Richard B. Johnson" CC: linux-pci@vger.kernel.org, Mark Hounschell , linux-kernel@vger.kernel.org Subject: Re: problems doing direct dma from a pci device to pci-e device References: <4AAA5B1F.3020103@compro.net> <433DD7EA0883478C9A18E5443FD1B328@Route495PC> In-Reply-To: <433DD7EA0883478C9A18E5443FD1B328@Route495PC> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2303 Lines: 62 Richard B. Johnson wrote: > ----- Original Message ----- From: "Mark Hounschell" > To: > Cc: "Mark Hounschell" ; > Sent: Friday, September 11, 2009 10:13 AM > Subject: problems doing direct dma from a pci device to pci-e device > > >> I know this is really just a pci issue but have CC'd LKML just in >> case. Sorry LKML for the noise. >> >> I have a situation where a card on a regular PCI bus (Compro gpiohsd) >> does dma's >> directly into another PCI cards memory (VMIC-5565 reflective memory) >> living on >> another PCI bus. These 2 cards are sometimes seperated by many bridges. >> Expansion racks etc. We've been doing this forever. No problem (mostly). >> >> I now have an AM3 based DFI DK 790FXB-M3H5 motherboard. This board has >> 3 regular >> PCI slots and 3 PCI-E (16x) slots. I also have a PCI-E (x4) version of >> the VMIC-5565 >> reflective memory card in one of the PCI-E slots and our gpiohsd card >> in one of the regular >> PCI slots. All on the motherboard. No expansion slots being used. >> However I cannot get >> data from our gpiohsd into the PCI-E VMIC-5565 cards memory. I can >> certainly get the data there >> from a userland buffer, no problem. Just not from one card to the >> other directly. Oh and when >> I put the regular PCI version of the VMIC into one of the regular PCI >> slots everything works >> as expected. They are then both on the same PCI bus and no bridges are >> involved though. >> > > [SNIPPED...] > > Please check your software to make sure that after the DMA has presumed > to complete, you READ something from the destination PCI bus address! > With so many PCI writes queued, they may all be stuck in the many > hardware FIFOs and the sure way to complete the writes is to perform a > read. > Cheers, > Richard B. Johnson > http://Route495Software.com/ > > > > > Thanks, that's actually how I know the data never gets to it's destination. I read it. The data gets lost somewhere. Regards Mark -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/