From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_NEOMUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3F521C43381 for ; Mon, 11 Mar 2019 14:04:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0E5FE20657 for ; Mon, 11 Mar 2019 14:04:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727758AbfCKOEH (ORCPT ); Mon, 11 Mar 2019 10:04:07 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:55385 "EHLO relay8-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727469AbfCKOEG (ORCPT ); Mon, 11 Mar 2019 10:04:06 -0400 X-Originating-IP: 90.88.150.179 Received: from localhost (aaubervilliers-681-1-31-179.w90-88.abo.wanadoo.fr [90.88.150.179]) (Authenticated sender: maxime.ripard@bootlin.com) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id D4FEF1BF218; Mon, 11 Mar 2019 14:04:02 +0000 (UTC) Date: Mon, 11 Mar 2019 15:04:02 +0100 From: Maxime Ripard To: Jagan Teki Cc: David Airlie , Daniel Vetter , Chen-Yu Tsai , dri-devel , linux-arm-kernel , linux-kernel , linux-amarula@amarulasolutions.com, Michael Trimarchi , linux-sunxi Subject: Re: [PATCH v9 3/5] drm/sun4i: sun6i_mipi_dsi: Support vblk timing for 4-lane devices Message-ID: <20190311140402.ie7abxda6pizrybj@flea> References: <20190303173527.31055-1-jagan@amarulasolutions.com> <20190303173527.31055-4-jagan@amarulasolutions.com> <20190304154911.s6rcx6bzal5slcjk@flea> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="mqq4mfoclpdqed4k" 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 --mqq4mfoclpdqed4k Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 07, 2019 at 09:33:38PM +0530, Jagan Teki wrote: > On Mon, Mar 4, 2019 at 9:19 PM Maxime Ripard = wrote: > > > > On Sun, Mar 03, 2019 at 11:05:25PM +0530, Jagan Teki wrote: > > > Like other dsi setup timings, or hblk for that matter vblk would > > > also require compute the timings based payload equation along with > > > packet overhead. > > > > > > But, on the other hand vblk computation is also depends on device > > > lane number. > > > - for 4 lane devices, it is computed based on vtotal, packet overhead > > > along with hblk value. > > > - for others devices, it is simply 0 > > > > > > BSP code from BPI-M64-bsp is computing vblk as for 4-lane devices > > > (from linux-sunxi > > > drivers/video/sunxi/disp2/disp/de/lowlevel_sun50iw1/de_dsi.c) > > > > > > tmp =3D (ht*dsi_pixel_bits[format]/8)*vt-(4+dsi_hblk+2); > > > dsi_vblk =3D (lane-tmp%lane); > > > > > > So, update the vblk timing calculation to support all type of > > > devices. > > > > > > Tested on 2-lane, 4-lane MIPI-DSI LCD panels. > > > > You should be explaining which issue you faced, in which setup, what > > were its symptoms and how that solution is fixing it. >=20 > No, it is not a fix, didn't specify either. it is vblk timings support > like others dsi timings. So it's not fixing anything, and this isn't a new feature either. What's the point then? Maxime --=20 Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --mqq4mfoclpdqed4k Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXIZqzQAKCRDj7w1vZxhR xUl8AQDzpIsbwiyzkZ+aez3Ix0wICtijzP4KTpfNcIYEUUirFwEArgbMtnpsg02j EKB2JBz7nYOOkaycbCvOS/Je1lNDPw0= =rN6W -----END PGP SIGNATURE----- --mqq4mfoclpdqed4k-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS, USER_AGENT_NEOMUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 940A1C43381 for ; Mon, 11 Mar 2019 14:04:29 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 654CE20657 for ; Mon, 11 Mar 2019 14:04:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Ihj6haiS" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 654CE20657 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type:Cc: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=j7SOFTs5ebpk7Qe5HxvAKDttHIF4EwsZ1EmWxGvIEng=; b=Ihj6haiSmQvfdDvA5LqBQ4AuC YnDmddt+cDuswNetyRf8wTABVeVhB2qtGy5yBHSQs7blUNBKciLG2K4kajv8BUsQxgtiNOERXc6ed MPpTJRWMWEe7Yk+BckWZsQtcQ2IkCJdCHV86JAvQB4smQblDnyXPKqzGlLTnroJGkxHdQZoyNb3+N zUF8aDS4Y0wAVAlii0SsCLfMA1AZjXygqrTX7mZNd9Oq6ElPf4SGYhapCTuxgDQviXaWo9PnIE7LP nwzDSFqxTaoTdctEr0PvDo0riH8PocD2TsxXuC+tumWAIVceZuRk3ay3kB6ObEOYb0op/ClPb3+Ws lI/t+4NCA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h3LXR-0000ZP-5M; Mon, 11 Mar 2019 14:04:21 +0000 Received: from relay8-d.mail.gandi.net ([217.70.183.201]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h3LXM-0000YM-Nx for linux-arm-kernel@lists.infradead.org; Mon, 11 Mar 2019 14:04:18 +0000 X-Originating-IP: 90.88.150.179 Received: from localhost (aaubervilliers-681-1-31-179.w90-88.abo.wanadoo.fr [90.88.150.179]) (Authenticated sender: maxime.ripard@bootlin.com) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id D4FEF1BF218; Mon, 11 Mar 2019 14:04:02 +0000 (UTC) Date: Mon, 11 Mar 2019 15:04:02 +0100 From: Maxime Ripard To: Jagan Teki Subject: Re: [PATCH v9 3/5] drm/sun4i: sun6i_mipi_dsi: Support vblk timing for 4-lane devices Message-ID: <20190311140402.ie7abxda6pizrybj@flea> References: <20190303173527.31055-1-jagan@amarulasolutions.com> <20190303173527.31055-4-jagan@amarulasolutions.com> <20190304154911.s6rcx6bzal5slcjk@flea> MIME-Version: 1.0 In-Reply-To: User-Agent: NeoMutt/20180716 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190311_070416_929159_A2E5FD7A X-CRM114-Status: GOOD ( 16.17 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , linux-sunxi , linux-kernel , dri-devel , Chen-Yu Tsai , Daniel Vetter , Michael Trimarchi , linux-amarula@amarulasolutions.com, linux-arm-kernel Content-Type: multipart/mixed; boundary="===============3886618235770797852==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============3886618235770797852== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="mqq4mfoclpdqed4k" Content-Disposition: inline --mqq4mfoclpdqed4k Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 07, 2019 at 09:33:38PM +0530, Jagan Teki wrote: > On Mon, Mar 4, 2019 at 9:19 PM Maxime Ripard = wrote: > > > > On Sun, Mar 03, 2019 at 11:05:25PM +0530, Jagan Teki wrote: > > > Like other dsi setup timings, or hblk for that matter vblk would > > > also require compute the timings based payload equation along with > > > packet overhead. > > > > > > But, on the other hand vblk computation is also depends on device > > > lane number. > > > - for 4 lane devices, it is computed based on vtotal, packet overhead > > > along with hblk value. > > > - for others devices, it is simply 0 > > > > > > BSP code from BPI-M64-bsp is computing vblk as for 4-lane devices > > > (from linux-sunxi > > > drivers/video/sunxi/disp2/disp/de/lowlevel_sun50iw1/de_dsi.c) > > > > > > tmp =3D (ht*dsi_pixel_bits[format]/8)*vt-(4+dsi_hblk+2); > > > dsi_vblk =3D (lane-tmp%lane); > > > > > > So, update the vblk timing calculation to support all type of > > > devices. > > > > > > Tested on 2-lane, 4-lane MIPI-DSI LCD panels. > > > > You should be explaining which issue you faced, in which setup, what > > were its symptoms and how that solution is fixing it. >=20 > No, it is not a fix, didn't specify either. it is vblk timings support > like others dsi timings. So it's not fixing anything, and this isn't a new feature either. What's the point then? Maxime --=20 Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --mqq4mfoclpdqed4k Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXIZqzQAKCRDj7w1vZxhR xUl8AQDzpIsbwiyzkZ+aez3Ix0wICtijzP4KTpfNcIYEUUirFwEArgbMtnpsg02j EKB2JBz7nYOOkaycbCvOS/Je1lNDPw0= =rN6W -----END PGP SIGNATURE----- --mqq4mfoclpdqed4k-- --===============3886618235770797852== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============3886618235770797852==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Ripard Subject: Re: [PATCH v9 3/5] drm/sun4i: sun6i_mipi_dsi: Support vblk timing for 4-lane devices Date: Mon, 11 Mar 2019 15:04:02 +0100 Message-ID: <20190311140402.ie7abxda6pizrybj@flea> References: <20190303173527.31055-1-jagan@amarulasolutions.com> <20190303173527.31055-4-jagan@amarulasolutions.com> <20190304154911.s6rcx6bzal5slcjk@flea> Reply-To: maxime.ripard-LDxbnhwyfcJBDgjK7y7TUQ@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="mqq4mfoclpdqed4k" Return-path: Sender: linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Content-Disposition: inline In-Reply-To: List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , To: Jagan Teki Cc: David Airlie , Daniel Vetter , Chen-Yu Tsai , dri-devel , linux-arm-kernel , linux-kernel , linux-amarula-dyjBcgdgk7Pe9wHmmfpqLFaTQe2KTcn/@public.gmane.org, Michael Trimarchi , linux-sunxi List-Id: dri-devel@lists.freedesktop.org --mqq4mfoclpdqed4k Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline On Thu, Mar 07, 2019 at 09:33:38PM +0530, Jagan Teki wrote: > On Mon, Mar 4, 2019 at 9:19 PM Maxime Ripard wrote: > > > > On Sun, Mar 03, 2019 at 11:05:25PM +0530, Jagan Teki wrote: > > > Like other dsi setup timings, or hblk for that matter vblk would > > > also require compute the timings based payload equation along with > > > packet overhead. > > > > > > But, on the other hand vblk computation is also depends on device > > > lane number. > > > - for 4 lane devices, it is computed based on vtotal, packet overhead > > > along with hblk value. > > > - for others devices, it is simply 0 > > > > > > BSP code from BPI-M64-bsp is computing vblk as for 4-lane devices > > > (from linux-sunxi > > > drivers/video/sunxi/disp2/disp/de/lowlevel_sun50iw1/de_dsi.c) > > > > > > tmp = (ht*dsi_pixel_bits[format]/8)*vt-(4+dsi_hblk+2); > > > dsi_vblk = (lane-tmp%lane); > > > > > > So, update the vblk timing calculation to support all type of > > > devices. > > > > > > Tested on 2-lane, 4-lane MIPI-DSI LCD panels. > > > > You should be explaining which issue you faced, in which setup, what > > were its symptoms and how that solution is fixing it. > > No, it is not a fix, didn't specify either. it is vblk timings support > like others dsi timings. So it's not fixing anything, and this isn't a new feature either. What's the point then? Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --mqq4mfoclpdqed4k--