From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753779Ab2HACSs (ORCPT ); Tue, 31 Jul 2012 22:18:48 -0400 Received: from mga02.intel.com ([134.134.136.20]:25831 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752676Ab2HACSq convert rfc822-to-8bit (ORCPT ); Tue, 31 Jul 2012 22:18:46 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.67,352,1309762800"; d="scan'208";a="173885670" From: "Jiang, Dave" To: Jianbin Kang CC: "Mason, Jon" , Bjorn Helgaas , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-pci@vger.kernel.org" Subject: Re: [RFC v2 1/2] PCI-Express Non-Transparent Bridge Support Thread-Topic: [RFC v2 1/2] PCI-Express Non-Transparent Bridge Support Thread-Index: AQHNbeoBm/eba4vRxUKmLXkFrwU61JdCgEuAgAAX4gCAAJxsgIAA2UEAgAChLAD//40azw== Date: Wed, 1 Aug 2012 02:18:45 +0000 Message-ID: <98D21DD6-3BDE-402D-8DC1-0AAD79502B8F@intel.com> References: <1343607994-32415-1-git-send-email-jon.mason@intel.com> <1343607994-32415-2-git-send-email-jon.mason@intel.com> <20120730181542.GA987@jonmason-lab> <20120731163308.GA13610@jonmason-lab>, In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Jul 31, 2012, at 7:10 PM, "Jianbin Kang" wrote: >> Actually this is what I'm working on now, using async_tx to replace the >> memcpy. I believe the changes shouldn't be that significant. >> >> Is the "hardware that can setup dma" you refer to something that does >> not use this interface? >> > > Yes, they use this interface, but split 'memcpy_toio' to two operation: > 1. setup dma > 2. wait/poll for the dma to finish. > So maybe it need to provide a generic function 'tx' for different hardwares. > It's not worth it to do sync DMA. The performance is terrible. > If async_tx is available, it's much better than this 'sync dma/memcpy'. > One problem with async_tx is, it can't detect memcpy error. > If the remote ntb goes down when async_memcpy is in operation, async_tx > will trigger an oops. Yes that is something that needs to be addressed when we get async DMA support working.