From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Cc: Jani Nikula <jani.nikula@linux.intel.com>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
Rob Clark <robdclark@gmail.com>,
Abhinav Kumar <quic_abhinavk@quicinc.com>,
Sean Paul <sean@poorly.run>,
Marijn Suijten <marijn.suijten@somainline.org>,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org,
linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org
Subject: Re: [PATCH RFC 4/7] drm/display: dp-aux-dev: use new DCPD access helpers
Date: Thu, 13 Feb 2025 01:56:12 +0200 [thread overview]
Message-ID: <Z601HHdh2Zn62skU@intel.com> (raw)
In-Reply-To: <7unkxysvdn57fp6t7sjmgqsiacg5grbrk4lp3fbfdvaht3hq4o@gqshn45sa5ww>
On Thu, Jan 23, 2025 at 01:05:47PM +0200, Dmitry Baryshkov wrote:
> On Thu, Jan 23, 2025 at 12:05:29PM +0200, Jani Nikula wrote:
> > On Fri, 17 Jan 2025, Dmitry Baryshkov <dmitry.baryshkov@linaro.org> wrote:
> > > Switch drm_dp_aux_dev.c to use new set of DPCD read / write helpers.
> >
> > This might be one of the few places where the old functions and the old
> > return value was used in a sensible manner.
>
> Well... Yes and no. What does it mean if we return less bytes? Is that
> still a protocol error?
AFAIK short AUX replies are perfectly legal accoding to the DP
spec, but we've not really seen them happening in any real
use cases I suppose (although I'm not sure we have sufficient
logging to tell whether something failed completely or only
partially), hence why we've never really handled them
correctly.
For aux_dev it might matter more because the common use
case is to just dump the entire DPCD, and some displays
violate the spec by having black holes inside the DPCD.
What I don't rembmer is whether those black holes actually
result in short replies, or whether the entire AUX transfer
gets rejected when it hits one even partially.
The other concern with not handling short replies correctly
is that writes (and even some reads) can have side effects.
So when a short reply arrives we may have already triggered
some side effects while still claiming that the access
completely failed.
I suppose if someone was sufficiently motivated they could
try to handle short replies more correctly and keep retrying
the remaining bytes (assuming that is the correct way to
handle them). Although with those black holes I guess
you'd eventually have to give up anyway before having
transferred all the bytes.
--
Ville Syrjälä
Intel
next prev parent reply other threads:[~2025-02-12 23:56 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-17 8:56 [PATCH RFC 0/7] drm/display: dp: add new DPCD access functions Dmitry Baryshkov
2025-01-17 8:56 ` [PATCH RFC 1/7] drm/display: dp: change drm_dp_dpcd_read_link_status() return Dmitry Baryshkov
2025-02-18 21:30 ` Lyude Paul
2025-01-17 8:56 ` [PATCH RFC 2/7] drm/display: dp: implement new access helpers Dmitry Baryshkov
2025-01-23 10:26 ` Jani Nikula
2025-01-23 11:04 ` Dmitry Baryshkov
2025-02-18 21:27 ` Lyude Paul
2025-01-17 8:56 ` [PATCH RFC 3/7] drm/display: dp: use new DCPD " Dmitry Baryshkov
2025-02-18 21:35 ` Lyude Paul
2025-01-17 8:56 ` [PATCH RFC 4/7] drm/display: dp-aux-dev: " Dmitry Baryshkov
2025-01-23 10:05 ` Jani Nikula
2025-01-23 11:05 ` Dmitry Baryshkov
2025-02-12 23:56 ` Ville Syrjälä [this message]
2025-02-13 0:07 ` Dmitry Baryshkov
2025-01-17 8:56 ` [PATCH RFC 5/7] drm/display: dp-cec: " Dmitry Baryshkov
2025-02-18 21:38 ` Lyude Paul
2025-01-17 8:56 ` [PATCH RFC 6/7] drm/display: dp-mst-topology: " Dmitry Baryshkov
2025-02-18 21:40 ` Lyude Paul
2025-01-17 8:56 ` [PATCH RFC 7/7] drm/display: dp-tunnel: " Dmitry Baryshkov
2025-02-18 21:43 ` Lyude Paul
2025-01-22 22:14 ` [PATCH RFC 0/7] drm/display: dp: add new DPCD access functions Dmitry Baryshkov
2025-01-23 10:12 ` Jani Nikula
2025-02-09 3:38 ` 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=Z601HHdh2Zn62skU@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=airlied@gmail.com \
--cc=dmitry.baryshkov@linaro.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=freedreno@lists.freedesktop.org \
--cc=jani.nikula@linux.intel.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=marijn.suijten@somainline.org \
--cc=mripard@kernel.org \
--cc=quic_abhinavk@quicinc.com \
--cc=robdclark@gmail.com \
--cc=sean@poorly.run \
--cc=simona@ffwll.ch \
--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