提交 9fe4b8f9 编写于 作者: Y Yongqiang Niu 提交者: Zheng Zengkai

soc: mediatek: cmdq: add address shift in jump

stable inclusion
from stable-5.10.67
commit fd69f613af534eebd6fd79eb27b5b0a0d6b94686
bugzilla: 182619 https://gitee.com/openeuler/kernel/issues/I4EWO7

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=fd69f613af534eebd6fd79eb27b5b0a0d6b94686

--------------------------------

[ Upstream commit 8b60ed2b ]

Add address shift when compose jump instruction
to compatible with 35bit format.

Fixes: 0858fde4 ("mailbox: cmdq: variablize address shift in platform")
Signed-off-by: NYongqiang Niu <yongqiang.niu@mediatek.com>
Reviewed-by: NNicolas Boichat <drinkcat@chromium.org>
Signed-off-by: NJassi Brar <jaswinder.singh@linaro.org>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Acked-by: NWeilong Chen <chenweilong@huawei.com>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 fb48f2f0
......@@ -168,7 +168,8 @@ static void cmdq_task_insert_into_thread(struct cmdq_task *task)
dma_sync_single_for_cpu(dev, prev_task->pa_base,
prev_task->pkt->cmd_buf_size, DMA_TO_DEVICE);
prev_task_base[CMDQ_NUM_CMD(prev_task->pkt) - 1] =
(u64)CMDQ_JUMP_BY_PA << 32 | task->pa_base;
(u64)CMDQ_JUMP_BY_PA << 32 |
(task->pa_base >> task->cmdq->shift_pa);
dma_sync_single_for_device(dev, prev_task->pa_base,
prev_task->pkt->cmd_buf_size, DMA_TO_DEVICE);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册