From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: [LINUX] dma: Use swiotlb mask for coherent mappings too Date: Wed, 20 Dec 2006 13:36:11 +0000 Message-ID: References: <45893CB8.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <45893CB8.76E4.0078.0@novell.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: Jan Beulich , Keir Fraser Cc: Xen Development Mailing List , Herbert Xu , Calvin Webster List-Id: xen-devel@lists.xenproject.org On 20/12/06 12:38, "Jan Beulich" wrote: >>>> Keir Fraser 20.12.06 12:55 >>> >> We could fall back to swiotlb_alloc/free_coherent? > > Hmm, that would mean extra tracking, as dma_free_coherent must have a way > to tell whether to call xen_destroy_contiguous_region directly or invoke > swiotlb_free_coherent (and I wouldn't want to make io_tlb_{start,end} global). dma_alloc_coherent is used to allocate some rather big areas in some cases (e.g., when uploading firmware) which I'm sure would not fit in the swiotlb's 64kB contiguous allocations. Some kind of is-within-aperture query function would seem a reasonable addition to the swiotlb API. -- Keir