From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: "Wang, Xiaoming" <xiaoming.wang@intel.com>
Cc: "ralf@linux-mips.org" <ralf@linux-mips.org>,
"boris.ostrovsky@oracle.com" <boris.ostrovsky@oracle.com>,
"david.vrabel@citrix.com" <david.vrabel@citrix.com>,
"linux-mips@linux-mips.org" <linux-mips@linux-mips.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
"akpm@linux-foundation.org" <akpm@linux-foundation.org>,
"linux@horizon.com" <linux@horizon.com>,
"lauraa@codeaurora.org" <lauraa@codeaurora.org>,
"heiko.carstens@de.ibm.com" <heiko.carstens@de.ibm.com>,
"d.kasatkin@samsung.com" <d.kasatkin@samsung.com>,
"takahiro.akashi@linaro.org" <takahiro.akashi@linaro.org>,
"chris@chris-wilson.co.uk" <chris@chris-wilson.co.uk>,
"pebolle@tiscali.nl" <pebolle@tiscali.nl>,
"Liu, Chuansheng" <chuansheng.liu@intel.com>,
"Zhang, Dongxing" <dongxing.zhang@intel.com>
Subject: Re: [PATCH v3] modify the IO_TLB_SEGSIZE and IO_TLB_DEFAULT_SIZE configurable as flexible requirement about SW-IOMMU.
Date: Wed, 18 Feb 2015 12:35:39 -0500 [thread overview]
Message-ID: <20150218173539.GE8152@l.oracle.com> (raw)
In-Reply-To: <FA47D36D6EC9FE4CB463299737C09B9901D00B41@shsmsx102.ccr.corp.intel.com>
> > > 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 should use early_param instead of __setup?
> As I known early_param can't help to assign the parameter that we changed at
> kernel cmdline because we have the default value here.
> int io_tlb_segsize = 128;
> unsigned long io_tlb_default_size = (64UL<<20);
The code in 'setup_io_tlb_npages' - which is run when 'swiotlb=' parameter
is passed on the command line, can be modified to parse other extra
values. That is what I meant.
As in right now it assumes you want only to change the size of the
IOTLB buffer (64MB default). You can make the code be smarter and
accept two values, say:
32768,128
Which should make the size by the default of 64MB with an io_tlb_segsize of 128.
Or you can do:
32768,256
for also an 64MB with a io_tlb_segsize of 256 instead.
This offers users to manipulate these values as well as the initial
arch code which can modify 'io_tlb_nslabs' and 'io_tlb_segsize' during
bootup to their preferred values.
> 2, Or do you mean use iotlbsegsize instead of io_tlb_segsize?
No. Just fold it all under 'swiotlb' parameter please.
>
> > Also you will need to update the Documentaiton/kernel-parameters.txt file.
And naturally that will have to be updated.
prev parent reply other threads:[~2015-02-18 17:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-16 2:38 [PATCH v3] modify the IO_TLB_SEGSIZE and IO_TLB_DEFAULT_SIZE configurable as flexible requirement about SW-IOMMU Wang Xiaoming
2015-02-16 22:13 ` Konrad Rzeszutek Wilk
2015-02-17 0:12 ` Wang, Xiaoming
2015-02-18 17:35 ` Konrad Rzeszutek Wilk [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150218173539.GE8152@l.oracle.com \
--to=konrad.wilk@oracle.com \
--cc=akpm@linux-foundation.org \
--cc=boris.ostrovsky@oracle.com \
--cc=chris@chris-wilson.co.uk \
--cc=chuansheng.liu@intel.com \
--cc=d.kasatkin@samsung.com \
--cc=david.vrabel@citrix.com \
--cc=dongxing.zhang@intel.com \
--cc=heiko.carstens@de.ibm.com \
--cc=lauraa@codeaurora.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=linux@horizon.com \
--cc=pebolle@tiscali.nl \
--cc=ralf@linux-mips.org \
--cc=takahiro.akashi@linaro.org \
--cc=xen-devel@lists.xenproject.org \
--cc=xiaoming.wang@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox