iommu.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v9 00/13] iommu: Shared Virtual Addressing for SMMUv3 (PT sharing part)
@ 2020-07-23 14:57 Jean-Philippe Brucker
  2020-07-23 14:57 ` [PATCH v9 01/13] mm: Define pasid in mm Jean-Philippe Brucker
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: Jean-Philippe Brucker @ 2020-07-23 14:57 UTC (permalink / raw)
  To: iommu, linux-arm-kernel, linux-mm
  Cc: fenghua.yu, Jean-Philippe Brucker, catalin.marinas, robin.murphy,
	hch, zhengxiang9, zhangfei.gao, will

Add support for sharing CPU page tables with the SMMUv3. Support for I/O
page faults and additional features (DVM, VHE and HTTU) needed for SVA
is available on my sva/current branch [2] and will be sent later.

Since v8 [1]:
* Moved the SVA code to arm-smmu-v3-sva.c under CONFIG_ARM_SMMU_V3_SVA.
  This required moving struct definitions and macros to arm-smmu-v3.h
  (patch 7), hence the new 700 insertions/deletions in the diffstat.
* Updated patches 4 and 8 following review.
* Fixed bug in patch 9 when replacing a private ASID.

[1] https://lore.kernel.org/linux-iommu/20200618155125.1548969-1-jean-philippe@linaro.org/
[2] https://jpbrucker.net/git/linux sva/current

Fenghua Yu (1):
  mm: Define pasid in mm

Jean-Philippe Brucker (12):
  iommu/ioasid: Add ioasid references
  iommu/sva: Add PASID helpers
  arm64: mm: Pin down ASIDs for sharing mm with devices
  iommu/io-pgtable-arm: Move some definitions to a header
  arm64: cpufeature: Export symbol read_sanitised_ftr_reg()
  iommu/arm-smmu-v3: Move definitions to a header
  iommu/arm-smmu-v3: Share process page tables
  iommu/arm-smmu-v3: Seize private ASID
  iommu/arm-smmu-v3: Check for SVA features
  iommu/arm-smmu-v3: Add SVA device feature
  iommu/arm-smmu-v3: Implement iommu_sva_bind/unbind()
  iommu/arm-smmu-v3: Hook up ATC invalidation to mm ops

 drivers/iommu/Kconfig                |  17 +
 drivers/iommu/Makefile               |   6 +-
 arch/arm64/include/asm/mmu.h         |   3 +
 arch/arm64/include/asm/mmu_context.h |  11 +-
 drivers/iommu/arm-smmu-v3.h          | 752 +++++++++++++++++++++++
 drivers/iommu/io-pgtable-arm.h       |  30 +
 drivers/iommu/iommu-sva-lib.h        |  15 +
 include/linux/ioasid.h               |  10 +-
 include/linux/mm_types.h             |   4 +
 arch/arm64/kernel/cpufeature.c       |   1 +
 arch/arm64/mm/context.c              | 105 +++-
 drivers/iommu/arm-smmu-v3-sva.c      | 487 +++++++++++++++
 drivers/iommu/arm-smmu-v3.c          | 860 ++++++---------------------
 drivers/iommu/intel/iommu.c          |   4 +-
 drivers/iommu/intel/svm.c            |   6 +-
 drivers/iommu/io-pgtable-arm.c       |  27 +-
 drivers/iommu/ioasid.c               |  38 +-
 drivers/iommu/iommu-sva-lib.c        |  85 +++
 MAINTAINERS                          |   3 +-
 19 files changed, 1729 insertions(+), 735 deletions(-)
 create mode 100644 drivers/iommu/arm-smmu-v3.h
 create mode 100644 drivers/iommu/io-pgtable-arm.h
 create mode 100644 drivers/iommu/iommu-sva-lib.h
 create mode 100644 drivers/iommu/arm-smmu-v3-sva.c
 create mode 100644 drivers/iommu/iommu-sva-lib.c

-- 
2.27.0

_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

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

end of thread, other threads:[~2020-07-23 15:06 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-23 14:57 [PATCH v9 00/13] iommu: Shared Virtual Addressing for SMMUv3 (PT sharing part) Jean-Philippe Brucker
2020-07-23 14:57 ` [PATCH v9 01/13] mm: Define pasid in mm Jean-Philippe Brucker
2020-07-23 14:57 ` [PATCH v9 02/13] iommu/ioasid: Add ioasid references Jean-Philippe Brucker
2020-07-23 14:57 ` [PATCH v9 03/13] iommu/sva: Add PASID helpers Jean-Philippe Brucker
2020-07-23 14:57 ` [PATCH v9 04/13] arm64: mm: Pin down ASIDs for sharing mm with devices Jean-Philippe Brucker
2020-07-23 14:57 ` [PATCH v9 05/13] iommu/io-pgtable-arm: Move some definitions to a header Jean-Philippe Brucker
2020-07-23 14:57 ` [PATCH v9 06/13] arm64: cpufeature: Export symbol read_sanitised_ftr_reg() Jean-Philippe Brucker
2020-07-23 14:57 ` [PATCH v9 07/13] iommu/arm-smmu-v3: Move definitions to a header Jean-Philippe Brucker
2020-07-23 14:57 ` [PATCH v9 08/13] iommu/arm-smmu-v3: Share process page tables Jean-Philippe Brucker
2020-07-23 14:57 ` [PATCH v9 09/13] iommu/arm-smmu-v3: Seize private ASID Jean-Philippe Brucker
2020-07-23 14:57 ` [PATCH v9 10/13] iommu/arm-smmu-v3: Check for SVA features Jean-Philippe Brucker
2020-07-23 14:57 ` [PATCH v9 11/13] iommu/arm-smmu-v3: Add SVA device feature Jean-Philippe Brucker
2020-07-23 14:57 ` [PATCH v9 12/13] iommu/arm-smmu-v3: Implement iommu_sva_bind/unbind() Jean-Philippe Brucker
2020-07-23 14:57 ` [PATCH v9 13/13] iommu/arm-smmu-v3: Hook up ATC invalidation to mm ops Jean-Philippe Brucker

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).