From: Leo Li <sunpeng.li@amd.com>
To: "Tomasz Pakuła" <tomasz.pakula.oficjalny@gmail.com>,
"Jani Nikula" <jani.nikula@linux.intel.com>,
alexander.deucher@amd.com, harry.wentland@amd.com
Cc: <maarten.lankhorst@linux.intel.com>, <mripard@kernel.org>,
<tzimmermann@suse.de>, <airlied@gmail.com>, <simona@ffwll.ch>,
<siqueira@igalia.com>, <dri-devel@lists.freedesktop.org>,
<amd-gfx@lists.freedesktop.org>, <linux-kernel@vger.kernel.org>,
<bernhard.berger@gmail.com>, <michel.daenzer@mailbox.org>,
<daniel@fooishbar.org>
Subject: Re: [PATCH v4 07/27] drm/amd/display: Use bigger VRR range if found in AMD vsdb
Date: Fri, 20 Mar 2026 10:48:46 -0400 [thread overview]
Message-ID: <edadf773-e7ad-4a35-baea-e978e2c08221@amd.com> (raw)
In-Reply-To: <5649c232fa0243c2c3ca7be91529409921604d69.camel@gmail.com>
On 2026-03-17 06:03, Tomasz Pakuła wrote:
> Hi!
>
> So I prepared a version which completely removes the drm_display_info
> modifications from this part of the driver, but I think I know why it
> was there in there in the first place. Without changing these fields,
> the dri debug information, reports wrong vrr range vs what the driver
> decided to do.
>
> Basically, with monitor that have different vrr range in 'monitor
> ranges' and AMD vsdb, it only reports the range from monitor ranges,
> worse, for monitors that report GTF range (all HDMI TV, even some DP
> monitors) the vrr_range for the connector in dri debug is reported to be
> 0 - 0 even though the correct range was picked up from other places like
> DisplayID, AMD vsdb, HDMI Forum vsdb or nvidia specific vsdb.
>
> Moving all this into generic edid handling could be quite a problem as
> well since different manufacturers might want to handle VRR differenty.
> For example, Intel could decide to support FreeSync sinnalling or just
> getting the range from there, or not. HDMI VRR is another issue where
> one brand could decide to prioritize their own solution over the generic
> one (FreeSync over HDMI vs HDMI VRR).
>
> The vrr_range in debug ony exposes display_info.monitor_range but it's
> name suggests that it does something different. Maybe it needs a
> dedicated place for drivers to show what they ended up deciding upon?
> monitr_range alrady is only used to expose the range if it has 'range
> limits only' flag so only for VRR. My concern is that we would have bad
> debug info in there now.
>
> I'm working on adding a drp connector property that would expose the vrr
> range so compositors could easily parse it instead of relying on edid
> parsing, that will be impossible to match.
>
> And again, I'm just a guy providing fixes, I think bigger changes should
> be taken with AMD. The functionality is already in the driver and my
> patches do not change what it does with it. I'm not even changing how it
> parses anything when it comes to edid, just using what's already there
> to decide how to handle VRR.
>
> Tomasz
Hi Tomasz,
First of all, thanks for creating and testing these patches. I can't
_currently_ comment on the HDMI related things. But regarding VSDB parsing,
there's work in progress (not on the mailing lists yet) to move it to
drm_edid.c, looking to store everything in a "struct amd_vsdb_info"
within drm_display_info.
There will be duplicated vrr_min/max values stored in different places in
display_info, but I think that's OK, since they're also duplicated across
EDID/DID/VSDB? Drivers can then make their own selection for the final vrr
min/max, and reported in a new read-only property like you suggested.
I'm not sure if compositors would prefer to decode the edid themselves, or
rather have driver tell them via new properties. Maybe it's something to
bring up at the display hackfest.
Thanks,
Leo
next prev parent reply other threads:[~2026-03-20 14:48 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-16 16:44 [PATCH v4 00/27] drm/amd: VRR fixes, HDMI Gaming Features Tomasz Pakuła
2026-02-16 16:44 ` [PATCH v4 01/27] drm/amd/display: Return if DisplayID not found in parse_amd_vsdb() Tomasz Pakuła
2026-02-16 16:44 ` [PATCH v4 02/27] drm/amd/display: Refactor amdgpu_dm_update_freesync_caps() Tomasz Pakuła
2026-02-16 16:44 ` [PATCH v4 03/27] drm/amd/display: Remove redundant edid checks Tomasz Pakuła
2026-02-16 16:44 ` [PATCH v4 04/27] drm/amd/display: Move DisplayID vrr parsing Tomasz Pakuła
2026-02-16 16:44 ` [PATCH v4 05/27] drm/amd/display: Always try to parse AMD vsdb Tomasz Pakuła
2026-02-16 16:44 ` [PATCH v4 06/27] drm/amd/display: Check for VRR range in CEA " Tomasz Pakuła
2026-02-16 16:44 ` [PATCH v4 07/27] drm/amd/display: Use bigger VRR range if found in " Tomasz Pakuła
2026-02-26 12:36 ` Jani Nikula
2026-02-26 13:42 ` Tomasz Pakuła
2026-03-17 10:03 ` Tomasz Pakuła
2026-03-20 14:48 ` Leo Li [this message]
2026-02-16 16:44 ` [PATCH v4 08/27] drm/amd/display: Separate DP/eDP and PCON paths completely Tomasz Pakuła
2026-02-16 16:44 ` [PATCH v4 09/27] drm/amd/display: Refactor PCON VRR compatibility check Tomasz Pakuła
2026-02-16 16:44 ` [PATCH v4 10/27] drm/amd/display: Add PCON VRR ID check override Tomasz Pakuła
2026-02-16 16:45 ` [PATCH v4 11/27] drm/amd/display: Add CH7218 PCON ID Tomasz Pakuła
2026-02-16 16:45 ` [PATCH v4 12/27] drm/edid: Parse more info from HDMI Forum vsdb Tomasz Pakuła
2026-02-16 16:45 ` [PATCH v4 13/27] drm/amd/display: Rename PCON adaptive sync types Tomasz Pakuła
2026-02-16 16:45 ` [PATCH v4 14/27] drm/amd/display: Enable HDMI VRR over PCON Tomasz Pakuła
2026-02-16 16:45 ` [PATCH v4 15/27] drm/amd/display: Support HDMI VRRmax=0 Tomasz Pakuła
2026-02-16 16:45 ` [PATCH v4 16/27] drm/amd/display: Build HDMI vsif in correct slot Tomasz Pakuła
2026-02-16 16:45 ` [PATCH v4 17/27] drm/amd/display: Save HDMI gaming info to edid caps Tomasz Pakuła
2026-02-16 16:45 ` [PATCH v4 18/27] drm/amd/display: Restore ALLM support in HDMI vsif Tomasz Pakuła
2026-02-16 16:45 ` [PATCH v4 19/27] drm/amd/display: Trigger ALLM if it's available Tomasz Pakuła
2026-02-16 16:45 ` [PATCH v4 20/27] drm/amd/display: Reintroduce VTEM info frame Tomasz Pakuła
2026-02-16 16:45 ` [PATCH v4 21/27] drm/amd/display: Enable HDMI VRR Tomasz Pakuła
2026-02-16 16:45 ` [PATCH v4 22/27] drm/amd/display: freesync_on_desktop support for " Tomasz Pakuła
2026-02-16 16:45 ` [PATCH v4 23/27] drm: Add passive_vrr_disabled property to crtc Tomasz Pakuła
2026-02-17 8:21 ` Michel Dänzer
2026-02-17 16:41 ` Tomasz Pakuła
2026-02-16 16:45 ` [PATCH v4 24/27] drm: Add passive_vrr_capable property to connector Tomasz Pakuła
2026-02-16 16:45 ` [PATCH v4 25/27] drm: Add ALLM properties " Tomasz Pakuła
2026-02-16 16:45 ` [PATCH v4 26/27] drm/amd/display: Use passive_vrr properties in amdgpu Tomasz Pakuła
2026-02-16 16:45 ` [PATCH v4 27/27] drm/amd/display: Use ALLM " Tomasz Pakuła
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=edadf773-e7ad-4a35-baea-e978e2c08221@amd.com \
--to=sunpeng.li@amd.com \
--cc=airlied@gmail.com \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=bernhard.berger@gmail.com \
--cc=daniel@fooishbar.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=harry.wentland@amd.com \
--cc=jani.nikula@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=michel.daenzer@mailbox.org \
--cc=mripard@kernel.org \
--cc=simona@ffwll.ch \
--cc=siqueira@igalia.com \
--cc=tomasz.pakula.oficjalny@gmail.com \
--cc=tzimmermann@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox