From: Lyude Paul <lyude@redhat.com>
To: Stephen Boyd <swboyd@chromium.org>,
Kuogee Hsieh <khsieh@codeaurora.org>,
robdclark@gmail.com, sean@poorly.run
Cc: abhinavk@codeaurora.org, aravindh@codeaurora.org,
rsubbia@codeaurora.org, rnayak@codeaurora.org,
freedreno@lists.freedesktop.org, airlied@linux.ie,
daniel@ffwll.ch, maarten.lankhorst@linux.intel.com,
mripard@kernel.org, tzimmermann@suse.de,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] drm/dp_mst: Fix return code on sideband message failure
Date: Tue, 29 Jun 2021 17:38:17 -0400 [thread overview]
Message-ID: <d8e09114428307a029f31dc1a7da77e21f9b2b34.camel@redhat.com> (raw)
In-Reply-To: <CAE-0n50onDrop=67VvMWL2sbSJedxhKEX13PsiZNaokucSgLew@mail.gmail.com>
JFYI this is on my radar and I'll take a look asap
On Tue, 2021-06-29 at 13:41 -0700, Stephen Boyd wrote:
> +Lyude, author of fixed commit. Please add relevant folks in the future.
>
> Quoting Kuogee Hsieh (2021-06-29 13:08:56)
> > From: Rajkumar Subbiah <rsubbia@codeaurora.org>
> >
> > The commit 2f015ec6eab69301fdcf54d397810d72362d7223 added some debug
>
> Please write
>
> Commit 2f015ec6eab6 ("drm/dp_mst: Add sideband down request tracing +
> selftests") added some debug
>
> > code for sideband message tracing. But it seems to have unintentionally
> > changed the behavior on sideband message failure. It catches and returns
> > failure only if DRM_UT_DP is enabled. Otherwise it ignores the error code
> > and returns success. So on an MST unplug, the caller is unaware that the
> > clear payload message failed and ends up waiting for 4 seconds for the
> > response.
> >
> > This change fixes the issue by returning the proper error code.
>
> $ git grep "This patch" -- Documentation/process
>
> >
> > Change-Id: I2887b7ca21355fe84a7968f7619d5e8199cbb0c6
>
> Please replace with
>
> Fixes: 2f015ec6eab6 ("drm/dp_mst: Add sideband down request tracing +
> selftests")
>
> > Signed-off-by: Rajkumar Subbiah <rsubbia@codeaurora.org>
>
> Should be a Signed-off-by from Kuogee Hsieh here.
>
> > ---
> > drivers/gpu/drm/drm_dp_mst_topology.c | 10 ++++++----
> > 1 file changed, 6 insertions(+), 4 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/drm_dp_mst_topology.c
> > b/drivers/gpu/drm/drm_dp_mst_topology.c
> > index 1590144..8d97430 100644
> > --- a/drivers/gpu/drm/drm_dp_mst_topology.c
> > +++ b/drivers/gpu/drm/drm_dp_mst_topology.c
> > @@ -2887,11 +2887,13 @@ static int process_single_tx_qlock(struct
> > drm_dp_mst_topology_mgr *mgr,
> > idx += tosend + 1;
> >
> > ret = drm_dp_send_sideband_msg(mgr, up, chunk, idx);
> > - if (unlikely(ret) && drm_debug_enabled(DRM_UT_DP)) {
> > - struct drm_printer p = drm_debug_printer(DBG_PREFIX);
> > + if (unlikely(ret)) {
> > + if (drm_debug_enabled(DRM_UT_DP)) {
> > + struct drm_printer p =
> > drm_debug_printer(DBG_PREFIX);
> >
> > - drm_printf(&p, "sideband msg failed to send\n");
> > - drm_dp_mst_dump_sideband_msg_tx(&p, txmsg);
> > + drm_printf(&p, "sideband msg failed to send\n");
> > + drm_dp_mst_dump_sideband_msg_tx(&p, txmsg);
> > + }
> > return ret;
> > }
> >
>
> With the above fixed up
>
> Reviewed-by: Stephen Boyd <swboyd@chromium.org>
>
--
Cheers,
Lyude Paul (she/her)
Software Engineer at Red Hat
prev parent reply other threads:[~2021-06-29 21:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-29 20:08 Kuogee Hsieh
2021-06-29 20:41 ` Stephen Boyd
2021-06-29 21:38 ` Lyude Paul [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=d8e09114428307a029f31dc1a7da77e21f9b2b34.camel@redhat.com \
--to=lyude@redhat.com \
--cc=abhinavk@codeaurora.org \
--cc=airlied@linux.ie \
--cc=aravindh@codeaurora.org \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=freedreno@lists.freedesktop.org \
--cc=khsieh@codeaurora.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=rnayak@codeaurora.org \
--cc=robdclark@gmail.com \
--cc=rsubbia@codeaurora.org \
--cc=sean@poorly.run \
--cc=swboyd@chromium.org \
--cc=tzimmermann@suse.de \
/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®