Bug 202449

Summary: vrr_capable not showing up in xrandr with eDP display.
Product: Drivers Reporter: Haxk20 (haxk612)
Component: Video(DRI - non Intel)Assignee: drivers_video-dri
Status: RESOLVED CODE_FIX    
Severity: normal CC: alexdeucher, harry.wentland, nicholas.kazlauskas
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 4.20 Subsystem:
Regression: No Bisected commit-id:
Attachments: xrandr --props
dmesg
Xorg log
0001-drm-amd-display-Attach-VRR-properties-for-eDP-connec.patch

Description Haxk20 2019-01-29 15:16:05 UTC
Created attachment 280847 [details]
xrandr --props

xrandr doesnt show vrr_capable option for eDP display but the option is there with HDMI.
While its true that my internal display on laptop doesnt report that it supports FreeSync but i know that it works with Freesync because when i edit EDID in windows freesync works.
But im sure the issue isnt that my display doesnt report Freesync since when i connect a monitor that i know isnt freesync capable to HDMI the option is still there.

I attach output of "xranr --props" of my laptop.

Laptop has Ryzen 5 2500U with VEGA8 (Raven Ridge)
and dedicated RX560X.

VEGA 8 is connected directly to internal display (eDP) and RX560X is connected to HDMI port.
Comment 1 Haxk20 2019-01-29 15:31:48 UTC
Sorry after further reading im not sure that dGPU is connected to HDMI directly. Is there a way to see in linux ?
Comment 2 Alex Deucher 2019-01-29 15:33:57 UTC
Please attach your dmesg output and xorg log.
Comment 3 Haxk20 2019-01-29 15:45:35 UTC
Created attachment 280849 [details]
dmesg
Comment 4 Haxk20 2019-01-29 15:46:00 UTC
Created attachment 280851 [details]
Xorg log
Comment 5 Nicholas Kazlauskas 2019-01-30 13:59:07 UTC
Created attachment 280873 [details]
0001-drm-amd-display-Attach-VRR-properties-for-eDP-connec.patch

I'm not sure if this will actually let you use variable refresh rate features but this should attach the properties for your eDP panel at least.
Comment 6 Haxk20 2019-01-30 19:59:13 UTC
(In reply to Nicholas Kazlauskas from comment #5)
> Created attachment 280873 [details]
> 0001-drm-amd-display-Attach-VRR-properties-for-eDP-connec.patch
> 
> I'm not sure if this will actually let you use variable refresh rate
> features but this should attach the properties for your eDP panel at least.

Gonna compile right now. I surely wont be able to use vrr still since i need to edit EDID to report a freesync range but at least eDP now has a way to enable it. Thank you.
Comment 7 Haxk20 2019-01-30 20:12:44 UTC
(In reply to Nicholas Kazlauskas from comment #5)
> Created attachment 280873 [details]
> 0001-drm-amd-display-Attach-VRR-properties-for-eDP-connec.patch
> 
> I'm not sure if this will actually let you use variable refresh rate
> features but this should attach the properties for your eDP panel at least.

This fixes the issue.
I know its too late for this to be sent into 5.0 but can you send this into drm-next-5.1-wip so that this makes it into 5.1 ? 
Thank you.
Comment 8 Haxk20 2019-01-30 20:17:53 UTC
Also is there any way i can test if variable refresh rate is working on linux right now ?
Comment 9 Haxk20 2019-01-31 18:53:20 UTC
As this bug has been solved im marking it as solved. Thank you.