From: Abhinav Kumar <quic_abhinavk@quicinc.com>
To: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Cc: Rob Clark <robdclark@gmail.com>, Sean Paul <sean@poorly.run>,
"Marijn Suijten" <marijn.suijten@somainline.org>,
David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
Paloma Arellano <quic_parellan@quicinc.com>,
Douglas Anderson <dianders@chromium.org>,
Stephen Boyd <swboyd@chromium.org>,
<linux-arm-msm@vger.kernel.org>,
<dri-devel@lists.freedesktop.org>,
<freedreno@lists.freedesktop.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v4 06/16] drm/msm/dp: split MMSS_DP_DSC_DTO register write to a separate function
Date: Mon, 16 Dec 2024 15:38:43 -0800 [thread overview]
Message-ID: <571e6fd5-11bc-40f7-9b82-48a045c7447a@quicinc.com> (raw)
In-Reply-To: <6nt7cacoik4nxbjpgpidmovzilxf7q2gld64ch2p7ltatkzl4p@sg4ltm7jt47c>
On 12/16/2024 2:24 PM, Dmitry Baryshkov wrote:
> On Mon, Dec 16, 2024 at 11:46:21AM -0800, Abhinav Kumar wrote:
>>
>>
>> On 12/15/2024 2:44 PM, Dmitry Baryshkov wrote:
>>> It's the dp_panel's duty to clear the MMSS_DP_DSC_DTO register. Once DP
>>> driver gets DSC support, it will handle that register in other places
>>> too. Split a call to write 0x0 to that register to a separate function.
>>>
>>> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
>>> ---
>>> drivers/gpu/drm/msm/dp/dp_catalog.c | 8 ++++++++
>>> drivers/gpu/drm/msm/dp/dp_catalog.h | 2 ++
>>> drivers/gpu/drm/msm/dp/dp_ctrl.c | 2 ++
>>> 3 files changed, 12 insertions(+)
>>>
>>> diff --git a/drivers/gpu/drm/msm/dp/dp_catalog.c b/drivers/gpu/drm/msm/dp/dp_catalog.c
>>> index 7b7eadb2f83b169d8df27ee93589abe05b38f3ae..354ec834f9357c4797fc08a4532e69acc67b4317 100644
>>> --- a/drivers/gpu/drm/msm/dp/dp_catalog.c
>>> +++ b/drivers/gpu/drm/msm/dp/dp_catalog.c
>>> @@ -1039,6 +1039,14 @@ void msm_dp_catalog_panel_tpg_disable(struct msm_dp_catalog *msm_dp_catalog)
>>> msm_dp_write_p0(catalog, MMSS_DP_TIMING_ENGINE_EN, 0x0);
>>> }
>>> +void msm_dp_catalog_panel_clear_dsc_dto(struct msm_dp_catalog *msm_dp_catalog)
>>> +{
>>> + struct msm_dp_catalog_private *catalog = container_of(msm_dp_catalog,
>>> + struct msm_dp_catalog_private, msm_dp_catalog);
>>> +
>>> + msm_dp_write_p0(catalog, MMSS_DP_DSC_DTO, 0x0);
>>> +}
>>
>> This is already done msm_dp_catalog_ctrl_config_msa(), this is either a
>> duplicate or redundant.
>>
>> void msm_dp_catalog_ctrl_config_msa(..........)
>> {
>> **********
>> msm_dp_write_link(catalog, REG_DP_SOFTWARE_NVID, nvid);
>> msm_dp_write_p0(catalog, MMSS_DP_DSC_DTO, 0x0);
>> }
>
> The chunk to remove it got squashed into a different patch.
>
hmm, if you would indeed like it to be a separate API , the removal from
the above chunk should go together in the same patch otherwise it looks
redundant.
>>
>>> +
>>> static void __iomem *msm_dp_ioremap(struct platform_device *pdev, int idx, size_t *len)
>>> {
>>> struct resource *res;
>>> diff --git a/drivers/gpu/drm/msm/dp/dp_catalog.h b/drivers/gpu/drm/msm/dp/dp_catalog.h
>>> index 6678b0ac9a67881244884d59487fa288d33d1be7..08bb42e91b779633875dbeb4130bc55a6571cfb1 100644
>>> --- a/drivers/gpu/drm/msm/dp/dp_catalog.h
>>> +++ b/drivers/gpu/drm/msm/dp/dp_catalog.h
>>> @@ -92,6 +92,8 @@ void msm_dp_catalog_panel_tpg_enable(struct msm_dp_catalog *msm_dp_catalog,
>>> struct drm_display_mode *drm_mode);
>>> void msm_dp_catalog_panel_tpg_disable(struct msm_dp_catalog *msm_dp_catalog);
>>> +void msm_dp_catalog_panel_clear_dsc_dto(struct msm_dp_catalog *msm_dp_catalog);
>>> +
>>> struct msm_dp_catalog *msm_dp_catalog_get(struct device *dev);
>>> /* DP Audio APIs */
>>> diff --git a/drivers/gpu/drm/msm/dp/dp_ctrl.c b/drivers/gpu/drm/msm/dp/dp_ctrl.c
>>> index 9c463ae2f8fae916661fef1c7e225f55c1026478..b9c461fee96f8fae9259ce03a32e1155b42d17bb 100644
>>> --- a/drivers/gpu/drm/msm/dp/dp_ctrl.c
>>> +++ b/drivers/gpu/drm/msm/dp/dp_ctrl.c
>>> @@ -2011,6 +2011,8 @@ int msm_dp_ctrl_on_stream(struct msm_dp_ctrl *msm_dp_ctrl, bool force_link_train
>>> pixel_rate_orig,
>>> ctrl->panel->msm_dp_mode.out_fmt_is_yuv_420);
>>> + msm_dp_catalog_panel_clear_dsc_dto(ctrl->catalog);
>>> +
>>> msm_dp_ctrl_setup_tr_unit(ctrl);
>>> msm_dp_catalog_ctrl_state_ctrl(ctrl->catalog, DP_STATE_CTRL_SEND_VIDEO);
>>>
>
next prev parent reply other threads:[~2024-12-16 23:38 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-15 22:44 [PATCH v4 00/16] drm/msm/dp: perform misc cleanups Dmitry Baryshkov
2024-12-15 22:44 ` [PATCH v4 01/16] drm/msm/dp: drop msm_dp_panel_dump_regs() and msm_dp_catalog_dump_regs() Dmitry Baryshkov
2024-12-15 22:44 ` [PATCH v4 02/16] drm/msm/dp: use msm_dp_utils_pack_sdp_header() for audio packets Dmitry Baryshkov
2024-12-16 18:28 ` Stephen Boyd
2024-12-16 19:32 ` Abhinav Kumar
2024-12-16 22:24 ` Dmitry Baryshkov
2024-12-16 23:15 ` Abhinav Kumar
2024-12-15 22:44 ` [PATCH v4 03/16] drm/msm/dp: drop obsolete audio headers access through catalog Dmitry Baryshkov
2024-12-16 19:37 ` Abhinav Kumar
2024-12-15 22:44 ` [PATCH v4 04/16] drm/msm/dp: drop struct msm_dp_panel_in Dmitry Baryshkov
2024-12-15 22:44 ` [PATCH v4 05/16] drm/msm/dp: stop passing panel to msm_dp_audio_get() Dmitry Baryshkov
2024-12-16 18:29 ` Stephen Boyd
2024-12-16 19:40 ` Abhinav Kumar
2024-12-15 22:44 ` [PATCH v4 06/16] drm/msm/dp: split MMSS_DP_DSC_DTO register write to a separate function Dmitry Baryshkov
2024-12-16 18:29 ` Stephen Boyd
2024-12-16 19:46 ` Abhinav Kumar
2024-12-16 22:24 ` Dmitry Baryshkov
2024-12-16 23:38 ` Abhinav Kumar [this message]
2024-12-15 22:44 ` [PATCH v4 07/16] drm/msm/dp: pull I/O data out of msm_dp_catalog_private() Dmitry Baryshkov
2024-12-16 19:48 ` Abhinav Kumar
2024-12-15 22:44 ` [PATCH v4 08/16] drm/msm/dp: move I/O functions to global header Dmitry Baryshkov
2024-12-15 22:44 ` [PATCH v4 09/16] drm/msm/dp: move/inline AUX register functions Dmitry Baryshkov
2024-12-15 22:44 ` [PATCH v4 10/16] drm/msm/dp: move/inline ctrl " Dmitry Baryshkov
2024-12-15 22:44 ` [PATCH v4 11/16] drm/msm/dp: move/inline panel related functions Dmitry Baryshkov
2024-12-15 22:44 ` [PATCH v4 12/16] drm/msm/dp: move/inline audio " Dmitry Baryshkov
2024-12-15 22:44 ` [PATCH v4 13/16] drm/msm/dp: move more AUX functions to dp_aux.c Dmitry Baryshkov
2024-12-15 22:44 ` [PATCH v4 14/16] drm/msm/dp: move interrupt handling to dp_ctrl Dmitry Baryshkov
2024-12-15 22:44 ` [PATCH v4 15/16] drm/msm/dp: read hw revision only once Dmitry Baryshkov
2024-12-16 18:29 ` Stephen Boyd
2024-12-16 20:52 ` Abhinav Kumar
2024-12-15 22:44 ` [PATCH v4 16/16] drm/msm/dp: drop the msm_dp_catalog module Dmitry Baryshkov
2024-12-16 18:30 ` Stephen Boyd
2024-12-22 7:31 ` [PATCH v4 00/16] drm/msm/dp: perform misc cleanups Dmitry Baryshkov
2024-12-24 20:41 ` 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=571e6fd5-11bc-40f7-9b82-48a045c7447a@quicinc.com \
--to=quic_abhinavk@quicinc.com \
--cc=airlied@gmail.com \
--cc=dianders@chromium.org \
--cc=dmitry.baryshkov@linaro.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=freedreno@lists.freedesktop.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marijn.suijten@somainline.org \
--cc=quic_parellan@quicinc.com \
--cc=robdclark@gmail.com \
--cc=sean@poorly.run \
--cc=simona@ffwll.ch \
--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: 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
all inboxes | Powered by JetHome®