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

Fei Shao fshao at chromium.org
Tue Dec 1 20:20:38 PST 2026


On Tue, Dec 1, 2026 at 7:27 PM Jason-JH Lin <jason-jh.lin at mediatek.com> wrote:
>
> From: Jason-jh Lin <jason-jh.lin at mediatek.com>
>
> 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 at vger.kernel.org
> Signed-off-by: Jason-jh Lin <jason-jh.lin at mediatek.com>
> ---
>  drivers/mailbox/mtk-cmdq-mailbox.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Fei Shao <fshao at chromium.org>



More information about the linux-arm-kernel mailing list