lkml.org 
[lkml]   [2021]   [Jan]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v2] soc: mediatek: cmdq: add address shift in jump
From
Date


On 08/01/2021 02:48, Yongqiang Niu wrote:
> On Wed, 2020-12-23 at 16:34 +0800, Yongqiang Niu wrote:
>> Add address shift when compose jump instruction
>> to compatible with 35bit format.
>>
>> Fixes: 0858fde496f8 ("mailbox: cmdq: variablize address shift in platform")
>>
>> Signed-off-by: Yongqiang Niu <yongqiang.niu@mediatek.com>
>> Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
>> ---
>> drivers/mailbox/mtk-cmdq-mailbox.c | 3 ++-
>> 1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/mailbox/mtk-cmdq-mailbox.c b/drivers/mailbox/mtk-cmdq-mailbox.c
>> index 5665b6e..75378e3 100644
>> --- a/drivers/mailbox/mtk-cmdq-mailbox.c
>> +++ b/drivers/mailbox/mtk-cmdq-mailbox.c
>> @@ -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);
>>
>
> hi jassi
>
> please confirm is there any question about this patch.
> if not, please apply this into next version, tks
>

Please fix the subject line of your patch. It does not apply to
drivers/soc/mediatek and should be something like
mailbox: mediatek: cmdq: add address shift in jump

Thanks,
Matthias

\
 
 \ /
  Last update: 2021-01-31 15:52    [W:0.060 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site