Re: [PATCH] drm/bridge: aux-hpd-bridge: replay last HPD status on hpd_enable

From: Joonhoe Kim

Date: Sun Nov 29 2026 - 18:29:34 EST


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@xxxxxxxxx/

Thanks,
Joonhoe Kim