Loading drivers/gpu/drm/msm/sde/sde_encoder.c +9 −0 Original line number Diff line number Diff line Loading @@ -1586,6 +1586,15 @@ static void _sde_encoder_virt_enable_helper(struct drm_encoder *drm_enc) sde_enc->cur_master->hw_mdptop, sde_kms->catalog); if (sde_enc->num_phys_encs > ARRAY_SIZE(te_cfg.ppnumber) || sde_enc->num_phys_encs > ARRAY_SIZE(sde_enc->hw_pp)) { SDE_ERROR("invalid num phys enc %d/%d/%d\n", sde_enc->num_phys_encs, (int) ARRAY_SIZE(te_cfg.ppnumber), (int) ARRAY_SIZE(sde_enc->hw_pp)); return; } if (hw_mdptop->ops.setup_vsync_sel) { for (i = 0; i < sde_enc->num_phys_encs; i++) te_cfg.ppnumber[i] = sde_enc->hw_pp[i]->idx; Loading drivers/gpu/drm/msm/sde/sde_hw_top.c +1 −1 Original line number Diff line number Diff line Loading @@ -212,7 +212,7 @@ static void sde_hw_setup_vsync_sel(struct sde_hw_mdp *mdp, int i = 0; u32 pp_offset[] = {0xC, 0x8, 0x4, 0x13}; if (!mdp) if (!mdp || !cfg || (cfg->pp_count > ARRAY_SIZE(cfg->ppnumber))) return; reg = SDE_REG_READ(c, MDP_VSYNC_SEL); Loading Loading
drivers/gpu/drm/msm/sde/sde_encoder.c +9 −0 Original line number Diff line number Diff line Loading @@ -1586,6 +1586,15 @@ static void _sde_encoder_virt_enable_helper(struct drm_encoder *drm_enc) sde_enc->cur_master->hw_mdptop, sde_kms->catalog); if (sde_enc->num_phys_encs > ARRAY_SIZE(te_cfg.ppnumber) || sde_enc->num_phys_encs > ARRAY_SIZE(sde_enc->hw_pp)) { SDE_ERROR("invalid num phys enc %d/%d/%d\n", sde_enc->num_phys_encs, (int) ARRAY_SIZE(te_cfg.ppnumber), (int) ARRAY_SIZE(sde_enc->hw_pp)); return; } if (hw_mdptop->ops.setup_vsync_sel) { for (i = 0; i < sde_enc->num_phys_encs; i++) te_cfg.ppnumber[i] = sde_enc->hw_pp[i]->idx; Loading
drivers/gpu/drm/msm/sde/sde_hw_top.c +1 −1 Original line number Diff line number Diff line Loading @@ -212,7 +212,7 @@ static void sde_hw_setup_vsync_sel(struct sde_hw_mdp *mdp, int i = 0; u32 pp_offset[] = {0xC, 0x8, 0x4, 0x13}; if (!mdp) if (!mdp || !cfg || (cfg->pp_count > ARRAY_SIZE(cfg->ppnumber))) return; reg = SDE_REG_READ(c, MDP_VSYNC_SEL); Loading