All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC 0/5] OMAP groundwork for IOMMU-based DMA API
@ 2011-09-25 10:58 ` Ohad Ben-Cohen
  0 siblings, 0 replies; 78+ messages in thread
From: Ohad Ben-Cohen @ 2011-09-25 10:58 UTC (permalink / raw)
  To: linux-omap, linux-arm-kernel
  Cc: Hiroshi DOYU, Laurent Pinchart, Joerg Roedel, iommu,
	Arnd Bergmann, linux-kernel, Cousson Benoit, Kevin Hilman,
	Tony Lindgren, Grant Likely, Ohad Ben-Cohen

Another step towards generic IOMMU support on OMAP: eliminating
the public omap-specific find_iommu_device API.

Instead, we now bind iommu clients with their respective iommu device
using a private iommu member which is added to ARM's dev_archdata.

With this in hand, generic IOMMU API users will now work on OMAP without
utilizing any omap-specific API.

The changes are tested on OMAP3 (with omap3isp) and OMAP4 (with
remoteproc/rpmsg).

This is still RFC (2nd patch is probably the least elegant).

Ohad Ben-Cohen (5):
  ARM: dev_archdata: add private iommu extension
  ARM: OMAP: omap_device: add a method to set iommu private archdata
  ARM: OMAP: iommu: declare a private iommu binding struct
  ARM: OMAP3: bind omap3isp_device to its iommu device
  iommu/omap: eliminate the public omap_find_iommu_device() method

 arch/arm/include/asm/device.h                 |    3 +
 arch/arm/mach-omap2/devices.c                 |    7 +++
 arch/arm/plat-omap/include/plat/iommu.h       |   31 ++++++++++++-
 arch/arm/plat-omap/include/plat/iovmm.h       |   12 +++---
 arch/arm/plat-omap/include/plat/omap_device.h |    6 +++
 arch/arm/plat-omap/omap_device.c              |   39 +++++++++++++++-
 drivers/iommu/omap-iommu.c                    |   58 +++++++++++--------------
 drivers/iommu/omap-iovmm.c                    |   31 +++++++++-----
 drivers/media/video/omap3isp/isp.c            |   30 ++-----------
 drivers/media/video/omap3isp/isp.h            |    2 -
 drivers/media/video/omap3isp/ispccdc.c        |   18 ++++----
 drivers/media/video/omap3isp/ispstat.c        |    8 ++--
 drivers/media/video/omap3isp/ispvideo.c       |    4 +-
 13 files changed, 152 insertions(+), 97 deletions(-)

-- 
1.7.4.1


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

end of thread, other threads:[~2011-12-05 15:18 UTC | newest]

Thread overview: 78+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-25 10:58 [RFC 0/5] OMAP groundwork for IOMMU-based DMA API Ohad Ben-Cohen
2011-09-25 10:58 ` Ohad Ben-Cohen
2011-09-25 10:58 ` Ohad Ben-Cohen
2011-09-25 10:58 ` [RFC 1/5] ARM: dev_archdata: add private iommu extension Ohad Ben-Cohen
2011-09-25 10:58   ` Ohad Ben-Cohen
2011-09-27  1:30   ` Grant Likely
2011-09-27  1:30     ` Grant Likely
2011-10-02 18:48     ` Ohad Ben-Cohen
2011-10-02 18:48       ` Ohad Ben-Cohen
2011-10-02 18:48       ` Ohad Ben-Cohen
2011-10-05  9:26   ` Ohad Ben-Cohen
2011-10-05  9:26     ` Ohad Ben-Cohen
2011-10-13  9:15     ` Ohad Ben-Cohen
2011-10-13  9:15       ` Ohad Ben-Cohen
2011-10-13 10:42       ` Russell King - ARM Linux
2011-10-13 10:42         ` Russell King - ARM Linux
2011-10-13 11:55         ` Ohad Ben-Cohen
2011-10-13 11:55           ` Ohad Ben-Cohen
2011-10-13 11:55           ` Ohad Ben-Cohen
2011-09-25 10:58 ` [RFC 2/5] ARM: OMAP: omap_device: add a method to set iommu private archdata Ohad Ben-Cohen
2011-09-25 10:58   ` Ohad Ben-Cohen
2011-09-26 22:53   ` Kevin Hilman
2011-09-26 22:53     ` Kevin Hilman
2011-09-26 22:53     ` Kevin Hilman
2011-09-27 18:09     ` Ohad Ben-Cohen
2011-09-27 18:09       ` Ohad Ben-Cohen
2011-09-27 18:09       ` Ohad Ben-Cohen
2011-10-04 18:15       ` Kevin Hilman
2011-10-04 18:15         ` Kevin Hilman
2011-10-04 19:54         ` Ohad Ben-Cohen
2011-10-04 19:54           ` Ohad Ben-Cohen
2011-10-04 20:29           ` Kevin Hilman
2011-10-04 20:29             ` Kevin Hilman
2011-10-05  7:01             ` Ohad Ben-Cohen
2011-10-05  7:01               ` Ohad Ben-Cohen
2011-10-04 21:40           ` Cousson, Benoit
2011-10-04 21:40             ` Cousson, Benoit
2011-10-04 21:40             ` Cousson, Benoit
2011-09-25 10:58 ` [RFC 3/5] ARM: OMAP: iommu: declare a private iommu binding struct Ohad Ben-Cohen
2011-09-25 10:58   ` Ohad Ben-Cohen
2011-11-14 21:01   ` Tony Lindgren
2011-11-14 21:01     ` Tony Lindgren
2011-09-25 10:58 ` [RFC 4/5] ARM: OMAP3: bind omap3isp_device to its iommu device Ohad Ben-Cohen
2011-09-25 10:58   ` Ohad Ben-Cohen
2011-11-09  9:17   ` Laurent Pinchart
2011-11-09  9:17     ` Laurent Pinchart
2011-11-09  9:29     ` Ohad Ben-Cohen
2011-11-09  9:29       ` Ohad Ben-Cohen
2011-11-14 21:01     ` Tony Lindgren
2011-11-14 21:01       ` Tony Lindgren
2011-09-25 10:58 ` [RFC 5/5] iommu/omap: eliminate the public omap_find_iommu_device() method Ohad Ben-Cohen
2011-09-25 10:58   ` Ohad Ben-Cohen
2011-09-27 11:46   ` Laurent Pinchart
2011-09-27 11:46     ` Laurent Pinchart
2011-11-09  8:50     ` Ohad Ben-Cohen
2011-11-09  8:50       ` Ohad Ben-Cohen
2011-11-09  9:17       ` Laurent Pinchart
2011-11-09  9:17         ` Laurent Pinchart
2011-11-14 21:02         ` Tony Lindgren
2011-11-14 21:02           ` Tony Lindgren
2011-11-15 10:39 ` [RFC 0/5] OMAP groundwork for IOMMU-based DMA API Roedel, Joerg
2011-11-15 10:39   ` Roedel, Joerg
2011-11-15 10:39   ` Roedel, Joerg
2011-11-15 10:45   ` Ohad Ben-Cohen
2011-11-15 10:45     ` Ohad Ben-Cohen
2011-11-15 10:45     ` Ohad Ben-Cohen
2011-11-15 11:10     ` Roedel, Joerg
2011-11-15 11:10       ` Roedel, Joerg
2011-11-15 11:10       ` Roedel, Joerg
2011-11-15 11:18       ` Ohad Ben-Cohen
2011-11-15 11:18         ` Ohad Ben-Cohen
2011-11-15 11:18         ` Ohad Ben-Cohen
2011-12-05 14:21   ` Ohad Ben-Cohen
2011-12-05 14:21     ` Ohad Ben-Cohen
2011-12-05 14:21     ` Ohad Ben-Cohen
2011-12-05 15:18     ` Roedel, Joerg
2011-12-05 15:18       ` Roedel, Joerg
2011-12-05 15:18       ` Roedel, Joerg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.