From: Lukas Hejtmanek Subject: [ofa-general] Re: mthca use of dma_sync_single is bogus Date: Tue, 10 Jul 2007 21:00:19 +0200 Message-ID: <20070710190018.GK3885@ics.muni.cz> References: <20070709213913.GB20052@mellanox.co.il> <20070710141409.GH3885@ics.muni.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: general-bounces@lists.openfabrics.org Errors-To: general-bounces@lists.openfabrics.org To: Roland Dreier Cc: Keir Fraser , xen-devel@lists.xensource.com, "Michael S. Tsirkin" , general@lists.openfabrics.org List-Id: xen-devel@lists.xenproject.org On Tue, Jul 10, 2007 at 11:06:29AM -0700, Roland Dreier wrote: > > And what about the attached patch to mthca_memfree? It changes alloc_= pages=20 > > for pci_alloc_consistent. Using it, I can enable FMR and the driver=20 > > runs fine. >=20 > As Michael said, this uses a lot of consistent memory. Probably too > much on some systems. I think he spoke about coherent, didn't he? On i386/x86_64, the consisten= t and coherent are the same but on some architectures they are not and I think = that using consistent (in particular pci_alloc_consistent) is exactly what sho= uld be used. Keir also recommended to use this one. And moreover, it avoids using swiotlb and bounce buffers, I think. Am I r= ight, Keir? --=20 Luk=E1=B9 Hejtm=E1nek