• Moudy Ho's avatar
    media: platform: mtk-mdp3: reconfigure shared memory · b4e52199
    Moudy Ho authored
    For performance and multi-chip support, use dynamic layout instead of
    statically configured pools.
    Divide the shared memory into the 3 64-bit aligned layouts listed below:
    
        vpu->param_addr  -> +-----------------------------------------+
                            |                                         |
                            | To SCP : Input frame parameters         |
                            |          (struct img_ipi_frameparam)    |
                            |                                         |
                            +-----------------------------------------+
    
        vpu->work_addr   -> +-----------------------------------------+
                            |                                         |
                            | In SCP : Reserve for SCP calculation    |
                            |                                         |
                            +-----------------------------------------+
    
        vpu->config_addr -> +-----------------------------------------+
                            |                                         |
                            | From SCP : Output component config      |
                            |            (struct img_config)          |
                            |                                         |
                            +-----------------------------------------+
    Signed-off-by: default avatarMoudy Ho <moudy.ho@mediatek.com>
    Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
    b4e52199
mdp_sm_mt8183.h 2.93 KB