All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] sparc: IOMMU pools for better scalability
@ 2015-03-03 14:22 Sowmini Varadhan
  2015-03-03 22:15 ` David Miller
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Sowmini Varadhan @ 2015-03-03 14:22 UTC (permalink / raw)
  To: sparclinux


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-03-04 20:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-03 14:22 [PATCH v2 0/2] sparc: IOMMU pools for better scalability Sowmini Varadhan
2015-03-03 22:15 ` 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

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.