Re: [PATCH 1/2] mailbox: mtk-cmdq: Add mminfra_offset to the error resume address

From: Fei Shao

Date: Tue Dec 01 2026 - 23:21:22 EST


On Tue, Dec 1, 2026 at 7:27 PM Jason-JH Lin <jason-jh.lin@xxxxxxxxxxxx> wrote:
>
> From: Jason-jh Lin <jason-jh.lin@xxxxxxxxxxxx>
>
> After an error, cmdq_task_handle_error() moves the thread PC to the
> next task with next_task->pa_base >> shift. All other writes of a task
> address to CMDQ_THR_CURR_ADDR go through cmdq_convert_gce_addr(), which
> also adds mminfra_offset. On SoCs with a non-zero mminfra_offset (e.g.
> MT8196, SZ_2G), the thread resumes from the wrong PC after an error.
>
> Use cmdq_convert_gce_addr() here as well.
>
> Fixes: ddb5d0c941c6 ("mailbox: mtk-cmdq: Add mminfra_offset configuration for DRAM transaction")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Jason-jh Lin <jason-jh.lin@xxxxxxxxxxxx>
> ---
> drivers/mailbox/mtk-cmdq-mailbox.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Fei Shao <fshao@xxxxxxxxxxxx>