Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp4784955rwb; Wed, 17 Aug 2022 06:10:48 -0700 (PDT) X-Google-Smtp-Source: AA6agR5PKvKjFe46nOxhyVxnKm4A4hZQC03wJNYojEGUbnCrVaV/NDakRVCFE+WqXdCIFEnnJrCd X-Received: by 2002:a05:6a00:2446:b0:528:5f22:5b6f with SMTP id d6-20020a056a00244600b005285f225b6fmr26026070pfj.73.1660741847682; Wed, 17 Aug 2022 06:10:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660741847; cv=none; d=google.com; s=arc-20160816; b=okmzA9ma2gnfHHPLM0kr/T8p2uxbF8OrbuM/bqeUSOhyBAGq6YobYdLvIQDgO1tc5X obQot/n9oV9lre4yAHuflgYSFucMAqsYAdt+ZEnPc33mRg8Q98WMMy+kUXhrSdXrIGXQ FQJ5lWHuSty6XpQFug0mJv92dQaBQzvawMxvfg8TmpjujOJc4ionqzZiKN+G2+djugvf MTL/r990Xs3t34QNysGCSAy4Xmmr65L796/fepsEFeou2R7MIw3kLDpSEbuMqRFI1eV5 meB/5YXuDOU1KigeMXgybBVdYjNoErsHmp1NIL4qs/iJphYBhzI5uQwH13PmOCiNrY0W ynSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=wT+w/e1pir6od65k8fW73wcIBpWHrOcKqnuAFp6tc4E=; b=RIHPMJJ5jOlfQx+MElmoDz3U6iJ2+dNe4+gm9M4qqsdS9hmu8QIAdvV+vr2gLJqFPP ZZpjBV+gEUBKx5Wz8O/q/BKQk8Rwto8QyhIFLoregdmq/A9mziXidXMarrHVvn3eLQfi Kk+TEjaUYNWWsHLHdk/1120WB/yFqRHtuBA9KDd76SlZdLEQRZ1rx5zR5ULzmWoX2b8V 3iacO2hxvE+s8LFPXp/d6xAYPUkk+w7xm0obNlj0IhsUYQuiXzup/o+Yd7nBfwdVFiBp vt84RCIkI4ochd++4D7wlAUivuKtnY2jUDiPIV9SXEbUKUWSxo+C0BDaiPjm5vG6/5Em XejQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l74-20020a633e4d000000b0041a4a97d588si15292146pga.588.2022.08.17.06.10.35; Wed, 17 Aug 2022 06:10:47 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239732AbiHQNIs (ORCPT + 99 others); Wed, 17 Aug 2022 09:08:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239726AbiHQNIY (ORCPT ); Wed, 17 Aug 2022 09:08:24 -0400 Received: from mail-qt1-f182.google.com (mail-qt1-f182.google.com [209.85.160.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 061729677F for ; Wed, 17 Aug 2022 06:06:07 -0700 (PDT) Received: by mail-qt1-f182.google.com with SMTP id h21so10289079qta.3 for ; Wed, 17 Aug 2022 06:06:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=wT+w/e1pir6od65k8fW73wcIBpWHrOcKqnuAFp6tc4E=; b=n8XRE76JvvAIouDx6x746plNd5MtzBj9qOBFDMQvbQzmcg7bbBscetGNpsqi8biuVp OBEeNx5IVFI75/t9WkxPdZEhuTJnbfw6Kgb/07+8Wf8yp6wq8gxNR6DntLhoWX4TNGHg Uk5sCdFWcrk0OV57zZjn3BDsMnUNoh+CafjCZTSPKDDFvuUE3L6ysxsd/q0WCBQ7h6ey 6bWcDLiM5w2Fvgo8FwWp+HezmGJMHhop9QE9coTUpGlIolW0TpiUPQRKXvo93ChU2KdB 3vw0WkrHe0+CCVNwbAwsLhcpurPKe3glo7Ja+3+fAjSYkYGTKKJp9Zc2KBPKoBjKuRlo zk/Q== X-Gm-Message-State: ACgBeo3o2v2QQ47Y5o5xiGhBfCbbiTFdDyiglESJYc4yqs4zehoJ7P9i huJFuf4Z6bYVky+qGC4KnuSFKxohyKM3Bg== X-Received: by 2002:ac8:7dcd:0:b0:344:5abb:afeb with SMTP id c13-20020ac87dcd000000b003445abbafebmr12983062qte.133.1660741565635; Wed, 17 Aug 2022 06:06:05 -0700 (PDT) Received: from mail-yw1-f180.google.com (mail-yw1-f180.google.com. [209.85.128.180]) by smtp.gmail.com with ESMTPSA id t201-20020a37aad2000000b006b9264191b5sm14872846qke.32.2022.08.17.06.06.04 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 Aug 2022 06:06:05 -0700 (PDT) Received: by mail-yw1-f180.google.com with SMTP id 00721157ae682-332fc508d88so159680747b3.3 for ; Wed, 17 Aug 2022 06:06:04 -0700 (PDT) X-Received: by 2002:a81:502:0:b0:32f:dcc4:146e with SMTP id 2-20020a810502000000b0032fdcc4146emr14565309ywf.316.1660741564697; Wed, 17 Aug 2022 06:06:04 -0700 (PDT) MIME-Version: 1.0 References: <20220728-rpi-analog-tv-properties-v1-5-3d53ae722097@cerno.tech> <20220816132040.uwirtjm5yr6rdd3q@houat> <20220816141116.5nuszmilqv2exdb3@houat> <20220816154956.pkdpxmmw27mia5ix@houat> <20220817074710.w4c4xwj7edly2b5p@houat> <20220817111454.pn2iltvyo2drebq7@houat> In-Reply-To: <20220817111454.pn2iltvyo2drebq7@houat> From: Geert Uytterhoeven Date: Wed, 17 Aug 2022 15:05:52 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v1 05/35] drm/connector: Add TV standard property To: Maxime Ripard Cc: Jernej Skrabec , Martin Blumenstingl , Chen-Yu Tsai , Philipp Zabel , Jerome Brunet , Samuel Holland , Thomas Zimmermann , Daniel Vetter , Emma Anholt , David Airlie , Maarten Lankhorst , =?UTF-8?Q?Noralf_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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 Hi Maxime, 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 wrote: > > > 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 wrote: > > > > > > > > > > Either you have to add them here (e.g. "hd720p50" 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 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 mode hd720p50, > > > > > > > > > which would be equivalent to 1280x720,tv_mode=hd720p > > > > > > > > > > > > > > > > So where's the field rate in "1280x720,tv_mode=hd720p"? > > > > > > > > > > > > > > Yeah, sorry I meant 1280x720@50,tv_mode=hd720p > > > > > > > > > > > > Above you said "I think the former would make more sense", so that > > > > > > should be "1280x720,tv_mode=hd720p50"? > > > > > > > > > > No, 720p at 50Hz would be either hd720p50 or 1280x720@50,tv_mode=hd720p > > > > > and 60Hz would be hd720p60 or 1280x720@60,tv_mode=hd720p > > > > > > > > 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 :) That's not true: "640x480,tv_mode=PAL-N" would give me a mode with 625 lines and 25 frames/s, "640x480,tv_mode=PAL-M" would give me a mode with 525 lines and 30 frames/s. > Honestly, I'd be inclined to drop the hd* for now from this series. I > don't have a hardware to test it with, for some we don't even have > drivers that could implement these modes, we don't have a spec to work > from, it looks like a recipe for failure :) OK. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds