linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v7 00/25] Exynos SYSMMU (IOMMU) integration with DT and DMA-mapping subsystem
@ 2015-05-19 13:20 Marek Szyprowski
  2015-05-19 13:20 ` [PATCH v7 01/25] drm/exynos: iommu: detach from default dma-mapping domain on init Marek Szyprowski
                   ` (27 more replies)
  0 siblings, 28 replies; 50+ messages in thread
From: Marek Szyprowski @ 2015-05-19 13:20 UTC (permalink / raw)
  To: linux-arm-kernel

Hello Everyone,

This is yet another attempt to get Exynos SYSMMU driver with integrated
with IOMMU & DMA-mapping subsystems. This version includes minor fixes
suggested by Joerg Roedel, Cho KyongHo and Robin Murphy.

All patches are also available in the following git repository:
https://git.linaro.org/people/marek.szyprowski/linux-srpol.git
branch v4.1-exynos-iommu-v7.

My plan for merging this patchset is as follows:
- DTS changes and power domain changes should go via Samsung tree to avoid
  conflicts with other pending DTS patches
- all exynos-iommu patches and dma-mapping/reserved iommu region should go
  via IOMMU tree,
- all Exynos DRM patches should go via DRM/Exynos tree.

There are no build cross-subsystem dependencies and IOMMU on Exynos is
already nonfunctional (and disabled in defconfig), so merging patches in
parts doesn't break anything.

