From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.181 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795994970; b=s4cYBB9HPYBK/VSLYOocJDC185acgSOipLp9BGi+9lYYbpww+2EYnU0XVxNSps1uDYTG JQbxYYRimVcXxptRJzRLSAhpHSxY/fFy3u0XevaKSlKSBOmxZA+oxQwk5egNqbdtP9R8K 0E/41O3ucoH5jZwWL9dbQF+apvHhy5lm7t24ZxyLPO95ebI9OSjua9MA6ushp3ajN9lpn 4jjuXK5YYTn9Nwk/XpLmrsPA3Ar4JG42Tgi/9/kmcWsgYXxsQo4PbU120eZqIFdZh9gk5 GpdHIlxS+JFh/5NK1UiMfZyUYhrCaiH125JuP3lUWus7rPVIcnK10Y5c05BNOiuodXA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795994970; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=uWMReJPIf8tIJDz/PE7xfup2xAEw3Era+N6kQ2Rpu6c=; b=JCfvfFCINlZ7B3G3twat9nWPpkDL1zXPjSAwCTt8sQ7UkhazemKCJIigxjdGkm/Ry4fN k/3jds+vI8xGOUNcUR+T3IIZuwgIOOmskJ2RuDQsdIrOvmg/jXb7CTiHguRxG840mzAAF eLlrNzok3uA/OEe5PWo6aF+oLJNWWbE+fFOcUpwqbirChRavefU41NdRaD0aAqlLult3F Z6+botsH9hb7T8MbqiVAho9WXxfBnsZeirFdl/OZ10CtrnfKUUzsF+KIs/N8kAkei9dwI UJ2pwee6ICm1uihyXeBaZotWiZLAjNpJsj8PVkF7TDuP3PZ9ovdvg37/EutHcKzI7pw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=k8mH4Ijf; arc=none smtp.remote-ip=74.125.82.181 Received: from mail-dy1-f181.google.com (mail-dy1-f181.google.com [74.125.82.181]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 15919606A325 for ; Sun, 29 Nov 2026 23:29:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 15919606A325 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=k8mH4Ijf Received: by mail-dy1-f181.google.com with SMTP id 5a478bee46e88-386b8f2f671so5671497eec.1 for ; Sun, 29 Nov 2026 15:29:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795994969; x=1796599769; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=uWMReJPIf8tIJDz/PE7xfup2xAEw3Era+N6kQ2Rpu6c=; b=k8mH4Ijf8wOze955Zn8HZBUw9k4EDa1xy/k1Bka2W9dBgn3+eKFM4/qWgoDfcMHGcp 4Fcjkoo9iNTE1zpcYECJC9T7LX7v4zuFXBUv1OEBjCZBqlGt/re3AkJUA8xdv5VA6qrd hFsRNN3PlUp8cGvz8FZLrYmV9lNRQi7mILeok/M0nl7Rz8X4/nPasRng62UMn60D8fWC uYq0o6cWnSEsm9nPNqIxovp9n/Nt3y5aeh0DKN5/hCqbTep0SdgSk+a7ljJ/wjrG3CR0 O4VT8kr44A/OOLK64Cci5myxgL2ukhLBsE4ASMM8JjmDGoTO0/ibr1I7G/kUG8LE2403 NGmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795994969; x=1796599769; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=uWMReJPIf8tIJDz/PE7xfup2xAEw3Era+N6kQ2Rpu6c=; b=K2ziPimOtW3ighxRSrG8MNQXdkuayvWbWB2hDYznEennX2aVq8LReFI5gc7vbFrB3t YpCYnbdXlkPxHAvcennk6vkasP/JJm03y3dVF3kedzThCTFhI9prMJv36yCD+zJfp4Rb 9ZU/E8hnxj5R7QnCKDGRYNKZ8MaM3j+EaFsWrLm7iILb5bPB9TwXwogP/w/MStALaXk8 rEMIHaUTldy6T0nGUI2f8feY7JhjYN6bEQ2fMOda897vJKZ/yWiY3irAclTLeoF4oL+8 PHiEp5/lBMWlKSrGdwVG36SIW7xec3R3LtNgAX8D1fu2PIZy6OaIu9hBf8ygOEo4bxpy qTtA== X-Forwarded-Encrypted: i=1; AL+hErHltKj4P9eCLap/y2mZPYjuoWiLwkz40ZginIGWnRcF7kl/ojzLqja+dSSCSFNMQkGVzt1doT1Dg83lquI=@vger.kernel.org X-Gm-Message-State: APuU4Z9uyYycOdCYlOGZYvFA/6ttMGVj9Yym9pRc18NcQycFF5hViCR9 L1AJ0K00/3tDMuv9ZgJhsBIzcZkMhYppdRizZrvVBUY2+iHV6/E4W6TG X-Gm-Gg: AZFdTZfe12Jxj31QjReZAJOV+zBadKVuRv2DHu+bLJSSIoNuZ5eqjn3/CrEbDGWpqxc wO5JFf44BXu2fN8bqecY63ZF6qfmiJ2lCOyBfTWTjF2sdNxUJhrcQ1g9SWjxNXco0UufMtm+96C OKPg2XBeuYhfNOvMUT+gI1zCONsnAEIdJoadVT2Vasil5ov3NMD9K5iz9FM/T8sgmq/18KuUyAa I1mgQR7ndjCdXgfBrDAfo5MJhmPtnVQfSNOeqrY9YHtWVL3L/HvxxxJSllnQE/158tytKRYJCcv s8xDiGVXzn6D2JWbGoM5OYOqpWruW3DMNt3BfRl8TOVntjfVqn1q26Trm0LNxbpNwLmRElzHdAp vY4wHfQ+GIDXfe5Z6oBy8kZOv8BPUcdjM6KjkZMGXz397CMLfydIXu8MlVpDHrO1skiFXqc26fM yl13AMgY+bKmeu704fMVd0XCjaV94RuNI606OB/JW+24OHGm6mJNH7+5fPbF7qL//h/2/+uIR8L Rl6Uy97t96a87oAC/UBhTvm+ra8Yo7zuJC4v7Zg99b6FBzQ4lpFfERVcEMklO1zckfHum7dtfc3 rlFxPsrdkdj8xcUI9SW+coT0jyw8/tJ9k8vOwg== X-Received: by 2002:a05:7300:6da7:b0:36c:3b8a:8090 with SMTP id 5a478bee46e88-3856c9a302amr18470097eec.2.1795994968937; Sun, 29 Nov 2026 15:29:28 -0800 (PST) Received: from DESKTOP-NM9EKIA ([2001:e60:8508:45d6:1d71:59c3:f3cb:3c30]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-38567abb870sm78607937eec.25.2026.11.29.15.29.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 15:29:28 -0800 (PST) From: Joonhoe Kim <26rote@gmail.com> To: Yongxing Mou Cc: Luca Ceresoli , Dmitry Baryshkov , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , 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 Message-ID: <20261129232930.353-1-26rote@gmail.com> X-Mailer: git-send-email 2.55.0.windows.5 In-Reply-To: <20261107021216.952-1-26rote@gmail.com> References: <20260803-drm-usbdp-preboot-v1-1-2539b362be00@oss.qualcomm.com> <20261107021216.952-1-26rote@gmail.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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