drm/amd/display: Attach VRR properties for eDP connectors

Submitted by Kazlauskas, Nicholas on Jan. 31, 2019, 6:58 p.m.

Details

Message ID 20190131185821.24798-1-nicholas.kazlauskas@amd.com
State New
Headers show
Series "drm/amd/display: Attach VRR properties for eDP connectors" ( rev: 1 ) in AMD X.Org drivers

Not browsing as part of any series.

Commit Message

Kazlauskas, Nicholas Jan. 31, 2019, 6:58 p.m.
[Why]
eDP was missing in the checks for supported VRR connectors.

[How]
Attach the properties for eDP connectors too.

Cc: Leo Li <sunpeng.li@amd.com>
Cc: Harry Wentland <harry.wentland@amd.com>
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=202449
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
---
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index cdda68aba70e..4c7c34cae882 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -4249,7 +4249,8 @@  void amdgpu_dm_connector_init_helper(struct amdgpu_display_manager *dm,
 	}
 
 	if (connector_type == DRM_MODE_CONNECTOR_HDMIA ||
-	    connector_type == DRM_MODE_CONNECTOR_DisplayPort) {
+	    connector_type == DRM_MODE_CONNECTOR_DisplayPort ||
+	    connector_type == DRM_MODE_CONNECTOR_eDP) {
 		drm_connector_attach_vrr_capable_property(
 			&aconnector->base);
 		drm_object_attach_property(&aconnector->base.base,

Comments

> -----Original Message-----

> From: amd-gfx <amd-gfx-bounces@lists.freedesktop.org> On Behalf Of

> Nicholas Kazlauskas

> Sent: Thursday, January 31, 2019 1:58 PM

> To: amd-gfx@lists.freedesktop.org

> Cc: Li, Sun peng (Leo) <Sunpeng.Li@amd.com>; Wentland, Harry

> <Harry.Wentland@amd.com>; Kazlauskas, Nicholas

> <Nicholas.Kazlauskas@amd.com>

> Subject: [PATCH] drm/amd/display: Attach VRR properties for eDP

> connectors

> 

> [Why]

> eDP was missing in the checks for supported VRR connectors.

> 

> [How]

> Attach the properties for eDP connectors too.

> 

> Cc: Leo Li <sunpeng.li@amd.com>

> Cc: Harry Wentland <harry.wentland@amd.com>

> Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=202449

> Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>


Reviewed-by: Alex Deucher <alexander.deucher@amd.com>


> ---

>  drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 ++-

>  1 file changed, 2 insertions(+), 1 deletion(-)

> 

> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

> b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

> index cdda68aba70e..4c7c34cae882 100644

> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

> @@ -4249,7 +4249,8 @@ void amdgpu_dm_connector_init_helper(struct

> amdgpu_display_manager *dm,

>  	}

> 

>  	if (connector_type == DRM_MODE_CONNECTOR_HDMIA ||

> -	    connector_type == DRM_MODE_CONNECTOR_DisplayPort) {

> +	    connector_type == DRM_MODE_CONNECTOR_DisplayPort ||

> +	    connector_type == DRM_MODE_CONNECTOR_eDP) {

>  		drm_connector_attach_vrr_capable_property(

>  			&aconnector->base);

>  		drm_object_attach_property(&aconnector->base.base,

> --

> 2.17.1

> 

> _______________________________________________

> amd-gfx mailing list

> amd-gfx@lists.freedesktop.org

> https://lists.freedesktop.org/mailman/listinfo/amd-gfx