From: Sowmini Varadhan <sowmini.varadhan@oracle.com>
To: David Laight <David.Laight@ACULAB.COM>
Cc: "aik@au1.ibm.com" <aik@au1.ibm.com>,
"anton@au1.ibm.com" <anton@au1.ibm.com>,
"paulus@samba.org" <paulus@samba.org>,
"sparclinux@vger.kernel.org" <sparclinux@vger.kernel.org>,
"linuxppc-dev@lists.ozlabs.org" <linuxppc-dev@lists.ozlabs.org>,
"davem@davemloft.net" <davem@davemloft.net>
Subject: Re: [PATCH v8 RFC 1/3] sparc: Break up monolithic iommu table/lock into finer graularity pools and lock
Date: Tue, 31 Mar 2015 11:25:11 -0400 [thread overview]
Message-ID: <20150331152511.GB20062@oracle.com> (raw)
In-Reply-To: <063D6719AE5E284EB5DD2968C1650D6D1CB118E4@AcuExch.aculab.com>
On (03/31/15 15:15), David Laight wrote:
>
> I've wondered whether the iommu setup for ethernet receive (in particular)
> could be made much more efficient if there were a function that
> would unmap one buffer and map a second buffer?
> My thought is that iommu pte entry used by the old buffer could just
> be modified to reference the new one.
> In effect each ring entry would end up using a fixed iommu pte.
There are a number of interesting things to investigate in
this space, and the above is just one of them, ways to avoid
the overhead of a full-blown map/unmap on each call. See
http://www.spinics.net/lists/sparclinux/msg13613.html
But the scope of this patchset is actually very rigidly defined:
to refactor the iommu pool/arena allocator into a common library,
and avoid code duplication (today even the single sparc arch
duplicates it for sun4[u,v] and ldc, and that's not even counting
the duplication across other archs/pci-drivers).
Investigating ways to provide a generalized infra that can
avoid a dma map/unmp for every packet would be a good follow-on.
> The other question is how much data can be copied in 26us ?
> On iommu systems 'copybreak' limits on receive and transmit
> may need to be quite high.
where does the "26us" number come from? I may be missing that context?
--Sowmini
next prev parent reply other threads:[~2015-03-31 15:25 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-31 14:40 [PATCH v8 RFC 0/3] Generic IOMMU pooled allocator Sowmini Varadhan
2015-03-31 14:40 ` [PATCH v8 RFC 1/3] sparc: Break up monolithic iommu table/lock into finer graularity pools and lock Sowmini Varadhan
2015-03-31 15:15 ` David Laight
2015-03-31 15:25 ` Sowmini Varadhan [this message]
2015-04-02 20:54 ` Benjamin Herrenschmidt
2015-04-02 21:43 ` Sowmini Varadhan
2015-04-02 21:57 ` Benjamin Herrenschmidt
2015-04-02 22:01 ` Benjamin Herrenschmidt
2015-04-02 22:02 ` Benjamin Herrenschmidt
2015-04-02 22:15 ` Sowmini Varadhan
2015-04-02 22:19 ` Benjamin Herrenschmidt
2015-04-02 21:54 ` Sowmini Varadhan
2015-04-02 22:08 ` Benjamin Herrenschmidt
2015-04-03 0:42 ` David Miller
2015-04-03 18:28 ` Sowmini Varadhan
2015-04-03 21:06 ` Benjamin Herrenschmidt
2015-04-03 21:51 ` Sowmini Varadhan
2015-04-04 11:27 ` Sowmini Varadhan
2015-04-04 13:33 ` Benjamin Herrenschmidt
2015-03-31 14:40 ` [PATCH v8 RFC 2/3] sparc: Make sparc64 use scalable lib/iommu-common.c functions Sowmini Varadhan
2015-03-31 14:40 ` [PATCH v8 RFC 3/3] sparc: Make LDC use common iommu poll management functions Sowmini Varadhan
2015-03-31 18:06 ` [PATCH v8 RFC 0/3] Generic IOMMU pooled allocator Sowmini Varadhan
2015-03-31 18:08 ` David Miller
2015-04-01 1:01 ` Benjamin Herrenschmidt
2015-04-01 1:08 ` Sowmini Varadhan
2015-04-01 3:12 ` David Miller
2015-04-02 12:51 ` Sowmini Varadhan
2015-04-02 16:21 ` David Miller
2015-04-02 20:22 ` Benjamin Herrenschmidt
2015-04-02 20:52 ` Benjamin Herrenschmidt
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=20150331152511.GB20062@oracle.com \
--to=sowmini.varadhan@oracle.com \
--cc=David.Laight@ACULAB.COM \
--cc=aik@au1.ibm.com \
--cc=anton@au1.ibm.com \
--cc=davem@davemloft.net \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=paulus@samba.org \
--cc=sparclinux@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).