[PATCH v4 18/19] drm/mediatek: Add support for multiple mmsys in the one mediatek-drm driver

CK Hu (胡俊光) ck.hu at mediatek.com
Mon Sep 15 20:11:13 PDT 2025


On Thu, 2025-08-28 at 16:07 +0800, Paul Chen wrote:
> From: Nancy Lin <nancy.lin at mediatek.com>
> 
> To support multiple mmsys instances in the one mediatek-drm instance,
> providing improved flexibility and scalability by the following changes:
> 
> 1. Add DDP_COMPONENT_DRM_OVLSYS_ADAPTOR* to probe the
>   ovlsys_adaptor drivers and support different mmsys composition.
> 2. Added new component types MTK_DISP_VIRTUAL to support the
>   routing to virtual display components.
> 3. Added and adjusted the existed structure or interface to extend
>   the support of multiple mmsys instances.
> 4. Modified the component matching and binding logic to support
>   multiple mmsys instances.
> 
> Signed-off-by: Nancy Lin <nancy.lin at mediatek.com>
> Signed-off-by: Paul-pl Chen <paul-pl.chen at mediatek.com>
> ---

[snip]

>  	ret = mtk_ddp_comp_find_in_route(dev,
> diff --git a/drivers/gpu/drm/mediatek/mtk_ddp_comp.h b/drivers/gpu/drm/mediatek/mtk_ddp_comp.h
> index cba996f99dd7..37e3f4e7b28c 100644
> --- a/drivers/gpu/drm/mediatek/mtk_ddp_comp.h
> +++ b/drivers/gpu/drm/mediatek/mtk_ddp_comp.h
> @@ -40,6 +40,7 @@ enum mtk_ddp_comp_type {
>  	MTK_DISP_PWM,
>  	MTK_DISP_RDMA,
>  	MTK_DISP_UFOE,
> +	MTK_DISP_VIRTUAL,
>  	MTK_DISP_WDMA,
>  	MTK_DPI,
>  	MTK_DP_INTF,
> @@ -47,6 +48,7 @@ enum mtk_ddp_comp_type {
>  	MTK_OVL_BLENDER,
>  	MTK_OVL_EXDMA,
>  	MTK_OVL_OUTPROC,
> +	MTK_VDISP_AO,

No component type is MTK_VDISP_AO, so drop this.

Regards,
CK

>  	MTK_DDP_COMP_TYPE_MAX,
>  };
>  



More information about the linux-arm-kernel mailing list