Skip to content

iommu: add qcom_iommu for early "B" family devices (v2)

Rob Clark linux-arm-msm linux-devicetree linux-iommu 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 of 9 patches 6 repliesIn review

5 of 9 patches are in this archive. The cover letter announces 9.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9firmware/qcom: add qcom_scm_restore_sec_cfg()drivers/firmware/qcom_scm-32.c drivers/firmware/qcom_scm-64.c drivers/firmware/qcom_scm.c +2 more+35 -00 replies
2/9firmware: qcom_scm: add two scm calls for iommu secure page tabledrivers/firmware/qcom_scm-32.c drivers/firmware/qcom_scm-64.c drivers/firmware/qcom_scm.c +2 more+76 -00 replies
3/9Docs: dt: document qcom iommu bindingsDocumentation/devicetree/bindings/iommu/qcom,iommu.txt+113 -03 replies
4/9iommu: arm-smmu: split out register definesdrivers/iommu/arm-smmu-regs.h drivers/iommu/arm-smmu.c+226 -1990 replies
5/9iommu: add qcom_iommudrivers/iommu/Kconfig drivers/iommu/Makefile drivers/iommu/arm-smmu-regs.h +1 more+831 -03 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/9] iommu: add qcom_iommu for early "B" family devices (v2)

An iommu driver for Qualcomm "B" family devices which do not completely implement the ARM SMMU spec. These devices have context-bank register layout that is similar to ARM SMMU, but no global register space (or at least not one that is accessible).

There are a couple vaguely unrelated patches to add venus and gpu dt nodes, so that we have something to wire up the iommu to.

These patches apply on top of some in-flight patches to support IOMMU probe deferral. You can find full branch on top of linux-next here:

git://people.freedesktop.org/~robclark/linux next-20170307-db410c-qcom-smmu-3-venus

or github if you prefer:

https://github.com/freedreno/kernel-msm/commits/next-20170307-db410c-qcom-smmu-3-venus

Compared to previous patchset, there have been some (mostly binding related) cleanups. Also fixed some other-config related build issues that kbuild robot spotted.

Rob Clark (6):
firmware/qcom: add qcom_scm_restore_sec_cfg()
Docs: dt: document qcom iommu bindings
iommu: arm-smmu: split out register defines
iommu: add qcom_iommu
ARM64: DT: add gpu for msm8916
ARM64: DT: add iommu for msm8916

Stanimir Varbanov (3):
firmware: qcom_scm: add two scm calls for iommu secure page table
iommu: qcom: initialize secure page table
ARM64: DT: add video codec devicetree node

 .../devicetree/bindings/iommu/qcom,iommu.txt       | 113 +++
 arch/arm64/boot/dts/qcom/msm8916.dtsi              | 108 +++
 drivers/firmware/qcom_scm-32.c                     |  18 +
 drivers/firmware/qcom_scm-64.c                     |  58 ++
 drivers/firmware/qcom_scm.c                        |  18 +
 drivers/firmware/qcom_scm.h                        |  11 +
 drivers/iommu/Kconfig                              |  10 +
 drivers/iommu/Makefile                             |   1 +
 drivers/iommu/arm-smmu-regs.h                      | 227 ++++++
 drivers/iommu/arm-smmu.c                           | 200 +----
 drivers/iommu/qcom_iommu.c                         | 882 +++++++++++++++++++++
 include/linux/qcom_scm.h                           |   6 +
 12 files changed, 1453 insertions(+), 199 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/iommu/qcom,iommu.txt
 create mode 100644 drivers/iommu/arm-smmu-regs.h
 create mode 100644 drivers/iommu/qcom_iommu.c
Signature · 1 line
2.9.3