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

Reply via email to