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=1nKg2270pPKpXYDMKFxaOBvsoWuxIvKiCmiVVDqnvKDTH2ov9aZA682vj2BZk3KkHq18 Bkm4rG0CyDFQOVGC6NZSbzDp7lOfzO90SLSJ7tX6pA8vAgTyyMq2WYdQMEI1fsJk7BhWr BOzvHnC6SDwsoSL4MAHIQom3SUpLBVQln0+D3cKWXTmNMCIcTZnzAhfTXDdrsqlNiaIy+ ne2b0vh484WukevV+8NT4U0BjVWy1/uV/28xRS9LQjmDnukxgfgjLkbPZCqOTscrM6kW8 kqFs+55PAHc/bQ+RzI/nWz13fvd84neFkxI8AcmEXJwRQoNfjcmrnGj3ZAlyn1qD8bw== 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=o9FNp6qYv7JGR+rbU+JbOPcbtfDjrHsIHLYkpizE7D8dT7EC12NLFCb3AkpndOcUceQa KttFl9YI/+0GPj/b0Ao4Ee9jwNvT7kuD55Ibx9hAVqTK0Lsos75MwdlbpsAKyWP1C8tG6 rr/66BCeuspiiRcysvWOj1XhzikAt5A5z/R7s4XDGPtDAptbUd+PBB/LCsIOdY6rDZCqY O0KZ7M/D/W/sxmL8YJoMYqunl5VCJUnI2QG3VoMGIekl2oKQn/xPpITxwwlMfcS+v7Bs5 uSN65Z8LtmTx6keMhu+bi8+NzPik2O0B4I7bFGVzgRk4kJsQOlKx5fHBJNMHMmHB9WQ== 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 B0300606A31A for ; Wed, 2 Dec 2026 11:41:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B0300606A31A 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-3b509dc9d79so1366322a91.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=R+cXyOoFyilxlJrAW0oB9DGFI+2do/I+zehGjDS6gem/6ino44Yl1AI2m/HQRKB6GF mKQFWfK8QC1X9IxPSMXsghcJo8MvASvWN4hj6Ie1Z+eF2NFB4DVdxCFqgNz9+XpV/bzz A0Qjjua5aB5TsUOh0Nlevx65gQiSOuP1CatHiB+tcdBhmFme5uUg7Ye+R+/De+F1J2gB ykWUfMzrCRdPX+T+u7L/91F3qxWEgNARaNL5ZWER8o8EdeGER15e1lqY/9iKCCif9E+l mNiNGOjPEldQl/RFhc0drXJf4eHdTK+q7VAlxduJWTA1apjFUbRWKBL3fzVUFUqcnq48 JfSQ== X-Forwarded-Encrypted: i=1; AL+hErEQlDxREy1IcUpmDTudnsob6wxIdqgQcS3juW/S6mtS3paKZmSHj7y44262uWDE82Ukk0miIOCaJzc=@vger.kernel.org X-Gm-Message-State: APuU4Z/WlnaEvD2IzX17GnpzF7LTHsHw3HbOqc67hf3FVe9CwNrJ7rQ0 mztk2yF9NiVRXHP8kpN/6IlOdUXsNHkI+Lhm4i37oSdHw5c6nEuKfxic X-Gm-Gg: AZFdTZdXuIqkZOP5z20ObcpXnWqoj4aia3C2ObhYKR4ohWygzUro9bCatslPJiceq3z XJkNT6DXnABcF7ZWPtvSKdbSR8v9Ly2S5mbjUrhSbvhTwjqDlEHv5HVcF2a8lekx/y0huNLxk1T 0HeZKGYbAWWIpxGqGwftAZCeSLxYdrqGQNsJFuivQd+zehF8ldwwUaevjhZamMAbFFQnCwmJGLl PhyWNSNA2DsF9aMzCtLJRPgFlMQiuh9gk4zRZUCrsCGXkrWGR8NUxZa45YXFWhK/bBcuBBBKZ1q aN8TtEZeasiodjfRSPdm+nRaSsayP6qrGDQJl3Yf4lyFLpSCKCrY2VHbR2db9wkf8SbzBQ1rmxu +0o1aYRMwCtttr+i45tggfNf8gnUTC/QFdTXwAsW5PgSJ+TmIGfPtEkit4TpaKLOOfWyyE3IStH w+l4NXYGXqEdkrICvJtFAv0fMfp3NzdBQ+FUPgIrYSIkrDz070KwThE3fsYz/9/ixEOECrVotwf dWhM4ndMc0ujHKKY1+M1zGxUrXvCHahvlmb50pSBe7dm8hgjpmx4AZnPw6H9UnvQNcPsLs04Eu/ mfHGp0nE1XJWhRM2L+ZNOe8VxO1AHHTH5Va0/EkAJIbc76ESVP0rO+yI5fTZ0A== 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: linux-clk@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