WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Re: ATI radeon fails with "iommu=soft swiotlb=force" (se

To: "Jeremy Fitzhardinge" <jeremy@xxxxxxxx>
Subject: Re: [Xen-devel] Re: ATI radeon fails with "iommu=soft swiotlb=force" (seen on RV730/RV740 and RS780/RS800)
From: "Jan Beulich" <JBeulich@xxxxxxxxxx>
Date: Tue, 06 Oct 2009 09:10:04 +0100
Cc: dri-devel@xxxxxxxxxxxxxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Delivery-date: Tue, 06 Oct 2009 01:10:32 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4ACA4459.4000903@xxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <41093.83224.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <4AC649B0.5090700@xxxxxxxx> <4AC9E75F0200007800017F61@xxxxxxxxxxxxxxxxxx> <4ACA4459.4000903@xxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
>>> Jeremy Fitzhardinge <jeremy@xxxxxxxx> 05.10.09 21:09 >>>
>vmalloc_32 is a general problem.  The only clean way I can see to make
>it work under Xen is to make sure all the pages in the DMA32 zone are
>really under 4G in machine addresses.  But that doesn't scale very well

Why? Just adding a hook in vmalloc.c would do.

>if you have more than one domain wanting to use vmalloc_32 for hardware
>access (or a few small domains).

That's why noted that doing this for the whole zone is likely overkill.

>I'm wondering if the "proper" fix is to introduce a vmalloc_dma() call
>which allocates the pages with the proper DMA API calls them maps them
>together in the vmalloc space, and then start migrating drivers over to
>this new API (ie as needed when people report Xen problems).  That would
>be more generally correct, but perhaps it would be a bit more cumbersome
>because it would have to return both the vaddr of the vmapping, and the
>dma_addr_t array, so that vfree_dma() can make the proper
>dma_free_coherent calls.

Hmm, yes, but the more cumbersome an API is to use, the less likely it
is that people would want to adopt using it (or that it would be mergable
in the first place)).

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>