remoteproc: core: transform struct fw_rsc_vdev_vring reserved field in pa
authorLoic PALLARDY <loic.pallardy@st.com>
Tue, 6 Sep 2016 07:39:43 +0000 (09:39 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 6 Sep 2016 18:06:40 +0000 (11:06 -0700)
commit21b6657ef4458f90d64b696105e3898257dea221
tree011d5ed9cada8e7733eb73349f5aa53d872f2347
parentcd5830512044d301d397d1499738ee00a8836247
remoteproc: core: transform struct fw_rsc_vdev_vring reserved field in pa

In current implementation, struct fw_rsc_vdev_vring which describes
vring resource in firmware resource table owns only device address,
because it assumes that host is responsible of vring allocation and
only device address is needed by coprocessor.
But if vrings need to be fixed in system memory map for any reasons
(security, SoC charactieristics...), physical address is needed exatly
identified the memory chunck by host.

For that let's transform reserved field of struct fw_rsc_vdev_vring
to pa (physical address).

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