Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3562932rwb; Fri, 30 Sep 2022 05:28:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6lP0HSWx89eC7DpeajuVl0sp90vTPT2kelX0yWy77Y04ZqiffzbI76ur5i18PgvyzVgGRw X-Received: by 2002:a05:6402:34d0:b0:458:a4a:6dd0 with SMTP id w16-20020a05640234d000b004580a4a6dd0mr7641307edc.297.1664540929746; Fri, 30 Sep 2022 05:28:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664540929; cv=none; d=google.com; s=arc-20160816; b=rh3IwdoyRXaAt+Dzq3tSTBOT/4Oe80eD51Eq1+mcXwWTsHVCx/HHvGTI1YgpIZq6M4 kR2Bbw2xrC88pXl2V/cYQXpVXul5oMxzgXZ4A+mrLOKxdCUfDu8fwbCwn3ZtK/33VjhF pqi+BvmLLwyFw1roJnDz11x7MMEhNHauS4UUYZC/MzzoLV5WREFd7av5gDIRL+8+NQxR TC538EvNuWTfdcvU5Qcj6rZy483XsNscQQSwpJRs6kUWxRraA8gs7+8JGAe7YnmptRhT Hn2ag6aZTwsLw5z4Jifoe6M5fBY7sl6dmFVc744LbG/24H1Bl0aQ8SWbwOZ4w4U7C/PB 9erQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=IifDSaiSaen7SDFh+4iH9IwPZlddD8Axc+s6Pi1ODoY=; b=QSW9KSIMjfn8ZsDHSOKQ9kYlCW/2dIUhkGmxi5uNcFdYoLOTOQIoRgsXsLQmfWuix4 +aOxRb3zlbdOYdBU2JgB7nD8Tg/L19FqRHNkMT8cAa99B71wjnTPGO3yhXAoeWQV8d9q 2dge59MH1KTYvF0XLlJ3GDu//OgqBLJqEmUxRSxIZL5SLsF9NF1oAQUMDgxXGAnqyZZ1 JQr0+6vbphhVrA6tVKcKapVBaCCLdx9xWhPDxZTtp3XQPqBEM4g5Oj3p+1BTydDJ0CGo dp2+cVErP7hlFsVM7Ppso7vjZTkOiHxVjjmuH696IAlxahgdxTvaGGrUU3G2nlhx2UK/ xcjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@tronnes.org header.s=ds202112 header.b="OYj/yleD"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=tronnes.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hc17-20020a170907169100b0078829268499si1098604ejc.801.2022.09.30.05.28.24; Fri, 30 Sep 2022 05:28:49 -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=fail header.i=@tronnes.org header.s=ds202112 header.b="OYj/yleD"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=tronnes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231532AbiI3Lua (ORCPT + 99 others); Fri, 30 Sep 2022 07:50:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231342AbiI3Lt5 (ORCPT ); Fri, 30 Sep 2022 07:49:57 -0400 Received: from smtp.domeneshop.no (smtp.domeneshop.no [IPv6:2a01:5b40:0:3005::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85A301288AA for ; Fri, 30 Sep 2022 04:46:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tronnes.org ; s=ds202112; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=IifDSaiSaen7SDFh+4iH9IwPZlddD8Axc+s6Pi1ODoY=; b=OYj/yleDGKQJZnmZIrlEbeP/b/ DoAf3KiJo708NW1GO9RM8Z0+qA/GZsSTYp623JXFCkgvJEkD7l059APXopLJt3s4dB4BYpBi29rDP NI+lAlBtvJE5WCKwt8oBRNksB3aLgmGnEcT32XxqmqSa+FRLo/DpbyhRogW6WUmikYauxGu65WXKu AGiTYT3bUNYgYIlD0pNZwY7ND2rRwa0GJMbrjn2bjKkl2T+yzthf3wPj4JShRhiBeCWEntMXdpx5u 8NWKpSyVfeG5PDsXJd8qWDfPuX//9GUVhLdFQO691ossfQdYJDnMUYwa6FlsyJ2LNeWm7Vzwk7hW4 l1wydY+Q==; Received: from [2a01:799:961:d200:c807:6849:43f8:dd23] (port=55455) by smtp.domeneshop.no with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oeETG-0003MV-SM; Fri, 30 Sep 2022 13:46:22 +0200 Message-ID: Date: Fri, 30 Sep 2022 13:46:19 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.13.1 Subject: Re: [PATCH v4 10/30] drm/connector: Add TV standard property To: Maxime Ripard , 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 , Maxime Ripard Cc: 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 , =?UTF-8?Q?Noralf_Tr=c3=b8nnes?= References: <20220728-rpi-analog-tv-properties-v4-0-60d38873f782@cerno.tech> <20220728-rpi-analog-tv-properties-v4-10-60d38873f782@cerno.tech> From: =?UTF-8?Q?Noralf_Tr=c3=b8nnes?= In-Reply-To: <20220728-rpi-analog-tv-properties-v4-10-60d38873f782@cerno.tech> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,WEIRD_QUOTING 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 Den 29.09.2022 18.31, skrev Maxime Ripard: > The TV mode property has been around for a while now to select and get the > current TV mode output on an analog TV connector. > > Despite that property name being generic, its content isn't and has been > driver-specific which makes it hard to build any generic behaviour on top > of it, both in kernel and user-space. > > Let's create a new enum tv norm property, that can contain any of the > analog TV standards currently supported by kernel drivers. Each driver can > then pass in a bitmask of the modes it supports, and the property > creation function will filter out the modes not supported. > > We'll then be able to phase out the older tv mode property. > > Signed-off-by: Maxime Ripard > > --- > Changes in v4: > - Add property documentation to kms-properties.csv > - Fix documentation > --- > Documentation/gpu/kms-properties.csv | 1 + > drivers/gpu/drm/drm_atomic_uapi.c | 4 +++ > drivers/gpu/drm/drm_connector.c | 57 +++++++++++++++++++++++++++++++- > include/drm/drm_connector.h | 64 ++++++++++++++++++++++++++++++++++++ > include/drm/drm_mode_config.h | 8 +++++ > 5 files changed, 133 insertions(+), 1 deletion(-) > > diff --git a/Documentation/gpu/kms-properties.csv b/Documentation/gpu/kms-properties.csv > index 45c12e3e82f4..3498bd5d5856 100644 > --- a/Documentation/gpu/kms-properties.csv > +++ b/Documentation/gpu/kms-properties.csv > @@ -91,6 +91,7 @@ omap,Generic,“zorder”,RANGE,"Min=0, Max=3","CRTC, Plane",TBD > qxl,Generic,"“hotplug_mode_update""",RANGE,"Min=0, Max=1",Connector,TBD > radeon,DVI-I,“coherent”,RANGE,"Min=0, Max=1",Connector,TBD > ,DAC enable load detect,“load detection”,RANGE,"Min=0, Max=1",Connector,TBD > +,TV Mode,"""TV Mode""",ENUM,"{ ""NTSC"", ""NTSC-443"", ""NTSC-J"", ""PAL"", ""PAL-M"", ""PAL-N"", ""SECAM"" }",Connector,TBD > ,legacy TMDS PLL detect,"""tmds_pll""",ENUM,"{ ""driver"", ""bios"" }",-,TBD > ,Underscan,"""underscan""",ENUM,"{ ""off"", ""on"", ""auto"" }",Connector,TBD > ,,"""underscan hborder""",RANGE,"Min=0, Max=128",Connector,TBD Turns out I was wrong about adding the property to this file, Daniel says it's deprecated in f0f0657b108c ("drm/doc: Drop "content type" from the legacy kms property table"). If you look at the Fixes commit it adds a kernel doc HDMI property section and TV should probably have something like that. Noralf.