From: Harry Wentland <harry.wentland@amd.com>
To: Praful.Swarnakar@amd.com, amd-gfx@lists.freedesktop.org
Cc: Alexander.Deucher@amd.com, hersenxs.wu@amd.com, sunpeng.li@amd.com
Subject: Re: [PATCH] drm/amd/display: Fix Display Flicker on embedded panels
Date: Wed, 22 Sep 2021 14:37:59 -0400 [thread overview]
Message-ID: <3e5bd0d6-c8b4-a962-a2d2-a6bdfbad5e9a@amd.com> (raw)
In-Reply-To: <20210922175823.2160290-1-Praful.Swarnakar@amd.com>
On 2021-09-22 13:58, Praful.Swarnakar@amd.com wrote:
> From: Praful Swarnakar <Praful.Swarnakar@amd.com>
>
> [Why]
> ASSR is dependent on Signed PSP Verstage to enable Content
> Protection for eDP panels. Unsigned PSP verstage is used
> during development phase causing ASSR to FAIL.
> As a result, link training is performed with
> DP_PANEL_MODE_DEFAULT instead of DP_PANEL_MODE_EDP for
> eDP panels that causes display flicker on some panels.
>
> [How]
> - Do not change panel mode, if ASSR is disabled
> - Just report and continue to perform eDP link training
> with right settings further.
>
> Signed-off-by: Praful Swarnakar <Praful.Swarnakar@amd.com>
Good catch. ASSR for content protection purposes requires
signed PSP but there are eDP panels that require ASSR in
order to light up correctly.
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Harry
> ---
> drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 15 +++++++--------
> 1 file changed, 7 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
> index 6421c896f2a1..120c9955cafb 100644
> --- a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
> +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
> @@ -2419,14 +2419,13 @@ bool perform_link_training_with_retries(
> if (panel_mode == DP_PANEL_MODE_EDP) {
> struct cp_psp *cp_psp = &stream->ctx->cp_psp;
>
> - if (cp_psp && cp_psp->funcs.enable_assr) {
> - if (!cp_psp->funcs.enable_assr(cp_psp->handle, link)) {
> - /* since eDP implies ASSR on, change panel
> - * mode to disable ASSR
> - */
> - panel_mode = DP_PANEL_MODE_DEFAULT;
> - }
> - }
> + if (cp_psp && cp_psp->funcs.enable_assr)
> + /* ASSR is bound to fail with unsigned PSP
> + * verstage used during devlopment phase.
> + * Report and continue with eDP panel mode to
> + * perform eDP link training with right settings
> + */
> + cp_psp->funcs.enable_assr(cp_psp->handle, link);
> }
> #endif
>
>
prev parent reply other threads:[~2021-09-22 18:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-22 17:58 [PATCH] drm/amd/display: Fix Display Flicker on embedded panels Praful.Swarnakar
2021-09-22 18:37 ` Harry Wentland [this message]
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=3e5bd0d6-c8b4-a962-a2d2-a6bdfbad5e9a@amd.com \
--to=harry.wentland@amd.com \
--cc=Alexander.Deucher@amd.com \
--cc=Praful.Swarnakar@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=hersenxs.wu@amd.com \
--cc=sunpeng.li@amd.com \
/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