lkml.org 
[lkml]   [2021]   [Sep]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.13 167/300] drm/msm/dpu: make dpu_hw_ctl_clear_all_blendstages clear necessary LMs
    Date
    From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>

    [ Upstream commit a41cdb693595ae1904dd793fc15d6954f4295e27 ]

    dpu_hw_ctl_clear_all_blendstages() clears settings for the few first LMs
    instead of mixers actually used for the CTL. Change it to clear
    necessary data, using provided mixer ids.

    Fixes: 25fdd5933e4c ("drm/msm: Add SDM845 DPU support")
    Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
    Link: https://lore.kernel.org/r/20210704230519.4081467-1-dmitry.baryshkov@linaro.org
    Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
    Signed-off-by: Rob Clark <robdclark@chromium.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c | 10 ++++++----
    1 file changed, 6 insertions(+), 4 deletions(-)

    diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c
    index 2d4645e01ebf..e01135b7a404 100644
    --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c
    +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c
    @@ -345,10 +345,12 @@ static void dpu_hw_ctl_clear_all_blendstages(struct dpu_hw_ctl *ctx)
    int i;

    for (i = 0; i < ctx->mixer_count; i++) {
    - DPU_REG_WRITE(c, CTL_LAYER(LM_0 + i), 0);
    - DPU_REG_WRITE(c, CTL_LAYER_EXT(LM_0 + i), 0);
    - DPU_REG_WRITE(c, CTL_LAYER_EXT2(LM_0 + i), 0);
    - DPU_REG_WRITE(c, CTL_LAYER_EXT3(LM_0 + i), 0);
    + enum dpu_lm mixer_id = ctx->mixer_hw_caps[i].id;
    +
    + DPU_REG_WRITE(c, CTL_LAYER(mixer_id), 0);
    + DPU_REG_WRITE(c, CTL_LAYER_EXT(mixer_id), 0);
    + DPU_REG_WRITE(c, CTL_LAYER_EXT2(mixer_id), 0);
    + DPU_REG_WRITE(c, CTL_LAYER_EXT3(mixer_id), 0);
    }

    DPU_REG_WRITE(c, CTL_FETCH_PIPE_ACTIVE, 0);
    --
    2.30.2


    \
     
     \ /
      Last update: 2021-09-13 16:11    [W:4.880 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site