Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8761898rwb; Thu, 24 Nov 2022 04:05:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf6z+Fjz9brbWQ4TSsp7vMBFPs73z3SxXYOQ8hmyyDqZiNukBmanSc8DG3aoDJ6WScI3oNvL X-Received: by 2002:aa7:d718:0:b0:467:6ffe:e94c with SMTP id t24-20020aa7d718000000b004676ffee94cmr29381977edq.417.1669291509565; Thu, 24 Nov 2022 04:05:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669291509; cv=none; d=google.com; s=arc-20160816; b=Hea+5WLyJao6iFKUdpphSmwb+WN9B5Auq2Rhc95luUD2zcbTwifFyQp+NTTzgiiiAU 1vVnlMewDoJOS8d17NQ8sNuVDutmVr+wXtsva8zcksUE2pWWLoX9hwxaUZn4Icqsovn1 OLGns60EqE+f+ZuPIXCrBky+pLhyB5eMvRFR82sLe3qACCW1FjAhvM9bozcZsNzTZeRO YCKgsrSVPD98E2dNune0taEiLJ5MaffmN0HiNvW5MZJgLmLbJ0clN44whnEItzxGLZ8K OaW4pQ0jiQIHpFYvHKVwfhVXW/MZXnKa70DSqwFsaazMmjrwkU5axFuEIXQPAhp5lyca FDPg== 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:to:from:date:feedback-id :dkim-signature:dkim-signature; bh=OHFx68nmnn/ceAUAI4qgZcV6iBa2E8isOTaxL9ONytc=; b=rxoZM41Muckh4Kl1oGdzjxRvzyeGhKKk+7slAAhUW2bd+paUAjSQ4IWMp/J5RU+6cl kTEpGIv3ivRKEkGXQJ3DQao7BZxGp+gq7ikSeOXnczQoo2+13cCPfo1Phcc79eILOfN+ xJK5LxAH4Vant0+m2aqlcIhwFdBljp2E+AJFqmMOhlnW5vDO61Bqb4+B1WnBHJQAqonR ox+cbBtd1yFNjyf3awI7NQDtr+Fgc5I/kZMPodYwgGeGaVrkGUBfWsP1cnc088cwYFL5 1/5WgLb+pD19ujYWRui4xmCsJqVZrIUOv7Ip2/+xJZaW10PvTUWOCd/FZ3En5Bfc1Xyf tVJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=HJiPVgLy; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=J0uwUwXh; 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 eb5-20020a0564020d0500b0046a711ae23csi259060edb.515.2022.11.24.04.04.47; Thu, 24 Nov 2022 04:05:09 -0800 (PST) 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=fm2 header.b=HJiPVgLy; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=J0uwUwXh; 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 S229948AbiKXLuC (ORCPT + 86 others); Thu, 24 Nov 2022 06:50:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230194AbiKXLt6 (ORCPT ); Thu, 24 Nov 2022 06:49:58 -0500 Received: from new4-smtp.messagingengine.com (new4-smtp.messagingengine.com [66.111.4.230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F7A5BCDD0 for ; Thu, 24 Nov 2022 03:49:52 -0800 (PST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailnew.nyi.internal (Postfix) with ESMTP id C2B395802A8; Thu, 24 Nov 2022 06:49:49 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 24 Nov 2022 06:49:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h=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=fm2; t=1669290589; x=1669297789; bh=OHFx68nmnn /ceAUAI4qgZcV6iBa2E8isOTaxL9ONytc=; b=HJiPVgLyhrcSJIoI5oHBuPCtif 7TkeOKloNPGFr9G7HpxETWIMqUwKFx7SL0JFIN+tCq7qTefMU73nDb1kgWY9jEvg jju8MAnU/W05uYdGIOo0suZbsbnlpf6AARruwbjhh7i0zHTNROi8w9fsLR+/J+uI f2k5Yn79Z5tPdt/6/Tx5DUQUAY3F5CNLACZt2EWIfOpA2BxKKAkED9sTiNGG8t9j Ox5M/iBawaCECjHYxKQvyUSfQyE/k6FerKXCxUwZkCogrOqHhSOaKWZH4RLP+9tU K9c2QGBt55ntYGJaWExIy1fpWtiPMjl7R3S+X29r22VUVBPgRlMssonXNFcQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=1669290589; x=1669297789; bh=OHFx68nmnn/ceAUAI4qgZcV6iBa2 E8isOTaxL9ONytc=; b=J0uwUwXhLVqUyKTozkwlimGquvlzDQkdPFAmgu6P/Gva zBEet87p11qgTrBX3XIePgLUa6o0iKWmbAijtdFm3m6jX3sFI2A+XANbsS1ziNUc lB1dYIjGgsVTV4IIPiOiEDdo72Kist/8YrNKcpBaW+cALs27xmBxozD8SL6UYZNs +PSczmcvdsS5ZGV6QwesmFhMwp3QdWmxb1SNwavWw6LKO74i71QmKgTebKxG2UrZ bivRxY+dD9UYez5vVu3mFzjEzKc3lHRmhR9f9T8XucrUoG0/WclxpqyBYZIRslpn HvOE5Y2B8QvhuF7QywZXFyxGQuKjkQUdc6NGRTprMg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrieefgdefgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofgrgihimhgv ucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrghtth gvrhhnpeelkeeghefhuddtleejgfeljeffheffgfeijefhgfeufefhtdevteegheeiheeg udenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrg igihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 24 Nov 2022 06:49:47 -0500 (EST) Date: Thu, 24 Nov 2022 12:49:45 +0100 From: Maxime Ripard To: Samuel Holland , Jernej Skrabec , Maarten Lankhorst , Rodrigo Vivi , Joonas Lahtinen , Ben Skeggs , Chen-Yu Tsai , David Airlie , Jani Nikula , Tvrtko Ursulin , Emma Anholt , Karol Herbst , Lyude Paul , Thomas Zimmermann , Dave Stevenson , Hans de Goede , nouveau@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, Noralf =?utf-8?Q?Tr=C3=B8nnes?= , dri-devel@lists.freedesktop.org, Mateusz Kwiatkowski , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, Dom Cobley , Phil Elwell , Geert Uytterhoeven Subject: Re: [PATCH v10 00/19] drm: Analog TV Improvements Message-ID: <20221124114945.oqilsc7zjth4jwso@houat> References: <20220728-rpi-analog-tv-properties-v10-0-256dad125326@cerno.tech> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="apvrjccnplb3u7fu" 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 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 --apvrjccnplb3u7fu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 21, 2022 at 03:51:26PM +0100, Daniel Vetter wrote: > On Thu, Nov 17, 2022 at 10:28:43AM +0100, Maxime Ripard wrote: > > Hi, > >=20 > > Here's a series aiming at improving the command line named modes suppor= t, > > and more importantly how we deal with all the analog TV variants. > >=20 > > The named modes support were initially introduced to allow to specify t= he > > analog TV mode to be used. > >=20 > > However, this was causing multiple issues: > >=20 > > * The mode name parsed on the command line was passed directly to the > > driver, which had to figure out which mode it was suppose to match; > >=20 > > * Figuring that out wasn't really easy, since the video=3D argument o= r what > > the userspace might not even have a name in the first place, but > > instead could have passed a mode with the same timings; > >=20 > > * The fallback to matching on the timings was mostly working as long = as > > we were supporting one 525 lines (most likely NSTC) and one 625 lin= es > > (PAL), but couldn't differentiate between two modes with the same > > timings (NTSC vs PAL-M vs NSTC-J for example); > >=20 > > * There was also some overlap with the tv mode property registered by > > drm_mode_create_tv_properties(), but named modes weren't interacting > > with that property at all. > >=20 > > * Even though that property was generic, its possible values were > > specific to each drivers, which made some generic support difficult. > >=20 > > Thus, I chose to tackle in multiple steps: > >=20 > > * A new TV mode property was introduced, with generic values, each dr= iver > > reporting through a bitmask what standard it supports to the usersp= ace; > >=20 > > * This option was added to the command line parsing code to be able to > > specify it on the kernel command line, and new atomic_check and res= et > > helpers were created to integrate properly into atomic KMS; > >=20 > > * The named mode parsing code is now creating a proper display mode f= or > > the given named mode, and the TV standard will thus be part of the > > connector state; > >=20 > > * Two drivers were converted and tested for now (vc4 and sun4i), with > > some backward compatibility code to translate the old TV mode to the > > new TV mode; > >=20 > > Unit tests were created along the way. > >=20 > > One can switch from NTSC to PAL now using (on vc4) > >=20 > > modetest -M vc4 -s 53:720x480i -w 53:'TV mode':1 # NTSC > > modetest -M vc4 -s 53:720x576i -w 53:'TV mode':4 # PAL > >=20 > > Let me know what you think, > > Maxime >=20 > Maxime asked me to drop an Ack-in-principle on this, and I'm not sure I > have any useful input here with my utter lack of understanding for TV > things (I never even had one in my entire life, that's how much I don't > care). But it seems to check all the design boxes around solving annoying > uapi/kms-config issues properly, so >=20 > Acked-in-principle-or-something-like-that-by: Daniel Vetter Thanks! I jumped the gun a bit too fast and forgot to amend the TV property commit message before pushing it out. For the record though, that property is usable through xrandr, xorg.conf or any equivalent compositor mechanism Maxime --apvrjccnplb3u7fu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCY39aWQAKCRDj7w1vZxhR xacgAP9NPkwQFyz0CvvFS5SzvELVnj6t9GBuTq/qrHpTLaRyaAD9GJpLyjLeg7Jy Z0pnBngL2vXGtvYVUCMQy5VhVkMtuAg= =fhxt -----END PGP SIGNATURE----- --apvrjccnplb3u7fu--