Re: [PATCH v3] modify the IO_TLB_SEGSIZE and IO_TLB_DEFAULT_SIZE configurable as flexible requirement about SW-IOMMU.

2015-02-18 Thread Konrad Rzeszutek Wilk
> > > static int __init > > > +setup_io_tlb_segsize(char *str) > > > +{ > > > + get_option(, _tlb_segsize); > > > + return 0; > > > +} > > > +__setup("io_tlb_segsize=", setup_io_tlb_segsize); > > > > This should be folded in swiotlb=XYZ parsing please. > > > I am not very clear about this

Re: [PATCH v3] modify the IO_TLB_SEGSIZE and IO_TLB_DEFAULT_SIZE configurable as flexible requirement about SW-IOMMU.

2015-02-18 Thread Konrad Rzeszutek Wilk
static int __init +setup_io_tlb_segsize(char *str) +{ + get_option(str, io_tlb_segsize); + return 0; +} +__setup(io_tlb_segsize=, setup_io_tlb_segsize); This should be folded in swiotlb=XYZ parsing please. I am not very clear about this comment. 1,Do you mean it

RE: [PATCH v3] modify the IO_TLB_SEGSIZE and IO_TLB_DEFAULT_SIZE configurable as flexible requirement about SW-IOMMU.

2015-02-16 Thread Wang, Xiaoming
Dear Wilk > -Original Message- > From: Konrad Rzeszutek Wilk [mailto:konrad.w...@oracle.com] > Sent: Tuesday, February 17, 2015 6:13 AM > To: Wang, Xiaoming > Cc: r...@linux-mips.org; boris.ostrov...@oracle.com; > david.vra...@citrix.com; linux-m...@linux-mips.org; linux- >

Re: [PATCH v3] modify the IO_TLB_SEGSIZE and IO_TLB_DEFAULT_SIZE configurable as flexible requirement about SW-IOMMU.

2015-02-16 Thread Konrad Rzeszutek Wilk
On Mon, Feb 16, 2015 at 10:38:18AM +0800, Wang Xiaoming wrote: > The maximum of SW-IOMMU is limited to 2^11*128 = 256K. > And the maximum of IO_TLB_DEFAULT_SIZE is limited to (64UL<<20) 64M. > While in different platform and different requirement this seems improper. > So modifing the

RE: [PATCH v3] modify the IO_TLB_SEGSIZE and IO_TLB_DEFAULT_SIZE configurable as flexible requirement about SW-IOMMU.

2015-02-16 Thread Wang, Xiaoming
Dear Wilk -Original Message- From: Konrad Rzeszutek Wilk [mailto:konrad.w...@oracle.com] Sent: Tuesday, February 17, 2015 6:13 AM To: Wang, Xiaoming Cc: r...@linux-mips.org; boris.ostrov...@oracle.com; david.vra...@citrix.com; linux-m...@linux-mips.org; linux-

Re: [PATCH v3] modify the IO_TLB_SEGSIZE and IO_TLB_DEFAULT_SIZE configurable as flexible requirement about SW-IOMMU.

2015-02-16 Thread Konrad Rzeszutek Wilk
On Mon, Feb 16, 2015 at 10:38:18AM +0800, Wang Xiaoming wrote: The maximum of SW-IOMMU is limited to 2^11*128 = 256K. And the maximum of IO_TLB_DEFAULT_SIZE is limited to (64UL20) 64M. While in different platform and different requirement this seems improper. So modifing the IO_TLB_SEGSIZE to