From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
To: Bjorn Andersson <andersson@kernel.org>
Cc: Bjorn Andersson <quic_bjorande@quicinc.com>,
Rob Clark <robdclark@gmail.com>,
Abhinav Kumar <quic_abhinavk@quicinc.com>,
Sean Paul <sean@poorly.run>, David Airlie <airlied@gmail.com>,
Daniel Vetter <daniel@ffwll.ch>, Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Konrad Dybcio <konrad.dybcio@linaro.org>,
Kalyan Thota <quic_kalyant@quicinc.com>,
Jessica Zhang <quic_jesszhan@quicinc.com>,
Kuogee Hsieh <quic_khsieh@quicinc.com>,
Johan Hovold <johan+linaro@kernel.org>,
Sankeerth Billakanti <quic_sbillaka@quicinc.com>,
linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org,
freedreno@lists.freedesktop.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4 02/13] drm/msm/dpu: Introduce SC8280XP
Date: Wed, 7 Dec 2022 22:04:16 +0200 [thread overview]
Message-ID: <de67c95a-d003-c4ef-64a4-c3565ce02b7a@linaro.org> (raw)
In-Reply-To: <20221207162824.kyxecdz43v5ojatx@builder.lan>
On 07/12/2022 18:28, Bjorn Andersson wrote:
> On Wed, Dec 07, 2022 at 04:49:07PM +0200, Dmitry Baryshkov wrote:
>> On 05/12/2022 19:44, Bjorn Andersson wrote:
>>> diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c
> [..]
>>> +static const struct dpu_mdp_cfg sc8280xp_mdp[] = {
>>> + {
>>> + .name = "top_0", .id = MDP_TOP,
>>> + .base = 0x0, .len = 0x494,
>>> + .features = 0,
>>> + .highest_bank_bit = 0x3, /* TODO: 2 for LP_DDR4 */
>>
>> ubwc_swizzle ? I'd suppose it's 6, but I'd bet on it.
>>
>
> I don't see ubwc_swizzle defined for any other platform, and it seems to
> be unused for DPU_HW_UBWC_VER_40. Am I perhaps missing something?
Yes, it doesn't seem to be used for VER_40, just wanted to have it for
the sake of completeness. See
https://lore.kernel.org/linux-arm-msm/20221207142833.204193-4-dmitry.baryshkov@linaro.org/T/#u
>
>>> + .clk_ctrls[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0},
>>> + .clk_ctrls[DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0},
>>> + .clk_ctrls[DPU_CLK_CTRL_VIG2] = { .reg_off = 0x2bc, .bit_off = 0},
>>> + .clk_ctrls[DPU_CLK_CTRL_VIG3] = { .reg_off = 0x2c4, .bit_off = 0},
>>> + .clk_ctrls[DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8},
>>> + .clk_ctrls[DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8},
>>> + .clk_ctrls[DPU_CLK_CTRL_CURSOR0] = { .reg_off = 0x2bc, .bit_off = 8},
>>> + .clk_ctrls[DPU_CLK_CTRL_CURSOR1] = { .reg_off = 0x2c4, .bit_off = 8},
>>> + .clk_ctrls[DPU_CLK_CTRL_REG_DMA] = { .reg_off = 0x2bc, .bit_off = 20},
>>> + },
>>> +};
>>> +
>>> static const struct dpu_mdp_cfg qcm2290_mdp[] = {
>>> {
>>> .name = "top_0", .id = MDP_TOP,
>>> @@ -648,6 +693,45 @@ static const struct dpu_ctl_cfg sc7180_ctl[] = {
>>> },
>>> };
>>> +static const struct dpu_ctl_cfg sc8280xp_ctl[] = {
>>> + {
>>> + .name = "ctl_0", .id = CTL_0,
>>> + .base = 0x15000, .len = 0x204,
>>> + .features = BIT(DPU_CTL_ACTIVE_CFG) | BIT(DPU_CTL_FETCH_ACTIVE) | BIT(DPU_CTL_VM_CFG),
>>
>> Please use CTL_SC7270_MASK instead, unless you have a strong reasong not to
>> do it.
>>
>
> No strong reason, will update.
Thanks. The logic for me is to be able to update a single mask when new
features are added instead of going all over the code.
E.g. I think sc8280xp will benefit from hierarchical DSPP support, will
it not?
>
> Thanks,
> Bjorn
--
With best wishes
Dmitry
next prev parent reply other threads:[~2022-12-07 20:04 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-05 17:44 [PATCH v4 00/13] drm/msm: Add SC8280XP support Bjorn Andersson
2022-12-05 17:44 ` [PATCH v4 01/13] dt-bindings: display/msm: Add binding for SC8280XP MDSS Bjorn Andersson
2022-12-05 21:08 ` Rob Herring
2022-12-05 17:44 ` [PATCH v4 02/13] drm/msm/dpu: Introduce SC8280XP Bjorn Andersson
2022-12-07 14:49 ` Dmitry Baryshkov
2022-12-07 16:28 ` Bjorn Andersson
2022-12-07 20:04 ` Dmitry Baryshkov [this message]
2022-12-05 17:44 ` [PATCH v4 03/13] drm/msm: Introduce SC8280XP MDSS Bjorn Andersson
2022-12-05 20:59 ` Dmitry Baryshkov
2022-12-05 17:44 ` [PATCH v4 04/13] dt-bindings: msm/dp: Add SDM845 and SC8280XP compatibles Bjorn Andersson
2022-12-05 17:44 ` [PATCH v4 05/13] drm/msm/dp: Stop using DP id as index in desc Bjorn Andersson
2022-12-05 17:44 ` [PATCH v4 06/13] drm/msm/dp: Add DP and EDP compatibles for SC8280XP Bjorn Andersson
2022-12-05 17:44 ` [PATCH v4 07/13] drm/msm/dp: Add SDM845 DisplayPort instance Bjorn Andersson
2022-12-05 17:44 ` [PATCH v4 08/13] drm/msm/dp: Implement hpd_notify() Bjorn Andersson
2022-12-05 21:02 ` Dmitry Baryshkov
2022-12-05 21:29 ` Dmitry Baryshkov
2022-12-05 22:23 ` Bjorn Andersson
2022-12-05 17:44 ` [PATCH v4 09/13] drm/msm/dp: Don't enable HPD interrupts for edp Bjorn Andersson
2022-12-05 21:07 ` Dmitry Baryshkov
2022-12-05 21:11 ` Dmitry Baryshkov
2022-12-05 17:44 ` [PATCH v4 10/13] drm/msm/dp: Rely on hpd_enable/disable callbacks Bjorn Andersson
2022-12-05 21:11 ` Dmitry Baryshkov
2022-12-05 17:44 ` [PATCH v4 11/13] arm64: dts: qcom: sc8280xp: Define some of the display blocks Bjorn Andersson
2022-12-05 17:44 ` [PATCH v4 12/13] arm64: dts: qcom: sc8280xp-crd: Enable EDP Bjorn Andersson
2022-12-05 21:23 ` Dmitry Baryshkov
2022-12-05 17:44 ` [PATCH v4 13/13] arm64: dts: qcom: sa8295-adp: Enable DP instances Bjorn Andersson
2022-12-05 18:09 ` Konrad Dybcio
2022-12-05 20:02 ` Bjorn Andersson
2022-12-05 20:09 ` Konrad Dybcio
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=de67c95a-d003-c4ef-64a4-c3565ce02b7a@linaro.org \
--to=dmitry.baryshkov@linaro.org \
--cc=airlied@gmail.com \
--cc=andersson@kernel.org \
--cc=daniel@ffwll.ch \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=freedreno@lists.freedesktop.org \
--cc=johan+linaro@kernel.org \
--cc=konrad.dybcio@linaro.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=quic_abhinavk@quicinc.com \
--cc=quic_bjorande@quicinc.com \
--cc=quic_jesszhan@quicinc.com \
--cc=quic_kalyant@quicinc.com \
--cc=quic_khsieh@quicinc.com \
--cc=quic_sbillaka@quicinc.com \
--cc=robdclark@gmail.com \
--cc=robh+dt@kernel.org \
--cc=sean@poorly.run \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).