There are knowns issues with Exynos DRM driver and IOMMU support
(i.e. Xorg freeze reported by Javier Martinez Canillas:
http://www.spinics.net/lists/linux-samsung-soc/msg44350.html ). They
will be handled by a separate fixes to Exynos DRM drivers. This patchset
fixes only those issues in Exynos DRM FIMD driver, which prevents
booting to console.

Best regards
Marek Szyprowski
Samsung R&D Institute Poland


Changelog:

v7:
- rebased onto v4.1-rc4
- restored iommu_gruops support
- added missing suspend/resume support patch
- rearanged patch order and squashed some patches for better code readability
- changed patch prefixes to match maintainer's requirements
- fixed minor issues pointed by Joerg Roedel, Cho KyongHo and Robin Murphy
- added Krzysztof's acks for dts patches

v6: http://www.spinics.net/lists/linux-samsung-soc/msg44065.html
- rebased onto v4.1-rc2 with 'arm: dma-mapping: fix off-by-one check in
  arm_setup_iommu_dma_ops' patch
- added exynos 3250 and 4415 dts patches
- added support for devices, which have been left enabled by bootloader
  (i.e. framebuffer displaying slash screen)
- fixed freeze in fimd iommu initialization caused by lack of proper
  runtime pm management
- resolved issues with power domains by moving pd initialization to
  core_initcall

v5: https://lists.linaro.org/pipermail/linaro-mm-sig/2015-February/004442.html
- rebased onto 'Add HDMI support for Exynos5420 platform' patchset
- fixed 'const' issue in 'iommu: exynos: init from dt-specific callback
  instead of initcall' patch, thanks to Tobias Jakobi for reporting it
- fixed copy-paste typo in exynos5250 dts patch

v4: http://www.spinics.net/lists/linux-samsung-soc/msg41177.html
- rebased onto v3.19-rc4 and other Exynos DTS queued patches
- added DTS patch for Exynos 5250 & 5420/5422/5800

v3: http://www.spinics.net/lists/linux-samsung-soc/msg39168.html
- rebased onto "[RFC PATCH v4 0/8] Introduce automatic DMA
  configuration for IOMMU masters"
- added some minor fixes for iommu and dma-mapping frameworks

v2: http://thread.gmane.org/gmane.linux.kernel.iommu/6472/
- rebased onto "[RFC PATCH v3 0/7] Introduce automatic DMA
  configuration for IOMMU masters" patches:
  http://www.spinics.net/lists/arm-kernel/msg362076.html
- changed initialization from bus notifiers to DT related callbacks
- removed support for separate IO address spaces - this will be
  discussed separately after the basic support gets merged
- removed support for power domain notifier-based runtime power
  management - this also will be discussed separately later

v1: https://lkml.org/lkml/2014/8/5/183
- initial version, feature complete, completely rewrote integration
  approach


Patch summary:

Marek Szyprowski (25):
  drm/exynos: iommu: detach from default dma-mapping domain on init
  drm/exynos: fimd: ensure proper hw state in fimd_clear_channel()
  iommu: Init iommu-groups support earlier, in core_initcall
  iommu/exynos: Don't read version register on every tlb operation
  iommu/exynos: Remove unused functions
  iommu/exynos: Remove useless members from exynos_iommu_owner structure
  iommu/exynos: Refactor function parameters to simplify code
  iommu/exynos: Rename variables to reflect their purpose
  iommu/exynos: Use struct exynos_iommu_domain in internal structures
  iommu/exynos: Remove excessive includes and sort others alphabetically
  iommu/exynos: Document internal structures
  iommu/exynos: Add/remove callbacks should fail if no iommu is
    available
  iommu/exynos: Add support for binding more than one sysmmu to master
    device
  iommu/exynos: Add support for runtime_pm
  iommu/exynos: Add system suspend/resume support
  iommu/exynos: Init from dt-specific callback instead of initcall
  iommu/exynos: Add callback for initializing devices from device tree
  ARM: Exynos: pm_domains: register power domain driver from
    core_initcall
  ARM: dts: exynos4: add sysmmu nodes
  ARM: dts: exynos3250: add sysmmu nodes
  ARM: dts: exynos4415: add sysmmu nodes
  ARM: dts: exynos5250: add sysmmu nodes
  ARM: dts: exynos5420: add sysmmu nodes
  ARM: DMA-mapping: add support for creating reserved mappings in iova
    space
  ARM: dts: exynos: add iommu reserved regions for bootloader's splash
    screen

 Documentation/devicetree/bindings/iommu/iommu.txt |  44 ++
 arch/arm/boot/dts/exynos3250-rinato.dts           |   1 +
 arch/arm/boot/dts/exynos3250.dtsi                 |  22 +
 arch/arm/boot/dts/exynos4.dtsi                    | 118 +++++
 arch/arm/boot/dts/exynos4210-trats.dts            |   1 +
 arch/arm/boot/dts/exynos4210-universal_c210.dts   |   1 +
 arch/arm/boot/dts/exynos4210.dtsi                 |  23 +
 arch/arm/boot/dts/exynos4412-trats2.dts           |   1 +
 arch/arm/boot/dts/exynos4415.dtsi                 |  11 +
 arch/arm/boot/dts/exynos4x12.dtsi                 |  82 ++++
 arch/arm/boot/dts/exynos5250-snow.dts             |   1 +
 arch/arm/boot/dts/exynos5250-spring.dts           |   1 +
 arch/arm/boot/dts/exynos5250.dtsi                 | 250 ++++++++++
 arch/arm/boot/dts/exynos5420-peach-pit.dts        |   1 +
 arch/arm/boot/dts/exynos5420.dtsi                 | 181 ++++++++
 arch/arm/boot/dts/exynos5800-peach-pi.dts         |   1 +
 arch/arm/mach-exynos/pm_domains.c                 |  18 +-
 arch/arm/mm/dma-mapping.c                         | 121 +++++
 drivers/gpu/drm/exynos/exynos_drm_fimd.c          |  27 +-
 drivers/gpu/drm/exynos/exynos_drm_iommu.c         |   3 +
 drivers/iommu/exynos-iommu.c                      | 526 +++++++++++-----------
 drivers/iommu/iommu.c                             |   2 +-
 22 files changed, 1156 insertions(+), 280 deletions(-)

-- 
1.9.2

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

end of thread, other threads:[~2015-06-04 19:28 UTC | newest]

Thread overview: 50+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-19 13:20 [PATCH v7 00/25] Exynos SYSMMU (IOMMU) integration with DT and DMA-mapping subsystem Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 01/25] drm/exynos: iommu: detach from default dma-mapping domain on init Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 02/25] drm/exynos: fimd: ensure proper hw state in fimd_clear_channel() Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 03/25] iommu: Init iommu-groups support earlier, in core_initcall Marek Szyprowski
2015-05-23 16:23   ` Laurent Pinchart
2015-05-25  7:28     ` Marek Szyprowski
2015-05-29  8:33     ` Joerg Roedel
2015-05-19 13:20 ` [PATCH v7 04/25] iommu/exynos: Don't read version register on every tlb operation Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 05/25] iommu/exynos: Remove unused functions Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 06/25] iommu/exynos: Remove useless members from exynos_iommu_owner structure Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 07/25] iommu/exynos: Refactor function parameters to simplify code Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 08/25] iommu/exynos: Rename variables to reflect their purpose Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 09/25] iommu/exynos: Use struct exynos_iommu_domain in internal structures Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 10/25] iommu/exynos: Remove excessive includes and sort others alphabetically Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 11/25] iommu/exynos: Document internal structures Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 12/25] iommu/exynos: Add/remove callbacks should fail if no iommu is available Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 13/25] iommu/exynos: Add support for binding more than one sysmmu to master device Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 14/25] iommu/exynos: Add support for runtime_pm Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 15/25] iommu/exynos: Add system suspend/resume support Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 16/25] iommu/exynos: Init from dt-specific callback instead of initcall Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 17/25] iommu/exynos: Add callback for initializing devices from device tree Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 18/25] ARM: Exynos: pm_domains: register power domain driver from core_initcall Marek Szyprowski
2015-05-20  0:51   ` Krzysztof Kozlowski
2015-05-19 13:20 ` [PATCH v7 19/25] ARM: dts: exynos4: add sysmmu nodes Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 20/25] ARM: dts: exynos3250: " Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 21/25] ARM: dts: exynos4415: " Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 22/25] ARM: dts: exynos5250: " Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 23/25] ARM: dts: exynos5420: " Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 24/25] ARM: DMA-mapping: add support for creating reserved mappings in iova space Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 25/25] ARM: dts: exynos: add iommu reserved regions for bootloader's splash screen Marek Szyprowski
2015-05-20  7:31 ` [PATCH v7 00/25] Exynos SYSMMU (IOMMU) integration with DT and DMA-mapping subsystem Javier Martinez Canillas
2015-05-23  3:56   ` [PATCH v7 00/25] Exynos SYSMMU (IOMMU) integration with DT andDMA-mapping subsystem Kukjin Kim
2015-05-28 23:54     ` Krzysztof Kozlowski
2015-05-29  8:52 ` [PATCH v7 00/25] Exynos SYSMMU (IOMMU) integration with DT and DMA-mapping subsystem Joerg Roedel
2015-06-01 10:10 ` [PATCH 0/6] Exynos SYSMMU (IOMMU) dts and arch updates Marek Szyprowski
2015-06-01 10:10   ` [PATCH 1/6] ARM: Exynos: pm_domains: register power domain driver from core_initcall Marek Szyprowski
2015-06-01 10:10   ` [PATCH 2/6] ARM: dts: exynos4: add sysmmu nodes Marek Szyprowski
2015-06-01 10:10   ` [PATCH 3/6] ARM: dts: exynos3250: " Marek Szyprowski
2015-06-01 10:10   ` [PATCH 4/6] ARM: dts: exynos4415: " Marek Szyprowski
2015-06-01 10:10   ` [PATCH 5/6] ARM: dts: exynos5250: " Marek Szyprowski
2015-06-01 10:10   ` [PATCH 6/6] ARM: dts: exynos5420: " Marek Szyprowski
2015-06-01 19:12     ` Exynos 5410 support (was [PATCH 6/6] ARM: dts: exynos5420: add sysmmu nodes) Ben Gamari
2015-06-01 23:51       ` Krzysztof Kozłowski
2015-06-02  8:13         ` Ben Gamari
2015-06-02  8:26           ` Krzysztof Kozłowski
2015-06-04 19:28       ` Ben Gamari
2015-06-01 11:34   ` [PATCH 0/6] Exynos SYSMMU (IOMMU) dts and arch updates Krzysztof Kozlowski
2015-06-03 23:11     ` Kukjin Kim
2015-06-04  3:51       ` Krzysztof Kozlowski
2015-06-04  6:10         ` Krzysztof Kozlowski

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