09 Jan, 2012
1 commit
-
Conflicts:
drivers/pci/hotplug/acpiphp_glue.c
06 Dec, 2011
1 commit
-
An omap_iommu_iova_to_phys failure usually means that iova wasn't mapped.
When that happens, it's helpful to know the value of iova, so add it
to the error message.Signed-off-by: Ohad Ben-Cohen
Signed-off-by: Joerg Roedel
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
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 -
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
21 Oct, 2011
2 commits
-
…mu/fault-reporting' and 'api/iommu-ops-per-bus' into next
Conflicts:
drivers/iommu/amd_iommu.c
drivers/iommu/iommu.c -
Convert the OMAP IOMMU driver on ARM to use the new
interface for publishing the iommu_ops.Cc: Ohad Ben-Cohen
Signed-off-by: Joerg Roedel
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
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
05 Sep, 2011
2 commits
-
Users of the IOMMU API (kvm specifically) assume that iommu_unmap()
returns the order of the unmapped page.Fix omap_iommu_unmap() to do so and adopt omap-iovmm accordingly.
Signed-off-by: Ohad Ben-Cohen
Signed-off-by: Joerg Roedel -
Tiny cleanup that removes a redundant 'return' statement.
Signed-off-by: Ohad Ben-Cohen
Signed-off-by: Joerg Roedel
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
-
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 -
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 -
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 -
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 -
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