Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp5644906rwi; Tue, 18 Oct 2022 01:59:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5gk8Pt0tDrOyIILgsjAM9P+h0GtVlner0ygQmp6haSqEkdgex5x8tCHQ0vkJWhahrC2bqb X-Received: by 2002:a17:907:3e14:b0:78d:b14b:6fa0 with SMTP id hp20-20020a1709073e1400b0078db14b6fa0mr1519520ejc.650.1666083596070; Tue, 18 Oct 2022 01:59:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666083596; cv=none; d=google.com; s=arc-20160816; b=Bh6jPnenIoSa00xc3c24DfUsZIQloo5qz0u20uoFtb8ZGOtsnT705brYO1bpUoZrIn L9OPG7SEZ3fddA9RqMPqIrhaNUk9ib1d8lYTQendYKYnEoUSgu7KAFOjt5wMxhHG5WDR WBLuTwlh4Gz5DR5LeJU7uQyaZQgpPgx33DGE/b0kQ/44FNheknqhy24bp8h4vdicanpO lHVKhx0Jdzqhyf8xmePpvUHRcvFjMbGrxmaTTleu6Cc2qEy21cp6+1q2m6uea2yzRJn7 B4WWOefKTZMyrW17rfPJ8SBTV1ofzueMhPN6B2e72GKFxEHVRAl6A5XVvgUVx3gh6Odb HOCw== 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=fVI2EJnVlpjbITRfhf/MEDKDIYqZ83EHW+uFvYqJ3GE=; b=Vu3sJaTFS2GW+HDthI33eT97HByJi+7bQM29BOiaiW4EBfPZWKbvfM8/xjyYu5QXqv DJIcVtqRGQbyeSQ8RvPQsD1qwUc4FBNQdT4rSpIumyHW6lBm7b7AOvHg9rYmg7P7A9pm P/B/WcgnOHvfaekLhmwLTTss/S/V2lrrcq4tRYD/+PzxHsDKVLlby5Yyq0WTu69Z5DF0 8GUjEgOGPwVdreuGt/m9FSCP6nhj+FcMMAuVtXTESW23peVtmoGS+ILcKsIxCRQlG4K+ f3WeN/VA2E/M+eYSMpBUbVKGwNql0ekLPtIKBwxOWPQXZlo/1AVYsaE1W7HUy78sqJF0 wyMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b="E/oS9DyW"; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=epm9K8FS; 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 hc12-20020a170907168c00b00741a089d344si13008069ejc.809.2022.10.18.01.59.30; Tue, 18 Oct 2022 01:59:56 -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="E/oS9DyW"; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=epm9K8FS; 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 S229729AbiJRIcC (ORCPT + 99 others); Tue, 18 Oct 2022 04:32:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229574AbiJRIcA (ORCPT ); Tue, 18 Oct 2022 04:32:00 -0400 Received: from wnew2-smtp.messagingengine.com (wnew2-smtp.messagingengine.com [64.147.123.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02BCB1C8 for ; Tue, 18 Oct 2022 01:32:00 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.west.internal (Postfix) with ESMTP id 6B89B2B06866; Tue, 18 Oct 2022 04:31:55 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 18 Oct 2022 04:31:59 -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=1666081915; x=1666089115; bh=fVI2EJnVlp jbITRfhf/MEDKDIYqZ83EHW+uFvYqJ3GE=; b=E/oS9DyWhA8g58HLIuCEAdjp+3 t+kXUNNmuvVW4gCFTX4uansKgdcI0z1od/7hZp2owj39fURNiT13fB47gkmtn3CJ 2H2C4LDxzVpImC14E5MiwhaFrP/wzx0Zu6aWSo8vnz6ZiWDuTzIf7mPSafcjIjL7 Ktt68vaMOaL1Kas6E5aO6d4LP7+lFw8cRiOqNGQ3Ck9TjNIGleczD4KO4Y16ATdN sp/ePs2Cxw97s3Eiok74y0erQQ34oFh1UGuDHwcy17gmgBVPIBuw4DUrHqNzS+ar dGgnm7RqzlAZVuXIWgZCjwAOse8HIxhDma/q9bVSzJFrtJEPU0+B2qfcoqfA== 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= fm3; t=1666081915; x=1666089115; bh=fVI2EJnVlpjbITRfhf/MEDKDIYqZ 83EHW+uFvYqJ3GE=; b=epm9K8FSvMhkC5qc+KzKqUBNaO6dGHyYD3uVRcM+AfSC DQBGTJwzntTrsvr9uPrUGuWUjd0kBwTiB7h73aMrJmvShW1KtQzk3qA5CMlu3UJ6 re2xV5ugJXQEII1HodNUDxsnFaQk7bAUK7K66sg4a+gjWX9R/ZejWdxCimSSqYqm 6QatFQOrHIKqRE7Qm7uB77oKaS+dx/V9Gh5wqIfrIkPBteGluP+B60oBLht7/9rQ 7cCBygs54841y6xJ1O8yAye2mw90tr2EOGp6fYbN5VA9ebIJ6C+7vG+1lPuCYK9/ Ugc+txHMO0LDiAjWoEy7aqQHW0V3BnalWAoLOA/+6A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeeluddgtdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofgrgihi mhgvucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrg htthgvrhhnpeetfefffefgkedtfefgledugfdtjeefjedvtddtkeetieffjedvgfehheff hfevudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hmrgigihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 18 Oct 2022 04:31:54 -0400 (EDT) Date: Tue, 18 Oct 2022 10:31:53 +0200 From: Maxime Ripard To: kfyatek+publicgit@gmail.com Cc: Karol Herbst , Jani Nikula , Tvrtko Ursulin , Daniel Vetter , Maarten Lankhorst , David Airlie , Joonas Lahtinen , Lyude Paul , Emma Anholt , Chen-Yu Tsai , Samuel Holland , Ben Skeggs , Thomas Zimmermann , Rodrigo Vivi , Jernej Skrabec , Dom Cobley , linux-sunxi@lists.linux.dev, Dave Stevenson , Noralf =?utf-8?Q?Tr=C3=B8nnes?= , intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, nouveau@lists.freedesktop.org, Geert Uytterhoeven , linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, Hans de Goede , Phil Elwell Subject: Re: [PATCH] drm/vc4: vec: Add support for PAL-60 Message-ID: <20221018083153.okkqpd5ccfrnwdj3@houat> References: <20220728-rpi-analog-tv-properties-v5-0-d841cc64fe4b@cerno.tech> <20220728-rpi-analog-tv-properties-v5-21-d841cc64fe4b@cerno.tech> <93bf9fcc-c645-b042-011f-8f1fc957af48@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="gs7goob5irll63bf" Content-Disposition: inline In-Reply-To: <93bf9fcc-c645-b042-011f-8f1fc957af48@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 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 --gs7goob5irll63bf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Sun, Oct 16, 2022 at 09:46:49PM +0200, Mateusz Kwiatkowski wrote: > @@ -308,14 +324,15 @@ static const struct vc4_vec_tv_mode vc4_vec_tv_mode= s[] =3D { > }; > =20 > static inline const struct vc4_vec_tv_mode * > -vc4_vec_tv_mode_lookup(unsigned int mode) > +vc4_vec_tv_mode_lookup(unsigned int mode, u16 htotal) > { > unsigned int i; > =20 > for (i =3D 0; i < ARRAY_SIZE(vc4_vec_tv_modes); i++) { > const struct vc4_vec_tv_mode *tv_mode =3D &vc4_vec_tv_modes[i]; > =20 > - if (tv_mode->mode =3D=3D mode) > + if (tv_mode->mode =3D=3D mode && > + tv_mode->expected_htotal =3D=3D htotal) > return tv_mode; Is there any reason we're not using the refresh rate to filter this? It seems more natural to me. Maxime --gs7goob5irll63bf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCY05keQAKCRDj7w1vZxhR xaoGAP9HmWvEP2iOcoDGqog26qg7gWYMxwwOjWfwgHtgcV81kQEAx9tCz7NmGbD4 TRrl+IN8yZd5ByEPUAc0V6js5M4u6w8= =0Z/k -----END PGP SIGNATURE----- --gs7goob5irll63bf--