From: Abhinav Kumar <quic_abhinavk@quicinc.com> To: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>, Rob Clark <robdclark@gmail.com>, Sean Paul <sean@poorly.run>, Marijn Suijten <marijn.suijten@somainline.org> Cc: Stephen Boyd <swboyd@chromium.org>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, Bjorn Andersson <andersson@kernel.org>, <linux-arm-msm@vger.kernel.org>, <dri-devel@lists.freedesktop.org>, <freedreno@lists.freedesktop.org> Subject: Re: [PATCH 2/2] drm/msm/dpu/catalog: define DSPP blocks found on sdm845 Date: Mon, 12 Jun 2023 12:35:50 -0700 [thread overview] Message-ID: <b2ab681d-5f22-2ea2-a8af-7e06839967a1@quicinc.com> (raw) In-Reply-To: <20230612182534.3345805-2-dmitry.baryshkov@linaro.org> On 6/12/2023 11:25 AM, Dmitry Baryshkov wrote: > Add definitions of DSPP blocks present on the sdm845 platform. This > should enable color-management on sdm845-bassed devices. > > Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> > --- > .../msm/disp/dpu1/catalog/dpu_4_0_sdm845.h | 21 +++++++++++++++---- > 1 file changed, 17 insertions(+), 4 deletions(-) > This change itself is fine, hence Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com> one note below for a future cleanup: > diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h > index 36ea1af10894..b6098141bb9b 100644 > --- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h > +++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h > @@ -96,19 +96,30 @@ static const struct dpu_sspp_cfg sdm845_sspp[] = { > > static const struct dpu_lm_cfg sdm845_lm[] = { > LM_BLK("lm_0", LM_0, 0x44000, MIXER_SDM845_MASK, > - &sdm845_lm_sblk, PINGPONG_0, LM_1, 0), > + &sdm845_lm_sblk, PINGPONG_0, LM_1, DSPP_0), > LM_BLK("lm_1", LM_1, 0x45000, MIXER_SDM845_MASK, > - &sdm845_lm_sblk, PINGPONG_1, LM_0, 0), > + &sdm845_lm_sblk, PINGPONG_1, LM_0, DSPP_1), > LM_BLK("lm_2", LM_2, 0x46000, MIXER_SDM845_MASK, > - &sdm845_lm_sblk, PINGPONG_2, LM_5, 0), > + &sdm845_lm_sblk, PINGPONG_2, LM_5, DSPP_2), > LM_BLK("lm_3", LM_3, 0x0, MIXER_SDM845_MASK, > - &sdm845_lm_sblk, PINGPONG_NONE, 0, 0), > + &sdm845_lm_sblk, PINGPONG_NONE, 0, DSPP_3), > LM_BLK("lm_4", LM_4, 0x0, MIXER_SDM845_MASK, > &sdm845_lm_sblk, PINGPONG_NONE, 0, 0), > LM_BLK("lm_5", LM_5, 0x49000, MIXER_SDM845_MASK, > &sdm845_lm_sblk, PINGPONG_3, LM_2, 0), > }; > > +static const struct dpu_dspp_cfg sdm845_dspp[] = { > + DSPP_BLK("dspp_0", DSPP_0, 0x54000, DSPP_SC7180_MASK, > + &sm8150_dspp_sblk), > + DSPP_BLK("dspp_1", DSPP_1, 0x56000, DSPP_SC7180_MASK, > + &sm8150_dspp_sblk), > + DSPP_BLK("dspp_2", DSPP_2, 0x58000, DSPP_SC7180_MASK, > + &sm8150_dspp_sblk), > + DSPP_BLK("dspp_3", DSPP_3, 0x5a000, DSPP_SC7180_MASK, > + &sm8150_dspp_sblk), > +}; > + I see the len of pcc blocks should be 0x88 not 0x90 as sm8150_dspp_sblk explains. Also, I need to do some digging on the PCC version here. Can you pls provide me the link to downstream source which mentions PCC version is 4.0 for sdm845? > static const struct dpu_pingpong_cfg sdm845_pp[] = { > PP_BLK("pingpong_0", PINGPONG_0, 0x70000, PINGPONG_SDM845_TE2_MASK, 0, sdm845_pp_sblk_te, > DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8), > @@ -193,6 +204,8 @@ const struct dpu_mdss_cfg dpu_sdm845_cfg = { > .sspp = sdm845_sspp, > .mixer_count = ARRAY_SIZE(sdm845_lm), > .mixer = sdm845_lm, > + .dspp_count = ARRAY_SIZE(sdm845_dspp), > + .dspp = sdm845_dspp, > .pingpong_count = ARRAY_SIZE(sdm845_pp), > .pingpong = sdm845_pp, > .dsc_count = ARRAY_SIZE(sdm845_dsc),
WARNING: multiple messages have this Message-ID (diff)
From: Abhinav Kumar <quic_abhinavk@quicinc.com> To: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>, Rob Clark <robdclark@gmail.com>, Sean Paul <sean@poorly.run>, Marijn Suijten <marijn.suijten@somainline.org> Cc: freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, Bjorn Andersson <andersson@kernel.org>, dri-devel@lists.freedesktop.org, Stephen Boyd <swboyd@chromium.org> Subject: Re: [PATCH 2/2] drm/msm/dpu/catalog: define DSPP blocks found on sdm845 Date: Mon, 12 Jun 2023 12:35:50 -0700 [thread overview] Message-ID: <b2ab681d-5f22-2ea2-a8af-7e06839967a1@quicinc.com> (raw) In-Reply-To: <20230612182534.3345805-2-dmitry.baryshkov@linaro.org> On 6/12/2023 11:25 AM, Dmitry Baryshkov wrote: > Add definitions of DSPP blocks present on the sdm845 platform. This > should enable color-management on sdm845-bassed devices. > > Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> > --- > .../msm/disp/dpu1/catalog/dpu_4_0_sdm845.h | 21 +++++++++++++++---- > 1 file changed, 17 insertions(+), 4 deletions(-) > This change itself is fine, hence Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com> one note below for a future cleanup: > diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h > index 36ea1af10894..b6098141bb9b 100644 > --- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h > +++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h > @@ -96,19 +96,30 @@ static const struct dpu_sspp_cfg sdm845_sspp[] = { > > static const struct dpu_lm_cfg sdm845_lm[] = { > LM_BLK("lm_0", LM_0, 0x44000, MIXER_SDM845_MASK, > - &sdm845_lm_sblk, PINGPONG_0, LM_1, 0), > + &sdm845_lm_sblk, PINGPONG_0, LM_1, DSPP_0), > LM_BLK("lm_1", LM_1, 0x45000, MIXER_SDM845_MASK, > - &sdm845_lm_sblk, PINGPONG_1, LM_0, 0), > + &sdm845_lm_sblk, PINGPONG_1, LM_0, DSPP_1), > LM_BLK("lm_2", LM_2, 0x46000, MIXER_SDM845_MASK, > - &sdm845_lm_sblk, PINGPONG_2, LM_5, 0), > + &sdm845_lm_sblk, PINGPONG_2, LM_5, DSPP_2), > LM_BLK("lm_3", LM_3, 0x0, MIXER_SDM845_MASK, > - &sdm845_lm_sblk, PINGPONG_NONE, 0, 0), > + &sdm845_lm_sblk, PINGPONG_NONE, 0, DSPP_3), > LM_BLK("lm_4", LM_4, 0x0, MIXER_SDM845_MASK, > &sdm845_lm_sblk, PINGPONG_NONE, 0, 0), > LM_BLK("lm_5", LM_5, 0x49000, MIXER_SDM845_MASK, > &sdm845_lm_sblk, PINGPONG_3, LM_2, 0), > }; > > +static const struct dpu_dspp_cfg sdm845_dspp[] = { > + DSPP_BLK("dspp_0", DSPP_0, 0x54000, DSPP_SC7180_MASK, > + &sm8150_dspp_sblk), > + DSPP_BLK("dspp_1", DSPP_1, 0x56000, DSPP_SC7180_MASK, > + &sm8150_dspp_sblk), > + DSPP_BLK("dspp_2", DSPP_2, 0x58000, DSPP_SC7180_MASK, > + &sm8150_dspp_sblk), > + DSPP_BLK("dspp_3", DSPP_3, 0x5a000, DSPP_SC7180_MASK, > + &sm8150_dspp_sblk), > +}; > + I see the len of pcc blocks should be 0x88 not 0x90 as sm8150_dspp_sblk explains. Also, I need to do some digging on the PCC version here. Can you pls provide me the link to downstream source which mentions PCC version is 4.0 for sdm845? > static const struct dpu_pingpong_cfg sdm845_pp[] = { > PP_BLK("pingpong_0", PINGPONG_0, 0x70000, PINGPONG_SDM845_TE2_MASK, 0, sdm845_pp_sblk_te, > DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8), > @@ -193,6 +204,8 @@ const struct dpu_mdss_cfg dpu_sdm845_cfg = { > .sspp = sdm845_sspp, > .mixer_count = ARRAY_SIZE(sdm845_lm), > .mixer = sdm845_lm, > + .dspp_count = ARRAY_SIZE(sdm845_dspp), > + .dspp = sdm845_dspp, > .pingpong_count = ARRAY_SIZE(sdm845_pp), > .pingpong = sdm845_pp, > .dsc_count = ARRAY_SIZE(sdm845_dsc),
next prev parent reply other threads:[~2023-06-12 19:36 UTC|newest] Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-06-12 18:25 [PATCH 1/2] drm/msm/dpu: do not enable color-management if DSPPs are not available Dmitry Baryshkov 2023-06-12 18:25 ` Dmitry Baryshkov 2023-06-12 18:25 ` [PATCH 2/2] drm/msm/dpu/catalog: define DSPP blocks found on sdm845 Dmitry Baryshkov 2023-06-12 18:25 ` Dmitry Baryshkov 2023-06-12 19:35 ` Abhinav Kumar [this message] 2023-06-12 19:35 ` Abhinav Kumar 2023-06-12 19:39 ` Dmitry Baryshkov 2023-06-12 19:39 ` Dmitry Baryshkov 2023-06-12 23:11 ` Marijn Suijten 2023-06-12 23:11 ` Marijn Suijten 2023-06-14 7:51 ` [Freedreno] " Sumit Semwal 2023-06-14 7:51 ` Sumit Semwal 2023-06-12 18:42 ` [PATCH 1/2] drm/msm/dpu: do not enable color-management if DSPPs are not available Abhinav Kumar 2023-06-12 18:42 ` Abhinav Kumar 2023-06-12 23:09 ` Marijn Suijten 2023-06-12 23:09 ` Marijn Suijten 2023-06-14 7:49 ` [Freedreno] " Sumit Semwal 2023-06-14 7:49 ` Sumit Semwal 2023-06-15 6:28 ` Yongqin Liu 2023-06-15 6:28 ` Yongqin Liu 2023-06-15 11:31 ` Dmitry Baryshkov 2023-06-15 11:31 ` Dmitry Baryshkov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=b2ab681d-5f22-2ea2-a8af-7e06839967a1@quicinc.com \ --to=quic_abhinavk@quicinc.com \ --cc=airlied@gmail.com \ --cc=andersson@kernel.org \ --cc=daniel@ffwll.ch \ --cc=dmitry.baryshkov@linaro.org \ --cc=dri-devel@lists.freedesktop.org \ --cc=freedreno@lists.freedesktop.org \ --cc=linux-arm-msm@vger.kernel.org \ --cc=marijn.suijten@somainline.org \ --cc=robdclark@gmail.com \ --cc=sean@poorly.run \ --cc=swboyd@chromium.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.