From: Cody Kang <codykang.hk@gmail.com>
To: sashiko-reviews@lists.linux.dev
Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
linux-phy@lists.infradead.org, linux-clk@vger.kernel.org,
robh@kernel.org, conor+dt@kernel.org, vkoul@kernel.org,
neil.armstrong@linaro.org, olteanv@gmail.com
Subject: Re: [PATCH v4 11/16] drm/spacemit: add Innosilicon DP/eDP controller bridge driver
Date: Thu, 03 Dec 2026 07:01:27 +0800 [thread overview]
Message-ID: <57710dec-1ecf-4bb0-a2c0-b7a5488738bd@gmail.com> (raw)
In-Reply-To: <sashiko-outbox-239616@kernel.org>
On Sun, 29 Nov 2026 13:01:44 +0000, sashiko-bot@kernel.org wrote:
[...]
> [Severity: Medium]
> Should spacemit_dp_link_priority_table[] also include
> {SPACEMIT_DP_LINK_RATE_5_40, SPACEMIT_DP_LANE_1}?
Will fix in v5: mode_valid() will take its limit from the table. I'd
rather not add a 1-lane HBR2 entry without a sink to test it.
[...]
> In addition, when dp->link.use_rate_select is true on eDP 1.4, neither
> spacemit_dp_bridge_atomic_check() nor the loop filter in
> spacemit_dp_bridge_atomic_enable() verifies that cfg->rate is listed in
> dp->link.sink_rates[]. If a panel lists 2.70 Gbps in
> DP_SUPPORTED_LINK_RATES without 1.62 Gbps, atomic_check() picks 1.62 Gbps
> and atomic_enable() power-cycles the link, programs the PLLs, powers on
> the PHY, and writes DP_EDP_CONFIGURATION_SET before
> spacemit_dp_link_train() rejects the rate with -EINVAL.
Won't fix for now: it costs one failed bring-up, only on a panel whose
rate table lacks 1.62 or 2.7 Gbit/s, and I have no such panel.
[...]
> [Severity: Medium]
> Does a single timed-out DPCD access stall for 6.5 seconds, and does
> spacemit_dp_link_train() double that stall by ignoring -ETIMEDOUT from
> drm_dp_link_power_up()?
Will fix the second part in v5: the training stops when the D0 request
times out. The AUX timeout itself stays.
[...]
> [Severity: Medium]
> Does !drm_dp_read_sink_count(&dp->aux) treat negative error returns as a
> connected sink?
Will fix in v5.
[...]
> Also, if spacemit_dp_hw_read_sink_caps() fails (or if
> spacemit_dp_bridge_atomic_enable() clears dp->link.max_rate and
> dp->link.max_num_lanes after sink_lost), dp->dpcd is zeroed while
> dp->connector_status is still latched to connector_status_connected.
> Later detect polls while HPD stays high see dp->connector_status ==
> connector_status_connected and never retry spacemit_dp_hw_read_sink_caps()
> even though dp->link.max_rate is 0.
Won't fix: the capabilities are read again at the next enable, where
they are needed.
[...]
> [Severity: Medium]
> Does returning MODE_OK when !max_link_rate || !max_lanes bypass the
> clk_round_rate(dp->pll_clk, ...) check, and does the else branch fall back
> to un-narrowed dp->dpcd values?
Will fix in v5.
[...]
> Also, when spacemit_dp_bridge_atomic_enable() zeroes dp->link.max_rate and
> dp->link.max_num_lanes after link narrowing is exhausted or the sink is
> lost, dp->dpcd is not cleared, so the else branch here reverts to the
> full un-narrowed capabilities from dp->dpcd.
Won't fix: it shows only after every training failed or the sink went
away, and the next enable reads the capabilities and narrows again.
[...]
> [Severity: Medium]
> Can spacemit_dp_bridge_atomic_check() and spacemit_dp_bridge_mode_valid()
> race with concurrent updates to dp->link and dp->dpcd because neither
> acquires dp->mode_lock?
Not a bug: the DRM core holds the encoder's bridge_chain_mutex across
these callbacks, and detect runs under connection_mutex. v5 takes
mode_lock in the two callbacks anyway.
[...]
> [Severity: High]
> Does pulsing DP_PHY_RESET in spacemit_dp_dev_init() wipe the PHY PREPLL
> registers while the clock framework still caches 148500000 Hz?
Not a bug: DP_PHY_RESET does not touch the pixel PLL registers. They
read the same before, during and after the pulse on the board.
[...]
> [Severity: Medium]
> Does registering dp->aux before spacemit_dp_dev_init() expose the AUX
> device and I2C adapter while the controller and MPLL are uninitialized or
> being reset without dp->aux.hw_mutex?
Will fix in v5.
[...]
> [Severity: Medium]
> Should spacemit_dp_bind() skip spacemit_dp_hw_detect_hpd() and the second
> spacemit_dp_dev_init() on eDP?
Won't fix: the second init is what brings the controller up again when
the DPU binds again without a new probe. It costs about 150 ms per
bind.
[...]
> [Severity: Medium]
> During driver unbind on eDP, does spacemit_dp_remove() ->
> spacemit_dp_unregister() tear down the component and PHY before devres
> depopulates the DP AUX bus?
Will fix in v5.
[...]
> Even without a racing deferred panel probe, spacemit_dp_hw_disable() exits
> the PHY and stops the MPLL AUX clock while the AUX child panel device is
> still bound.
Not a bug: the master unbind has disabled the panel by then.
[...]
> [Severity: High]
> Does clk_set_parent(dp->pxclk, dp->pll_clk) always fail with -EINVAL on
> K3?
Not a bug: the names match the clock patch that Jerome Brunet applied
to clk-spacemit (see the cover letter). drm-misc-next does not have it
yet.
[...]
> [Severity: Medium]
> Can calling spacemit_dp_hw_disable() in spacemit_dp_shutdown() run
> phy_exit() before the DPU master device shuts down its KMS pipeline?
Will fix in v5.
Cody
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
next prev parent reply other threads:[~2026-12-02 23:01 UTC|newest]
Thread overview: 36+ 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 ` [PATCH v4 01/16] dt-bindings: display: spacemit: add K3 Saturn DPU controller Cody Kang via B4 Relay
2026-11-29 12:36 ` sashiko-bot
2026-12-02 13:07 ` Cody Kang
2026-11-29 12:32 ` [PATCH v4 02/16] dt-bindings: phy: add SpacemiT K3 Innosilicon DP PHY 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 via B4 Relay
2026-11-29 12:38 ` sashiko-bot
2026-12-02 13:07 ` Cody Kang
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 via B4 Relay
2026-11-29 12:32 ` [PATCH v4 05/16] phy: spacemit: add Innosilicon DP TX PHY driver Cody Kang via B4 Relay
2026-11-29 12:48 ` sashiko-bot
2026-12-02 14:42 ` Cody Kang
2026-11-29 12:32 ` [PATCH v4 06/16] drm/spacemit: add Saturn DPU register model 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 via B4 Relay
2026-11-29 12:32 ` [PATCH v4 08/16] drm/spacemit: add Saturn DPU hardware backend Cody Kang via B4 Relay
2026-11-29 12:49 ` sashiko-bot
2026-12-02 22:53 ` Cody Kang
2026-11-29 12:32 ` [PATCH v4 09/16] drm/spacemit: add Saturn DPU KMS pipeline Cody Kang via B4 Relay
2026-11-29 12:54 ` sashiko-bot
2026-12-02 12:39 ` Cody Kang
2026-12-02 22:57 ` Cody Kang
2026-11-29 12:32 ` [PATCH v4 10/16] drm/spacemit: add Saturn DPU DRM device driver 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 via B4 Relay
2026-11-29 13:01 ` sashiko-bot
2026-12-02 23:01 ` Cody Kang [this message]
2026-11-29 12:32 ` [PATCH v4 12/16] MAINTAINERS: add SpacemiT K3 display driver entry Cody Kang via B4 Relay
2026-11-29 12:32 ` [PATCH v4 13/16] riscv: dts: spacemit: k3: add display nodes Cody Kang via B4 Relay
2026-11-29 12:48 ` sashiko-bot
2026-12-02 13:08 ` Cody Kang
2026-11-29 12:32 ` [PATCH v4 14/16] riscv: dts: spacemit: k3-pico-itx: enable the DisplayPort output Cody Kang via B4 Relay
2026-11-29 12:32 ` [PATCH v4 15/16] riscv: dts: spacemit: k3-com260-ifx: " Cody Kang via B4 Relay
2026-11-29 12:32 ` [PATCH v4 16/16] riscv: defconfig: spacemit: k3: enable display driver 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 11:33 ` Cody Kang
2026-12-02 11:41 ` 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=57710dec-1ecf-4bb0-a2c0-b7a5488738bd@gmail.com \
--to=codykang.hk@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=neil.armstrong@linaro.org \
--cc=olteanv@gmail.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=vkoul@kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox