From: Sowmini Varadhan <sowmini.varadhan@oracle.com>
To: sparclinux@vger.kernel.org
Subject: [PATCH v2 0/2] sparc: IOMMU pools for better scalability
Date: Tue, 03 Mar 2015 14:22:02 +0000 [thread overview]
Message-ID: <20150303142202.GA7696@oracle.com> (raw)
V2 version ofthis patch-set incorporates the feedback from
http://marc.info/?l=linux-sparc&m\x142527471211108&w=2
The sparc specific fields have been moved off into iommu_64.h,
into struct iommu_sparc, leaving a minimalist struct iommu_table
in the common functions..
In addition to those changes, there are some additional enhancements to
improve the generality of this library that were based on inspection of other
iommu use-case such as LDC, which have a much smaller map size
(8k, vs 256k for pci_sun4v.c), and some other variations. These
change are:
(a) When the number of map entries is small, it may not be desirable
to have too many pools: make npools an input parameter to the library
(b) the cookie-to-index mapping function could be more complex,
depending on the device. So added a ->cookie_to_index() indirection
in the iommu_tbl_ops
(c) Depending on the device, the span-boundary check may not be needed.
Allow for optimizations of this check.
Sowmini (2):
Break up monolithic iommu table/lock into finer graularity pools and
lock
Make sparc64 use scalable lib/iommu-common.c functions
arch/sparc/include/asm/iommu_64.h | 19 ++++
arch/sparc/kernel/pci_impl.h | 7 +-
arch/sparc/kernel/pci_sun4v.c | 217 +++++++++++++++++--------------------
include/linux/iommu-common.h | 57 ++++++++++
lib/Makefile | 2 +-
lib/iommu-common.c | 217 +++++++++++++++++++++++++++++++++++++
6 files changed, 402 insertions(+), 117 deletions(-)
create mode 100644 include/linux/iommu-common.h
create mode 100644 lib/iommu-common.c
next reply other threads:[~2015-03-03 14:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-03 14:22 Sowmini Varadhan [this message]
2015-03-03 22:15 ` [PATCH v2 0/2] sparc: IOMMU pools for better scalability David Miller
2015-03-04 19:10 ` Sowmini Varadhan
2015-03-04 19:15 ` David Miller
2015-03-04 19:32 ` David Ahern
2015-03-04 20:35 ` David Miller
2015-03-04 20:37 ` David Miller
2015-03-04 20:55 ` Sowmini Varadhan
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=20150303142202.GA7696@oracle.com \
--to=sowmini.varadhan@oracle.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.