Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp32756pxa; Wed, 26 Aug 2020 16:05:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfjSGjh8/kkV+Mb8+16vohU9T7zEN4aP1YleisI0hNlovf5kg5/nfsCgCvh+A5qeKAGIVr X-Received: by 2002:a50:aba3:: with SMTP id u32mr1249257edc.338.1598483119808; Wed, 26 Aug 2020 16:05:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598483119; cv=none; d=google.com; s=arc-20160816; b=GPTGUNFodnBblwCd8bx57Ma/O4Rad843lgWGYriz91/vn7o8jTPDi4NJtogEO8d9lW siEDoDouovj6khUscClUUoll2L94TlmPPXnl8sbvfm96vTtQIY2g89APsiAHKksoZqip 7C6bHvPCKA3bo5cYppBcY918jR7qTdhUr1PEjOEY/6Rv1/MRRa1XgRBpU/whhkFIw9Y2 uCZAWTDr9gGkreFbYy3wMfh8yTVMzPPpw14eeTE4IGrY+UV0yX1OEjKrkN8SAUd9XLp7 nfQYjcvKfZepNT6ZYWD1e2xGvhrA2XzPOwbJCIOFwH/+xAAw9JlBGIcZChJJrlYmPH/8 bUcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=9kt7TCRdFzPZeeFaPSanFTGLZSd0Xwox7ZAsVHz+cyw=; b=A1l4SKFyN+rW/EGXoY2dHt6aO6bWvrrFjreuRcbzK/CkTtb5mhEffy8b8Z9EvvdCya 6r1WnShczKApyyYLOLrqdxaEFlYq+GfB1F89TaKlkoResoim5ikq+04giyG72ATr8hLd VTGUR2D9JAtfI3BkUH4NBdbVN6hen8UmjCBzczWQoGQLYjT0TI5frOKdQz2JT2IG00a2 dvroZFZiLwSulQIhARuOMDa1AAUilBEjNqQz7uTbGsd8Z5rqL8bRSQQrEy9PEYNcpxhr 4nXAnP9SgZXrXP6lEHU4gmwb9oHV+2E+JojicMsdm4esQbkyu69Sv3qnItyYLHy2Sgnm nSzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=G52m6VY9; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n18si107665ejx.267.2020.08.26.16.04.56; Wed, 26 Aug 2020 16:05:19 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=G52m6VY9; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726834AbgHZXCM (ORCPT + 99 others); Wed, 26 Aug 2020 19:02:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:35582 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726238AbgHZXCK (ORCPT ); Wed, 26 Aug 2020 19:02:10 -0400 Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8470D2087C; Wed, 26 Aug 2020 23:02:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598482929; bh=bCjCScApoje+ayni77KRjV1QLUiQwwWxm8yIGtQ7Vaw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=G52m6VY9mQDjn1suTD9wsUR71Zs9dOK8EwRciblQDH2krnAbYoYN9K47Ha1vXoBkR bLBr7vyx5GEl5IoDbhLPfCZ2y3qvvrqv4XdXirpr0Fyi1VyVdcRlBdqZz9volySEBh HCmpmnOV3XTIw+ZwjNWOhKLv3H1g5R2W911R4tHw= Received: by mail-ed1-f44.google.com with SMTP id l23so3204532edv.11; Wed, 26 Aug 2020 16:02:09 -0700 (PDT) X-Gm-Message-State: AOAM532Y4/UXSweiyLG9UEb3+XALas24bIjzgxbF7Myl29RtC2yiaQeo iVdQ4wRj0wjdkGCDMcKAA2zaam9QRlKSmlTtww== X-Received: by 2002:a50:d71c:: with SMTP id t28mr6557897edi.148.1598482928003; Wed, 26 Aug 2020 16:02:08 -0700 (PDT) MIME-Version: 1.0 References: <20200817130640.18021-1-jitao.shi@mediatek.com> <1597718492.6381.6.camel@mszsdaap41> In-Reply-To: From: Chun-Kuang Hu Date: Thu, 27 Aug 2020 07:01:56 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] drm/mediatek: dsi: fix scrolling of panel with small hfp or hbp To: Chun-Kuang Hu Cc: Jitao Shi , Rob Herring , Mark Rutland , Matthias Brugger , Daniel Vetter , David Airlie , DRI Development , linux-kernel , devicetree@vger.kernel.org, srv_heupstream , huijuan.xie@mediatek.com, stonea168@163.com, cawa.cheng@mediatek.com, "moderated list:ARM/Mediatek SoC support" , Bibby Hsieh , CK Hu , yingjoe.chen@mediatek.com, eddie.huang@mediatek.com, Linux ARM Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Jitao: Chun-Kuang Hu =E6=96=BC 2020=E5=B9=B48=E6=9C=8818= =E6=97=A5 =E9=80=B1=E4=BA=8C =E4=B8=8B=E5=8D=8810:45=E5=AF=AB=E9=81=93=EF= =BC=9A > > Hi, Jitao: > > Jitao Shi =E6=96=BC 2020=E5=B9=B48=E6=9C=8818=E6= =97=A5 =E9=80=B1=E4=BA=8C =E4=B8=8A=E5=8D=8810:41=E5=AF=AB=E9=81=93=EF=BC= =9A > > > > On Tue, 2020-08-18 at 07:42 +0800, Chun-Kuang Hu wrote: > > > Hi, Jitao: > > > > > > Jitao Shi =E6=96=BC 2020=E5=B9=B48=E6=9C=881= 7=E6=97=A5 =E9=80=B1=E4=B8=80 =E4=B8=8B=E5=8D=889:07=E5=AF=AB=E9=81=93=EF= =BC=9A > > > > > > > > horizontal_backporch_byte should be hbp * bpp - hbp extra bytes. > > > > So remove the wrong subtraction 10. > > > > > > > > Signed-off-by: Jitao Shi > > > > --- > > > > drivers/gpu/drm/mediatek/mtk_dsi.c | 9 ++++----- > > > > 1 file changed, 4 insertions(+), 5 deletions(-) > > > > > > > > diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/m= ediatek/mtk_dsi.c > > > > index 270bf22c98fe..5d031e634571 100644 > > > > --- a/drivers/gpu/drm/mediatek/mtk_dsi.c > > > > +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c > > > > @@ -473,14 +473,13 @@ static void mtk_dsi_config_vdo_timing(struct = mtk_dsi *dsi) > > > > horizontal_sync_active_byte =3D (vm->hsync_len * dsi_tmp_bu= f_bpp - 10); > > > > > > So this subtraction 10 is correct? > > > > > > Regards, > > > Chun-Kuang. > > > > > > > Yes, It is right. > > > > In the cea861 and dmt spec the mini hsync is 40 pixels. > > So the vm->hsync_len * dsi_tmp_buf_bpp >=3D 120 > 10 > > > > OK, so > > Reviewed-by: Chun-Kuang Hu > Applied to mediatek-drm-fixes [1], thanks. [1] https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux.git/= log/?h=3Dmediatek-drm-fixes Regards, Chun-Kuang. > > Best Regards > > jitao > > > > > > > > if (dsi->mode_flags & MIPI_DSI_MODE_VIDEO_SYNC_PULSE) > > > > - horizontal_backporch_byte =3D > > > > - (vm->hback_porch * dsi_tmp_buf_bpp - 10); > > > > + horizontal_backporch_byte =3D vm->hback_porch * dsi= _tmp_buf_bpp; > > > > else > > > > - horizontal_backporch_byte =3D ((vm->hback_porch + v= m->hsync_len) * > > > > - dsi_tmp_buf_bpp - 10); > > > > + horizontal_backporch_byte =3D (vm->hback_porch + vm= ->hsync_len) * > > > > + dsi_tmp_buf_bpp; > > > > > > > > data_phy_cycles =3D timing->lpx + timing->da_hs_prepare + > > > > - timing->da_hs_zero + timing->da_hs_exit += 3; > > > > + timing->da_hs_zero + timing->da_hs_exit; > > > > > > > > if (dsi->mode_flags & MIPI_DSI_MODE_VIDEO_BURST) { > > > > if ((vm->hfront_porch + vm->hback_porch) * dsi_tmp_= buf_bpp > > > > > -- > > > > 2.12.5 > > > > _______________________________________________ > > > > Linux-mediatek mailing list > > > > Linux-mediatek@lists.infradead.org > > > > http://lists.infradead.org/mailman/listinfo/linux-mediatek > >