From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.227.138 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796252493; b=WS6YK4ZgRhOG0yXpZ+mjTsxrbOwGS/JnYpquLgCoJSwIvRTRIIkxsZmb2EcAJi+4fhvC GynE6URyEwnZHvstwWWQ+oHEF/sXdor/svxBjUZeXa14wlAItA6SOviVRJ659o6dLJ1uF E0c86kfEbCYw+sEoD1MAn8Z0K2WSxjylMmuQtT9JqEGlb36Y9miS5gdOdn6zXUnGtLD4c FyNeS9nCpGROnYPwkxTAhBGOUWwhlM0CJcLOWYg/1Cf56bohHfoka6M5v62xDCX0x8QVI qmfaG0wfynHYhQPAmAR8J9RED9nzUw0ilWdnUUB2HUXgGEmEPaIknvpxOx9fUIS3r/g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796252493; 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=BUO6OhCunXc7Ptnx5tqN8AOtl0361xB+DwM4LOfrQDI=; b=bdta/WIjuiGGq2YTKDxeG0zkU3bvjxXSR0ca6b2YsSRuk5kJUs8YPPec/+gd8ACJ0xjv mI8dVfaRD+JGDuMQFLqHNE4Zq2PGPoq3bgVa+QrzOkMxBJKzwHp2W2TdNMWG+9L80iTeh tXOTx44IQN69RwPbPcun1U7LEuo7kCw3ldk4p1U8109AR32bSAC5vTBKGB1DigEwascPs tKgiaSYwgrRbgplOAGBFVzMAj4L+TJM0huKjOwUu0Sa7iL+2LGAR+64a7LUZHHX0wGWGX K7REPC6hXHqH4ixSPaAnir69NIFhvLxUvgeGizsIBNy9aUDJoErPhrvVZxyWMQI28BQ== 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=FUkmqvIO; arc=none smtp.remote-ip=74.125.227.138 Received: from mail-pj2-f10.google.com (mail-pj2-f10.google.com [74.125.227.138]) (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 611A9606A32D for ; Wed, 2 Dec 2026 23:01:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 611A9606A32D 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=FUkmqvIO Received: by mail-pj2-f10.google.com with SMTP id 98e67ed59e1d1-3b3bbd46625so3885082a91.1 for ; Wed, 02 Dec 2026 15:01:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796252492; x=1796857292; 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=BUO6OhCunXc7Ptnx5tqN8AOtl0361xB+DwM4LOfrQDI=; b=FUkmqvIOK62kCBrJtAqdVYun+iTDZIeBN4XOlOMWCnulrW2Dm1dseZmcunjxg1InFf WSjAGprhvvjqQejBEyNhK2C/j6HEMpL2wzYNtroZNefLRZfJD4OTMb9960CjhNpAusSr u//m9N9IUOkY62LrxlyZ0UWdLLd15a3vD+Xu6jVQkwH9cNk3w2eaEV7oc5WhvDJLigPE cbKxhF4yvA6DqNgSWR1rYnreoQIsPecpmWXnRyFQnG4cd4yfkKDnLHiKx8XvXTShN6A/ kVzcHcQ+aIwCjqBwjrdgjMGPz6iSjSe0bWSJ/AD9bOTUTVoJCZu80fmS8+VYXSmOM4yH oGqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796252492; x=1796857292; 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=BUO6OhCunXc7Ptnx5tqN8AOtl0361xB+DwM4LOfrQDI=; b=voSZ04KolgFCk8yQ0laT0ZWigxwP1cJALh8uJJueVQKE27crDU8yHLdEWTyHmOvzPF RIhverQPZcCxFGbR9PiNCP2PYdsJGasNsIFzBiyG+0f4nUG4UTVi0gDKm8LpZasz3LJH 5/j0EVHnMat1S+7pQVG0caiqNAF15VO2VfozXZaTGg1ota7ZZ71YpRtnpQhJKv+BEnKx 6ABJ56pZ74QYEMBjuOHK5ZPKKuwW8gKzfS6TsKZNJFQ6mAWx2X5I7Breplzq0Y376XhT tCr4XbdmFUH3Rgb2K5xyJaZBvLg6uHX4cqEm89h2r00LqWy821lWVw4tTorFmgoi7vZG rWvA== X-Forwarded-Encrypted: i=1; AL+hErEk9KXl+XQbw6yD1ItfDHeVDjF6uEultJS8Aa/OqWbucW9rfFB5OfHtjH7Cw5fV35ZmqWKp9cidE3Q=@vger.kernel.org X-Gm-Message-State: APuU4Z/B/ogus1LNESP6ezNXwL3ZDtvwRuSJKA/GTGRei89HFZEBICuv cZ0rWj1dNHxUazpxICPFMZqXHofQlGwacSiJ6+f42pqHosNGsWhL+rgX X-Gm-Gg: AZFdTZf/cmNhGoDIgL6g7aF2LKEjYICJF7Ucy4z7/NgJn9sYMur3+6TdCa+nvW+1374 Q5PHp3GJMDEXUifxsdhJjZEBRfb6D8djGGTTbh+LgVr1BzlqX7fgNJiteCoUutA2EeuQ9VS284I CfxsXvpiQ6HO7u18d4xwnGr4Goe+SMxKtF90SrLtS9F2ac4QAgXhVmtcfD4s3tg7bWEGc05iSHy DZjbXJ5B92HXwgmXa3ZhCwe5i/yTcjxUoQvHXgcCkZs1JbknvhauNI1jshFxliQWV+hTKKNuF6b iXU2MoLM3d7SZigXX2TVQIzKtySQN2OqL+oSdMZ0Bvls8VYRe+Msx4SH4pADPVgHBqErM1q3vWH Tvv/XvjTHLKdirOIv20Yqv4m78ExbDI4soQfNN0JOwJWy0nkkq2sNJ4W14fWHBB+hf2EcJ9xcwv xLHQyhMizrDoPPoJOXUw3c//Tz/5zg91mF7xp04Zc0csK1iLEjSqoQUTBKkdUEcL8e5KcwFC3UB JMHCUf4/SwrcXnM1gw+y32XbXlLwo/8qJpI+NXhTBstBS8RGh6Jrvfui8OKmZCWDLKIyJgIbo7f rZCdQmg3pEiU7UuMcviTwKMEtRayaGBBxhg= X-Received: by 2002:a17:90b:5109:b0:3ac:97bc:4c98 with SMTP id 98e67ed59e1d1-3b41c9bc501mr40098841a91.64.1796252492440; Wed, 02 Dec 2026 15:01:32 -0800 (PST) Received: from localhost ([2403:2c80:6::1032]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b5c79a37b1sm1192782a91.16.2026.12.02.15.01.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 15:01:31 -0800 (PST) Date: Thu, 03 Dec 2026 07:01:27 +0800 From: Cody Kang 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 Message-ID: <57710dec-1ecf-4bb0-a2c0-b7a5488738bd@gmail.com> In-Reply-To: References: <20261129-k3-display-v4-0-ce6cf7988202@gmail.com> <20261129-k3-display-v4-11-ce6cf7988202@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 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