remoteproc: fix rproc_alloc_carveout() for rproc with iommu domain
authorLoic Pallardy <loic.pallardy@st.com>
Thu, 10 Jan 2019 13:49:09 +0000 (14:49 +0100)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 21 Feb 2019 05:34:18 +0000 (21:34 -0800)
commit60f849a5c1537d28dca28b68697dcc82f3fa44e1
tree35e625074f7855b30f7772a1ebca33db2020e8b8
parentb36de8cfd16ee288eb1fbe60a6e5025ae0a465d5
remoteproc: fix rproc_alloc_carveout() for rproc with iommu domain

Correct remoteproc core behavior when memory carveout device
address is fixed in resource table and rproc device doesn't have
associated IOMMU.
Current returned error is breaking legacy on TI platforms.
This patch restores previous behavior. It adds a warn message when
allocation doesn't fit carveout request, but doesn't stop rproc_start()
sequence anymore.

Fixes: 3bc8140b157c ("remoteproc: configure IOMMU only if device address requested")

Signed-off-by: Loic Pallardy <loic.pallardy@st.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/remoteproc_core.c