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=XWsmTvoZxOcCV4y+ObLLMGTSpo2Q08gs4GLVFwCQbTkT7AOyo1pUXbRub7ELbSSt8Mnt WKluU22YHiWabp6HkzGzfI3LhYV8Xgas2GwvQ0/bBPa/DfcNCPqfIwlYenjVyXX2ohOtP xg9GC1T1TA5iGXPI7AGvCbK4Iv3+bs0MN+7M3W+pHqcXTGSiVEEjSsULs21ztEdVJ51UJ DLYFN3UaAPcJBH8R/fwZjgv/xENvgvUUPlD0/z4eDL0xdY56ICgBFJn7y2NygYU+XU8Pi ldKEDxJUW7rwGxTJOcdpfL2Lh6mi1qOLISFeo7j7IytUgeO5DNGkyx0ks7yXQ1w6gog== 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=JwmDjxzjOWOapG0/yT0OPoPp88lVs5SMAlyfJnMLGlR0OduhnXwvGJ0dGjUbXJqAOwRB 2KuAwndxzfNeu3RxfEzJMb4R51Eg4m4nOfyBJmmwp+beONddqEtXUuVaK/dn4n7xJtGdw jew9dkjbskZ6FU5S70xThifbjJxz970GH4ZW2U7V/WuvgSDYf/2HtSemI2f5cz84ATbkR /ePvlyzrUjMVDYvGyGgB88Mh7P1unUXcbRt2GVQuQ/Qt7wg2AGw4HPWp8xaYGHsRkxNbh yEq6fIu9ghYkr/XiW+Ka5oXM81YSfhqjjpND1gRSqYEV3d+C1ZJYgf8KmQJjBEFDSsA== 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 61139606A32C for ; Wed, 2 Dec 2026 23:01:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 61139606A32C 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-3b3bbd46625so3885080a91.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=vNc8UApIlFnIrZzGWh+KfWwQ0NsR/pCpCRd4VjgbQYN5C8d/OSavY+z5yQFXv8HTYp xfcXVLsJWzOhrdZcL6pYamTfnvOp7UIX+5wxThsIN/OJays1uYJbyIt755XfX/HrqT7D 58+sDsUla+dwXDKLP83CphsfDimP37egJMQjGx4Tr2w+FVNFG38PTttbFqYx1lVm4rcf MmPkSeW4C4hvxVbGrihXJl9aeehgQEvxHgvt+N0rou3loxKvZjdMZx5TnKJUi5d3up2A kqtonUOTY7MYVcLCABjknQKc+/vaCbETUMVnOf+QomUAmYVeGmMMHmuyt197P0rlc14H 8S2g== X-Forwarded-Encrypted: i=1; AL+hErH52yNnx4HRuuYtsRXbR/GnPQUaJsZVohQ7Q1wL//niFDHjXh7NFdI0WAd7ZrTLzQff3ubO16OK6BCe@vger.kernel.org X-Gm-Message-State: APuU4Z9Sz9PGc5dTu1VdQ8jeTgr/nNgJK4zxwnvH+5LxLZW0s5ypdO98 LHDWidtGaLQFni5HM0lF2ZOCWxo2JlyLqRgVQj/+InNri4sva/v84fpq X-Gm-Gg: AZFdTZdV4ho3IRZZyx9FO4f2EipgyIQeJkuDXxK+ATtU99eJBYwAApAAbP57NRqx8WR o2E/C3haSS/2fOdakqy9TQYEf0xscVwp+6/IHX1qzs6pwUSgA7J8IN7BdiXK+Il/FXCxw5z8gac eK3NC3Z6cb01W2ywPTHDfefYAhazkMSTFPFdX7oQZJNvo0ACiDE0kSHX4doKQ+ctYgm/LvJfRCi WxouaXHQ3Fm4FGveNn/VIUOB1WcFktJV1ZH2obhgg2ID9Hjk0zzVOE96DfS3ERPq2U5rhkXAfnI H4QGBGe2sk0syeWmmUBwNC4R0j5jif6Iqm55oyF3eKEhsxgL7mefo2MjTO0znwQXPtXtnd/tQqY Vx/LKjJb5HbWPJYyihDneVu6juuujeTEzmYGAlu207Cy9yvVyHt4LX8JTEc/DZIuRF3apP1DMyp LQCTScpveBPH5Zt6HRxEeqBHCJqyHIYA9TAsD4ghhJUVFVJsh7gT8DW47gMBEObR0stDFIqTB8m pW4q/6MnG8tx0kCPKJnXPhUI6+JPaz0w4mqHBCh0ntmiHpEkHw3JVV+1dfCqxsa9LMGLg45Ylbr 5bWU/atl2+ktPxenEiaXWTeKrqib0kCEus0= 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: devicetree@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