09 Jan, 2012

1 commit


06 Dec, 2011

1 commit


05 Dec, 2011

1 commit

  • Eliminate the public omap_find_iommu_device() method, and don't
    expect clients to provide the omap_iommu handle anymore.

    Instead, OMAP's iommu driver now utilizes dev_archdata's private iommu
    extension to be able to access the required iommu information.

    This way OMAP IOMMU users are now able to use the generic IOMMU API without
    having to call any omap-specific binding method.

    Update omap3isp appropriately.

    Signed-off-by: Ohad Ben-Cohen
    Acked-by: Laurent Pinchart
    Acked-by: Tony Lindgren
    Cc: Hiroshi Doyu

    Ohad Ben-Cohen
     

10 Nov, 2011

2 commits

  • Let the IOMMU core know we support 4KiB, 64KiB, 1MiB and 16MiB page sizes.

    This way the IOMMU core can split any arbitrary-sized physically
    contiguous regions (that it needs to map) as needed.

    Signed-off-by: Ohad Ben-Cohen
    Cc: Hiroshi DOYU
    Signed-off-by: Joerg Roedel

    Ohad Ben-Cohen
     
  • Express sizes in bytes rather than in page order, to eliminate the
    size->order->size conversions we have whenever the IOMMU API is calling
    the low level drivers' map/unmap methods.

    Adopt all existing drivers.

    Signed-off-by: Ohad Ben-Cohen
    Cc: David Brown
    Cc: David Woodhouse
    Cc: Joerg Roedel
    Cc: Stepan Moskovchenko
    Cc: KyongHo Cho
    Cc: Hiroshi DOYU
    Cc: Laurent Pinchart
    Signed-off-by: Joerg Roedel

    Ohad Ben-Cohen
     

21 Oct, 2011

2 commits


10 Oct, 2011

1 commit

  • The iommu module on omap contains a few functions that are
    only used by the debug module. These are however only there
    when the debug code is built as a module. Since it is possible
    to build the debug code into the kernel, the functions should
    also be provided for the built-in case.

    Signed-off-by: Arnd Bergmann
    Signed-off-by: Ohad Ben-Cohen
    Signed-off-by: Joerg Roedel

    Arnd Bergmann
     

14 Sep, 2011

1 commit

  • Start using the generic fault report mechanism, as provided by
    the IOMMU core, and remove its now-redundant omap_iommu_set_isr API.

    Currently we're only interested in letting upper layers know about the
    fault, so in case the faulting device is a remote processor, they could
    restart it.

    Dynamic PTE/TLB loading is not supported.

    Signed-off-by: Ohad Ben-Cohen
    Signed-off-by: Joerg Roedel

    Ohad Ben-Cohen
     

05 Sep, 2011

2 commits


26 Aug, 2011

6 commits

  • The omap_iommu_set_isr() was still using the mutex functions
    but the iommu_lock was converted to a spin_lock. Fix that
    up.

    Signed-off-by: Joerg Roedel

    Joerg Roedel
     
  • Prepend 'omap_' to OMAP's 'struct iommu' and exposed API, to prevent
    namespace pollution and generally to improve readability of the code
    that still uses the driver directly.

    Update the users as needed as well.

    Signed-off-by: Ohad Ben-Cohen
    Acked-by: Laurent Pinchart
    Acked-by: Hiroshi DOYU
    Acked-by: Tony Lindgren
    Signed-off-by: Joerg Roedel

    Ohad Ben-Cohen
     
  • Remove unused public APIs from OMAP's iommu driver.

    IOMMU functionality should be exposed only via the generic IOMMU API;
    this way drivers stay generic, and different IOMMU drivers
    don't need to duplicate similar functionalities.

    The rest of the API still exposed by OMAP's iommu will be evaluated
    and eventually either added to the generic IOMMU API (if relevant),
    or completely removed.

    The intention is that OMAP's iommu driver will eventually not expose
    any public API.

    Signed-off-by: Ohad Ben-Cohen
    Acked-by: Hiroshi DOYU
    Acked-by: Tony Lindgren
    Signed-off-by: Joerg Roedel

    Ohad Ben-Cohen
     
  • Use PREFETCH_IOTLB to control the content of the called function,
    instead of inlining it in the code.

    This improves readability of the code, and also prevents an "unused
    function" warning to show up when PREFETCH_IOTLB isn't set.

    Signed-off-by: Ohad Ben-Cohen
    Acked-by: Hiroshi DOYU
    Acked-by: Tony Lindgren
    Signed-off-by: Joerg Roedel

    Ohad Ben-Cohen
     
  • Stop exporting functions that are used only within the iommu
    driver itself.

    Eventually OMAP's iommu driver should only expose API via the generic
    IOMMU framework.

    Signed-off-by: Ohad Ben-Cohen
    Acked-by: Hiroshi DOYU
    Acked-by: Tony Lindgren
    Signed-off-by: Joerg Roedel

    Ohad Ben-Cohen
     
  • Move OMAP's iommu drivers to the dedicated iommu drivers folder.

    While OMAP's iovmm (virtual memory manager) driver does not strictly
    belong to the iommu drivers folder, move it there as well, because
    it's by no means OMAP-specific (in concept. technically it is still
    coupled with OMAP's iommu).

    Eventually, iovmm will be completely replaced with the generic,
    iommu-based, dma-mapping API.

    Signed-off-by: Ohad Ben-Cohen
    Acked-by: Laurent Pinchart
    Acked-by: Hiroshi DOYU
    Acked-by: Tony Lindgren
    Signed-off-by: Joerg Roedel

    Ohad Ben-Cohen