Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6050037rwl; Mon, 9 Jan 2023 03:38:47 -0800 (PST) X-Google-Smtp-Source: AMrXdXvBY/vq1A2NSFz/t4DEj1fVe7Vl/BwID2pjEMpltXjie5SK5fAj7SOmJz9GS4Xs5ehb3mUt X-Received: by 2002:a17:902:aa96:b0:18e:8223:6447 with SMTP id d22-20020a170902aa9600b0018e82236447mr63087207plr.22.1673264327553; Mon, 09 Jan 2023 03:38:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673264327; cv=none; d=google.com; s=arc-20160816; b=fX50lfmfupXVPTCjBYtBUpXOFmO+KB78AlCyVtXEhkkwaieOLVxnQ5RN7TsctnygOT VZcuThqpjCj45EronsbBb1z9laaRSZcjYplJspy5rpRmaxir8yOQzFalRTq1tMHx02PQ rNNySvDp6EnRgyqHnmzrXfdXVc+/ci2xx53pSHddZwvLJHmG1rknZU4VHjXkHVjRpGyU aEqtjlEqdOckCgn6jRGRwH+wl0RGcKQYjjNRrUdePy7CQFjMhamXxE52641DMLNQ6rbX Dcoutbonz191X+ZQoc2W+VyyrJ9yPZkdikUCvEo7NEyjfTeTDBYQJrheW5YQ0O4isWu5 fZlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=SJaNDBmXWNIX/5WxDjJt8tvXBJXPLtMyz7fSw+ERNXo=; b=tGlbUlk3UayB9WUSZvYnks2IWbkgwVchsH3RUSKTkfaksYyX46SD5ho7oDJxcDSHRL FYJvMpIMhlYUTcu68OBEUSYwXT7/vlJqPsjZkQTT7jfKl2dW2mVv/4FFQOvzUlIx32C3 r105Vb/qUWAQXD0uJpY5dnt5ULi3XjLOzBb80wj+MHgbCpiI9sdMAJS6FruMoH81pZqh 2PZT973nzp5f85uTpBHqOxT4iQHXSkK+8WGz3pOBbWvTNImqU6kMGyJ2k/uGC/TmR3HQ KWcP/4MqovcD0doAE4HVVLZaWm64lvBLOWvPEepyTgplcgD+d0qJYJZ7bLIJN8/rOvkb N0YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=I4DJgybr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u1-20020a170902e5c100b00189b279b8d3si9882898plf.45.2023.01.09.03.38.41; Mon, 09 Jan 2023 03:38:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=I4DJgybr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236750AbjAIL0r (ORCPT + 53 others); Mon, 9 Jan 2023 06:26:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236943AbjAIL0a (ORCPT ); Mon, 9 Jan 2023 06:26:30 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A133C183A8 for ; Mon, 9 Jan 2023 03:26:29 -0800 (PST) Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id B08936602D06; Mon, 9 Jan 2023 11:26:27 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1673263588; bh=eKJGPDGPsYgrZbdxBcghst0mxz5CKz2aEmqkcsFMp14=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=I4DJgybrdIjRLeS4QFB7meP/vAkmLJN70/VBJI1/OhW5BJTVhmCyMP3VL4GF7Moj8 a9XUTsyt2ElGO8U6/lQDZ4R/ccAvcryCWG4rYQgsRuFSEWVX6X/bf5nDu+gKArEj1G jkylAl/Fy4EnC6e5Mh50HvrYlzJEBfN5QB5Y3IoYWcVO5YDfFbtL4cp/J+iq9ysU4b mXGEsh97WiYCwqrPVZHgVa3ekJyAmz0dclzk+GipxatfRm6AaVxBXsb/YFUnniEvIb NQ/8nHRXRZLMmfAa++YM+NBs0ikvpBphHVvFz2GXCRkxsepS51H7ov8B9KebeP+fSS LIc6YNjFG8J4w== Message-ID: Date: Mon, 9 Jan 2023 12:26:24 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH 1/2] drm/mediatek: dsi: Reduce the time of dsi from LP11 to sending cmd To: xinlei.lee@mediatek.com, chunkuang.hu@kernel.org, p.zabel@pengutronix.de, airlied@linux.ie, daniel@ffwll.ch, matthias.bgg@gmail.com, jitao.shi@mediatek.com, thierry.reding@gmail.com, sam@ravnborg.org Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Project_Global_Chrome_Upstream_Group@mediatek.com References: <1672974321-18947-1-git-send-email-xinlei.lee@mediatek.com> <1672974321-18947-2-git-send-email-xinlei.lee@mediatek.com> Content-Language: en-US From: AngeloGioacchino Del Regno In-Reply-To: <1672974321-18947-2-git-send-email-xinlei.lee@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Il 06/01/23 04:05, xinlei.lee@mediatek.com ha scritto: > From: Xinlei Lee > > According to Figure 16 Turnaround Procedure on page 36 in [1], you > can see the status of LP-00 -> LP10 -> LP11. This state can correspond > to the state of DSI from LP00 -> LP11 in mtk_dsi_lane_ready function > in mtk_dsi.c. > > LP-00 -> LP10 -> LP11 takes about 2*TLPX time (refer to [1] page 51 > to see that TLPX is 50ns). > > The delay at the end of the mtk_dsi_lane_ready function should be > greater than the 2*TLPX specified by the DSI spec, and less than > the time specified by the DSI_RX (generally 6ms to 40ms), to avoid > problems caused by the RX specification. > > [1]:mipi_D-PHY_specification_v1-1 > > Fixes: 39e8d062b03c ("drm/mediatek: Keep dsi as LP00 before dcs cmds transfer") > Signed-off-by: Xinlei Lee Reviewed-by: AngeloGioacchino Del Regno