From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.246.85.4 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796417746; b=CCIxG9qITEbswKc904bEpETv5wGV/pmDdxTdtHv/NIdwgbkPqhGoGgxLKaKX5ILmcvML uoKrpkILCVt42HzF4dTxXD4IKjB2gSE7YeYcXnEldF7AD1LLQBZNlVOzA92E/MX/9v8GX mHE4I/YTQaCRUcTy1MiIqeFqcoLxmiIbcU1qzlECDho93fVKi3YfAmCEpqD3L+oLzw3PY ijnWpeb3gStJMHgfU4aP1wEbxk8/AhcgoUc9XAqelZsY+HhUUo6SQ7/OjLSU9qEjjNvEB Tq60R9JO/skbmr1IsIUgUAupfe5EAeZCLjNwbo/o12c5JWT4LD1ZocXA8WkU98Y9ocQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796417746; h=DMARC-Filter:Received:Received:Received:DKIM-Signature:Mime-Version: Content-Transfer-Encoding:Content-Type:Date:Message-Id:Cc:To:From: Subject:X-Mailer:References:In-Reply-To:X-Last-TLS-Session-Version; bh=x4uW8Ogj2zWKRM0omRiAIkvV08ZTIBlurYkO9E/lbCg=; b=Je2HzW6EfkGi2iamqPg0nax0LJ9jtLLwbnk8yW/gw5ILOGZ880rMnrFFW5Nl7TD02SUs 0IepH1Je0FYV6MXjOZifGpLFdZ76tBnH+iQf9Dh6kWkpmfSH6d6soYcB442F2aEeyb1vH EEAs2jqeKoLTaR1gX7VNJhjpw6no6xc2JzgXmcdUfvUpfJcpIOnNzL079YeA22fXrdxBN 9nyRRYSGMOByx0d8Dicq8Zzsyw1FnkyERnfBBfibH8ZLZ1h+/oCJ3eS+IZimX3zrx0m6J TvROw40w/2ItWrxDCXnICLzuwDre4h8dFCniLa3PmsEAhu34FjuKPp03XC7LphNEVPg== 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=AY+XesSo; arc=none smtp.remote-ip=185.246.85.4 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) (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 7309C606A322; Fri, 4 Dec 2026 20:55:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7309C606A322 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=AY+XesSo Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id 045EF4E418A0; Fri, 4 Dec 2026 20:55:44 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id CC85C603C4; Fri, 4 Dec 2026 20:55:43 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 7B59911EA1779; Fri, 04 Dec 2026 21:55:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796417742; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=x4uW8Ogj2zWKRM0omRiAIkvV08ZTIBlurYkO9E/lbCg=; b=AY+XesSoTQVQfopPsxTfnbTnBf2gW4vS8MFK+kHoquVe2VrFHUW9XFKnxrpKfr2mbADIsI sfY7HZ4MZ/cd/Zn+jeF43kZGGA7ra3EJmz9pG5Ccd+bid811pzlWqgBTbXrandigMW10j/ xAdOLpDA7eEW5cMz+ZG3MvFXs5HW3uYjxRSCIMDFuPAeirzOlHNBSgcBVPQw5MgMQRaYin v+l7KAyyYutTy+IW9d4QB6H3euxwADZ6OwE5yYJn66O4DQTx48qd1hOpqTKtudYG2ZeaA7 e4tuCIMVBpqPqBEFFodmK1oztFV3pJ4MrsQGCkIldjbn6q/r54EvcofgQUnQug== X-Mailing-List: stable@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:55:35 +0100 Message-Id: Cc: "Francesco Dolcini" , "Marek Vasut" , "Alexander Stein" , , , , "Ernest Van Hoecke" , To: "Ernest Van Hoecke" , "Neil Armstrong" , "Dmitry Baryshkov" , "Luca Ceresoli" , "Robert Foss" , "Laurent Pinchart" , "Jernej Skrabec" , "Maarten Lankhorst" , "Maxime Ripard" , "Thomas Zimmermann" , "David Airlie" , "Simona Vetter" , "Sudarshan Shetty" , "Andrej Picej" From: "Luca Ceresoli" Subject: Re: [PATCH] Revert "drm: bridge: ti-sn65dsi83: Remove NO_HFP and NO_HBP mode flags for LVDS stability" X-Mailer: aerc 0.22.0 References: <20261204-sn65dsi83-revert-v1-1-8c20f86fa254@toradex.com> In-Reply-To: <20261204-sn65dsi83-revert-v1-1-8c20f86fa254@toradex.com> X-Last-TLS-Session-Version: TLSv1.3 On Fri Dec 4, 2026 at 4:24 PM CET, Ernest Van Hoecke wrote: > From: Ernest Van Hoecke > > This reverts commit 4af021a97773 ("drm: bridge: ti-sn65dsi83: Remove > NO_HFP and NO_HBP mode flags for LVDS stability"). > > Since that commit, the DSI host sends HFP and HBP blanking packets (mode > flags 0x2e3 become 0x283). On a Toradex Verdin iMX8M Plus (LCDIF -> > samsung-dsim, 4 lanes, burst -> SN65DSI83 -> Riverdi RVT101HVLNWC00 > 1280x800 LVDS panel) this makes the image unstable. Andrej Picej sees > the same on a PHYTEC phyBOARD-Polis i.MX8MM with another panel [1]. > > Results on drm-misc-fixes (4d6d0a4639a3 ("gpio: tc358762: fix reset gpio > handling")): > > pixel clock hfp/hsync/hbp vfp/vsync/vbp before reverted > 71.1 MHz 36/24/64 8/8/24 broken OK > 69.3 MHz 72/32/64 15/8/15 broken OK > > Pixel and DSI clocks are exact, with DSI at 6 x the pixel clock, as read > from the registers. For 71.1 MHz, the video PLL is preset to 1066.5 MHz. > Without that, clk-pll14xx picks a 4.55 GHz VCO, which adds occasional > glitches of its own. The SN65DSI83 reports no errors (0xe5 stays 0). A > longer HSYNC hides the problem. Dropping NO_HSA or zeroing HFP in > samsung-dsim does not fix it, and dropping BURST does not fix Andrej's > board [1]. > > The root cause is unknown. Andrej found that a faster DSI link works > with the commit applied [1]. Luca noted that the commit did not fix his > or the author's panel either [2]. Restore the previous mode flags until > then. > > Fixes: 4af021a97773 ("drm: bridge: ti-sn65dsi83: Remove NO_HFP and NO_HBP= mode flags for LVDS stability") > Closes: https://lore.kernel.org/all/3hfae2i2i2toxbo7hg2if6pztaswgnfj65xfm= 2c4ofljc6jhua@slaqoewn4mxq/ > Reported-by: Andrej Picej > Closes: https://lore.kernel.org/all/20261127124012.3664549-1-andrej.picej= @norik.com/ [1] > Link: https://lore.kernel.org/all/DINH3J2SM26P.3KE6GE9VPB1OC@bootlin.com/= [2] > Cc: stable@vger.kernel.org # v7.3+ > Signed-off-by: Ernest Van Hoecke Thanks for all the analysis, and for the links to previous discussion, they will be useful when someone will try to tackle this issue again. I still don't see any obvious way to have code that works for every case, not at the moment at least, so I'm afraid we'll have to revert. Reviewed-by: Luca Ceresoli -- Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com