drm: Add vrr_capable property to the drm connector
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Tue, 18 Sep 2018 13:55:20 +0000 (09:55 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 28 Nov 2018 20:55:33 +0000 (15:55 -0500)
commitba1b0f6c73d4ea1390f0d5381f715ffa20c75f09
tree83722b8e95355b9031a628df0ab0d19a8bd0fd0d
parentcde577bd116e14174652c5abe1f881381c9a131e
drm: Add vrr_capable property to the drm connector

Modern display hardware is capable of supporting variable refresh rates.
This patch introduces the "vrr_capable" property on the connector to
allow userspace to query support for variable refresh rates.

Atomic drivers should attach this property to connectors that are
capable of driving variable refresh rates using
drm_connector_attach_vrr_capable_property().

The value should be updated based on driver and hardware capability
by using drm_connector_set_vrr_capable_property().

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Manasi Navare <manasi.d.navare@intel.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/drm_connector.c
include/drm/drm_connector.h