soc: mediatek: cmdq: add address shift in jump
Add address shift when compose jump instruction
to compatible with 35bit format.
Fixes: 0858fde496
("mailbox: cmdq: variablize address shift in platform")
Signed-off-by: Yongqiang Niu <yongqiang.niu@mediatek.com>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
This commit is contained in:
parent
84fd4201b7
commit
8b60ed2b16
@ -174,7 +174,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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user