Skip to content

Unifying SMMU driver among Tegra SoCs

Hiroshi Doyu linux-devicetree linux-iommu linux-tegra 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest19 patches 91 repliesIn review

Changes in v3 from the cover letter

Updated based on Stephen Warren's feedback

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/19of: dev_node has struct device pointerdrivers/of/platform.c include/linux/of.h+7 -040 replies
2/19ARM: tegra: Populate AHB/IOMMU earlier than othersarch/arm/mach-tegra/tegra.c+22 -01 reply
3/19amba: Move AHB to core_initcalldrivers/amba/tegra-ahb.c+6 -10 replies
4/19iommu/tegra: smmu: Move IOMMU to core_initcalldrivers/iommu/tegra-smmu.c+1 -10 replies
5/19ARM: dt: tegra114: iommu: Fix IOMMU register addressarch/arm/boot/dts/tegra114.dtsi+3 -36 replies
6/19iommu/tegra: smmu: Select ARM_DMA_USE_IOMMU in Kconfigdrivers/iommu/Kconfig+1 -03 replies
7/19iommu/tegra: smmu: Create default IOVA mapsdrivers/iommu/tegra-smmu.c+27 -21 reply
8/19iommu/tegra: smmu: Register platform_device to IOMMU dynamicallydrivers/iommu/tegra-smmu.c+35 -00 replies
9/19iommu/tegra: smmu: Calculate ASID register offset by IDdrivers/iommu/tegra-smmu.c+1 -190 replies
10/19iommu/tegra: smmu: Get "nvidia,swgroups" from DTDocumentation/devicetree/bindings/iommu/nvidia,tegra30-smmu.txt drivers/iommu/tegra-smmu.c+20 -1711 replies
11/19ARM: dt: tegra30: iommu: Add "nvidia,swgroups"arch/arm/boot/dts/tegra30.dtsi+1 -01 reply
12/19ARM: dt: tegra114: iommu: Add "nvidia,swgroups"arch/arm/boot/dts/tegra114.dtsi+1 -11 reply
13/19iommu/tegra: smmu: Workaround PCIe IOMMU'abledrivers/iommu/tegra-smmu.c+3 -01 reply
14/19iommu/tegra: smmu: Get "nvidia,memory-clients" from DTDocumentation/devicetree/bindings/iommu/nvidia,tegra30-smmu.txt drivers/iommu/tegra-smmu.c+40 -319 replies
15/19ARM: tegra: Create a DT header defining SWGROUP IDinclude/dt-bindings/memory/tegra-swgroup.h+46 -06 replies
16/19iommu/tegra: smmu: Use dt-bindings MACROdrivers/iommu/tegra-smmu.c+2 -400 replies
17/19ARM: dt: tegra30: iommu: Add "nvidia,memory-clients"arch/arm/boot/dts/tegra30.dtsi+21 -10 replies
18/19ARM: dt: tegra114: iommu: Add "nvidia, memory-clients"arch/arm/boot/dts/tegra114.dtsi+6 -10 replies
19/19iommu/tegra: smmu: Support Multiple ASIDdrivers/iommu/tegra-smmu.c+13 -20 replies

Reviews trailers per patch

1 of 19 patches has a Reviewed-by or Acked-by.

PatchMark Rutland
1/19
2/19
3/19
4/19
5/19A-b
6/19
7/19
8/19
9/19
10/19
11/19
12/19
13/19
14/19
15/19
16/19
17/19
18/19
19/19

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCHv3 00/19] Unifying SMMU driver among Tegra SoCs

Hi,

This series provides:

(1) Unified SMMU driver among Tegra SoCs
(2) Multiple Address Space support(MASID) in IOMMU(SMMMU)
(3) Tegra IOMMU'able devices, most of platform devices are IOMMU'able.

There's some discussion[1] about device population order, which could solve the following patches.

patch 1: [HACK] of: dev_node has struct device pointer patch 2: [HACK] ARM: tegra: Populate AHB/IOMMU earlier than others patch 3: [HACK] amba: Move AHB to core_initcall
patch 4: [HACK] iommu/tegra: smmu: Move IOMMU to core_initcall

Tested IOMMU functionality with T30 SD/MMC. Any further testing with T114 and/or other devices would be really appreciated.

v3:
Updated based on Stephen Warren's feedback

v2:
Updated based on Thierry Reding's and Stephen Warren's feedback

v2: http://lists.infradead.org/pipermail/linux-arm-kernel/2013-July/181888.html
v1: http://lists.infradead.org/pipermail/linux-arm-kernel/2013-June/180267.html

Available in the git repository at:

git://[email protected]/user/hdoyu/linux.git smmu-upstreaming@20131018

Hiroshi Doyu (19):
[HACK] of: dev_node has struct device pointer
[HACK] ARM: tegra: Populate AHB/IOMMU earlier than others [HACK] amba: Move AHB to core_initcall
[HACK] iommu/tegra: smmu: Move IOMMU to core_initcall
ARM: dt: tegra114: iommu: Fix IOMMU register address iommu/tegra: smmu: Select ARM_DMA_USE_IOMMU in Kconfig iommu/tegra: smmu: Create default IOVA maps iommu/tegra: smmu: Register platform_device to IOMMU dynamically iommu/tegra: smmu: Calculate ASID register offset by ID iommu/tegra: smmu: Get "nvidia,swgroups" from DT
ARM: dt: tegra30: iommu: Add "nvidia,swgroups"
ARM: dt: tegra114: iommu: Add "nvidia,swgroups" iommu/tegra: smmu: Workaround PCIe IOMMU'able iommu/tegra: smmu: Get "nvidia,memory-clients" from DT
ARM: tegra: Create a DT header defining SWGROUP ID iommu/tegra: smmu: Use dt-bindings MACRO
ARM: dt: tegra30: iommu: Add "nvidia,memory-clients"
ARM: dt: tegra114: iommu: Add "nvidia,memory-clients" iommu/tegra: smmu: Support Multiple ASID

 .../bindings/iommu/nvidia,tegra30-smmu.txt         |  22 ++-
 arch/arm/boot/dts/tegra114.dtsi                    |  15 +-
 arch/arm/boot/dts/tegra30.dtsi                     |  23 ++-
 arch/arm/mach-tegra/tegra.c                        |  22 +++
 drivers/amba/tegra-ahb.c                           |   7 +-
 drivers/iommu/Kconfig                              |   1 +
 drivers/iommu/tegra-smmu.c                         | 198 ++++++++++++---------
 drivers/of/platform.c                              |   6 +
 include/dt-bindings/memory/tegra-swgroup.h         |  46 +++++
 include/linux/of.h                                 |   1 +
 10 files changed, 253 insertions(+), 88 deletions(-)
 create mode 100644 include/dt-bindings/memory/tegra-swgroup.h
Signature · 1 line
1.8.1.5