Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp991562imu; Tue, 20 Nov 2018 09:54:25 -0800 (PST) X-Google-Smtp-Source: AFSGD/VbLs2Ug1Xp8uQZF1xANmJOfuyarcA0isbRVFf7d2B1RQl21AJ1+MxLqgEG5FhDTZWv0iy1 X-Received: by 2002:a63:63c3:: with SMTP id x186mr2814850pgb.330.1542736465811; Tue, 20 Nov 2018 09:54:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542736465; cv=none; d=google.com; s=arc-20160816; b=OQSY3UE2F2Z5JWFMAYbaWspv7hD2wAcXfppupS1SLMC/XM/FGFObo+ok+vmQknaunb Wv4PK8Zntu20fcp6SJC9sZPn6z7wfdbLWGPDy9kHaZz+7lAldIPsCGhp6OH+8oQBz/Ud m1QtlmsD6J7lQcFZFL9HOoyJg9TLH5+iiM+yZgcZ1Bm2/8NAzp5R5+aueHCUTrlcGC0V GUwndFca6zgumoaTb/h/b76HmYszUBS2KVwc+iiRGVXTnS4WkrBFjKRLJ/dlfSvdPKRI m/DpZ5LddddBpfy2nSCa2H0zSlIyo51EOb3WajMxaLk5FdyNXqkwMKzGMERNOUNvqvbo K7qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=I6ShPrOGdQPVSTiDMCmYzMPzABgbU6w7/cXlikYJ8BQ=; b=nNW7rM+S7mwx46Dj7jwT/yIPjy7E9rrju7vSbb6YyLtKMpVpoZxTmJCjhTJzjwpzPM q/HAIYvnsWEfFORRp5dLxspVdWUpmHz2LO8mi9LtE5mAvkGcDm0+RoUaNqAEkYHVsebO H9B6zpDiH4xxj6XZIi/nyHdK3gQZbQ99oPINm0QP1FZRFBshHypqO0RoAhrcFfUo+Mdm TkAcLgiar4Yas4ju6q5chSw4DYcWNhwbNdhQA7QPsr/8w9pC3lYDj3Vm+d6Jasnb7ShQ /4vjsTHtW23GNpBV7FWg584YDBeegyhnAkmuYgvq8YvNZYLuy/NcEYTTAga9ORwJ7en+ tO6w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ba9si5858803plb.109.2018.11.20.09.54.11; Tue, 20 Nov 2018 09:54:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730158AbeKUC33 (ORCPT + 99 others); Tue, 20 Nov 2018 21:29:29 -0500 Received: from mail.bootlin.com ([62.4.15.54]:34120 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729306AbeKUC33 (ORCPT ); Tue, 20 Nov 2018 21:29:29 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 0B91120F6A; Tue, 20 Nov 2018 16:59:38 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.2 Received: from localhost (aaubervilliers-681-1-13-146.w90-88.abo.wanadoo.fr [90.88.134.146]) by mail.bootlin.com (Postfix) with ESMTPSA id AEEC22074F; Tue, 20 Nov 2018 16:58:26 +0100 (CET) Date: Tue, 20 Nov 2018 16:58:26 +0100 From: Maxime Ripard To: Jagan Teki Cc: Maarten Lankhorst , Sean Paul , David Airlie , Rob Herring , Chen-Yu Tsai , Icenowy Zheng , Jernej Skrabec , Vasily Khoruzhick , Thierry Reding , Mark Rutland , dri-devel , devicetree , linux-kernel , linux-arm-kernel , Michael Trimarchi , TL Lim , linux-sunxi@googlegroups.com, linux-amarula@amarulasolutions.com Subject: Re: [PATCH v2 01/12] drm/sun4i: sun6i_mipi_dsi: Compute burst mode loop N1 instruction delay Message-ID: <20181120155826.j5rja22jnxpkmjrs@flea> References: <20181116163916.29621-1-jagan@amarulasolutions.com> <20181116163916.29621-2-jagan@amarulasolutions.com> <20181119082707.kbsw2gyntxxbh6no@flea> <20181120132357.xge6gkurjjjvwi2i@flea> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="q3rnoerzhd6vdmpz" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --q3rnoerzhd6vdmpz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 20, 2018 at 07:06:30PM +0530, Jagan Teki wrote: > On Tue, Nov 20, 2018 at 6:53 PM Maxime Ripard = wrote: > > > > On Mon, Nov 19, 2018 at 04:28:29PM +0530, Jagan Teki wrote: > > > On Mon, Nov 19, 2018 at 1:57 PM Maxime Ripard wrote: > > > > > > > > On Fri, Nov 16, 2018 at 10:09:05PM +0530, Jagan Teki wrote: > > > > > Loop N1 instruction delay for burst mode lcd panel are > > > > > computed as per BSP code. > > > > > > > > > > Reference code is available in BSP (from linux-sunxi > > > > > drivers/video/sunxi/disp2/disp/de/lowlevel_sun50iw1/de_dsi.c) > > > > > > > > > > dsi_dev[sel]->dsi_inst_loop_num.bits.loop_n1=3D > > > > > (panel->lcd_ht-panel->lcd_x)*(150)/(panel->lcd_dclk_freq*8) - 50; > > > > > =3D> (((mode->htotal - mode->hdisplay) * 150) / > > > > > ((mode->clock / 1000) * 8)) - 50; > > > > > > > > > > So use the similar computation for loop N1 delay. > > > > > > > > > > Signed-off-by: Jagan Teki > > > > > > > > *why* are you doing this? What is it fixing? on which devices? > > > > > > You mentioned the separate function to compute the delay for all modes > > > [1], ie what I did. did I missing anything? > > > > You're missing that you are never explaining why that patch is needed > > in the first place. Or answering the question I asked a couple of > > lines above. >=20 > OK. >=20 > The instruction delay varies between video and burst mode. for burst > mode panels it is computed based on the panel clock along with > horizontal sync+porch timings. You're still stating a fact. What issue, that you experienced, are you trying to solve here? Maxime --=20 Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --q3rnoerzhd6vdmpz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCW/QvIgAKCRDj7w1vZxhR xVcbAP91u8+w6CxdeLDg4ulsZO2ZcgCv2OC6SrSqwgCbQOQlEgEAkG7TECuILdzs +mmSQdEY9isiOqwywp1g4uMStDC5QwM= =5kdW -----END PGP SIGNATURE----- --q3rnoerzhd6vdmpz--