From: Harry Wentland <hwentlan@amd.com>
To: Aditya Pakki <pakki001@umn.edu>
Cc: dri-devel@lists.freedesktop.org,
"Chris Park" <Chris.Park@amd.com>,
"Eric Yang" <Eric.Yang2@amd.com>, "Leo Li" <sunpeng.li@amd.com>,
"Bhawanpreet Lakha" <Bhawanpreet.Lakha@amd.com>,
"David Francis" <David.Francis@amd.com>,
kjlu@umn.edu, linux-kernel@vger.kernel.org,
amd-gfx@lists.freedesktop.org,
"Nikola Cornij" <nikola.cornij@amd.com>,
"David Airlie" <airlied@linux.ie>,
"Eric Bernstein" <eric.bernstein@amd.com>,
"David Galiffi" <david.galiffi@amd.com>,
"Alex Deucher" <alexander.deucher@amd.com>,
"Wenjing Liu" <Wenjing.Liu@amd.com>, "Jun Lei" <Jun.Lei@amd.com>,
"Christian König" <christian.koenig@amd.com>,
"Anthony Koo" <Anthony.Koo@amd.com>
Subject: Re: [PATCH] drm/amd/display: Fix error returned by program_hpd_filter
Date: Tue, 31 Dec 2019 10:08:29 -0500 [thread overview]
Message-ID: <b176fd4b-b2d3-8741-e1d7-f9b0899bc24e@amd.com> (raw)
In-Reply-To: <20191117172236.2140-1-pakki001@umn.edu>
On 2019-11-17 12:22 p.m., Aditya Pakki wrote:
> program_hpd_filter() currently fails to check for the errors
> returned in construct(). This patch returns error in
> case of failure.
>
> Signed-off-by: Aditya Pakki <pakki001@umn.edu>
> ---
> drivers/gpu/drm/amd/display/dc/core/dc_link.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link.c b/drivers/gpu/drm/amd/display/dc/core/dc_link.c
> index ca20b150afcc..bbb648a50c41 100644
> --- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c
> +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c
> @@ -1379,9 +1379,8 @@ static bool construct(
> * If GPIO isn't programmed correctly HPD might not rise or drain
> * fast enough, leading to bounces.
> */
> - program_hpd_filter(link);
> + return program_hpd_filter(link);
We don't want program_hpd_filter to become a fatal error, which this
would do.
Though it would be good to print a warning if program_hpd_filter fails
as it's unexpected and might lead to bugs with some displays. In many
cases failing to program the HPD filter won't lead to adverse behavior.
Harry
>
> - return true;
> device_tag_fail:
> link->link_enc->funcs->destroy(&link->link_enc);
> link_enc_create_fail:
>
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
prev parent reply other threads:[~2019-12-31 15:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-17 17:22 [PATCH] drm/amd/display: Fix error returned by program_hpd_filter Aditya Pakki
2019-11-17 17:22 ` Aditya Pakki
2019-12-31 15:08 ` 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=b176fd4b-b2d3-8741-e1d7-f9b0899bc24e@amd.com \
--to=hwentlan@amd.com \
--cc=Anthony.Koo@amd.com \
--cc=Bhawanpreet.Lakha@amd.com \
--cc=Chris.Park@amd.com \
--cc=David.Francis@amd.com \
--cc=Eric.Yang2@amd.com \
--cc=Jun.Lei@amd.com \
--cc=Wenjing.Liu@amd.com \
--cc=airlied@linux.ie \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=christian.koenig@amd.com \
--cc=david.galiffi@amd.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=eric.bernstein@amd.com \
--cc=kjlu@umn.edu \
--cc=linux-kernel@vger.kernel.org \
--cc=nikola.cornij@amd.com \
--cc=pakki001@umn.edu \
--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