aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3146-drm-amdgpu-Remove-immutable-flag-from-freesync_capab.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3146-drm-amdgpu-Remove-immutable-flag-from-freesync_capab.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3146-drm-amdgpu-Remove-immutable-flag-from-freesync_capab.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3146-drm-amdgpu-Remove-immutable-flag-from-freesync_capab.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3146-drm-amdgpu-Remove-immutable-flag-from-freesync_capab.patch
new file mode 100644
index 00000000..8364ad3c
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3146-drm-amdgpu-Remove-immutable-flag-from-freesync_capab.patch
@@ -0,0 +1,38 @@
+From 4395b41cdc74e80d134331372d27e53481d3c809 Mon Sep 17 00:00:00 2001
+From: Harry Wentland <harry.wentland@amd.com>
+Date: Fri, 20 Oct 2017 16:45:53 -0400
+Subject: [PATCH 3146/4131] drm/amdgpu: Remove immutable flag from
+ freesync_capable property
+
+Atomic drivers should not use legacy properties but atomic properties
+don't support the immutable flag. Remove the immutable flag for now.
+
+This will be followed by a bunch of DC patches to start treating
+freesync_capable as an atomic property on a connector_state.
+
+Eventually we'll want to remove the these properties and replace them
+with new atomic adaptive sync properties that we define in DRM.
+
+Signed-off-by: Harry Wentland <harry.wentland@amd.com>
+Reviewed-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
+index b13839d..9502dd9 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
+@@ -659,7 +659,7 @@ int amdgpu_modeset_create_props(struct amdgpu_device *adev)
+ return -ENOMEM;
+ adev->mode_info.freesync_capable_property =
+ drm_property_create_bool(adev->ddev,
+- DRM_MODE_PROP_IMMUTABLE,
++ 0,
+ "freesync_capable");
+ if (!adev->mode_info.freesync_capable_property)
+ return -ENOMEM;
+--
+2.7.4
+