Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3616202rwb; Sat, 12 Nov 2022 09:03:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf7kR9fJ6Bh9kjAsJx65OOL57WJeSmp8G3bqgfbHTP5d+fOxdnCQ3EnxNJPrP72pvfqu/tNQ X-Received: by 2002:a17:906:74cb:b0:78d:acf7:86a1 with SMTP id z11-20020a17090674cb00b0078dacf786a1mr5819209ejl.21.1668272607246; Sat, 12 Nov 2022 09:03:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668272607; cv=none; d=google.com; s=arc-20160816; b=dv8SmocAyKgYoQ65Jie40ESi8PLFApXVUmU2Bl1hSyYATITyHiw8nwllZuXs06dI6A XHOyP0Kv29qImTpd/3ymBnrPosf5dYbqDfkYkrNYpt9HeK5jAXflDTijj3hyKO8G6rQO Vz+BspT9N0pWXr8NDHmbtyJ+/HzZGCSMbFZc7vrObePg93tedubKILo4NWNTP90Y+T6W yGdK9+WT7gDWz155LJJIe8Sb8eUepYUo2QZpaK2asGhpBGGZFOe1BIJEW2rlC4QeFYR7 mDa4iF8053I787VW2MfgkQnj+1bFSR9i44h9A5bBEysI8orwRnoqcj/3JIVMZOE724wu lN+A== 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=ItdrEzd/ypbcqe2BCw66feMX7m17nPXFSJOaI27/nkQ=; b=l0oz6xoPouwWS5Ff5FdyOpgAZ8nFi3NBhpKuYTuJDIjrUXCqulNqJhtv1KbdbOcRmu tHnrhePrOuy6S6KQNPuNYOHj4Io/rsFspyiWBTImX1NuQahfUOTA7Aeo4ZoDFB9llhRh 00E4EigzW7dBkUlkMK1+LO6JjQkNOqFGyZYERLNXD/0d6EmPC/WwgdshlX/RhpIL/sq9 lmZ9bCt2aQlQYC8xWN/xlHleZuOGBkp4iPqG3y7iylwEQ7sCq5AwUGZij6f78VqhVlOY cYLm4+bdxcGBf1LcNSJ0zInxQA+UpIIdmoXVsJjrhixO5h5qUEQmAa1lqk4+C7piJXOx RM/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@tronnes.org header.s=ds202112 header.b=rFsBBXpR; 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 t22-20020a1709067c1600b007829d30452asi3424324ejo.583.2022.11.12.09.03.02; Sat, 12 Nov 2022 09:03:27 -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=fail header.i=@tronnes.org header.s=ds202112 header.b=rFsBBXpR; 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 S234899AbiKLQ3r (ORCPT + 90 others); Sat, 12 Nov 2022 11:29:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231534AbiKLQ3q (ORCPT ); Sat, 12 Nov 2022 11:29:46 -0500 Received: from smtp.domeneshop.no (smtp.domeneshop.no [IPv6:2a01:5b40:0:3005::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64948DF16 for ; Sat, 12 Nov 2022 08:29:45 -0800 (PST) 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=ItdrEzd/ypbcqe2BCw66feMX7m17nPXFSJOaI27/nkQ=; b=rFsBBXpR5kW0ZTIRro+NqvImhk EhsHq7xGOjgbT5Q0JMV7Rup1oo8niXkDANAAgbHovP46Tc9i2Z0T0+LN9Z0LT7Wf4O0AyERaC7N4I sCC0JKdGDK/DiO/FJfBpqhXQkn3Cg72/KQIBKNoHojAbWzpjvqUNB1Z2Ks94AACK4uc2EI2mDnrLv UAKzvHVCTJwswnGU08vwygQY6vCNXKkQDiHrzyAOVaK52Myy4vxamy7VUC0onDOJmUgsGo/nAgNeV yBGpPCv6RuENflkIaDgPHpx4IAYutqo4ui1Fv38RPkkHgqG/nO2Q3qtS5LJe646/zMqtjDhA2brFp 2x15nfjg==; Received: from [2a01:799:95a:cb00:9d29:d4c4:45a0:777e] (port=49700) by smtp.domeneshop.no with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ottO1-0006e5-Er; Sat, 12 Nov 2022 17:29:41 +0100 Message-ID: <02747a6a-567a-5a70-4ab5-735eda8ac179@tronnes.org> Date: Sat, 12 Nov 2022 17:29:32 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v8 14/24] drm/modes: Properly generate a drm_display_mode from a named mode To: Maxime Ripard , Maarten Lankhorst , Chen-Yu Tsai , Maxime Ripard , Jernej Skrabec , Karol Herbst , Jani Nikula , Daniel Vetter , Lyude Paul , Samuel Holland , Joonas Lahtinen , Thomas Zimmermann , Emma Anholt , Rodrigo Vivi , Tvrtko Ursulin , David Airlie , Ben Skeggs Cc: nouveau@lists.freedesktop.org, Dom Cobley , intel-gfx@lists.freedesktop.org, Phil Elwell , linux-sunxi@lists.linux.dev, Mateusz Kwiatkowski , Hans de Goede , linux-kernel@vger.kernel.org, Dave Stevenson , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, Geert Uytterhoeven , =?UTF-8?Q?Noralf_Tr=c3=b8nnes?= References: <20220728-rpi-analog-tv-properties-v8-0-09ce1466967c@cerno.tech> <20220728-rpi-analog-tv-properties-v8-14-09ce1466967c@cerno.tech> From: =?UTF-8?Q?Noralf_Tr=c3=b8nnes?= In-Reply-To: <20220728-rpi-analog-tv-properties-v8-14-09ce1466967c@cerno.tech> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 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 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 10.11.2022 12.07, skrev Maxime Ripard: > The framework will get the drm_display_mode from the drm_cmdline_mode it > got by parsing the video command line argument by calling > drm_connector_pick_cmdline_mode(). > > The heavy lifting will then be done by the drm_mode_create_from_cmdline_mode() > function. > > In the case of the named modes though, there's no real code to make that > translation and we rely on the drivers to guess which actual display mode > we meant. > > Let's modify drm_mode_create_from_cmdline_mode() to properly generate the > drm_display_mode we mean when passing a named mode. > > Tested-by: Mateusz Kwiatkowski > Signed-off-by: Maxime Ripard > > --- Reviewed-by: Noralf Trønnes