diff options
author | Huang Chaofan <chaofan.huang@nxp.com> | 2018-11-19 14:03:46 +0800 |
---|---|---|
committer | Bryan O'Donoghue <bryan.odonoghue@linaro.org> | 2019-05-01 17:43:23 +0100 |
commit | bd96a4f0dd50a85e51d275d17569a4d5472f0600 (patch) | |
tree | 7f18bcc58dbf5e623034c8b27d819465e09fe1fb /drivers/mxc/vpu-decoder-b0/vpu_rpc.c | |
parent | c9d6a4eb92573f61933883cf8d9f9838c6048be0 (diff) |
MLK-20400 VPU: Modified EOS filling size and add mb() for cmd and msg
update function
1. Modified EOS filling size
2. add mb() before function rpc_update_cmd_buffer_ptr and
rpc_update_msg_buffer_ptr
3. modify some log print function
Signed-off-by: Huang Chaofan <chaofan.huang@nxp.com>
(cherry picked from commit b58bbfe0e75568e7f3104589a06519d1eaddb01a)
Diffstat (limited to 'drivers/mxc/vpu-decoder-b0/vpu_rpc.c')
-rw-r--r-- | drivers/mxc/vpu-decoder-b0/vpu_rpc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mxc/vpu-decoder-b0/vpu_rpc.c b/drivers/mxc/vpu-decoder-b0/vpu_rpc.c index 38f7f2b1388e..d99ae71c14f7 100644 --- a/drivers/mxc/vpu-decoder-b0/vpu_rpc.c +++ b/drivers/mxc/vpu-decoder-b0/vpu_rpc.c @@ -52,6 +52,7 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include <linux/uaccess.h> #include "vpu_rpc.h" void rpc_init_shared_memory(struct shared_addr *This, @@ -257,6 +258,7 @@ static void rpc_update_cmd_buffer_ptr(MediaIPFW_Video_BufDesc *pCmdDesc) { u_int32 uWritePtr; + mb(); uWritePtr = pCmdDesc->uWrPtr + 4; if (uWritePtr >= pCmdDesc->uEnd) uWritePtr = pCmdDesc->uStart; @@ -328,6 +330,7 @@ static void rpc_update_msg_buffer_ptr(MediaIPFW_Video_BufDesc *pMsgDesc) { u_int32 uReadPtr; + mb(); uReadPtr = pMsgDesc->uRdPtr + 4; if (uReadPtr >= pMsgDesc->uEnd) uReadPtr = pMsgDesc->uStart; |