From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.227.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796211707; b=A5Opj+jlY11mznXIWjA6FEjpipNnWiNX5lYAIFDcuv+atv8ha/B8POX5EUG4FbHP2+sO FZAeMvnbhEWorRBEpzILau8vMShMHbRMzACuZh2fTcpHmyfCyVNowwwhx+mVh/dONJWxn hp5WzCLyLGPug+ZR/wEq0UIZUtk6lvqlXy4bjjtBdKR8Mkac3khcEPdtRkyQgXOIOJWbj 0Yl8UhdHu+bQZiEELGjOnM9ZbMylFZeOQ2awcxZJcQY/FjJ2gNcuLTiSSOTZ0avHY9SyJ Iw6JHnDNg203jWCP+xh8OkPBfHz++T3QhZqqV9bbhYHLhy8DeScBT2bG9E+yTBGuqTg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796211707; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: Content-Type:Content-Transfer-Encoding:MIME-Version; bh=X56bzjTqyGmZuluCEVMYXskdJ0C3OmvHEUgFFRTsorQ=; b=0oIo89ZoWNnFqvQnSrPmSHgtDwNnwD/FaGqyosxHegTREaQsjn6p31JebNbhxJXOv+N0 GXIIQUwlE/+jzUoTUw1F/lXqLrlgfIYwK7ETYjmLnwCbc7910Af2DVCJlp6bS74YkTEDa 2Wqlxs74EFaS9DKnpzZJANdU4GaYJRpsVfvYl+6ybET8BBD3o7eWQFunwdaqFs7OtZt9U 5+Qg/W8vcuTH/EkYZWMxWWxMXL71pH1kdLAeJLg+XfiwZ4mEh84ddAlaoYcY7jtqL/W5J +OXmQImZrY/ZKbQFaSqjGJqOhIOlKQe28HHS3iv2MAwHg6lL3s6Unx0lvhoGnJSngdQ== 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=mKKpWRet; arc=none smtp.remote-ip=74.125.227.131 Received: from mail-pj2-f3.google.com (mail-pj2-f3.google.com [74.125.227.131]) (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 B595F606A322 for ; Wed, 2 Dec 2026 11:41:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B595F606A322 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=mKKpWRet Received: by mail-pj2-f3.google.com with SMTP id 98e67ed59e1d1-3b509dc9d79so1366325a91.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=vger.kernel.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=mKKpWRetPb+7Ne/vvUnWc3n/H6QLGv69qvRkkvoFlPP46CBy8MV1qcDHFSXakHCrYP cOTx2Wks790HrxfL0gu+0Pm4jnnc89/3VptLK4tqWuP7TItekUKNLpU664edpPFBJn/9 mmlB+CU7VdvfGs95JNmwVHoAojXCA/A86N11oauTphzqh1HnvLuMEcEum5p6b81GE9hJ m00aWrYrgZbLxDkUQBIQSg9CHehpm3qOWq6MMRqCsVIwzvP1Kbe4xxCOSPLQImptydaU LwmkQhQXS0jjrSHH4PnkM8ckFrR+JpPnR3lmX7O6O+UevLrIKrgWS3Li22KXuQvJJxuY YMWg== 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=X56bzjTqyGmZuluCEVMYXskdJ0C3OmvHEUgFFRTsorQ=; b=FMAxy5X3GEo6cJcQ3MvWLrs4EDHrI4u+oOLUzspa2QFi8iCRKzAykSgI+F8kBfuSML 5ZAJCnXWPz+P9R/9b7HtQLkvCbw/ulBiFCwQM1y4rRq4PZ5Oux7YaeqQfN/Sniumonc2 CK6Xu8EKx99aajGTXYm6tRe+umSmiI7usr2JuLaYaOjLKpOplQyeyKn7PC4Ej1w9Z+L5 mxJx0MlKWFdLLowSxzWKnLF/JPd3sD4fMDkzMUPKJJSgTGGyNjDH9vuFrftbxvd5nBj/ i8zB2z+qFgqzIOQ/JcqRf7g8wxIb9tn8hEbVfj1RuvFDpj5tcJPCmnlnLv9ujahx8WYU ycOw== X-Forwarded-Encrypted: i=1; AL+hErFRDrO9sY+Ea0V0oGVs+MeFztCgI18fL/y2sFDAnLU8D7ANzoYFKlTfxML6KA1TiqQvtsk/BjI5xsOv@vger.kernel.org X-Gm-Message-State: APuU4Z+Lkihe0tug2MfdoWqndXHaAQuGS+rfLkknHdhZZtiiryFJMY9D u8hxK9AcmlZPTziWQ+ipe8R2leoxqEoseT2Cr9Q4ExF6H7jylk8yQmI+ X-Gm-Gg: AZFdTZcukAb7DtTtraUKjjnpbO3aQhxxoEAfAJxmt9XxolWCyA8ch2O4lNl7MXPda6M 9GENJs/yzNaCO4slf7Y3Y+LikH45aTYIYwJJNqGEPdGoOGlXD4LXcnduqfRnYWTxp2BX23yixSM kqevbPv0LI+09otFuwg1JiTOT1BZs8LD9SzUCoyl5PNsV4kExsGrF4IDohCcsyoXFlH+U73O70i 2GCCjaEmrGb0TJrxc6Hbz7wGmPq9GGjnGB6TvxLtpzw0wkOP/mTHAij3ZwBIq33N8sbGnhg5llC vYJdjwhMxRtXCy7ipIvBiC34zlR1bnlyD4/2mIRsmZ1R/6YvnFFV4JnEuIW/jEpZusnANKep0as /V1cPt4ntmOGPUTvzEDplLOvKKOPsvv9Rx33umIFfJTVfoDXR+tBcscFpfsLhWQec/mPtoAodZR LTXJtZPu0LE2xMn2tJwEilWM/HjnX5fmwM9tQmSq3z9eH+49xDj90WOwyCzBpHARzeXgyUlynUv yd3KMSwxSmocBgxEG6AVMi29gmZL++dNKcnY+gvrXVPt0/n1YTl+6lb5UUWZ83IXjhH3pB/oztK oS8DrGu4Qw93iGo5Y5JDiAKEfFalCKPu6/sWcR9ivJ7DYZBaRI9WheGEPhErBQ== 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> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 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