From: Cody Kang <codykang.hk@gmail.com>
To: Encrow Thorne <encrow.thorne@linux.spacemit.com>
Cc: "David Airlie" <airlied@gmail.com>,
"Simona Vetter" <simona@ffwll.ch>,
"Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
"Maxime Ripard" <mripard@kernel.org>,
"Thomas Zimmermann" <tzimmermann@suse.de>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Yixun Lan" <dlan@kernel.org>,
"Troy Mitchell" <troy.mitchell@linux.spacemit.com>,
"Vinod Koul" <vkoul@kernel.org>,
"Neil Armstrong" <neil.armstrong@linaro.org>,
"Manivannan Sadhasivam" <mani@kernel.org>,
"Haylen Chu" <heylenay@4d2.org>,
"Michael Turquette" <mturquette@baylibre.com>,
"Stephen Boyd" <sboyd@kernel.org>,
"Brian Masney" <bmasney+clk@redhat.com>,
"Philipp Zabel" <p.zabel@pengutronix.de>,
"Paul Walmsley" <pjw@kernel.org>,
"Palmer Dabbelt" <palmer@dabbelt.com>,
"Albert Ou" <aou@eecs.berkeley.edu>,
"Alexandre Ghiti" <alex@ghiti.fr>, "Yao Zi" <me@ziyao.cc>,
"Uwe Kleine-König" <u.kleine-koenig@baylibre.com>,
"Guodong Xu" <docular.xu@gmail.com>,
"Icenowy Zheng" <uwu@icenowy.me>,
"Jerome Brunet" <jbrunet+clk@baylibre.com>,
"Sarah Emery" <sarah.emery@canonical.com>,
"Ze Huang" <ze.huang@oss.qualcomm.com>,
"Dmitry Baryshkov" <lumag@kernel.org>,
"James Morris" <jmorris@namei.org>,
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
Date: Wed, 02 Dec 2026 19:41:37 +0800 [thread overview]
Message-ID: <98410ce2-7a6f-4645-9081-6dbf41da0164@gmail.com> (raw)
In-Reply-To: <9931b8ab-7960-472a-a966-3599e3dce32e@gmail.com>
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
WARNING: multiple messages have this Message-ID (diff)
From: Cody Kang <codykang.hk@gmail.com>
To: Encrow Thorne <encrow.thorne@linux.spacemit.com>
Cc: "David Airlie" <airlied@gmail.com>,
"Simona Vetter" <simona@ffwll.ch>,
"Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
"Maxime Ripard" <mripard@kernel.org>,
"Thomas Zimmermann" <tzimmermann@suse.de>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Yixun Lan" <dlan@kernel.org>,
"Troy Mitchell" <troy.mitchell@linux.spacemit.com>,
"Vinod Koul" <vkoul@kernel.org>,
"Neil Armstrong" <neil.armstrong@linaro.org>,
"Manivannan Sadhasivam" <mani@kernel.org>,
"Haylen Chu" <heylenay@4d2.org>,
"Michael Turquette" <mturquette@baylibre.com>,
"Stephen Boyd" <sboyd@kernel.org>,
"Brian Masney" <bmasney+clk@redhat.com>,
"Philipp Zabel" <p.zabel@pengutronix.de>,
"Paul Walmsley" <pjw@kernel.org>,
"Palmer Dabbelt" <palmer@dabbelt.com>,
"Albert Ou" <aou@eecs.berkeley.edu>,
"Alexandre Ghiti" <alex@ghiti.fr>, "Yao Zi" <me@ziyao.cc>,
"Uwe Kleine-König" <u.kleine-koenig@baylibre.com>,
"Guodong Xu" <docular.xu@gmail.com>,
"Icenowy Zheng" <uwu@icenowy.me>,
"Jerome Brunet" <jbrunet+clk@baylibre.com>,
"Sarah Emery" <sarah.emery@canonical.com>,
"Ze Huang" <ze.huang@oss.qualcomm.com>,
"Dmitry Baryshkov" <lumag@kernel.org>,
"James Morris" <jmorris@namei.org>,
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
Date: Wed, 02 Dec 2026 19:41:37 +0800 [thread overview]
Message-ID: <98410ce2-7a6f-4645-9081-6dbf41da0164@gmail.com> (raw)
In-Reply-To: <9931b8ab-7960-472a-a966-3599e3dce32e@gmail.com>
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
WARNING: multiple messages have this Message-ID (diff)
From: Cody Kang <codykang.hk@gmail.com>
To: Encrow Thorne <encrow.thorne@linux.spacemit.com>
Cc: "Guodong Xu" <docular.xu@gmail.com>, "Yao Zi" <me@ziyao.cc>,
"Michael Turquette" <mturquette@baylibre.com>,
"Sarah Emery" <sarah.emery@canonical.com>,
dri-devel@lists.freedesktop.org,
"Ze Huang" <ze.huang@oss.qualcomm.com>,
linux-phy@lists.infradead.org, linux-riscv@lists.infradead.org,
"David Airlie" <airlied@gmail.com>,
linux-clk@vger.kernel.org, "Simona Vetter" <simona@ffwll.ch>,
"Rob Herring" <robh@kernel.org>,
"Jerome Brunet" <jbrunet+clk@baylibre.com>,
"Alexandre Ghiti" <alex@ghiti.fr>,
"James Morris" <jmorris@namei.org>, "Yixun Lan" <dlan@kernel.org>,
devicetree@vger.kernel.org, "Conor Dooley" <conor+dt@kernel.org>,
"Albert Ou" <aou@eecs.berkeley.edu>,
"Thomas Zimmermann" <tzimmermann@suse.de>,
"Manivannan Sadhasivam" <mani@kernel.org>,
"Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
"Maxime Ripard" <mripard@kernel.org>,
"Uwe Kleine-König" <u.kleine-koenig@baylibre.com>,
"Brian Masney" <bmasney+clk@redhat.com>,
spacemit@lists.linux.dev, "Paul Walmsley" <pjw@kernel.org>,
"Neil Armstrong" <neil.armstrong@linaro.org>,
"Haylen Chu" <heylenay@4d2.org>,
"Dmitry Baryshkov" <lumag@kernel.org>,
"Stephen Boyd" <sboyd@kernel.org>,
linux-kernel@vger.kernel.org, "Vinod Koul" <vkoul@kernel.org>,
"Palmer Dabbelt" <palmer@dabbelt.com>,
"Troy Mitchell" <troy.mitchell@linux.spacemit.com>,
"Philipp Zabel" <p.zabel@pengutronix.de>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>
Subject: Re: [PATCH v4 00/16] drm/spacemit: add SpacemiT K3 display support
Date: Wed, 02 Dec 2026 19:41:37 +0800 [thread overview]
Message-ID: <98410ce2-7a6f-4645-9081-6dbf41da0164@gmail.com> (raw)
In-Reply-To: <9931b8ab-7960-472a-a966-3599e3dce32e@gmail.com>
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-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
next prev parent reply other threads:[~2026-12-02 11:41 UTC|newest]
Thread overview: 94+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-29 12:32 [PATCH v4 00/16] drm/spacemit: add SpacemiT K3 display support Cody Kang via B4 Relay
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:32 ` Cody Kang
2026-11-29 12:32 ` [PATCH v4 01/16] dt-bindings: display: spacemit: add K3 Saturn DPU controller Cody Kang via B4 Relay
2026-11-29 12:32 ` Cody Kang
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:36 ` sashiko-bot
2026-11-29 12:36 ` sashiko-bot
2026-11-29 12:32 ` [PATCH v4 02/16] dt-bindings: phy: add SpacemiT K3 Innosilicon DP PHY Cody Kang
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:32 ` [PATCH v4 03/16] dt-bindings: display: spacemit: add K3 Innosilicon DP/eDP controller Cody Kang
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:38 ` sashiko-bot
2026-11-29 12:38 ` sashiko-bot
2026-11-29 12:32 ` [PATCH v4 04/16] dt-bindings: soc: spacemit: allow eDP/DP PHY PLL pixel clocks on K3 APMU Cody Kang
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:32 ` [PATCH v4 05/16] phy: spacemit: add Innosilicon DP TX PHY driver Cody Kang
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:48 ` sashiko-bot
2026-11-29 12:48 ` sashiko-bot
2026-11-29 12:32 ` [PATCH v4 06/16] drm/spacemit: add Saturn DPU register model Cody Kang
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:32 ` [PATCH v4 07/16] drm/spacemit: add Saturn DPU core types, cmdlist and display MMU Cody Kang
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:32 ` [PATCH v4 08/16] drm/spacemit: add Saturn DPU hardware backend Cody Kang
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:49 ` sashiko-bot
2026-11-29 12:49 ` sashiko-bot
2026-11-29 12:32 ` [PATCH v4 09/16] drm/spacemit: add Saturn DPU KMS pipeline Cody Kang
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:54 ` sashiko-bot
2026-11-29 12:54 ` sashiko-bot
2026-11-29 12:32 ` [PATCH v4 10/16] drm/spacemit: add Saturn DPU DRM device driver Cody Kang
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:32 ` [PATCH v4 11/16] drm/spacemit: add Innosilicon DP/eDP controller bridge driver Cody Kang
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 13:01 ` sashiko-bot
2026-11-29 13:01 ` sashiko-bot
2026-11-29 12:32 ` [PATCH v4 12/16] MAINTAINERS: add SpacemiT K3 display driver entry Cody Kang
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:32 ` [PATCH v4 13/16] riscv: dts: spacemit: k3: add display nodes Cody Kang
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:48 ` sashiko-bot
2026-11-29 12:48 ` sashiko-bot
2026-11-29 12:32 ` [PATCH v4 14/16] riscv: dts: spacemit: k3-pico-itx: enable the DisplayPort output Cody Kang
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:32 ` [PATCH v4 15/16] riscv: dts: spacemit: k3-com260-ifx: " Cody Kang
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:32 ` [PATCH v4 16/16] riscv: defconfig: spacemit: k3: enable display driver Cody Kang
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-11-29 12:32 ` Cody Kang via B4 Relay
2026-12-01 1:36 ` [PATCH v4 00/16] drm/spacemit: add SpacemiT K3 display support Encrow Thorne
2026-12-01 1:36 ` Encrow Thorne
2026-12-01 1:36 ` Encrow Thorne
2026-12-01 11:33 ` Cody Kang
2026-12-01 11:33 ` Cody Kang
2026-12-01 11:33 ` Cody Kang
2026-12-02 11:41 ` Cody Kang [this message]
2026-12-02 11:41 ` Cody Kang
2026-12-02 11:41 ` Cody Kang
2026-12-01 11:26 ` Cody Kang
2026-12-01 11:26 ` Cody Kang
2026-12-01 11:26 ` Cody Kang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=98410ce2-7a6f-4645-9081-6dbf41da0164@gmail.com \
--to=codykang.hk@gmail.com \
--cc=airlied@gmail.com \
--cc=alex@ghiti.fr \
--cc=aou@eecs.berkeley.edu \
--cc=bmasney+clk@redhat.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlan@kernel.org \
--cc=docular.xu@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=encrow.thorne@linux.spacemit.com \
--cc=heylenay@4d2.org \
--cc=jbrunet+clk@baylibre.com \
--cc=jmorris@namei.org \
--cc=krzk+dt@kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=linux-riscv@lists.infradead.org \
--cc=lumag@kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mani@kernel.org \
--cc=me@ziyao.cc \
--cc=mripard@kernel.org \
--cc=mturquette@baylibre.com \
--cc=neil.armstrong@linaro.org \
--cc=p.zabel@pengutronix.de \
--cc=palmer@dabbelt.com \
--cc=pjw@kernel.org \
--cc=robh@kernel.org \
--cc=sarah.emery@canonical.com \
--cc=sboyd@kernel.org \
--cc=simona@ffwll.ch \
--cc=spacemit@lists.linux.dev \
--cc=troy.mitchell@linux.spacemit.com \
--cc=tzimmermann@suse.de \
--cc=u.kleine-koenig@baylibre.com \
--cc=uwu@icenowy.me \
--cc=vkoul@kernel.org \
--cc=ze.huang@oss.qualcomm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.