blob: e94c05a0376af2c8a228b117ce87314290897822 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
From 8bc2a03a1219e9916bb5b5ec15926741594ce7ce Mon Sep 17 00:00:00 2001
From: Alex Deucher <alexander.deucher@amd.com>
Date: Tue, 15 Mar 2016 11:39:31 -0400
Subject: [PATCH 1532/1565] drm/amd/dal/dm: add missing version check
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c b/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c
index 7b79c3e..defebf1 100644
--- a/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c
+++ b/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c
@@ -2036,8 +2036,10 @@ static enum dm_commit_action get_dm_commit_action(struct drm_crtc_state *state)
if (!state->enable)
return DM_COMMIT_ACTION_NOTHING;
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 3, 0)
if (state->active && state->connectors_changed)
return DM_COMMIT_ACTION_SET;
+#endif
if (state->active_changed) {
if (state->active) {
--
1.9.1
|