Skip to contentSkip to conversation

sparc: IOMMU pools for better scalability

RFC PATCH In review Sowmini Varadhan 2 participants 2 messages Mar 13, 2015

lore
Share & tools
lore
#0 lore raw

v4 cover sparc: IOMMU pools for better scalability

Follows up on feedback to v3 patch-set from
http://www.spinics.net/lists/sparclinux/msg13462.html

specifically,
- pci_impl.h has no changes, now that all sparc iommu usage is converted to the common library.
- Remove IOMMU_ERROR_CODE. use DMA_ERROR_CODE
- page_table_map_base and page_table_shift are unsigned long.

Sowmini (2):
Break up monolithic iommu table/lock into finer graularity pools and
lock
Make sparc64 use scalable lib/iommu-common.c functions

Sowmini Varadhan (1):
Make LDC use common iommu poll management functions

 arch/sparc/include/asm/iommu_64.h |    7 +-
 arch/sparc/kernel/iommu.c         |  188 +++++++++++---------------------
 arch/sparc/kernel/iommu_common.h  |    8 --
 arch/sparc/kernel/ldc.c           |  185 ++++++++++++++++---------------
 arch/sparc/kernel/pci_sun4v.c     |  193 ++++++++++++++++-----------------
 include/linux/iommu-common.h      |   55 +++++++++
 lib/Makefile                      |    2 +-
 lib/iommu-common.c                |  220 +++++++++++++++++++++++++++++++++++++
 8 files changed, 533 insertions(+), 325 deletions(-)
 create mode 100644 include/linux/iommu-common.h
 create mode 100644 lib/iommu-common.c
#1 lore raw

From: Sowmini Varadhan <[email protected]>
Date: Thu, 12 Mar 2015 20:02:34 -0400

Quoted 8 lines

Follows up on feedback to v3 patch-set from
http://www.spinics.net/lists/sparclinux/msg13462.html

specifically,
- pci_impl.h has no changes, now that all sparc iommu usage is converted to the common library.
- Remove IOMMU_ERROR_CODE. use DMA_ERROR_CODE
- page_table_map_base and page_table_shift are unsigned long.

Looks good, I'll start doing some testing of my own.