]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitae61f578d58e92f3cbf7f8e4f2b3fa95be983a3d
treed52a79f360cc9e6beab7ff0d05857fa79857cc80
parent160bced5dc5461a8fe72bc4780c7ee4be9fa0db4
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: 9062d440c617 ("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