Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3997977pxb; Tue, 25 Jan 2022 01:01:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJxUK90dWI+eT63f5e1eGhY/DLgfHguyFHnToOKXOE26pM4C8hXFoVQ+U5WjGLSLa0sB3Jhj X-Received: by 2002:aa7:888c:0:b0:4ca:75a3:aa1c with SMTP id z12-20020aa7888c000000b004ca75a3aa1cmr4381940pfe.65.1643101281276; Tue, 25 Jan 2022 01:01:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643101281; cv=none; d=google.com; s=arc-20160816; b=cklrF7Z1PAFPcHayPcquwRLQ/P07m4zZPRJNuxT1isG0M3roca7X+jpe0usK2zd8Qc excvim7XrQhllvl5VpFfRXlNHO0WigmslhF1ZrEqWSJFbyl2GBnYanOi++mEdMQ5MBTt ZPWtWfU4PAxIwKsCqnl1O3Zn0ZyAYtwaNcYAFQ38aInM5x5s1T90OU/xVPzBF2SESp44 Ut08fsLYY10UNppJqEIkyohZS9ku4Kz5zwRM+qj34TuVhS3TDhpV30Rm08MEbZckgtGl JtexhdnbPx23ni8tm7Url/gjM3LQd2VFFDR34ctBJkFi9wonBo+AO7Q1SNwjTN+dPvgM DdtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=TrPlfAnLd+LcvrhgeT2Vm7W6FqQIn1qmESvHBPe0RFY=; b=PBFwGf+i5MkCrmEVu+4iRsaMkqeoloiyJkAXO7DRWi191msrdtL/TWaGtQz8PykNV9 Vh6sOad41Xf7oLl2lhTI1qCWx9M4f2U0WXDY7ZvNsMDisKZwXMQwfGCtFxN9GlFMW/KD BS0FUFtLPObKhVH1yzf05XRiqnCpaH3L9lNDcNIpz8byp7kJZ7ClXCFDLvpgn0FQAdGp PwW5vByzd+RQyMTxbfGNJyArLCgJ1qDIqUAivgcVDAx3hyet4zwNjZnfTXF0BIZ1wxmj vY1AxAsN+BS6qQiqT6h25Nfmvz179oSgVqwspNtlL3sYbXZU8LXSrKJ8VuUW2jeoRjyS Jiww== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gp6si1480884pjb.153.2022.01.25.01.01.08; Tue, 25 Jan 2022 01:01:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354937AbiAYGjx (ORCPT + 99 others); Tue, 25 Jan 2022 01:39:53 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:43604 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S235725AbiAYEOU (ORCPT ); Mon, 24 Jan 2022 23:14:20 -0500 X-UUID: a2a6d46c09b64833a8323eb7983dc749-20220125 X-UUID: a2a6d46c09b64833a8323eb7983dc749-20220125 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 841969054; Tue, 25 Jan 2022 12:13:59 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 25 Jan 2022 12:13:57 +0800 Received: from mtksdccf07 (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 25 Jan 2022 12:13:57 +0800 Message-ID: Subject: Re: [v10,1/3] drm/dsi: transfer DSI HS packets ending at the same time From: Rex-BC Chen To: Andrzej Hajda , , , , , , , CC: , , , , , , , Date: Tue, 25 Jan 2022 12:13:57 +0800 In-Reply-To: References: <20220119022543.26093-1-rex-bc.chen@mediatek.com> <20220119022543.26093-2-rex-bc.chen@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello David and Daniel, This patch is including modification of include/drm/drm_mipi_dsi.h. Could you give us some suggestions for this patch? Thanks for your big support! BRs, Rex-BC Chen On Wed, 2022-01-19 at 09:34 +0100, Andrzej Hajda wrote: > On 19.01.2022 03:25, Rex-BC Chen wrote: > > Since a HS transmission is composed of an arbitrary number > > of bytes that may not be an integer multiple of lanes, some > > lanes may run out of data before others. > > (Defined in 6.1.3 of mipi_DSI_specification_v.01-02-00) > > > > However, for some DSI RX devices (for example, anx7625), > > there is a limitation that packet number should be the same > > on all DSI lanes. In other words, they need to end a HS at > > the same time. > > > > Because this limitation is for some specific DSI RX devices, > > it is more reasonable to put the enable control in these > > DSI RX drivers. If DSI TX driver knows the information, > > they can adjust the setting for this situation. > > > > Signed-off-by: Jitao Shi > > Signed-off-by: Rex-BC Chen > > Acked-by: AngeloGioacchino Del Regno < > > angelogioacchino.delregno@collabora.com> > > Reviewed-by: Andrzej Hajda > > Regards > > Andrzej > > > --- > > include/drm/drm_mipi_dsi.h | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/include/drm/drm_mipi_dsi.h > > b/include/drm/drm_mipi_dsi.h > > index 147e51b6d241..51e09a1a106a 100644 > > --- a/include/drm/drm_mipi_dsi.h > > +++ b/include/drm/drm_mipi_dsi.h > > @@ -137,6 +137,8 @@ struct mipi_dsi_host > > *of_find_mipi_dsi_host_by_node(struct device_node *node); > > #define MIPI_DSI_CLOCK_NON_CONTINUOUS BIT(10) > > /* transmit data in low power */ > > #define MIPI_DSI_MODE_LPM BIT(11) > > +/* transmit data ending at the same time for all lanes within one > > hsync */ > > +#define MIPI_DSI_HS_PKT_END_ALIGNED BIT(12) > > > > enum mipi_dsi_pixel_format { > > MIPI_DSI_FMT_RGB888,