[PATCH v7 11/20] soc: mediatek: mtk-cmdq: Add mminfra_offset adjustment for DRAM addresses
AngeloGioacchino Del Regno
angelogioacchino.delregno at collabora.com
Thu Oct 9 04:56:41 PDT 2025
Il 27/08/25 13:37, Jason-JH Lin ha scritto:
> Since GCE has been moved to MMINFRA in MT8196, all transactions from
> MMINFRA to DRAM will have their addresses adjusted by subtracting a
> mminfra_offset.
>
> Therefore, the CMDQ helper driver needs to get the mminfra_offset value
> of the SoC from cmdq_mbox_priv of cmdq_pkt and then add it to the DRAM
> address when generating instructions to ensure GCE accesses the correct
> DRAM address. CMDQ users can then call CMDQ helper APIs as usual.
>
> Signed-off-by: Jason-JH Lin <jason-jh.lin at mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com>
More information about the Linux-mediatek
mailing list