remoteproc: fix trace buffer va initialization
authorLoic Pallardy <loic.pallardy@st.com>
Thu, 10 Jan 2019 13:49:10 +0000 (14:49 +0100)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 21 Feb 2019 05:34:18 +0000 (21:34 -0800)
commita987e6b91a5ac0e08782506b1f879e37dab3b605
treed52a79f360cc9e6beab7ff0d05857fa79857cc80
parent60f849a5c1537d28dca28b68697dcc82f3fa44e1
remoteproc: fix trace buffer va initialization

With rproc_alloc_registered_carveouts() introduction, carveouts are
allocated after resource table parsing.
rproc_da_to_va() may return NULL at trace resource registering.
This patch modifies trace debufs registering to provide device address
(da) instead of va.
da to va translation is done at each trace buffer access
through debugfs interface.

Fixes: d7c51706d095 ("remoteproc: add alloc ops in rproc_mem_entry struct")

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