From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.41 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795994970; b=sIsPPZXokxg/88CXuxcjHbDf5MjRPr0cHcjZVPjstlS0PEeqQvUrsT/JOa5J9dHXtzTj JNaCdnaiSh0UVrUguKPQqlNQ9Z+ew0XoDA9Bbmnq2raiBAEcwTBDIBS20iBc4VbBw34Om AlulAs4iT6H7jYZWif6+cQbttI6WOwZp2FN12pmENXnxaXrWJ1irKSXwUuv5sJx67B4bD tJv1PvpkCxCm+57HEh8+xHZTTMNDcYLvzaVQSqk07azNsB6VCbtrJmm6ahDQLOnNSWPfD LLL0hnWXjm5T39a791EzKZnvYENL6p7/fxTo46SUtRNpDb7+m8hFJrCDoB3+A+QHcbw== 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=MVxdc/7F1TOKjTJonn8D4o3wwud7hwGIKqhoUQQoGe8vjwuKliiJNDFY5Z3ykS1gWbl0 yY1LYS/zs9d/Ro1WK2Vf7rmpb6iHXgpGSIeQx9QpI07kn3CDQc3quXiUp/PtpP2/wj6U5 LUY/GP9FqMBb8vIuG46T3SNy3QU76ljucIe7Np+MHddh1+KMgqLRNbwQOq1JyMyAXeLZv KVVBFncIuYh4NpNQX3ib4IkHPVdzfe9dyBJNCWlUYICuOe1XnDKHmvxFiTj+uLZGY7492 Mf8QCDHITF5drDM6MWljlw6br6LqBIznh8TtfKO7LMOB6v4AKn+GsQD69+cVN2U3Q3w== 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.41 Received: from mail-dl1-f41.google.com (mail-dl1-f41.google.com [74.125.82.41]) (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 0BA39606A31C for ; Sun, 29 Nov 2026 23:29:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0BA39606A31C 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-dl1-f41.google.com with SMTP id a92af1059eb24-1b5ade5e0c1so1274811c88.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=Pji2WyK44lADo3axAwaAg86OBSxofD6xU1S9lQANbe5RkWuat5JR58Cu0Yub0GjP+7 3LXbyHFpto7Qpll96uDZiTmoVac89X04PoE5WL5QfGai7YY5h1zV/kz+tRnnAVOrxcql o2FyQpcemPSMFxx4SscV2/0zRZF94yEemgpeShH609k1siH3z3nG68i52VqcDSOxMq+N pr49txGBOi0pPFL4G7jeGnGYk6SkQl6Tp/SyUt3FST+JMZWrC91nw4MkmYTUWuSyMGyI U3m2LXmvVNQxD8ZF8N9WJuIbf3HzYL88vV3o8y+lWyRusTPt5u5ZWFRZIXd5jO6qdiQr OS7A== X-Forwarded-Encrypted: i=1; AL+hErGwVzqeilct2amKOUam90muy+xBBIt9PMjalFfaA+xa+Qn6lKRzr0Fk8nC1Q1hC66SwkMsPPz5HHDH980bv@vger.kernel.org X-Gm-Message-State: APuU4Z+MUgpz6VdF2acJ3KtBDuYBKEuSfF5eA8imWzlr3JVhou/O83MC 47ymTQ5rqV2ncbYfD9UE3SiWAX71CzjeJa+6K3iaUSat+Fa5C738Isjq X-Gm-Gg: AZFdTZc8qTJ5cboyS5Gx3tf5QaiQ1DHIfEO+Buevx0vXnYb8zDgQ3iIPsZIAWHoXcaw jLaP442VsWIWAh3qXyHWuSCR5kqtxsfY9/D7yKot2KMfcHfVTHNzE7wLyKPAbEZI7g+JFjLu9jD 7tmcRjDxwODrt9nVoqmSkbsoq+hlV5pqt8lBs4ZtyfL8cYERtLxbxK1bGPv3unmJLxOQ1Sojl1P JmJWHoVJbV5YEC3RnX6g4XD5fb2hJjmZ+XEFuOlV55TEniJ5Xv77VDFoJAtny5pgBcSECTjCR85 cDZenZa3nOlVADOZCEVBNXuw9S4Obtv1pgzJDDIGKlJ+eo9GeXIJPX7XpLaDIr7vf+8s3GtoNfY QpODVsxGArp6paTqDxMv/jT5IG4gloIfjRlocYe+54b71WU6TBW3q0/6t6ObQ6vLfCd27/zc7nN JFpCzMFghBMwoCiVG3zdZZdfvf+5DuQmWgcUmpKYx+hv5FvOZOU5GMxJtU2okQsMzSL/IlrPk4B udvwJuC0+MY8vd+N5wO6npd3Ity88GO0dXAvz0F4d8vLUANam/p08S06YFoVWKfTXMSKOkRB+af k5EII9ZJ6WtfJc4id3NlcPsyOdNa4FIIVpfInw== 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-arm-msm@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