Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp591986rwb; Thu, 18 Aug 2022 08:50:14 -0700 (PDT) X-Google-Smtp-Source: AA6agR7Fu5eMecTsA6VSattvSGfrmIX7XOzxo+Dm3t1S87qzltSH6KQBwaujwvlhe/yMcz5YbJrp X-Received: by 2002:a17:907:8a1a:b0:731:6475:68f7 with SMTP id sc26-20020a1709078a1a00b00731647568f7mr2207393ejc.359.1660837814140; Thu, 18 Aug 2022 08:50:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660837814; cv=none; d=google.com; s=arc-20160816; b=jwXJS8AmIbwKG+Xh2i2Bz9DaeKoD/tMJGs8my73uV+KGZUfgXdPQPnLZwACGJ4KcM4 7U+Q9UK+cQA518FY/kDdsXnHu1ZX4X0fJO1bu/FGgaX8L2ZsJ99FRodsOjvTUU9myrg8 evaMKqF1DJSBaXQa0+sUJLdWKMx6Y2jbd7CWNvS3UBOdTFe/xwXGBM+dI328FyAZ8bVd 5YBN54a58C5/ZfYUvtrBgp4JvrQ90wNhf0mNWzuTdGz3U4TAhlI/Iv/aRCe2RREdAok3 u+h0VjMOhnGgGXWvwp3Wmm297kOlg0FaBCVAENO3x3dRRLh9rFsqhHFNnaJJ0NLOTGJC xSXg== 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=GAUFg7YBUW3KZkhSrcZm39FqAMhooeWFavdqBj/boSc=; b=vuuRpiJ8otYmn2HR7OfHdG59PmVEG+IKHoM+pt/wLonxsMPQ8n8IL78NCSamGkXHnY GlhBF0QaakKv3EVzRmjwrB/F3PbesZMWoWvVVHDQSZv3ne0NgSMOEge1Hjy0ONKbifY0 lxI06ELCHo2TqL8pc77W/mj2WsulMGUgAz6dqt+cyPrju6UJK30Ukujawl+8jyCp7Yo+ EPYHty4k5KwQmcQwdnKGJJceBdFL/tea69QQS9iCGR7tvUuvsfbUm1g5+duVjxDiToaE Q9xK/zDyEJKmj0kA62EzdjZVl6mIuR+eZ10uzYtmmO4nSOHhYiuiyiBsiI0O1QE+cEj6 NNpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=S2d51Isq; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=Kxp5Lqvz; 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 g18-20020aa7d1d2000000b0043c436a8d48si1261609edp.582.2022.08.18.08.49.47; Thu, 18 Aug 2022 08:50:14 -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=S2d51Isq; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=Kxp5Lqvz; 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 S1343550AbiHRPey (ORCPT + 99 others); Thu, 18 Aug 2022 11:34:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343842AbiHRPet (ORCPT ); Thu, 18 Aug 2022 11:34:49 -0400 Received: from wnew2-smtp.messagingengine.com (wnew2-smtp.messagingengine.com [64.147.123.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3C7AAA4F2 for ; Thu, 18 Aug 2022 08:34:48 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailnew.west.internal (Postfix) with ESMTP id E71C52B05E12; Thu, 18 Aug 2022 11:34:45 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 18 Aug 2022 11:34:48 -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=1660836885; x=1660844085; bh=GAUFg7YBUW 3KZkhSrcZm39FqAMhooeWFavdqBj/boSc=; b=S2d51Isqq1Zfi+AxajatuXg8ye 15pL9Ze1gddbSMyun1wfS4cpEKeWIg4QYxg+xB0iFEfetn6vHYqxlf9WzmGGlN+s TZeMN7EQp1GkuStXBnZG2qlTccm/X0PyJGud3p7yM4we7DLrGm8Jc+3ApxtbKo/+ oRilxp1otV1Cs0FMSDy/TtSuG0zWrrwGG+cE//gT5H8nuKD6eLXrW1yuFpKXzhzh FW+C+gqSSGisQR79QdKt3IGOX74xDqhW+Dg6FS98tGt/7FEXDb+TC497+mHp3Wvu jjBF2cpTN/VZh7sjofWUHdRAkdxgOo5ZG0aHPNctYFZ+VNxh6RXq+H6FhtOg== 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=1660836885; x=1660844085; bh=GAUFg7YBUW3KZkhSrcZm39FqAMho oeWFavdqBj/boSc=; b=Kxp5Lqvz6W8BPZZDJaChn+WcunwvHAs4cXxk2ZFCRpvL aT3+o9AcUrC8ErQZQV+kv2UUd/cXjqJB2OsnxNHU+hrtzDhOAJMp4nL/nkTVn+cn 8Fbockon/GbHKurPtThGGaGw3Q2D8K93WX1jv+OPq0HgUJgCIfVKuDNWRZU8qdBp T8dD5c1L6YpEiKRFd410q6fiT9N//vW6a7kweZBnAVv2xLMB2u5bvmcmqkrElLuL zw8YK4aMx1w2/Kpe/fJ498Xv7NcbRt9K6S7u2eod5uPv3tcJ2o4D3co6M0dAE9AM ORR5ViHu7KGwjv7gjBzjr1QZTFQo9PKkxeYU3HuAgA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdehledgieehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofgrgihi mhgvucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrg htthgvrhhnpedtleekjeeiudefvdfhieffteelhfeivdeliefgieeugffhvdelieffjeei geetjeenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrgihimhgvsegtvghrnhhordhtvggt hh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 18 Aug 2022 11:34:44 -0400 (EDT) Date: Thu, 18 Aug 2022 17:34:42 +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: <20220818153442.u4knumkfbe7j6zj3@houat> References: <20220816154956.pkdpxmmw27mia5ix@houat> <20220817074710.w4c4xwj7edly2b5p@houat> <20220817111454.pn2iltvyo2drebq7@houat> <20220817131854.jwmhqvhfhp77bbr3@houat> <20220818145436.vqojnhmvhjxdzooe@houat> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="zlk7q2pcgbstxof7" 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 --zlk7q2pcgbstxof7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 18, 2022 at 05:20:42PM +0200, Geert Uytterhoeven wrote: > Hi Maxime, >=20 > On Thu, Aug 18, 2022 at 4:54 PM Maxime Ripard wrote: > > On Wed, Aug 17, 2022 at 04:04:24PM +0200, Geert Uytterhoeven wrote: > > > On Wed, Aug 17, 2022 at 3:19 PM Maxime Ripard wro= te: > > > > On Wed, Aug 17, 2022 at 03:05:52PM +0200, Geert Uytterhoeven wrote: > > > > > On Wed, Aug 17, 2022 at 1:15 PM Maxime Ripard = wrote: > > > > > > On Wed, Aug 17, 2022 at 10:35:07AM +0200, Geert Uytterhoeven wr= ote: > > > > > > > On Wed, Aug 17, 2022 at 9:47 AM Maxime Ripard wrote: > > > > > > > > On Wed, Aug 17, 2022 at 09:31:18AM +0200, Geert Uytterhoeve= n wrote: > > > > > > > > > On Tue, Aug 16, 2022 at 5:50 PM Maxime Ripard wrote: > > > > > > > > > > On Tue, Aug 16, 2022 at 04:43:44PM +0200, Geert Uytterh= oeven wrote: > > > > > > > > > > > > > > > Either you have to add them here (e.g. "hd720= p50" and "hd720p60"), or > > > > > > > > > > > > > > > handle them through "@". The latter= would impact "[PATCH v1 > > > > > > > > > > > > > > > 09/35] drm/modes: Move named modes parsing to= a separate function", as > > > > > > > > > > > > > > > currently a named mode and a refresh rate can= 't be specified both. > > > > > > > > > > > > > > > > > > > > > > > > > > > > I think the former would make more sense. It si= mplifies a bit the > > > > > > > > > > > > > > parser, and we're going to use a named mode any= way. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 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 mode hd720p50, > > > > > > > > > > > > > > which would be equivalent to 1280x720,tv_mode= =3Dhd720p > > > > > > > > > > > > > > > > > > > > > > > > > > So where's the field rate in "1280x720,tv_mode=3D= hd720p"? > > > > > > > > > > > > > > > > > > > > > > > > Yeah, sorry I meant 1280x720@50,tv_mode=3Dhd720p > > > > > > > > > > > > > > > > > > > > > > Above you said "I think the former would make more se= nse", so that > > > > > > > > > > > should be "1280x720,tv_mode=3Dhd720p50"? > > > > > > > > > > > > > > > > > > > > No, 720p at 50Hz would be either hd720p50 or 1280x720@5= 0,tv_mode=3Dhd720p > > > > > > > > > > and 60Hz would be hd720p60 or 1280x720@60,tv_mode=3Dhd7= 20p > > > > > > > > > > > > > > > > > > I disagree: hd720p50 and hd720p60 are different TV modes. > > > > > > > > > > > > > > > > I agree, and I don't see how that command-line doesn't expr= ess 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 ra= te. > > > > > > > > > > > > Only if we're using a named mode, and naming is hard :) > > > > > > > > > > That's not true: "640x480,tv_mode=3DPAL-N" would give me a mode w= ith > > > > > 625 lines and 25 frames/s, "640x480,tv_mode=3DPAL-M" would give m= e a > > > > > mode with 525 lines and 30 frames/s. > > > > > > > > In that series, "640x480,tv_mode=3DPAL-N" would be rejected as inva= lid: > > > > > > > > https://lore.kernel.org/dri-devel/20220728-rpi-analog-tv-properties= -v1-14-3d53ae722097@cerno.tech/ > > > > > > It would become supported once the ideas from thread "[PATCH v1 04/35] > > > drm/modes: Introduce 480i and 576i modes" are implemented... > > > > Indeed, but I'm still not sure what your concern is here. > > "640x480,tv_mode=3DPAL-N" and "640x480,tv_mode=3DPAL-M" are both fairly > > obvious. > > > > You were initially saying that you had concern over the inconsistency of > > NTSC/PAL/SECAM where the TV mode would specify a number of lines and > > frame rate, but hd720p50 also specifies a number of line and frame rate? >=20 > My concern is that you want to call the TV mode "hd720p", which > does not dictate the frame rate. > I would like to have both "720p50" and "720p60", as they do dictate > the frame rate, like all the non-hd modes. But they don't? The refresh rate is part of the drm_display_mode, whereas that property is metadata and entirely separate from the display mode. You can even change it without changing the mode at all Maxime --zlk7q2pcgbstxof7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCYv5cEgAKCRDj7w1vZxhR xY/lAP4ouRoHdY9bHKZSp+wtASk8iZSUl11mDM3E2bLvkDHbXwEAlugNW44dB/5n SVBu8xcbWOl4IqoJVVeIxrn04MiX3ww= =N3ll -----END PGP SIGNATURE----- --zlk7q2pcgbstxof7--