Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp4821735rwb; Wed, 17 Aug 2022 06:42:06 -0700 (PDT) X-Google-Smtp-Source: AA6agR7vUlynfim41eGee22yHO/gA5ie+xi1ymWbfYGywjOWvAJAjtEQ1CwVo/GW4m7azoIUfrW3 X-Received: by 2002:a17:907:97cd:b0:731:5d0:4434 with SMTP id js13-20020a17090797cd00b0073105d04434mr15624182ejc.603.1660743726409; Wed, 17 Aug 2022 06:42:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660743726; cv=none; d=google.com; s=arc-20160816; b=VbJUHBq1XI0f3wRXM4lnaR1moW2Q/98scd0i8IonqjdurkXFFmSTwqQlEK4oa5OLg2 k952ZzvqcE4AVP/dvKZ7qdoxJdbEZqfc8DTfbUuHxprCBGlgJQpYbbA/loF+MgigoDKI Sw5+upEedoxe9ag5b1O4aRtukumKocEqpRglex8vG3JvhswqeOKhoifBD2MYwAIYuC+N L+Lw0tDOVKIHBblmsyH/UMsVZ0MSHtXcXYF2KRTcmL5uHeG4vmcL4N0VO5bM02jC6TxP Hy8wzpy2TyR32ecgRmBPe/SYY44K3iU1p1h1Dgk8J+/KFFT6Fif9iXEHlsRanirTzaCa glOg== 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=l9nnSULWeKQ3XggL/zqDG46qTFmpp//Ck12PCcxE0C4=; b=RUR2tAKAAQABACvd8aC7WjsJcG7kHscAEdHVpZ7M0BIhK/EDgmDfoGf/fbAYJQpw3/ MXHLr1iwkKzZgOPElTSoWPyXxiDMxjUkmonMSV2gcHZSAGTvHhoL9k1yacsdRH5SKvhQ WtUZkpgqmD/H/28mxKiO7Ew2G8VO9KLz0wtL2qrfHN/8cF+32QNyQz1T0z2UyspVOAJV v9KQ3eDasIUQnOnFYzr0BjkowQkshPIxsYsB5pXKBHZ9Ofx44fnxXqw7cYVBgM5U/rZq e0MUo348C6yb8dczOGA1FaYjf+a3hE01ecANKgMzaMBjV7IpkT/Mq++rOnw+8pF/RF3e CNBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b="pF/7j9Cm"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=0yq+TQb2; 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 i7-20020aa7c707000000b0043e62aa41c5si11143319edq.616.2022.08.17.06.41.39; Wed, 17 Aug 2022 06:42:06 -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="pF/7j9Cm"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=0yq+TQb2; 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 S239770AbiHQNUK (ORCPT + 99 others); Wed, 17 Aug 2022 09:20:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239789AbiHQNTl (ORCPT ); Wed, 17 Aug 2022 09:19:41 -0400 Received: from wnew3-smtp.messagingengine.com (wnew3-smtp.messagingengine.com [64.147.123.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3AC45F9A9 for ; Wed, 17 Aug 2022 06:19:02 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.west.internal (Postfix) with ESMTP id EB4E02B059AF; Wed, 17 Aug 2022 09:18:58 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Wed, 17 Aug 2022 09:19:01 -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=1660742338; x=1660749538; bh=l9nnSULWeK Q3XggL/zqDG46qTFmpp//Ck12PCcxE0C4=; b=pF/7j9Cm7g40yrOScl4skNreL2 ccqXhCjvRZznSRSF8iv3BsajgJqsSxeejMYry/aJir12Cq0cDvoWOHMKSqK+hrHV /a27Uah7wwi9OZ7JdFLS7io3iwHSZhBkcRbqLKcFYW0VKdkH3qp7RyiNwZl94f1E zUKVdX0Co++619zrN85L7jZYtou5/rFWIReG9TxjiSrtRfHMVALZK0a2dIAiNPey k5xnYjBQ3midyovFl94hMcQQQnartAKyINKT1f2u5iiYyJQebKsLIWShk3lNd5zG iekKZZiB/p9w/dHaCx4QUo+QmNkBoWYG2huX0B7rx5qHpjlU+GQZnHln1NxQ== 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=1660742338; x=1660749538; bh=l9nnSULWeKQ3XggL/zqDG46qTFmp p//Ck12PCcxE0C4=; b=0yq+TQb2k0Ge8C7gWLSDZxUbaft3Y7NQ2c9RLH0PWcT2 PiTwPZj2vykG414dYWHWPehc5NXyFhrx3qTMKgDlx50h/Eu1NPTeQS4J/i0EBC9H 766vhkSIScDQvoKRkaqRMENnynoZCLR3D9h5DdZD+n40FTRjKuWenUtAJbtZe4fU oO89K0GrZnhFZ107Ch6BFcgp8mVf5U43254oG8WVsCnSXzedtRo8f5LGWaViy1dW F7W+bIb0hNWZMipRiW9UaIRKzNU5ffBRgnHRZj9R6Nd5RGbwMPcStxkuQrKAv5uS IJOmBt7TDmIRVxsyjLN2TIPOE1t6rTNFwJyi5emdkg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdehiedgieefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofgrgihi mhgvucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrg htthgvrhhnpedtleekjeeiudefvdfhieffteelhfeivdeliefgieeugffhvdelieffjeei geetjeenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrgihimhgvsegtvghrnhhordhtvggt hh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 17 Aug 2022 09:18:56 -0400 (EDT) Date: Wed, 17 Aug 2022 15:18:54 +0200 From: Maxime Ripard To: Geert Uytterhoeven 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 Mailing List , Phil Elwell , Mateusz Kwiatkowski , Linux ARM , Dave Stevenson , "open list:ARM/Amlogic Meson..." , DRI Development , Dom Cobley Subject: Re: [PATCH v1 05/35] drm/connector: Add TV standard property Message-ID: <20220817131854.jwmhqvhfhp77bbr3@houat> References: <20220816132040.uwirtjm5yr6rdd3q@houat> <20220816141116.5nuszmilqv2exdb3@houat> <20220816154956.pkdpxmmw27mia5ix@houat> <20220817074710.w4c4xwj7edly2b5p@houat> <20220817111454.pn2iltvyo2drebq7@houat> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="pwhi6bupdwzq7ldy" Content-Disposition: inline In-Reply-To: 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,URIBL_BLOCKED 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 --pwhi6bupdwzq7ldy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 17, 2022 at 03:05:52PM +0200, Geert Uytterhoeven wrote: > Hi Maxime, >=20 > On Wed, Aug 17, 2022 at 1:15 PM Maxime Ripard wrote: > > On Wed, Aug 17, 2022 at 10:35:07AM +0200, Geert Uytterhoeven wrote: > > > On Wed, Aug 17, 2022 at 9:47 AM Maxime Ripard wro= te: > > > > On Wed, Aug 17, 2022 at 09:31:18AM +0200, Geert Uytterhoeven wrote: > > > > > On Tue, Aug 16, 2022 at 5:50 PM Maxime Ripard = wrote: > > > > > > On Tue, Aug 16, 2022 at 04:43:44PM +0200, Geert Uytterhoeven wr= ote: > > > > > > > > > > > Either you have to add them here (e.g. "hd720p50" and= "hd720p60"), or > > > > > > > > > > > handle them through "@". The latter would i= mpact "[PATCH v1 > > > > > > > > > > > 09/35] drm/modes: Move named modes parsing to a separ= ate function", as > > > > > > > > > > > currently a named mode and a refresh rate can't be sp= ecified both. > > > > > > > > > > > > > > > > > > > > I think the former would make more sense. It simplifies= a bit the > > > > > > > > > > parser, and we're going to use a named mode anyway. > > > > > > > > > > > > > > > > > > > > > As "[PATCH v1 34/35] drm/modes: Introduce the tv_mode= property as a > > > > > > > > > > > command-line option" uses a separate "tv_mode" option= , and not the main > > > > > > > > > > > mode name, I think you want to add them here. > > > > > > > > > > > > > > > > > > > > It's a separate story I think, we could have a named mo= de hd720p50, > > > > > > > > > > which would be equivalent to 1280x720,tv_mode=3Dhd720p > > > > > > > > > > > > > > > > > > So where's the field rate in "1280x720,tv_mode=3Dhd720p"? > > > > > > > > > > > > > > > > Yeah, sorry I meant 1280x720@50,tv_mode=3Dhd720p > > > > > > > > > > > > > > Above you said "I think the former would make more sense", so= that > > > > > > > should be "1280x720,tv_mode=3Dhd720p50"? > > > > > > > > > > > > No, 720p at 50Hz would be either hd720p50 or 1280x720@50,tv_mod= e=3Dhd720p > > > > > > and 60Hz would be hd720p60 or 1280x720@60,tv_mode=3Dhd720p > > > > > > > > > > I disagree: hd720p50 and hd720p60 are different TV modes. > > > > > > > > I agree, and I don't see how that command-line doesn't express that? > > > > > > Oh, I see what you mean: yes, it expresses that. > > > But it is inconsistent with the NTSC/PAL/SECAM/hd{480,576}[ip] modes, > > > where the TV mode specifies both number of lines and frame rate. > > > > Only if we're using a named mode, and naming is hard :) >=20 > That's not true: "640x480,tv_mode=3DPAL-N" would give me a mode with > 625 lines and 25 frames/s, "640x480,tv_mode=3DPAL-M" would give me a > mode with 525 lines and 30 frames/s. In that series, "640x480,tv_mode=3DPAL-N" would be rejected as invalid: https://lore.kernel.org/dri-devel/20220728-rpi-analog-tv-properties-v1-14-3= d53ae722097@cerno.tech/ Maxime --pwhi6bupdwzq7ldy Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCYvzqvgAKCRDj7w1vZxhR xevAAQDN39buWD69Y1UeITS4YCga5URhBHuCskbyb0E4+dbIUQD7BdiRmRfU6P3f TcmNW67KPvbwkbPIv57K49HlmhcZ6AQ= =egIl -----END PGP SIGNATURE----- --pwhi6bupdwzq7ldy--