From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1F230606A322 for ; Wed, 2 Dec 2026 11:41:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=r/aASQ5Y; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=YxKc/KVr DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=4GwzWwAbcO3PmvA8yFBEUmUc4K7n8eEZyzPiOHNJBrw=; b=r/aASQ5Y/5p2F0Pf/PN5uz3Ct5 bRxRbVIiJhfsq+NCfZHsOg3VgKRz7rmbASo54ArcblfowigU+CuktLDfVDfIsuxv20ski2cdYA35y I/+mrNy5rYytd3aZNDnqPLJUcs05cVHAEteKY3J/sKBjSZ2atTCqkBRwIXGl5vAPbRbE9xkLbNYhK mHUrdpYhP21Oa4b2JVxuNxhAHOab5z8mnFXUcHvTCRtvHSLZeVQ76XkXLpvIOl5oDyF2HnSb0TobZ j5ql1SvBVwxPURUE294grI8z4ZhKy5+AsXHObPnkjFuw+N7JvXbgvbjKfZd7ut+tVKabQKlFPQN4G QHalpy7A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYiic-0000000BLUb-2Irl; Wed, 02 Dec 2026 11:41:50 +0000 Received: from mail-pj2-x0a.google.com ([2607:f8b0:4864:39::a]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYiiZ-0000000BLTN-3d0O for linux-phy@lists.infradead.org; Wed, 02 Dec 2026 11:41:49 +0000 Received: by mail-pj2-x0a.google.com with SMTP id 98e67ed59e1d1-3b509dc9d79so1366328a91.1 for ; Wed, 02 Dec 2026 03:41:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796211706; x=1796816506; darn=lists.infradead.org; h=mime-version:content-transfer-encoding:content-type:references :in-reply-to:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=X56bzjTqyGmZuluCEVMYXskdJ0C3OmvHEUgFFRTsorQ=; b=YxKc/KVrfKXKHgDhuBEy8K6XxuVwZZlqcVPLeJ6nm1kZCxjiGvjfvESOrBZkuNmZ60 vWkkIM8DI6Cju35x6dJ2/bfzRZmCLoB5Y9g2NLAsJkT1CUsoii9wkXNpD08cfLh85+p1 W/59vvkFdFLf5aecKDSKll7B0i5u97ikZxygDzMvF4o3b4he/n8shRxWraveFsBC0hLx GWjJuB610CNvsAAxDqi/4IsQ1AQ+3jGpyBmfepYDTboaK63bLXS9iGqQqn/kmZiPRhN1 EFWD9c0oqTw66XyXr5Oz45ie0E927kyvX+5us+T+5gTXDuA4KyVbyVnf9ob22tInrhMn gJtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796211706; x=1796816506; h=mime-version:content-transfer-encoding:content-type:references :in-reply-to:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=X56bzjTqyGmZuluCEVMY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9l2BgVg+RRNujjIqKg+cX72KUYoyEIbYktTO1VLffaWzc5SVi4am5e2U202M YPje6gBJ412PqS66wZO+zGCu0enxrfBqS6zoThBJ0Zz0T0KkY/1YQkTpXNCtptgNWijggWZns4D GRZlNMdlyqqaGBy4+m1mZ19hdvCHwmEXQumQWT3ezbTAz/UP4LNAsQCH9BJzPw== X-Received: by 2002:a17:90b:4d11:b0:3b4:d00b:d0b3 with SMTP id 98e67ed59e1d1-3b4d00bd2cemr30988086a91.51.1796211706077; Wed, 02 Dec 2026 03:41:46 -0800 (PST) Received: from localhost ([2403:2c80:17:1e::2032]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b44b8c2fcesm23931138a91.4.2026.12.02.03.41.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 03:41:45 -0800 (PST) Date: Wed, 02 Dec 2026 19:41:37 +0800 From: Cody Kang To: Encrow Thorne Cc: David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Yixun Lan , Troy Mitchell , Vinod Koul , Neil Armstrong , Manivannan Sadhasivam , Haylen Chu , Michael Turquette , Stephen Boyd , Brian Masney , Philipp Zabel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Yao Zi , Uwe =?utf-8?q?Kleine-K=C3=B6nig?= , Guodong Xu , Icenowy Zheng , Jerome Brunet , Sarah Emery , Ze Huang , Dmitry Baryshkov , James Morris , dri-devel@lists.freedesktop.org, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, spacemit@lists.linux.dev, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-clk@vger.kernel.org Subject: Re: [PATCH v4 00/16] drm/spacemit: add SpacemiT K3 display support Message-ID: <98410ce2-7a6f-4645-9081-6dbf41da0164@gmail.com> In-Reply-To: <9931b8ab-7960-472a-a966-3599e3dce32e@gmail.com> References: <20261129-k3-display-v4-0-ce6cf7988202@gmail.com> <9931b8ab-7960-472a-a966-3599e3dce32e@gmail.com> X-Archived-By: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261202_034147_910919_F68309F1 X-CRM114-Status: GOOD ( 11.46 ) X-Spam-Score: -2.1 (--) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" X-Spam-Status: No, score=-0.8 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Hi Encrow and all, On Tue, 01 Dec 2026 19:33:30 +0800, Cody Kang wrote: > I tried your reproducer on the two monitors I have and cannot > reproduce it. I would be happy to talk with you off the list, to get > your logs and to send you a fix to test. A follow-up for the list. With logs Encrow sent me today, I think the root cause is clear: when the ViewSonic VX2762-4K-MHDU wakes from standby it drops HPD for about 1.4 s right after link training starts. The driver does not start AUX transfers while HPD is low, so the training fails. I proposed a solution of waiting for HPD 2 seconds (maximum) and train again in this case. Encrow tested the change on his four monitors, result pass, no regression, including that ViewSonic one. Here is a chart of what is observed on ViewSonic with this proposed fix (not to scale). The first two rows are a monitor without the issue (majority), to compare: ms 0 28 30 1438 1647 1653 | | | | | | HPD ____________________________________________________________ (majority) high all the time driver enable trains video on (about 50 ms) (with fix) HPD ____________ ______________________ (ViewSonic) |________________________| low for 1.4 s driver enable trains, fails waits for HPD trains again video on (with fix) For a monitor that keeps HPD high the fix adds no time: the wait returns at once and the enable takes about 50 ms, as the second row shows. Thanks Encrow for the report and the testing. Cody -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy