Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3551227rwb; Tue, 16 Aug 2022 05:14:10 -0700 (PDT) X-Google-Smtp-Source: AA6agR5Hty5kQCoxyXf4oezTLkp0ktOMjrV5tOJNDc43raWSZJWABmUzFEtaCZRuaavcbTdx3JM5 X-Received: by 2002:a17:907:762f:b0:730:95d9:9955 with SMTP id jy15-20020a170907762f00b0073095d99955mr12890448ejc.505.1660652050598; Tue, 16 Aug 2022 05:14:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660652050; cv=none; d=google.com; s=arc-20160816; b=sFGt2YQiAB8qIpgNxRDKcI5puiR2bWbIPeIuoy1yt9SMl+UDQPpO9i6zTvHDUz2EG2 ayjw5xqrDNpas65dz3yBoDoFpeoU3B/+ppdxYiiB2Q/WqohFO5gPketK8QsVekyvkBrH D8ROeErqxbJAChZaJob8RC2jdvjRhdJWduKYse+6lk1n4NPoyTzTlwlydEq5X4traiOQ 0jUZllXpi1LN5XfGnGQLhHc/1yiD4bbwiTQsndp7vUaNS+uE6ldZPImvX09tbSo4pCc/ zwuW0c2VFwpaxamkHcjBtGHyP3NQ5a7wwmvD9/5k+89tR7ueH/YTSoagN/zbak2cVlOg 2CZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:feedback-id :dkim-signature:dkim-signature; bh=Bq03lVvJy5RJk5H2jo3OulUHY8HxQaSHcH39oL5pRFM=; b=OOeqCE0AuZtCsY+yZcESBgIt/rGy6s+TkMh2Du2JUhtPZ9rdM8eQUtqT2ipS8ssn9c /wN+NA0HsA2TwZ3ZaZJvmvE5oymYKT1GxghyhI9NAGYSUDxXI41d/4yazZTF7HNoKx5A +yqyFRXxMmg/weI17f6bzhcW4zAxXxwF6WMoAzx57pw+j4SN9hap85qC0x1FN1zsBIWg qBoyVxeMaqBx923tbPTNPBRtZPpm6T/YTn5vXs99PIrFT8MkFoCdyN0z3ldyZ2jrGLBL BP9NYkLKbb8AJvHGBmebHqF9j+/KG/KXedizLgL8Rd3lx2ro7VYE4hJ8Gi7pKg4KMCX6 39hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=LWkNGdC+; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=tDtWMsyT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id du8-20020a17090772c800b00733ca35c0a6si10532918ejc.626.2022.08.16.05.13.40; Tue, 16 Aug 2022 05:14:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=LWkNGdC+; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=tDtWMsyT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234798AbiHPMI4 (ORCPT + 99 others); Tue, 16 Aug 2022 08:08:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235091AbiHPMHe (ORCPT ); Tue, 16 Aug 2022 08:07:34 -0400 Received: from wnew3-smtp.messagingengine.com (wnew3-smtp.messagingengine.com [64.147.123.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98E2851A23 for ; Tue, 16 Aug 2022 04:57:16 -0700 (PDT) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailnew.west.internal (Postfix) with ESMTP id A0B622B05957; Tue, 16 Aug 2022 07:57:10 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Tue, 16 Aug 2022 07:57:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; t=1660651030; x=1660658230; bh=Bq03lVvJy5 RJk5H2jo3OulUHY8HxQaSHcH39oL5pRFM=; b=LWkNGdC+qKavdgb06LCYhhdfaH EMilD3yNruebG4rdFpIEf/I4xnlrJyUn9xE6NIN3HxPA7FdOTeBHXU54ELxt9Vts /TEy3DDaL05UnzuFbzp2mP5cLACMIbB1dNecnbiMUWk1IVGBETPJ+1uhAqwZPoDH fqM7mZZE9VPgjTXmenP2OT8fEAzuk3AGPtUl/tpH1snsTs4n6xmjP7Fesne8J80k wsGf/8lSANiEam48J/7VUsCDx0BsEiyQMAHoo61crP6hQEIMd4HTPwEXsyDhCTYE LxurXivClkNnluoJqMoobh2U7tkI2YB30ImyM9+0Y7ar/9uTb7qZdpIGkfrQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1660651030; x=1660658230; bh=Bq03lVvJy5RJk5H2jo3OulUHY8Hx QaSHcH39oL5pRFM=; b=tDtWMsyT9dCSohJZolo2mSo6j08so3UpgKj1hYIbmaXh waSP51wOKEb5Ply3yvRQLIEphIKB83VIekklo1Qg/TXsSZCAWvOnDUIXDTBU4QB2 FAOPE4hIg/QY7GA3yfEmoohqHpKUcSg6M77BfxcAcAtIhbacAvt342Wn2sQQOm46 ZanJnKgviDsseWtZxoJ5yFxBoDH+20Yk2UOUPc0HvbY37a+ILT3NtK+gNtMi4brh Ncrwgu7Xbhfd9ixEUFYDfskHcCyfm4NGgx6+skv/h1uZndqM+rTSTojNxZNWvCK4 2vl5n1fgGuZp4WIT/3lFjWUnTuaskSPGVcucu0vEFA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdehgedggeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofgrgihi mhgvucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrg htthgvrhhnpeetfefffefgkedtfefgledugfdtjeefjedvtddtkeetieffjedvgfehheff hfevudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hmrgigihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 16 Aug 2022 07:57:08 -0400 (EDT) Date: Tue, 16 Aug 2022 13:57:06 +0200 From: Maxime Ripard To: Mateusz Kwiatkowski Cc: Jernej Skrabec , Martin Blumenstingl , Chen-Yu Tsai , Philipp Zabel , Jerome Brunet , Samuel Holland , Thomas Zimmermann , Daniel Vetter , Emma Anholt , David Airlie , Maarten Lankhorst , Noralf =?utf-8?Q?Tr=C3=B8nnes?= , Kevin Hilman , Neil Armstrong , linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Phil Elwell , linux-arm-kernel@lists.infradead.org, Geert Uytterhoeven , Dave Stevenson , linux-amlogic@lists.infradead.org, dri-devel@lists.freedesktop.org, Dom Cobley Subject: Re: [PATCH v1 20/35] drm/vc4: vec: Switch for common modes Message-ID: <20220816115706.nizhpgqi2gggvhtf@houat> References: <20220728-rpi-analog-tv-properties-v1-0-3d53ae722097@cerno.tech> <20220728-rpi-analog-tv-properties-v1-20-3d53ae722097@cerno.tech> <0e285cf5-6ef2-3484-9fb7-5eb55c0ca269@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="6rmmsvytrn6spomv" Content-Disposition: inline In-Reply-To: <0e285cf5-6ef2-3484-9fb7-5eb55c0ca269@gmail.com> X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --6rmmsvytrn6spomv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Fri, Jul 29, 2022 at 08:12:07PM +0200, Mateusz Kwiatkowski wrote: > I'm just noting that the modelines you defined in drm_modes.c are differe= nt > to the ones you're removing here. >=20 > The horizontal sync differences probably doesn't matter too much, VC4 uses > those only as a hint anyway and generates sync autonomously, so the slight > differences will only cause the image to slightly shift horizontally. >=20 > But you're also changing the 480i vertical sync (vsync_start is now 488 > instead of 487, etc.). Are you sure that this won't break anything? This > will probably shift the image by 1 line (which for the 480i might actually > mean going out of spec), and I _think_ it might control the odd vs. even > field first modes on some drivers. I won't be able to test this before > Monday, but I'm just pointing out the potential issue. I didn't see any difference on both vc4 and sun4i, but you might be right about this. I didn't have much confidence in the vc4 modes since they were broken before your patches, but maybe I should have used yours still. > BTW, I've seen a similar thing in the sun4i driver changes (patch 32/35) = and > the differences in vertical sync are even more dramatic. It's entirely > possible that the current timings in sun4i are broken and the new ones are > correct (the new ones certainly look saner to me), but I'd double-check if > that driver does not have any quirks that would _require_ such weird > settings. The only thing sun4i requires from the new mode is the line number anyway, which stays the same. Maxime --6rmmsvytrn6spomv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCYvuGEgAKCRDj7w1vZxhR xRHiAP9fE8CmBUW5DpGpBM8rlS+1m979Rf5KfhJkiXI4XgaLTQD7B6CwXU7vkS/6 Zd1eWht5CPS1YtFPdcFpEpBIdg0jkQw= =VB11 -----END PGP SIGNATURE----- --6rmmsvytrn6spomv--