Skip to contentSkip to conversation

iommu/exynos: Fixes and Enhancements of System MMU driver with DT

PATCH Superseded Cho KyongHo 1 participant 2 messages Nov 20, 2012 Arm Samsung Exynos

v2 of 11 Superseded Latest is v11 →

lore
Share & tools
lore
#0 lore raw

v2 cover iommu/exynos: Fixes and Enhancements of System MMU driver with DT

The current exynos-iommu(System MMU) driver does not work autonomously since it is lack of support for power management of peripheral blocks. For example, MFC device driver must ensure that its System MMU is disabled before MFC block is power-down not to invalidate IOTLB in the System MMU when I/O memory mapping is changed. Because A System MMU is resides in the same H/W block, access to control registers of System MMU while the H/W block is turned off must be prohibited.

This set of changes solves the above problem with setting each System MMUs as the parent of the device which owns the System MMU to recieve the information when the device is turned off or turned on.

Another big change to the driver is the support for devicetree. The bindings for System MMU is described in Documentation/devicetree/bindings/arm/samsung/system-mmu.txt

In addition, this patchset also includes several bug fixes and enhancements of the current driver.

Change log:
v2:
- Split the patch to iommu/exynos into 9 patches
- Support for System MMU 3.3
- Some code compaction

Patch summary:
[PATCH v2 01/12] ARM: EXYNOS: remove system mmu initialization from arch/arm/ tree [PATCH v2 02/12] ARM: EXYNOS: Add clk_ops for gating clocks of System MMU [PATCH v2 03/12] ARM: EXYNOS: add System MMU definition to DT
[PATCH v2 04/12] iommu/exynos: support for device tree
[PATCH v2 05/12] iommu/exynos: pass version information from DT [PATCH v2 06/12] iommu/exynos: allocate lv2 page table from own slab [PATCH v2 07/12] iommu/exynos: change rwlock to spinlock
[PATCH v2 08/12] iommu/exynos: set System MMU as the parent of client device [PATCH v2 09/12] iommu/exynos: add supoort for runtime pm and suspend/resume [PATCH v2 10/12] iommu/exynos: add support for System MMU 3.2 and 3.3 [PATCH v2 11/12] iommu/exynos: add literal name of System MMU for debugging [PATCH v2 12/12] iommu/exynos: add debugfs entries for System MMU

Diffstats:

 .../devicetree/bindings/arm/exynos/system-mmu.txt  |   86 ++
 arch/arm/boot/dts/exynos4210.dtsi                  |   96 ++
 arch/arm/boot/dts/exynos4x12.dtsi                  |  124 ++
 arch/arm/boot/dts/exynos5250.dtsi                  |  147 +-
 arch/arm/mach-exynos/Kconfig                       |    5 -
 arch/arm/mach-exynos/Makefile                      |    1 -
 arch/arm/mach-exynos/clock-exynos4.c               |   41 +-
 arch/arm/mach-exynos/clock-exynos4210.c            |    9 +-
 arch/arm/mach-exynos/clock-exynos4212.c            |   23 +-
 arch/arm/mach-exynos/clock-exynos5.c               |   87 +-
 arch/arm/mach-exynos/dev-sysmmu.c                  |  274 ----
 arch/arm/mach-exynos/include/mach/sysmmu.h         |   66 -
 arch/arm/mach-exynos/mach-exynos4-dt.c             |   34 +
 arch/arm/mach-exynos/mach-exynos5-dt.c             |   30 +
 drivers/iommu/Kconfig                              |    2 +-
 drivers/iommu/exynos-iommu.c                       | 1423 +++++++++++++++-----
 16 files changed, 1720 insertions(+), 728 deletions(-)
#1 lore raw

v2 cover iommu/exynos: Fixes and Enhancements of System MMU driver with DT

Quoted 2 lines · Cho KyongHo

Patch summary:
[PATCH v2 01/12] ARM: EXYNOS: remove system mmu initialization from

arch/arm/ tree

Quoted 7 lines

[PATCH v2 02/12] ARM: EXYNOS: Add clk_ops for gating clocks of System MMU [PATCH v2 03/12] ARM: EXYNOS: add System MMU definition to DT [PATCH v2 04/12] iommu/exynos: support for device tree
[PATCH v2 05/12] iommu/exynos: pass version information from DT [PATCH v2 06/12] iommu/exynos: allocate lv2 page table from own slab [PATCH v2 07/12] iommu/exynos: change rwlock to spinlock [PATCH v2 08/12] iommu/exynos: set System MMU as the parent of client

device

Quoted 1 line

[PATCH v2 09/12] iommu/exynos: add supoort for runtime pm and

suspend/resume

Quoted 2 lines

[PATCH v2 10/12] iommu/exynos: add support for System MMU 3.2 and 3.3 [PATCH v2 11/12] iommu/exynos: add literal name of System MMU for

debugging

Quoted 2 lines

[PATCH v2 12/12] iommu/exynos: add debugfs entries for System MMU

It is required to be merged from the patch 01/12 to 09/12 for correct working with DT and power management.
Patch 10/12 is required to support new version of System MMU that is IOMMU in Exynos cores.
Patch 11/12 and 12/12 is adding debugging features.

Thank you.

Cho KyongHo.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20121120/db936eae/attachment-0001.html>