From: Joonhoe Kim <26rote@gmail.com>
To: Yongxing Mou <yongxing.mou@oss.qualcomm.com>
Cc: Luca Ceresoli <luca.ceresoli@bootlin.com>,
Dmitry Baryshkov <lumag@kernel.org>,
Andrzej Hajda <andrzej.hajda@intel.com>,
Neil Armstrong <neil.armstrong@linaro.org>,
Robert Foss <rfoss@kernel.org>,
Laurent Pinchart <Laurent.pinchart@ideasonboard.com>,
Jonas Karlman <jonas@kwiboo.se>,
Jernej Skrabec <jernej.skrabec@gmail.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>,
dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] drm/bridge: aux-hpd-bridge: replay last HPD status on hpd_enable
Date: Mon, 30 Nov 2026 08:29:30 +0900 [thread overview]
Message-ID: <20261129232930.353-1-26rote@gmail.com> (raw)
In-Reply-To: <20261107021216.952-1-26rote@gmail.com>
On Sat, Nov 07, 2026 at 11:12:16AM +0900, Joonhoe Kim wrote:
> On the two Sashiko points: I tested a variant that replays the status
> from .hpd_enable directly instead of from a work item.
Please disregard that variant. On resume, msm re-enables HPD from its PM
complete callback, so a direct replay runs the DP driver's HPD handling
there, before tasks are thawed. After a DP unplug during s2idle that
pmic_glink_altmode did not report (fix sent in [1]), the replayed
"connected" status made the DP driver read the DPCD of the missing sink
over AUX, which held up resume for 33 s on the Lenovo Y700 Gen 5. That
is longer than its 30 s hardware watchdog, which reset the system in
one run. Even with [1], the resume right after the unplug still replays
"connected", because the altmode notification arrives only after tasks
are thawed; that resume took 3.5 s.
With your work item the replay runs in a kworker, so it should not hold
up resume, although I have not tested that. If the system suspends
again while the work is still retrying AUX, cancel_work_sync() in
.hpd_disable waits for it from the PM prepare callback. The lock from my
earlier mail still applies there: holding it in the work function
around reading the status and notifying closes the stale-status race.
The work also still needs to be cancelled on unbind.
[1] https://lore.kernel.org/all/20261129232915.468-1-26rote@gmail.com/
Thanks,
Joonhoe Kim
prev parent reply other threads:[~2026-11-29 23:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-03 8:43 [PATCH] drm/bridge: aux-hpd-bridge: replay last HPD status on hpd_enable Yongxing Mou
2026-08-03 8:54 ` sashiko-bot
2026-09-03 3:28 ` Yongxing Mou
2026-10-21 7:34 ` Luca Ceresoli
2026-10-23 6:10 ` Yongxing Mou
2026-11-07 2:12 ` Joonhoe Kim
2026-11-29 23:29 ` Joonhoe Kim [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=20261129232930.353-1-26rote@gmail.com \
--to=26rote@gmail.com \
--cc=Laurent.pinchart@ideasonboard.com \
--cc=airlied@gmail.com \
--cc=andrzej.hajda@intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=jernej.skrabec@gmail.com \
--cc=jonas@kwiboo.se \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luca.ceresoli@bootlin.com \
--cc=lumag@kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=rfoss@kernel.org \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
--cc=yongxing.mou@oss.qualcomm.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.