Re: [PATCH v2 0/5] Migrate soc, drm-mediatek, mdp3 to new CMDQ APIs (series 2/4)

From: Nicolas Dufresne

Date: Wed Apr 08 2026 - 16:23:00 EST


Hi,

Le mercredi 25 mars 2026 à 11:57 +0800, Jason-JH Lin a écrit :
> This series migrates the MediaTek SoC, DRM, and MDP3 drivers to the new
> CMDQ APIs introduced for MT8196.
>
> Series application order:
>   1. [Series V2 2/4] Migrate subsystems to new CMDQ APIs (this series)
>   2. [Series V2 3/4] Remove shift_pa from CMDQ jump functions
>   3. [Series V2 4/4] Remove deprecated CMDQ APIs
>
> Please apply this series after the MT8196 GCE support series,
> and before the following series.
>
> ---
>
> Change in v2:
> 1. Rebase on linux-next
> 2. Fix build error of -EINVAL in patch2.
>
> ---
>
> Jason-JH Lin (5):
>   soc: mediatek: Use pkt_write function pointer for subsys ID
>     compatibility
>   soc: mediatek: mtk-cmdq: Add cmdq_pkt_jump_rel_temp() for removing
>     shift_pa
>   drm/mediatek:Use reg_write function pointer for subsys ID
>     compatibility
>   media: platform: mtk-mdp3: Refactor CMDQ writes for CMDQ API change
>   media: platform: mtk-mdp3: Change cmdq_pkt_jump_rel() to
>     cmdq_pkt_jump_rel_temp()

Can the two last be applied to the media tree alone without breaking anything ?
Otherwise I will need to wait for the soc: patches to have landed.

Nicolas

>
>  drivers/gpu/drm/mediatek/mtk_ddp_comp.c       | 12 +++++-----
>  .../platform/mediatek/mdp3/mtk-mdp3-cmdq.c    |  6 ++---
>  .../platform/mediatek/mdp3/mtk-mdp3-comp.h    |  6 ++---
>  drivers/soc/mediatek/mtk-mmsys.c              |  8 ++++---
>  drivers/soc/mediatek/mtk-mutex.c              |  5 ++--
>  include/linux/soc/mediatek/mtk-cmdq.h         | 24 +++++++++++++++++++
>  6 files changed, 44 insertions(+), 17 deletions(-)

Attachment: signature.asc
Description: This is a digitally signed message part