]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "remoteproc: Merge table_ptr and cached_table pointers"
authorBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 30 Dec 2016 11:21:38 +0000 (03:21 -0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 30 Dec 2016 11:26:31 +0000 (03:26 -0800)
commit891a725f26155d51da2cb9db5fe4babbe4697217
treea5e95d4bc6a67db98db71b5e288f6adc2deacc8f
parentb063e68e5df06b04df53310308ab56ce9c62fcfa
Revert "remoteproc: Merge table_ptr and cached_table pointers"

Following any fw_rsc_vdev entries in the resource table are two variable
length arrays, the first one reference vring resources and the second
one is the virtio config space.  The virtio config space is used by
virtio to communicate status and configuration changes and must as such
be shared with the remote.

The reverted commit incorrectly made any changes to the virtio config
space only affect the local copy, in an attempt to allowing memory
protection of the shared resource table.

This reverts commit d19b35f80d1509c9940f49d06002ee05b6e4ad43.
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/remoteproc_core.c
include/linux/remoteproc.h