On Sun, 29 Nov 2026 13:01:44 +0000, [email protected] 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
