From: Abhinav Kumar <quic_abhinavk@quicinc.com>
To: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>,
"James A. MacInnes" <james.a.macinnes@gmail.com>
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>,
Chandan Uddaraju <chandanu@codeaurora.org>,
Stephen Boyd <swboyd@chromium.org>,
Vara Reddy <quic_varar@quicinc.com>,
Tanmay Shah <tanmay@codeaurora.org>,
<linux-arm-msm@vger.kernel.org>,
<dri-devel@lists.freedesktop.org>,
<freedreno@lists.freedesktop.org>, <linux-kernel@vger.kernel.org>,
Guenter Roeck <groeck@chromium.org>,
"Rob Clark" <robdclark@chromium.org>
Subject: Re: [PATCH v2 2/2] drm/msm/disp: Correct porch timing for SDM845
Date: Wed, 12 Feb 2025 19:23:55 -0800 [thread overview]
Message-ID: <244931ee-acaa-4973-bb8e-aa4c6c1609f0@quicinc.com> (raw)
In-Reply-To: <5yli2sqw5hxoinlaguxjq2lleez7p4qjkwvexrgn7uphnu44ws@trlvdrpep5uv>
On 2/12/2025 4:04 PM, Dmitry Baryshkov wrote:
> On Wed, Feb 12, 2025 at 03:03:47PM -0800, James A. MacInnes wrote:
>> Type-C DisplayPort inoperable due to incorrect porch settings.
>> - Re-used wide_bus_en as flag to prevent porch shifting
>
> Unfortunately I don't know enough details to comment on this change.
> Maybe Abhinav can check it. I can only notice that msm-4.14 disables
> programmable_fetch_config for non-DSI calls. Would disabling that call
> for DP interface fix your issue?
>
Yes, this piece of timing adjustment matches what we have even without
widebus.
I do agree about the programmable fetch that it is enabled only on DSI
even on the latest kernels.
698 if (phys_enc->hw_intf->cap->type == INTF_DSI)
699 programmable_fetch_config(phys_enc, &timing_params);
We can try if that works.
>>
>> Fixes: c943b4948b58 ("drm/msm/dp: add displayPort driver support")
>> Signed-off-by: James A. MacInnes <james.a.macinnes@gmail.com>
>> ---
>> drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c | 14 +++++++++-----
>> 1 file changed, 9 insertions(+), 5 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c
>> index abd6600046cb..a21addc4794f 100644
>> --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c
>> +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c
>> @@ -94,17 +94,21 @@ static void drm_mode_to_intf_timing_params(
>> timing->vsync_polarity = 0;
>> }
>>
>> - /* for DP/EDP, Shift timings to align it to bottom right */
>> - if (phys_enc->hw_intf->cap->type == INTF_DP) {
>> + timing->wide_bus_en = dpu_encoder_is_widebus_enabled(phys_enc->parent);
>> + timing->compression_en = dpu_encoder_is_dsc_enabled(phys_enc->parent);
>> +
>> + /*
>> + * For DP/EDP, Shift timings to align it to bottom right.
>> + * wide_bus_en is set for everything excluding SDM845 &
>> + * porch changes cause DisplayPort failure and HDMI tearing.
>> + */
>> + if (phys_enc->hw_intf->cap->type == INTF_DP && timing->wide_bus_en) {
>> timing->h_back_porch += timing->h_front_porch;
>> timing->h_front_porch = 0;
>> timing->v_back_porch += timing->v_front_porch;
>> timing->v_front_porch = 0;
>> }
>>
>> - timing->wide_bus_en = dpu_encoder_is_widebus_enabled(phys_enc->parent);
>> - timing->compression_en = dpu_encoder_is_dsc_enabled(phys_enc->parent);
>> -
>> /*
>> * for DP, divide the horizonal parameters by 2 when
>> * widebus is enabled
>>
>> --
>> 2.43.0
>>
>
next prev parent reply other threads:[~2025-02-13 3:24 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-12 23:03 [PATCH v2 0/2] drm/msm/dp: Fix Type-C Timing James A. MacInnes
2025-02-12 23:03 ` [PATCH v2 1/2] drm/msm/dp: Disable wide bus support for SDM845 James A. MacInnes
2025-02-12 23:41 ` Marijn Suijten
2025-02-12 23:58 ` Dmitry Baryshkov
2025-02-27 16:46 ` James A. MacInnes
2025-02-13 3:03 ` Abhinav Kumar
2025-02-12 23:03 ` [PATCH v2 2/2] drm/msm/disp: Correct porch timing " James A. MacInnes
2025-02-13 0:04 ` Dmitry Baryshkov
2025-02-13 3:23 ` Abhinav Kumar [this message]
2025-06-08 22:35 ` Dmitry Baryshkov
2025-06-08 22:35 ` 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=244931ee-acaa-4973-bb8e-aa4c6c1609f0@quicinc.com \
--to=quic_abhinavk@quicinc.com \
--cc=airlied@gmail.com \
--cc=chandanu@codeaurora.org \
--cc=dmitry.baryshkov@linaro.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=freedreno@lists.freedesktop.org \
--cc=groeck@chromium.org \
--cc=james.a.macinnes@gmail.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marijn.suijten@somainline.org \
--cc=quic_varar@quicinc.com \
--cc=robdclark@chromium.org \
--cc=robdclark@gmail.com \
--cc=sean@poorly.run \
--cc=simona@ffwll.ch \
--cc=swboyd@chromium.org \
--cc=tanmay@codeaurora.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