Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp634025rwi; Mon, 10 Oct 2022 05:24:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7wo0GOt2ccLK2jWw1dvbLNvMjLArv4MHjV6q582ImubnUrrGMpHT5+qd45Z7NIz63lPUMH X-Received: by 2002:a17:90a:2fc9:b0:202:5605:65ae with SMTP id n9-20020a17090a2fc900b00202560565aemr20838511pjm.167.1665404683845; Mon, 10 Oct 2022 05:24:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665404683; cv=none; d=google.com; s=arc-20160816; b=JVCAhCQlK+V+pqGixa9QOZhtgYvaOf9g8hy7KtxeCaEuJLfcIDU3X8cn+2sMgzbt5+ 0PDVj33nZxdId4uRGLht69yKDGu7+0ZD9GvBgC/XOfEksE4oYPfLEhnpwWHXudvLurui 4Izg2Y9yUl4k1zDsKPc9eUAXh3PUK8q4KpG7TSN+k5/yq3Ig0Un3Uac7S3IlJnqVLYxt jAHJZNpfvz9FB74qngDw3+mB/B773A0ndo6bbGPcRXG3W2nNFFvvz7Udi+CaWJlDlGuB h2yYdxsn1qwkPTnft3YxfYpa0USdG4tltUW9m7FenukUVO7GckHJTBJz+W665hR+jDAN KCeA== 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=DyBqLlTatiP71v0xssFNP/ZJW4ZM9ga+yL599aLXAGs=; b=Fp3TxJMWuHtXdw/ckrGswDiyhoaJjJgfgyLWKgTluSHAR6Jx5/Ho/FAt/PYmr6jlBl lDiYU52XJTsfossrJ0aRlIncckM2uV0o9qwjZGap1bLHNIOnBganOn+s8gsGUT4Fa1mF tdhEa0eprYbAHjmNUUGWx/h2ExAyGTGbBqGHUfXqkjTKj0FYERApgrOVu3+nTWJdn0h6 mktnoj8eGEmUX6ZkfaBq2N6pd/kvD2g2tW/zdk0iwmPeAW/Eh04iP++k409Rc3MbDRw+ FrMjE6vPPT4RENTToeSSbDpac0rkxAZ68Bkx9V4T/rtkdhLIsNYecd5jNh+u3phelYVY WO1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=JHBNpla2; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=EWgIqPFf; 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 v185-20020a6389c2000000b0045160a30fcasi11776093pgd.388.2022.10.10.05.24.31; Mon, 10 Oct 2022 05:24:43 -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=JHBNpla2; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=EWgIqPFf; 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 S232520AbiJJMMM (ORCPT + 99 others); Mon, 10 Oct 2022 08:12:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232415AbiJJMLq (ORCPT ); Mon, 10 Oct 2022 08:11:46 -0400 Received: from wnew2-smtp.messagingengine.com (wnew2-smtp.messagingengine.com [64.147.123.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64FCE6555F for ; Mon, 10 Oct 2022 05:11:44 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.west.internal (Postfix) with ESMTP id D0D1C2B05E7C; Mon, 10 Oct 2022 08:11:39 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 10 Oct 2022 08:11:43 -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=1665403899; x=1665411099; bh=DyBqLlTati P71v0xssFNP/ZJW4ZM9ga+yL599aLXAGs=; b=JHBNpla2tKyffYFyXKYvT37Nb6 n49ayggr3uMwlFYI6CsBtbAHTv60YvtehqJw2FvvfXI43IoEX2leHnUCwaw2pB/U G/t5XfYE5EKBZQFZd9dj51IDaED/UKOcRd4YlYpc9XK51K6H7B2N3Og1/bpHJ7J+ VTrymxbhz7fmcMMo7gCS+CKKTYrv2J19G+T8fT+xlgf8UW31XMyQ2e13oQMGm3L8 yvyzi3e7f9ZNY2z/m1MkgJCpu0lyPoMClopLWrx9LmH0hMfCwk+tzIXXR0RbdhCG iVyXkKwznsZyxeQcZjXgTiTb+zHmGvxDnQCaCoCr1taT9aX4PN6JSycmQ7rQ== 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=1665403899; x=1665411099; bh=DyBqLlTatiP71v0xssFNP/ZJW4ZM 9ga+yL599aLXAGs=; b=EWgIqPFfCd5tKKxSo/vFZa07QQpFj12IHOhsbZS4c1zo gjW9xV7rpWeuLyEUuFXrnKzZJVwHie0MZoThjH4RqEkA9Fx/eG113evRQMxZNNSs rrGX5HBbteM5HqefpX8SSd2yamYaJaN+ELhq9T/+UDtRTynkRowimbY1tJUmNziF 7SQ5VOhXYrzigolMvzludZXv69w8+HGBp1P1Jjf/N0lXljiE/Y1xAwyH7tkT9Osu Hr/2tBRtgPNbvDeZcWiFZLUCP+rst6BA6mi5KEtxBCwWzEF54vWKNIFc+SL9CxJg dK5ZHj4rKtvzJ19iL2uTUr0nEgLHH0tIjfHcFK4Bpg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeejgedggeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesghdtreertddtudenucfhrhhomhepofgrgihi mhgvucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrg htthgvrhhnpeejveefheefkeeiffegveelveetgffffeektdefuefhtedtgeejhefggedu ffffudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hmrgigihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 10 Oct 2022 08:11:38 -0400 (EDT) Date: Mon, 10 Oct 2022 14:11:23 +0200 From: Maxime Ripard To: Noralf =?utf-8?Q?Tr=C3=B8nnes?= Cc: Jernej Skrabec , Chen-Yu Tsai , Karol Herbst , Samuel Holland , Lyude Paul , Jani Nikula , Daniel Vetter , Thomas Zimmermann , Emma Anholt , Joonas Lahtinen , Ben Skeggs , David Airlie , Rodrigo Vivi , Tvrtko Ursulin , Maarten Lankhorst , linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, Geert Uytterhoeven , intel-gfx@lists.freedesktop.org, linux-sunxi@lists.linux.dev, Hans de Goede , nouveau@lists.freedesktop.org, Mateusz Kwiatkowski , Dave Stevenson , linux-kernel@vger.kernel.org, Dom Cobley , Phil Elwell Subject: Re: [PATCH v4 00/30] drm: Analog TV Improvements Message-ID: <20221010121123.sn6rxj3iwubn5tkc@houat> References: <20220728-rpi-analog-tv-properties-v4-0-60d38873f782@cerno.tech> <0db1c833-eeee-cadd-b050-837d79a3d691@tronnes.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="dlolvdd7kvjkjbu5" Content-Disposition: inline In-Reply-To: <0db1c833-eeee-cadd-b050-837d79a3d691@tronnes.org> 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 --dlolvdd7kvjkjbu5 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Oct 01, 2022 at 03:12:06PM +0200, Noralf Tr=F8nnes wrote: >=20 >=20 > Den 29.09.2022 18.30, skrev Maxime Ripard: > > 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 >=20 > I suggest that you apply the patches that are reviewed, have merrit on > their own and are not tied to the TV mode property. > This will help in keeping this rather big patchset focused and ease the > task for reviewers. >=20 > The following seems to be in that group: >=20 > drm/tests: Order Kunit tests in Makefile > drm/atomic-helper: Rename drm_atomic_helper_connector_tv_reset to > avoid ambiguity > drm/connector: Rename subconnector state variable > drm/atomic: Add TV subconnector property to get/set_property > drm/modes: Only consider bpp and refresh before options > drm/modes: parse_cmdline: Add support for named modes containing dashes > drm/vc4: vec: Fix definition of PAL-M mode Yeah, that was my intention with this series, it's done now, thanks for the= reminder :) Maxime --dlolvdd7kvjkjbu5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCY0QL6wAKCRDj7w1vZxhR xRDnAQCxLDoVhFPZlORYkrlxoTezGu1S3AQmL4/t11gdtxozgQD/WRdupXy8iNif MB/QIxtk3f/Wt+CP26Ii1CnsJaRGqA0= =1Yvq -----END PGP SIGNATURE----- --dlolvdd7kvjkjbu5--