From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Return-Path: MIME-Version: 1.0 In-Reply-To: <41419ada-7f16-0028-1e43-3b4a6c6960b6@deltatee.com> References: <20180809184331.GB113140@bhelgaas-glaptop.roam.corp.google.com> <7068db44-af31-4462-f966-2dd2340ba0f0@deltatee.com> <695826a6-e10c-5a30-a51f-7cc61ba6e640@gigaio.com> <0d3f48c3-8c4f-4dfb-e883-23c168f12b9b@deltatee.com> <14db6acb-da4f-9604-7359-1671210fcb8b@gigaio.com> <41419ada-7f16-0028-1e43-3b4a6c6960b6@deltatee.com> From: Eric Pilmore Date: Tue, 21 Aug 2018 16:30:26 -0700 Message-ID: Subject: Re: IOAT DMA w/IOMMU To: Logan Gunthorpe Cc: Kit Chow , Bjorn Helgaas , linux-pci@vger.kernel.org, David Woodhouse , Alex Williamson , iommu@lists.linux-foundation.org Content-Type: text/plain; charset="UTF-8" List-ID: On Tue, Aug 21, 2018 at 4:20 PM, Logan Gunthorpe wrote: > > > On 21/08/18 05:18 PM, Eric Pilmore wrote: >> We have been running locally with Kit's change for dma_map_resource and its >> incorporation in ntb_async_tx_submit for the destination address and >> it runs fine >> under "load" (iperf) on a Xeon (Xeon(R) CPU E5-2680 v4 @ 2.40GHz) based system, >> regardless of whether the DMA engine being used is IOAT or a PLX >> device sitting in >> the PCIe tree. However, when we go back to a i7 (i7-7700K CPU @ 4.20GHz) based >> system it seems to run into issues, specifically when put under a >> load. In this case, >> just having a load using a single ping command with an interval=0, i.e. no delay >> between ping packets, after a few thousand packets the system just hangs. No >> panic or watchdogs. Note that in this scenario I can only use a PLX DMA engine. > > This is just my best guess: but it sounds to me like a bug in the PLX > DMA driver or hardware. > > Logan (sorry, html in last response. resending..) The PLX DMA driver? But the PLX driver isn't really even involved in the mapping stage. Are you thinking maybe the stage at which the DMA descriptor is freed and the PLX DMA driver does a dma_descriptor_unmap? Again, PLX did not exhibit any issues on the Xeon system. Eric