aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0613-drm-amd-display-Get-freesync-properties.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0613-drm-amd-display-Get-freesync-properties.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0613-drm-amd-display-Get-freesync-properties.patch55
1 files changed, 0 insertions, 55 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0613-drm-amd-display-Get-freesync-properties.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0613-drm-amd-display-Get-freesync-properties.patch
deleted file mode 100644
index 07747aa8..00000000
--- a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0613-drm-amd-display-Get-freesync-properties.patch
+++ /dev/null
@@ -1,55 +0,0 @@
-From 69fdf5342d98523e6ae0710d6259cce86e145eba Mon Sep 17 00:00:00 2001
-From: Harry Wentland <harry.wentland@amd.com>
-Date: Fri, 16 Jun 2017 14:09:23 -0400
-Subject: [PATCH 0613/4131] drm/amd/display: Get freesync properties
-
-Eventually we should create proper atomic properties for freesync
-but currently freesync is broken and we still have the legacy
-properties. Simply return the legacy properties.
-
-Signed-off-by: Harry Wentland <harry.wentland@amd.com>
-Reviewed-by: Jordan Lazare <Jordan.Lazare@amd.com>
-Acked-by: Harry Wentland <Harry.Wentland@amd.com>
-Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
----
- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c | 17 +++++++++--------
- 1 file changed, 9 insertions(+), 8 deletions(-)
-
-diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c
-index 7f57017..be24225 100644
---- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c
-+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c
-@@ -1212,6 +1212,7 @@ int amdgpu_dm_connector_atomic_get_property(
- struct dm_connector_state *dm_state =
- to_dm_connector_state(state);
- int ret = -EINVAL;
-+ int i;
-
- if (property == dev->mode_config.scaling_mode_property) {
- switch (dm_state->scaling) {
-@@ -1239,14 +1240,14 @@ int amdgpu_dm_connector_atomic_get_property(
- } else if (property == adev->mode_info.underscan_property) {
- *val = dm_state->underscan_enable;
- ret = 0;
-- } else if (property == adev->mode_info.freesync_property) {
-- //TODO
-- *val = 0;
-- ret = 0;
-- } else if (property == adev->mode_info.freesync_capable_property) {
-- //TODO
-- *val = 0;
-- ret = 0;
-+ } else if ((property == adev->mode_info.freesync_property) ||
-+ (property == adev->mode_info.freesync_capable_property)) {
-+ for (i = 0; i < connector->base.properties->count; i++) {
-+ if (connector->base.properties->properties[i] == property) {
-+ *val = connector->base.properties->values[i];
-+ ret = 0;
-+ }
-+ }
- }
- return ret;
- }
---
-2.7.4
-