From: Lukas Hejtmanek Subject: [ofa-general] Re: mthca use of dma_sync_single is bogus Date: Tue, 10 Jul 2007 21:36:26 +0200 Message-ID: <20070710193626.GM3885@ics.muni.cz> References: <20070709213913.GB20052@mellanox.co.il> <20070710141409.GH3885@ics.muni.cz> <20070710190018.GK3885@ics.muni.cz> <20070710191639.GL3885@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 12:24:02PM -0700, Roland Dreier wrote: > Sorry, I was a little confusing. The implementations may be different > but in general there is no real difference between consistent and > coherent memory. Using either pci_alloc_consistent() or > dma_alloc_coherent() will exhaust the same small pool of address space > on powerpc 4xx for example. I thought that consistent only refers to physically contiguous area where= as coherent refers to memory where no barrier need to be used. But I may be wrong. Anyway, with my patch, I can turn off swiotlb and I'm still able to load ib_mthca cleanly in DomU. On the other hand, Xen bug me about DMA bug in ib_ipoib, there may be another problem with dma_sync_single(). > Seems pretty ugly, especially given that Xen is not upstream. I think > the Xen tree should just carry such patches, at least until Xen is > merged. Even then I'm quite dubious about having two code paths for th= is. OK, I will keep it for my own. --=20 Luk=E1=B9 Hejtm=E1nek