From: Keir Fraser Subject: Re: SWIOMMU redundant copies? Date: Fri, 14 Mar 2008 16:26:26 +0000 Message-ID: References: <1205509828.8010.31.camel@sisko.scot.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1205509828.8010.31.camel@sisko.scot.redhat.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Stephen C. Tweedie" , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org Yes, the swiotlb check could be relaxed. Do we really do many mergeable page-straddling I/Os in practice though? I would expect most block I/O to be scattered by the page cache. -- Keir On 14/3/08 15:50, "Stephen C. Tweedie" wrote: > So we'll create bios which span multiple pages, assuming that that's > more efficient; but then we'll force them to be copied because they span > multiple pages! > > Have I missed something, or is this an oversight in the swiotlb.c patch > above? > > The reason I discovered this is that including the patch seems to be > causing SWIOTLB overflows on some hardware. Adding an extra test to > swiotlb_map_sg() to catch sg segments which are truly machine-contig and > don't need mapping, and avoid copying those, cures those symptoms for > me, but I suspect there may be other issues lurking in this area.