From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 47FCA606A322 for ; Thu, 3 Dec 2026 12:34:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=mECtL0lC Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9827010E6DA; Thu, 3 Dec 2026 12:34:08 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1695F10E6DA; Thu, 3 Dec 2026 12:34:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796301242; x=1827837242; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=ttXrmzDpr03pH6leu7ujl2Ebq0k9JY3XogrktTs8TQA=; b=mECtL0lCnkGEyW182lnHCQqKPdcq1qNbVwxVmwZBm6mhUNtoB0EOizaE YcbPIYvhSJHuVjkzJYAhATVZDDrEu9pBP98zwbAzCWUOTUzuu6/s7OwfL waCkZ5Slnu7Wl83xCLgujXIuwNnBHU1VJllxkeMHf0vZWmGBrz/rUigEY 4dhWPcNbRUGR9kaAhXGvPWbKDyv6x+5giN/whOiQHChgsT9afAqvd+Boc ljX6c3+clIz2V6yQ2+KCCFnNwX2XFizz63CDPqzOBeA2OkC6cj9jrnDVj iUJsoOlcVQZqIooL6JOpxnNqmlHhG+Z0pJmh5cl7Bgb9ZtQaVExiP+kzP w==; X-CSE-ConnectionGUID: ju17pe65RY2WnnwVoXlgKg== X-CSE-MsgGUID: vHBknRalQuC4+/SRdBsobA== X-IronPort-AV: E=McAfee;i="6800,10657,11984"; a="5170120" X-IronPort-AV: E=Sophos;i="6.27,248,1787036400"; d="scan'208";a="5170120" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 04:34:02 -0800 X-CSE-ConnectionGUID: MXsJi+IgQQCMFEFy2Ve5Yg== X-CSE-MsgGUID: 5grRvP0ARKapj1elzN5XcA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,248,1787036400"; d="scan'208";a="14043100" Received: from abityuts-desk1.ger.corp.intel.com (HELO localhost) ([10.245.244.117]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 04:34:00 -0800 Date: Thu, 3 Dec 2026 14:33:56 +0200 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: cengjianeng Cc: dri-devel@lists.freedesktop.org, dri-misc@lists.freedesktop.org Subject: Re: [PATCH v2] drm/edid: prefer highest refresh mode within native resolution on eDP Message-ID: References: <20261202120153.1051508-1-cengjianeng@huaqin.corp-partner.google.com> <20261203034601.675116-1-cengjianeng@huaqin.corp-partner.google.com> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Patchwork-Hint: comment Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs Bertel Jungin Aukio 5, 02600 Espoo, Finland X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "dri-devel" X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Thu, Dec 03, 2026 at 02:27:25PM +0200, Ville Syrjälä wrote: > On Thu, Dec 03, 2026 at 11:46:01AM +0800, cengjianeng wrote: > > From: Jianeng Ceng > > > > Some eDP panels advertise the same native resolution at multiple refresh > > rates, but mark the lowest refresh rate (typically 60Hz) as the preferred > > mode in their EDID. The panel is capable of multi-refresh-rate operation > > and is meant to be driven at its highest refresh rate by default, so the > > kernel hands userspace a preferred mode below the panel capability. The > > compositor then picks a non-preferred mode, or keeps the panel at its > > lowest refresh rate until userspace makes an explicit choice. > > I think one thing we're missing is considering the DisplayID vs. EDID > factor in the selection of the preferred mode. IIRC DisplayID is maybe > supposed to take precedence over the EDID, at least in some cases. > And IIRC there is also some kind of mode preference EDID block > that we're not using. > > It seems to me that this patch would basically amount to just removing > the idea of the preferred mode completely, and just picking the first > mode from the sorted list. Fastboot stuff might also be impacted here if we don't end up picking the same preferred mode at the firmware. -- Ville Syrjälä Intel