linux/drivers/remoteproc
Suman Anna 315491e5d6 remoteproc: add IOMMU hardware capability flag
The remoteproc framework currently relies on iommu_present() on
the bus the device is on, to perform MMU management. However, this
logic doesn't scale for multi-arch, especially for processors that
do not have an IOMMU. Replace this logic instead by using a h/w
capability flag for the presence of IOMMU in the rproc structure.

This issue is seen on OMAP platforms when trying to add a remoteproc
driver for a small Cortex M3 called the WkupM3 used for suspend /
resume management on TI AM335/AM437x SoCs. This processor does not
have an MMU. Same is the case with another processor subsystem
PRU-ICSS on AM335/AM437x. All these are platform devices, and the
current iommu_present check will not scale for the same kernel image
to support OMAP4/OMAP5 and AM335/AM437x.

The existing platform implementation drivers - OMAP remoteproc, STE
Modem remoteproc and DA8xx remoteproc, are updated as well to properly
configure the newly added rproc field.

Cc: Robert Tivy <rtivy@ti.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Suman Anna <s-anna@ti.com>
[small change in the commit title and in a single comment]
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
2015-03-12 10:43:26 +02:00
..
da8xx_remoteproc.c remoteproc: add IOMMU hardware capability flag 2015-03-12 10:43:26 +02:00
Kconfig remoteproc: da8xx: don't select CMA on no-MMU 2014-06-17 17:09:36 +02:00
Makefile remoteproc/davinci: add a remoteproc driver for OMAP-L13x DSP 2013-04-15 09:23:40 +03:00
omap_remoteproc.c remoteproc: add IOMMU hardware capability flag 2015-03-12 10:43:26 +02:00
omap_remoteproc.h
remoteproc_core.c remoteproc: add IOMMU hardware capability flag 2015-03-12 10:43:26 +02:00
remoteproc_debugfs.c remoteproc: fix checkpatch errors in remoteproc code 2013-06-30 11:33:05 +03:00
remoteproc_elf_loader.c remoteproc: add find_loaded_rsc_table firmware ops 2013-04-05 08:49:52 +03:00
remoteproc_internal.h remoteproc: fix checkpatch errors in remoteproc code 2013-06-30 11:33:05 +03:00
remoteproc_virtio.c virtio: allow finalize_features to fail 2014-12-09 16:32:32 +02:00
ste_modem_rproc.c remoteproc: add IOMMU hardware capability flag 2015-03-12 10:43:26 +02:00