From: Abhinav Kumar <quic_abhinavk@quicinc.com>
To: Stephen Boyd <swboyd@chromium.org>,
Kuogee Hsieh <quic_khsieh@quicinc.com>, <agross@kernel.org>,
<airlied@gmail.com>, <andersson@kernel.org>, <daniel@ffwll.ch>,
<dianders@chromium.org>, <dmitry.baryshkov@linaro.org>,
<dri-devel@lists.freedesktop.org>, <robdclark@gmail.com>,
<sean@poorly.run>, <vkoul@kernel.org>
Cc: <quic_jesszhan@quicinc.com>, <quic_sbillaka@quicinc.com>,
<marijn.suijten@somainline.org>,
<freedreno@lists.freedesktop.org>,
<linux-arm-msm@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v1 2/2] drm/msm/dp: add mutex to protect internal_hpd against race condition between different threads
Date: Wed, 10 May 2023 16:11:26 -0700 [thread overview]
Message-ID: <74ae5514-2b04-9363-902e-cb4d7cbe1128@quicinc.com> (raw)
In-Reply-To: <CAE-0n532y=ARQ_+urEA_b3zUn+gKTu1fgK_siHNt3CpbLB9PZg@mail.gmail.com>
On 5/10/2023 3:46 PM, Stephen Boyd wrote:
> Quoting Kuogee Hsieh (2023-05-10 13:31:05)
>> Intrenal_hpd is referenced by event thread but set by drm bridge callback
>> context. Add mutex to protect internal_hpd to avoid conflicts between
>> threads.
>>
>> Signed-off-by: Kuogee Hsieh <quic_khsieh@quicinc.com>
>> ---
>
> This patch looks completely unnecessary. How can dp_bridge_hpd_enable()
> be called at the same time that dp_bridge_hpd_disable() is called or
> dp_bridge_hpd_notify() is called? Isn't there locking or ordering at a
> higher layer?
Ack. We can drop this patch because we are protected by
bridge->hpd_mutex in drm_bridge_hpd_enable() / drm_bridge_hpd_disable ()
and drm_bridge_hpd_notify().
next prev parent reply other threads:[~2023-05-10 23:11 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-10 20:31 [PATCH v1 0/2] enable HDP plugin/unplugged interrupts to hpd_enable/disable Kuogee Hsieh
2023-05-10 20:31 ` [PATCH v1 1/2] drm/msm/dp: " Kuogee Hsieh
2023-05-10 23:55 ` Stephen Boyd
2023-05-11 0:39 ` Abhinav Kumar
2023-05-11 15:44 ` Bjorn Andersson
2023-05-11 17:55 ` Stephen Boyd
2023-05-11 15:31 ` Bjorn Andersson
2023-05-11 4:24 ` Dmitry Baryshkov
2023-05-11 15:53 ` Bjorn Andersson
2023-05-11 15:57 ` Dmitry Baryshkov
2023-05-12 0:16 ` Kuogee Hsieh
2023-05-12 0:54 ` Dmitry Baryshkov
2023-05-12 18:03 ` Stephen Boyd
2023-05-12 18:30 ` Dmitry Baryshkov
2023-05-10 20:31 ` [PATCH v1 2/2] drm/msm/dp: add mutex to protect internal_hpd against race condition between different threads Kuogee Hsieh
2023-05-10 22:46 ` Stephen Boyd
2023-05-10 23:11 ` Abhinav Kumar [this message]
2023-05-10 23:19 ` Kuogee Hsieh
2023-05-10 23:30 ` Abhinav Kumar
2023-05-11 16:02 ` [PATCH v1 0/2] enable HDP plugin/unplugged interrupts to hpd_enable/disable 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=74ae5514-2b04-9363-902e-cb4d7cbe1128@quicinc.com \
--to=quic_abhinavk@quicinc.com \
--cc=agross@kernel.org \
--cc=airlied@gmail.com \
--cc=andersson@kernel.org \
--cc=daniel@ffwll.ch \
--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_jesszhan@quicinc.com \
--cc=quic_khsieh@quicinc.com \
--cc=quic_sbillaka@quicinc.com \
--cc=robdclark@gmail.com \
--cc=sean@poorly.run \
--cc=swboyd@chromium.org \
--cc=vkoul@kernel.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®