linux-mips
[Top] [All Lists]

RE: [Xen-devel] [PATCH] modify the IO_TLB_SEGSIZE to io_tlb_segsize conf

To: David Vrabel <david.vrabel@citrix.com>, Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Subject: RE: [Xen-devel] [PATCH] modify the IO_TLB_SEGSIZE to io_tlb_segsize configurable as flexible requirement about SW-IOMMU.
From: "Wang, Xiaoming" <xiaoming.wang@intel.com>
Date: Wed, 11 Feb 2015 08:38:29 +0000
Accept-language: zh-CN, en-US
Cc: "linux-mips@linux-mips.org" <linux-mips@linux-mips.org>, "pebolle@tiscali.nl" <pebolle@tiscali.nl>, "Zhang, Dongxing" <dongxing.zhang@intel.com>, "lauraa@codeaurora.org" <lauraa@codeaurora.org>, "d.kasatkin@samsung.com" <d.kasatkin@samsung.com>, "heiko.carstens@de.ibm.com" <heiko.carstens@de.ibm.com>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, "ralf@linux-mips.org" <ralf@linux-mips.org>, "chris@chris-wilson.co.uk" <chris@chris-wilson.co.uk>, "takahiro.akashi@linaro.org" <takahiro.akashi@linaro.org>, "linux@horizon.com" <linux@horizon.com>, "xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>, "boris.ostrovsky@oracle.com" <boris.ostrovsky@oracle.com>, "Liu, Chuansheng" <chuansheng.liu@intel.com>, "akpm@linux-foundation.org" <akpm@linux-foundation.org>
In-reply-to: <54D9D363.5060904@citrix.com>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1423177274-22118-1-git-send-email-xiaoming.wang@intel.com> <20150205193241.GC11646@x230.dumpdata.com> <FA47D36D6EC9FE4CB463299737C09B9901CF8CE6@shsmsx102.ccr.corp.intel.com> <54D9D363.5060904@citrix.com>
Sender: linux-mips-bounce@linux-mips.org
Thread-index: AQHQQRJJKhpis9DUDUadJ41Llkm2a5zh7MKAgADSw2CABmUHgIACAXdQ
Thread-topic: [Xen-devel] [PATCH] modify the IO_TLB_SEGSIZE to io_tlb_segsize configurable as flexible requirement about SW-IOMMU.
Dear David

> -----Original Message-----
> From: David Vrabel [mailto:david.vrabel@citrix.com]
> Sent: Tuesday, February 10, 2015 5:46 PM
> To: Wang, Xiaoming; Konrad Rzeszutek Wilk
> Cc: linux-mips@linux-mips.org; pebolle@tiscali.nl; Zhang, Dongxing;
> lauraa@codeaurora.org; d.kasatkin@samsung.com;
> heiko.carstens@de.ibm.com; linux-kernel@vger.kernel.org; ralf@linux-
> mips.org; chris@chris-wilson.co.uk; takahiro.akashi@linaro.org;
> david.vrabel@citrix.com; linux@horizon.com; xen-
> devel@lists.xenproject.org; boris.ostrovsky@oracle.com; Liu, Chuansheng;
> akpm@linux-foundation.org
> Subject: Re: [Xen-devel] [PATCH] modify the IO_TLB_SEGSIZE to
> io_tlb_segsize configurable as flexible requirement about SW-IOMMU.
> 
> On 06/02/15 00:10, Wang, Xiaoming wrote:
> >
> >
> >> -----Original Message-----
> >> From: Konrad Rzeszutek Wilk [mailto:konrad.wilk@oracle.com]
> >> Sent: Friday, February 6, 2015 3:33 AM
> >> To: Wang, Xiaoming
> >> Cc: ralf@linux-mips.org; boris.ostrovsky@oracle.com;
> >> david.vrabel@citrix.com; linux-mips@linux-mips.org; linux-
> >> kernel@vger.kernel.org; xen-devel@lists.xenproject.org; akpm@linux-
> >> foundation.org; linux@horizon.com; lauraa@codeaurora.org;
> >> heiko.carstens@de.ibm.com; d.kasatkin@samsung.com;
> >> takahiro.akashi@linaro.org; chris@chris-wilson.co.uk;
> >> pebolle@tiscali.nl; Liu, Chuansheng; Zhang, Dongxing
> >> Subject: Re: [PATCH] modify the IO_TLB_SEGSIZE to io_tlb_segsize
> >> configurable as flexible requirement about SW-IOMMU.
> >>
> >> On Fri, Feb 06, 2015 at 07:01:14AM +0800, xiaomin1 wrote:
> >>> The maximum of SW-IOMMU is limited to 2^11*128 = 256K.
> >>> While in different platform and different requirements this seems
> improper.
> >>> So modify the IO_TLB_SEGSIZE to io_tlb_segsize as configurable is
> >>> make
> >> sense.
> >>
> >> More details please. What is the issue you are hitting?
> >>
> > Example:
> > If 1M bytes are requied. There has an error like.
> 
> Instead of allowing the bouncing of such large buffers, could the gadget
> driver be modified to submit the buffers to the hardware in smaller chunks?
> 
> David

Our target is try to make IO_TLB_SEGSIZE configurable.
Neither 256 bytes  or 1M bytes seems suitable value, I think.
It's better to use the tactics something like
kmem_cache_create  in kmalloc function.
But SW-IOMMU seems more lighter.
So we choose variable rather than function.

Xiaoming.

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