Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp118765imn; Fri, 29 Jul 2022 01:28:50 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sYscE3Ra6ujgzkpaQcazlOrU27qvcsbletDWU0bBGVFBs4XLQOtkpCVSfWDx2P0NefmO41 X-Received: by 2002:a17:907:b590:b0:72b:949c:c737 with SMTP id qx16-20020a170907b59000b0072b949cc737mr2071885ejc.155.1659083330139; Fri, 29 Jul 2022 01:28:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659083330; cv=none; d=google.com; s=arc-20160816; b=DSGtj5OHZjx5+3OW3kWeMRNPVDd1LkIKSw0BAE+QjV++T56JMZn1NZefzcJAYQCcbI I5xUxtSjGqxCCPRZ6rXdbANRXeRzGeNz17mMK2DXZb6KaB2aFopxamisfYZ/YA78L0/v 0wl9S4QKgQ7h3Rcq4Ls5QQEpXXnSQGSVUIRvZzqxsri/lNObJ9SxMPbQK33HFesVzuPX 3EMEnFi7ReeRUC2X/Bnr9Eh4NeOXt9SVoiyc5wZOa8g0dWZN/a3iptWyeQWPjKcJwwzm /JWSRQjJaFGQ0C0vyJvMBanY9w9vNzTQRxsq1RrzGeGcO5NXfUufAOPqXdpUC0jUMQ3B QANw== 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=x/uGRUiGzRDd3km1ZgnwtdHQHNmvSMC7sQG/+Jd4zoo=; b=1K6F8R+MYl6O2RilFsTFneeXZMWEpY6gxnbBLckr4VxKdXzevz8ukfe2c7yY4DSWhs 73id0Vyb2wn6WdvEmgz8zH5fGL2seHaAIw2nx+lMdrY64vveafvF3sx6webAGxAOQLIT yheSlKqpaQdKszNQCZAgVi9zIR/JbTg1A65oQs4wV385Edgg6AI7AQcwVWhKm63TCG9E YF4IGWfp1049UwQ1rMFU7xYbIgxfk76tBgTjKru7Mvv/MvsXdjAJlE3K3E25R8sT9fVA T8z5XYd2vpCfJvJQqAzjvaYgVYTSEPOh/kuQf+BePd68rhZGhTU1R/KM1aoN8IXIgvuJ SGiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=DemEI6dS; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=YRxavZe8; 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 p17-20020a50cd91000000b0043a71d95839si2624778edi.546.2022.07.29.01.28.26; Fri, 29 Jul 2022 01:28:50 -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=fm2 header.b=DemEI6dS; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=YRxavZe8; 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 S235004AbiG2Hvb (ORCPT + 99 others); Fri, 29 Jul 2022 03:51:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230167AbiG2Hv2 (ORCPT ); Fri, 29 Jul 2022 03:51:28 -0400 Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B3DC7E010 for ; Fri, 29 Jul 2022 00:51:27 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 8BD2C320097D; Fri, 29 Jul 2022 03:51:23 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Fri, 29 Jul 2022 03:51:24 -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=fm2; t=1659081083; x=1659167483; bh=x/uGRUiGzR Dd3km1ZgnwtdHQHNmvSMC7sQG/+Jd4zoo=; b=DemEI6dSqK7EJVTyXhNlRLZ/jk k7DuMlQ/vpPv6NeJz7Bsf8jOI+1qCyZvR4CAB/ZSSDgr2ORETFcrvwqd17nsVQQm wMX/Bnc+EZDdc+cYEqzCMXjfuWhKjbNmxuB94eb5HFUlApQitdLn2iCXoUbmxAMo dr1IvCPOySBmMkkS0vJlSfUKf7IFkX6PNUWB3CPmVgX+8/vUbbxZoEU47YvvDlRZ iJTcTYFMhJsTbR7kPUXM/+aRPUG1wX/Rdizj/lBE5D53i2wqwUcWAAiSxjlYVvTv XompauWC9IXADu9AkQVuVkl/EOKvskqqKB7cmP7wLzGS/LUqsa5haXoXFKEQ== 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=1659081083; x=1659167483; bh=x/uGRUiGzRDd3km1ZgnwtdHQHNmv SMC7sQG/+Jd4zoo=; b=YRxavZe8a60Zm2BU6GWIO89qBmmH6m3uHtBgAo5dZZjK xlNhYLJDOTnVRhfXL5fbhEKYyHeAMmOCupZTuDJeP8aXqofgfXYJxIBUM5HlbdTX edIjwU3cu8P/L45pT8ivnU46u0uEmu0mZkcDOgMwPETKnrgUc5EbFhMT83+PRL3D j38RG2eMBhCqgNcZqUdhV9X6Kok/pRIXVx4Tz9IM1eQz63u4xULwlt86sM6xVD6J ZhrKu4y67fbC6PKQxkBuA9tEcHKDu1cUYNVX6wszaBBbQTUCpvHl2XJecTh0bvbT nfW+UUDOBqvLx7do5AYAZS4aN3ngDyaiJdL7kZAYtg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdduiedgieehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofgrgihi mhgvucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrg htthgvrhhnpeetfefffefgkedtfefgledugfdtjeefjedvtddtkeetieffjedvgfehheff hfevudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hmrgigihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 29 Jul 2022 03:51:21 -0400 (EDT) Date: Fri, 29 Jul 2022 09:51:18 +0200 From: Maxime Ripard To: Doug Anderson Cc: Abhinav Kumar , Rob Clark , dri-devel , freedreno , Daniel Vetter , David Airlie , Maarten Lankhorst , Thomas Zimmermann , LKML , Sankeerth Billakanti Subject: Re: [RFC PATCH] drm/edid: Make 144 Hz not preferred on Sharp LQ140M1JW46 Message-ID: <20220729075118.ofnpk52tk4usm3n3@penduick> References: <20220721152314.RFC.1.Ie333b3e4aff6e4a5b58c4aa805e030e561be8773@changeid> <269f2610-425b-f296-dcfc-89bdc2e1d587@quicinc.com> <5c8ca71c-5f0b-d5f5-9f16-e312dec0d01b@quicinc.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="oklsttshcgwhfm5m" 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 --oklsttshcgwhfm5m Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jul 28, 2022 at 02:18:38PM -0700, Doug Anderson wrote: > Hi, >=20 > On Thu, Jul 28, 2022 at 10:34 AM Abhinav Kumar > wrote: > > > > Hi Rob and Doug > > > > On 7/22/2022 10:36 AM, Rob Clark wrote: > > > On Fri, Jul 22, 2022 at 9:48 AM Doug Anderson = wrote: > > >> > > >> Hi, > > >> > > >> On Fri, Jul 22, 2022 at 9:37 AM Abhinav Kumar wrote: > > >>> > > >>> + sankeerth > > >>> > > >>> Hi Doug > > >>> > > >>> On 7/21/2022 3:23 PM, Douglas Anderson wrote: > > >>>> The Sharp LQ140M1JW46 panel is on the Qualcomm sc7280 CRD reference > > >>>> board. This panel supports 144 Hz and 60 Hz. In the EDID, the 144 = Hz > > >>>> mode is listed first and thus is marked preferred. The EDID decode= I > > >>>> ran says: > > >>>> > > >>>> First detailed timing includes the native pixel format and pre= ferred > > >>>> refresh rate. > > >>>> > > >>>> ... > > >>>> > > >>>> Detailed Timing Descriptors: > > >>>> DTD 1: 1920x1080 143.981 Hz 16:9 166.587 kHz 346.500 M= Hz > > >>>> Hfront 48 Hsync 32 Hback 80 Hpol N > > >>>> Vfront 3 Vsync 5 Vback 69 Vpol N > > >>>> DTD 2: 1920x1080 59.990 Hz 16:9 69.409 kHz 144.370 M= Hz > > >>>> Hfront 48 Hsync 32 Hback 80 Hpol N > > >>>> Vfront 3 Vsync 5 Vback 69 Vpol N > > >>>> > > >>>> I'm proposing here that the above is actually a bug and that the 6= 0 Hz > > >>>> mode really should be considered preferred by Linux. > > > > Its a bit tricky to say that this is a bug but I think we can certainly > > add here that for an internal display we would have ideally had the > > lower resolution first to indicate it as default. >=20 > Yeah, it gets into the vagueness of the EDID spec in general. As far > as I can find it's really up to the monitor to decide by what means it > chooses the "preferred" refresh rate if the monitor can support many. > Some displays may decide that the normal rate is "preferred" and some > may decide that the high refresh rate is "preferred". Neither display > is "wrong" per say, but it's nice to have some consistency here and to > make it so that otherwise "dumb" userspace will get something > reasonable by default. I'll change it to say: >=20 > While the EDID spec appears to allow a display to use any criteria for > picking which refresh mode is "preferred" or "optimal", that vagueness > is a bit annoying. From Linux's point of view let's choose the 60 Hz > one as the default. And if we start making that decision, it should be for all panels with a similar constraint, so most likely handled by the core, and the new policy properly documented. Doing that just for a single panel is weird. Maxime --oklsttshcgwhfm5m Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABMIAB0WIQTXEe0+DlZaRlgM8LOIQ8rmN6G3ywUCYuORdgAKCRCIQ8rmN6G3 y0z+AP9ojmTlQhu5iNapifR8TkVj5GwhktAW8TUwGoGL14Ci4QEA9Otjl7UEG2oM Fy+ESHA52LQtiaNfS8fUHkPZnBQYz6Q= =cdJ8 -----END PGP SIGNATURE----- --oklsttshcgwhfm5m--