Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2689382pxa; Mon, 17 Aug 2020 16:45:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzz4AN1f4W8DuZpRr/VbVL6i8NHMp8kDDZkR0HsgklSRGQEYY3E2Ln4dVBM6V+gTapWqDdx X-Received: by 2002:a17:906:3715:: with SMTP id d21mr17042176ejc.281.1597707942326; Mon, 17 Aug 2020 16:45:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597707942; cv=none; d=google.com; s=arc-20160816; b=FFk4WhuSLDHVCO8Vu6GitwwYlEZo3gXChtp80CgGK4m8cNGDHBfo/2wXJt7mkoRDkb +rPdV1wrILfbPz6TqeHsUtIj65EFpQhMB2h5jwxUv9aZhk7nMCCBLjy5tfarVwwwmveZ KdGY6nqHQQs6n40GPXDYhH7zGszs2ZEEHvdAH/8pHC09iaVyrkMS4cKqj5LUEQ87M0iN jVhNDlAjtTfb/KYvlNPIBuQMnAcoOQZ247GtnDOhDP2XbR5LX6Hdqck3Vw8saOPliA9Y eyiwJb50S2rx90mQd4sy0cyoFtwwIjrKAV7FXLIIwk8f8RghjJqKiDji7RBQEkOcH6bP ZMJQ== 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=beGKLqHoNAJXbO1d6/4gHrLMgObKYSV5AUZiDCpnENk=; b=gfkcHgadY3eJ6ql13G1Cv9OIFCACEPuxlwgkhMvanrbxf10dF0xfyb7CXCulZ9Gvml fTgUC92n5fWn6NsPl3ahAE7GUwh6kdBGSNLlWDVeOFAPfVsXP9MLx8GDCpZZ8EbftBCP UMxkEjYMWMkiasWU+2e5HVo4l5CmmPMDrIKYCZ+X/r76VmK660pF7pxBQj9krzSNB0oo fBPU/071vOWUHlQxqFjDEgCnjzih4V/8fvwsvisCHtJbj6C54Z4Gch60o0+m1vwVxCXY AAtBMoK0jTy6kDe2NxTXToUp+xsBMC+rk2K4/w6lpkx0Lo1/hiChskoGryyI+tXog1by RHKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="jc/vz+UQ"; 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 v19si12003156ejf.83.2020.08.17.16.45.18; Mon, 17 Aug 2020 16:45:42 -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="jc/vz+UQ"; 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 S1726876AbgHQXm5 (ORCPT + 99 others); Mon, 17 Aug 2020 19:42:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:33812 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726365AbgHQXm4 (ORCPT ); Mon, 17 Aug 2020 19:42:56 -0400 Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (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 8693F2072E; Mon, 17 Aug 2020 23:42:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597707775; bh=x2x17PXByjmc5GL+cpiiMIiGtoeX2KrAjZvn4MxGmjM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=jc/vz+UQzZaY3RWlTnKJ/1TkiZZistwAP8D5Rbr8gGMvQbCioL9ezZGWDCLTThzMQ I5yeRps1Ms1E0aACHi+zxzWiY6evzagCBlM0RQAdSbsnhAHBIiYPfeCGeWc7+3eOqs dR1K0IcG7QqNsmy+9iOB1VtJ8Sl6Xkug3njoTXFI= Received: by mail-ej1-f43.google.com with SMTP id jp10so19918105ejb.0; Mon, 17 Aug 2020 16:42:55 -0700 (PDT) X-Gm-Message-State: AOAM533+bJjEgTqAcpo1nZ2COO7AFuTb8WGdmgRyuKBHHG1Fk6mjC0aa TUjKmE21vn1y50E7QApIp2CobQiRmshgzSJ15Q== X-Received: by 2002:a17:906:d92c:: with SMTP id rn12mr16958911ejb.187.1597707774145; Mon, 17 Aug 2020 16:42:54 -0700 (PDT) MIME-Version: 1.0 References: <20200817130640.18021-1-jitao.shi@mediatek.com> In-Reply-To: <20200817130640.18021-1-jitao.shi@mediatek.com> From: Chun-Kuang Hu Date: Tue, 18 Aug 2020 07:42:38 +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: Jitao Shi Cc: 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: Jitao Shi =E6=96=BC 2020=E5=B9=B48=E6=9C=8817=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/mediate= k/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_ds= i *dsi) > horizontal_sync_active_byte =3D (vm->hsync_len * dsi_tmp_buf_bpp = - 10); So this subtraction 10 is correct? Regards, Chun-Kuang. > > 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_b= uf_bpp; > else > - horizontal_backporch_byte =3D ((vm->hback_porch + vm->hsy= nc_len) * > - dsi_tmp_buf_bpp - 10); > + horizontal_backporch_byte =3D (vm->hback_porch + vm->hsyn= c_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_bp= p > > -- > 2.12.5 > _______________________________________________ > Linux-mediatek mailing list > Linux-mediatek@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-mediatek