linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] arm:dma-mapping Refactoring iommu dma-mapping code
@ 2014-06-02 10:19 ritesh.harjani at gmail.com
  2014-06-02 10:19 ` [PATCH 1/4] arm: dma-iommu: Move out dma_iommu_mapping struct ritesh.harjani at gmail.com
  2014-06-03 13:01 ` [PATCH 0/4] arm:dma-mapping Refactoring iommu dma-mapping code Will Deacon
  0 siblings, 2 replies; 6+ messages in thread
From: ritesh.harjani at gmail.com @ 2014-06-02 10:19 UTC (permalink / raw)
  To: linux-arm-kernel

From: Ritesh Harjani <ritesh.harjani@gmail.com>

Hi All, 

This patch series is to refractor iommu related common code from
arch/arm/dma-mapping.c to lib/iommu-helper.c based on the various
discussions with the maintainers/experts [1].

Currently the only user of the common lib/iommu-helper code will
be ARM & ARM64 but later various architecture might try to use this
iommu lib helper functions.

Major change of this refactoring starts with bringing out struct dma_iommu_mapping 
*mapping variable from arch/arm/include/asm/device.h to include/linux/device.h
and by moving out complete structure defination of dma_iommu_mapping to
inclue/linux/iommu-helper.h. Link [2] give more details on why this was done,
also this change got approval from Will Daecon [2].

There are 1/2 more function definitions which I can think of moving out, but
those can be done once this patch series is approved as those are not very
big changes.

[1]: https://www.mail-archive.com/iommu at lists.linux-foundation.org/msg03458.html 
[2]: https://www.mail-archive.com/iommu at lists.linux-foundation.org/msg04272.html

Ritesh Harjani (4):
  arm: dma-iommu: Move out dma_iommu_mapping struct
  arm: dma-mapping: Refractor attach/detach dev function calls
  arm: dma-mapping: Refractor iommu_alloc/free funcs
  arm:dma-iommu: Move out complete func defs

 arch/arm/Kconfig                          |  46 +--
 arch/arm/include/asm/device.h             |   9 -
 arch/arm/include/asm/dma-iommu.h          |  16 +-
 arch/arm/mm/dma-mapping.c                 | 566 +++---------------------------
 drivers/gpu/drm/exynos/exynos_drm_iommu.c |  10 +-
 include/linux/device.h                    |   4 +
 include/linux/iommu-helper.h              |  64 ++++
 lib/iommu-helper.c                        | 561 +++++++++++++++++++++++++++++
 8 files changed, 705 insertions(+), 571 deletions(-)

-- 
1.8.1.3

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

end of thread, other threads:[~2014-06-03 13:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-02 10:19 [PATCH 0/4] arm:dma-mapping Refactoring iommu dma-mapping code ritesh.harjani at gmail.com
2014-06-02 10:19 ` [PATCH 1/4] arm: dma-iommu: Move out dma_iommu_mapping struct ritesh.harjani at gmail.com
2014-06-02 10:19   ` [PATCH 2/4] arm: dma-mapping: Refractor attach/detach dev function calls ritesh.harjani at gmail.com
2014-06-02 10:19     ` [PATCH 3/4] arm: dma-mapping: Refractor iommu_alloc/free funcs ritesh.harjani at gmail.com
2014-06-02 10:19       ` [PATCH 4/4] arm:dma-iommu: Move out complete func defs ritesh.harjani at gmail.com
2014-06-03 13:01 ` [PATCH 0/4] arm:dma-mapping Refactoring iommu dma-mapping code Will Deacon

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