From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.171.202.116 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796417667; b=bV+x1lLpJizM3irf+IzFAbRvgh5E8ydzBGCjCeRaFyVQs/uwqUFxA61t56+aLqidv5Ui ca7/gCwuaz/1mU1cFLFoBqY0pRNszlffVtdfuABk/y5BzXl/cs9Yt7RG4xQv58P5ks+dL flY439m8XCDycfpgbyEfH3ogNx0c/JWo9bi/NVbTJMOfQLkQjTlIBVCBUujrjggMkunUQ 3AMecPv5kwUCqDL9bGXvJ1hmDXQDeUkWV6l1nP4TYhMu/0r9ltrHSA03AqsnKgkO45sJo TqqGj7k92k21bACkYS5Uz9LnGUR/xC3qDnqCRDpXWaKtRmYKm2wxp1OTPwsTsCMeDFw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796417667; h=DMARC-Filter:Received:Received:Received:DKIM-Signature:Mime-Version: Content-Transfer-Encoding:Content-Type:Date:Message-Id:Subject:Cc:To: From:X-Mailer:References:In-Reply-To:X-Last-TLS-Session-Version; bh=qNlT7EIqGw4xokEf0hDw5P4Kbs9iDbYS/bGPVnc/mVk=; b=OEHUou8f6KNHaTbNdQacT2csgiYmKw/RvLUi5975QuW+RpHGIUJs0VWLSrY5fWQXEXet O7hicFso44nyoVGmJKrfp966ankk8xzQGQPIsKzIhx/ntDgokbHqHr4U0Z9uIAUy11rUm t+ngQtD9kSbEm3d53c7PWWJTQZNaq4oe5DuXZpkGFysSN+tci9h3YscJ51p84jmNFadFk 17/M9ZutT0bjv8mtm1wIOkMknh45Tjge/NoU1CNFEjs8UbCz9FksR4gsHC77N1aXI6IMe us3yxHdk+o9qNcKNOWPqMWna/n9r4T8uU2CEAGBI/+8liXiXhqTs+SoA4WhGCaEcL9w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=CuHDhROY; arc=none smtp.remote-ip=185.171.202.116 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C1A7C606A32D for ; Fri, 4 Dec 2026 20:54:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C1A7C606A32D Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=CuHDhROY Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 4EA24C026DC; Fri, 4 Dec 2026 20:54:36 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 2E999603C4; Fri, 4 Dec 2026 20:54:24 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id E1C1C11EA1779; Fri, 04 Dec 2026 21:54:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796417658; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=qNlT7EIqGw4xokEf0hDw5P4Kbs9iDbYS/bGPVnc/mVk=; b=CuHDhROYh//5rVMUYASQ1hVc0aPtIrdc8Y6U09v2ZMt1Pzm4SC6dp0x57WZ9t6QjvWVPke b5gmevETuEt5N89zb85wx3FR4MFP0bHnX8lrkN8uckUeWPid2fxa+uAMVeCpCzKLW6uNqT ojlW5HgZumoUQtTeWFQCv2Hmyr/yau8Rv6kQx2P9hAoVkNhso88UHdUtLXKWdEtbWfPSow b/xYGkEf/bekcgFgM9q5NJe4rCTn5+l4DJmPD8iL55g6xFWmttgcVpGolg3PWy2B7f94qJ hqoYZNBtrRS7uPihLPxDTepr85CWZTtUKKV9dN3JLS/TFpn3xMVBsrToJclpoQ== X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 04 Dec 2026 21:54:07 +0100 Message-Id: Subject: Re: [PATCH v3 1/1] drm: bridge: ti-sn65dsi83: Fix DSI mode flags for stable LVDS output Cc: "Luca Ceresoli" , "Francesco Dolcini" , , , , , , , , , , , , , , , , , , , , "Teresa Remmet" , To: "Ernest Van Hoecke" , "Andrej Picej" From: "Luca Ceresoli" X-Mailer: aerc 0.22.0 References: <20261127124012.3664549-1-andrej.picej@norik.com> <3upzghkw3iuxw4xxwdhoiwrb4kzcrtsoneqv5o52stl6u6nwfz@y5ozjdsjskh3> In-Reply-To: <3upzghkw3iuxw4xxwdhoiwrb4kzcrtsoneqv5o52stl6u6nwfz@y5ozjdsjskh3> X-Last-TLS-Session-Version: TLSv1.3 Hello Ernest, Andrej, On Fri Dec 4, 2026 at 4:28 PM CET, Ernest Van Hoecke wrote: > On Fri, Nov 27, 2026 at 01:40:12PM +0100, Andrej Picej wrote: >> Hello Luca, Francesco, Ernest, >> >> On Fri Nov 13, 2026 at 9:15 AM CET, Luca Ceresoli wrote: >> > I hoped to get better info from Ernest. The commit looks correct so ch= ances >> > are that regression is caused but other bugs (incorrect timings, inacc= urate >> > clocks, etc). >> >> I see the same regression on another board, the PHYTEC phyBOARD-Polis >> i.MX8MM with the PEB-AV-10 adapter. This board also had a clock problem, >> but with that fixed, the display is clean without >> 4af021a97773 and glitches constantly with it. Details below, following >> your list. >> >> > * accurate description of what hardware breaks, with pipeline componen= ts >> >> i.MX8MM LCDIF (mxsfb) -> samsung-dsim (4 lanes, video burst mode) -> >> SN65DSI83 (single-link LVDS, LVDS clock taken from the DSI clock) -> >> EDT ETML1010G3DRA panel, DT overlay >> imx8mm-phyboard-polis-peb-av-10-etml1010g3dra.dtso. >> >> > * panel timings (or, better, panel datasheet URL with that info) >> >> panel-simple edt_etml1010g3dra, typical values: 72.4 MHz, 1280x800, >> hfp 72, hbp 86, hsync 2, vfp 15, vbp 21, vsync 2. >> >> > * exact kernel version (upstream kernel tag or SHA-1) >> >> v7.4-rc2 (9d66f26fefac), and Frank Li's imx/fixes (acba37c2e2df, based >> on v7.4-rc1). >> >> > * clocks used and measured on the lines >> >> Clocks read from the registers, not measured on the lines: >> - LCDIF pixel clock: 72.375 MHz (video_pll1 144.75 MHz / 2, set by the >> DT fix [1]) >> - DSI: 434.4 Mbit/s per lane (samsung,burst-clock-frequency =3D <4344000= 00>, >> DSIM PLLCTRL 0x0155541F), so the SN65DSI83 runs its LVDS clock at >> 434.4 / 2 / 3 =3D 72.4 MHz >> >> Without [1], the pixel clock is exactly 72.4 MHz, and the panel shows >> line glitches even with 4af021a97773 reverted (about 12 per minute). >> That is a separate, older problem of this board, which [1] fixes. >> >> > * difference observed before/after the patch on the cables and in soft= ware >> >> 4af021a97773 applied reverted >> without [1] constant glitches ~12 glitches/min >> with [1] constant glitches clean (50 display starts= ) >> >> The glitch is a missing line for one frame. The SN65DSI83 does not >> report an error (register 0xE5 stays 0). In software, 4af021a97773 >> changes the DSI mode flags from 0x2e3 to 0x283, and DSIM_CONFIG from >> 0x1670707F to 0x1610707F, so the HFP and HBP blanking packets are >> sent. >> >> > * any other detail of your investigation >> >> I think, but I'm not sure, that the HFP/HBP packets don't fit into the >> line time, because the DSI link runs at exactly 72.4 MHz * 24 / 4 =3D >> 434.4 Mbit/s per lane and has no headroom. As a quick test, a 724 Mbit/s >> link with the SN65DSI83 DSI clock divider changed to 5 by hand was clean >> with 4af021a97773 applied. That can't be set up properly without the DSI >> link-rate negotiation discussed for patch 2/2. >> >> Unlike on Ernest's board, disabling burst mode does not help here: with >> patch 2/2 applied on top (DSIM_CONFIG 0x1210707F), the SN65DSI83 >> reports CHA_SYNCH_ERR (0xE5 =3D 0x80) and the driver resets the pipe >> about once per second. >> >> [1] https://lore.kernel.org/all/20261127093953.3541816-1-andrej.picej@no= rik.com/ >> >> Best regards, >> Andrej > > Hi Andrej, > Hi Luca, > > Thank you for your detailed report and investigation. > > I finally did some more testing on my side as well, and without a revert > could not get past this issue, exept for hiding it with a longer HSYNC > period. I could of course increase HSYNC but in that case I would expect > other panels to be affected as well. Thanks both for the analysis work. Andrej's report is very detailed, but sadly it looks like there's no code that works for all cases. > Therefore I sent a revert patch with all the details Luca asked for and > some more investigating: > https://lore.kernel.org/all/20261204-sn65dsi83-revert-v1-1-8c20f86fa254@t= oradex.com/T/#u Thanks. I'm looking at it. Luca -- Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com