Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp893598rdb; Fri, 1 Dec 2023 01:04:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IGQSELUrfRMixUrM4Fbbl8SaZB2jhw2veHz/1O8c59oP+lMVXXJZhFqtSzMlmckEHohRB5P X-Received: by 2002:a17:90a:e7c1:b0:285:b8d2:cadf with SMTP id kb1-20020a17090ae7c100b00285b8d2cadfmr17617345pjb.5.1701421497422; Fri, 01 Dec 2023 01:04:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701421497; cv=none; d=google.com; s=arc-20160816; b=toTwgXcHr0MGo7rkW0/eUpYobZ3aCHDYZVM7Io3MFUx1L4Dw0+dl+0wDXfBA+QW4Fw KC7bFD227dSWOdyWzKP7H/1+jJ45PvT9CoL5EEnRKfi7lTXFJOgEt+Ud90UzayWPmE2C uzb0sUEPiA85h19y3QpMbVIomVkFLGWIUMqgxPvvKo+POMETcGNP+OvIBJHouSXAt40H Pvgs5hnGlhSdu7v2nvMK08R5ZMFBTdNMgA3LiwQl6WbVpXMi0v/kiU7WGf2PxiMuVtIT nD305CscrcYq8YErWsHjeJTOZMYHNI7Gsd01sDFSOFE+1S5SLDuXUPlH5eSm8zarSUuj uZ/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:references :in-reply-to:subject:cc:to:from:date:mime-version:dkim-signature; bh=y2pxCOVEh0mmIdOCzDoDfQqys6JTQG16Qj826BW2S4U=; fh=93uyQqiZv2ALiPja+cWZb3+D7EIiW+aiPXAPsKnUCu4=; b=0Y7q4rGr+Usvu9WGah0+bhcXB2NayD96BUyt2nax4eD1wtl/XZMe9+QmUrfg81eJtD La5KWzMnOmcvnUm6x/wdF6d+B0A6Z2kQmw/Tn1aBrH5BWz8HzpWCF1Ro8zypcTW0sx6B lThHPixy22Ee1DvPg1LReq+a2P5W4uONfSEgg45OD2CRJlf0IbXdpUgnTo+XbpHJRMlB 17KijxBaH3GvswJ9o4ZGhkdvQ1oO1Nc5qOF1tsz2j57VUyjW7SpV1dNSrGCJUGaCxYeP hrtXdrO2QfHpvNY9HMTXjuiVYR4w3wYCjFuS/h2GrVaSIKwO5k76vB4NaOmLHUBpVcQv 2/+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="d2/GeTv5"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id oe8-20020a17090b394800b002858a291a45si3275208pjb.141.2023.12.01.01.04.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 01:04:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="d2/GeTv5"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 2685B8526819; Fri, 1 Dec 2023 01:04:51 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377977AbjLAJEf (ORCPT + 99 others); Fri, 1 Dec 2023 04:04:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377855AbjLAJEd (ORCPT ); Fri, 1 Dec 2023 04:04:33 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A8F2128 for ; Fri, 1 Dec 2023 01:04:40 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 79AB7C433C7; Fri, 1 Dec 2023 09:04:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701421479; bh=atyrbWt1APFwyakv3t85xJ2Im36Fb7nRp4IPSv5aSwI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=d2/GeTv5fmEHAm0HeO/YrJA1NnZg9OhpV5zCEMH+MHmVcDU6/Ef1MbZTT4rY1SqoV PH1Hk/oTngCJ4CyyMr0B/NdOU5A20BzceTolDt+CUrAQLpFjikE++aMXjnM/U5kMeR T5LRPEjX4u5EqcVOLq+x69c46Slxx72iplptDgL9f9+DstJn3+Mwe1Qpu6gIiQpabj Jf1nB526Rso2bqW+f6WuFCAB3CNt8SJBtauBpKWwIL5tQdg5IokVf7KeijskhJomxt gdREw3LJkAF6rmQwe2VlQtRna/bDC2y0n4Ph2/BbTM99iRatOycPHyl12Zof0TwtCy /8ZJ/oU+/LsSw== MIME-Version: 1.0 Date: Fri, 01 Dec 2023 10:04:33 +0100 From: Michael Walle To: Inki Dae , Jagan Teki , Marek Szyprowski , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , Frieder Schrempf , Tim Harvey , Alexander Stein Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm: bridge: samsung-dsim: Don't use FORCE_STOP_STATE In-Reply-To: <20231113164344.1612602-1-mwalle@kernel.org> References: <20231113164344.1612602-1-mwalle@kernel.org> Message-ID: <631fe35a2a3b00781231e4f3f5094fae@kernel.org> X-Sender: mwalle@kernel.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 01 Dec 2023 01:04:51 -0800 (PST) > The FORCE_STOP_STATE bit is unsuitable to force the DSI link into LP-11 > mode. It seems the bridge internally queues DSI packets and when the > FORCE_STOP_STATE bit is cleared, they are sent in close succession > without any useful timing (this also means that the DSI lanes won't go > into LP-11 mode). The length of this gibberish varies between 1ms and > 5ms. This sometimes breaks an attached bridge (TI SN65DSI84 in this > case). In our case, the bridge will fail in about 1 per 500 reboots. > > The FORCE_STOP_STATE handling was introduced to have the DSI lanes in > LP-11 state during the .pre_enable phase. But as it turns out, none of > this is needed at all. Between samsung_dsim_init() and > samsung_dsim_set_display_enable() the lanes are already in LP-11 mode. > The code as it was before commit 20c827683de0 ("drm: bridge: > samsung-dsim: Fix init during host transfer") and 0c14d3130654 ("drm: > bridge: samsung-dsim: Fix i.MX8M enable flow to meet spec") was correct > in this regard. > > This patch basically reverts both commits. It was tested on an i.MX8M > SoC with an SN65DSI84 bridge. The signals were probed and the DSI > packets were decoded during initialization and link start-up. After > this > patch the first DSI packet on the link is a VSYNC packet and the timing > is correct. > > Command mode between .pre_enable and .enable was also briefly tested by > a quick hack. There was no DSI link partner which would have responded, > but it was made sure the DSI packet was send on the link. As a side > note, the command mode seems to just work in HS mode. I couldn't find > that the bridge will handle commands in LP mode. > > Fixes: 20c827683de0 ("drm: bridge: samsung-dsim: Fix init during host > transfer") > Fixes: 0c14d3130654 ("drm: bridge: samsung-dsim: Fix i.MX8M enable flow > to meet spec") > Signed-off-by: Michael Walle > --- > Let me know wether this should be two commits each reverting one, but > both > commits appeared first in kernel 6.5. Are there any news? -michael