All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] MT8188 IOMMU SUPPORT
@ 2022-08-04 10:58 ` Chengci.Xu
  0 siblings, 0 replies; 23+ messages in thread
From: Chengci.Xu @ 2022-08-04 10:58 UTC (permalink / raw)
  To: Yong Wu, Joerg Roedel, Will Deacon, Robin Murphy, Rob Herring,
	Krzysztof Kozlowski, Matthias Brugger
  Cc: iommu, linux-mediatek, devicetree, linux-kernel,
	linux-arm-kernel, Project_Global_Chrome_Upstream_Group,
	Chengci.Xu

This patchset adds MT8188 IOMMU support.

MT8188 have 3 IOMMU HWs. 2 IOMMU HW is for multimedia, and 1 IOMMU HW
is for infra-master, like PCIe.

About the 2 MM IOMMU HW, the connection could be something like this:

        IOMMU(VDO)          IOMMU(VPP)
           |                   |
      SMI_COMMON(VDO)      SMI_COMMON(VPP)
      ---------------     ----------------
      |      |   ...      |      |     ...
    larb0 larb2  ...    larb1 larb3    ...

INFRA IOMMU does not have SMI, the master connects to IOMMU directly.

Although multiple banks supported in MT8188, we only use one of them,
which means PCIe is put in bank0 of INFRA IOMMU.

So we have two pgtable for MT8188, specifically, these two MM IOMMU HW
share a pgtable while INFRA IOMMU HW use a independent pgtable.

Another change is that we add some SMC command for INFRA master to 
enable/disable INFRA IOMMU in ATF considering security concerns.

changes since v1:
  - base on tag: next-20220803.
  - adds MT8188 IOMMU support.

Chengci.Xu (3):
  dt-bindings: mediatek: mt8188: Add binding for MM & INFRA IOMMU
  iommu/mediatek: Add enable IOMMU SMC command for INFRA master
  iommu/mediatek: Add MT8188 IOMMU Support

 .../bindings/iommu/mediatek,iommu.yaml        |  12 +-
 drivers/iommu/mtk_iommu.c                     |  82 ++-
 .../dt-bindings/memory/mt8188-memory-port.h   | 482 ++++++++++++++++++
 include/soc/mediatek/smi.h                    |   1 +
 4 files changed, 568 insertions(+), 9 deletions(-)
 create mode 100644 include/dt-bindings/memory/mt8188-memory-port.h

-- 
2.25.1


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

end of thread, other threads:[~2022-08-18  9:14 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-04 10:58 [PATCH 0/3] MT8188 IOMMU SUPPORT Chengci.Xu
2022-08-04 10:58 ` Chengci.Xu
2022-08-04 10:58 ` [PATCH 1/3] dt-bindings: mediatek: mt8188: Add binding for MM & INFRA IOMMU Chengci.Xu
2022-08-04 10:58   ` Chengci.Xu
2022-08-04 10:58   ` Chengci.Xu
2022-08-04 11:13   ` Krzysztof Kozlowski
2022-08-04 11:13     ` Krzysztof Kozlowski
2022-08-18  7:26     ` Chengci.Xu
2022-08-18  7:26       ` Chengci.Xu
2022-08-18  7:42       ` Krzysztof Kozlowski
2022-08-18  7:42         ` Krzysztof Kozlowski
2022-08-18  8:03         ` Chengci.Xu
2022-08-18  8:03           ` Chengci.Xu
2022-08-18  7:48       ` Krzysztof Kozlowski
2022-08-18  7:48         ` Krzysztof Kozlowski
2022-08-18  8:12         ` Chengci.Xu
2022-08-18  8:12           ` Chengci.Xu
2022-08-04 10:58 ` [PATCH 2/3] iommu/mediatek: Add enable IOMMU SMC command for INFRA master Chengci.Xu
2022-08-04 10:58   ` Chengci.Xu
2022-08-04 10:58   ` Chengci.Xu
2022-08-04 10:58 ` [PATCH 3/3] iommu/mediatek: Add MT8188 IOMMU Support Chengci.Xu
2022-08-04 10:58   ` Chengci.Xu
2022-08-04 10:58   ` Chengci.Xu

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.