aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0898-drm-amd-dal-dm-update-hw_mode-in-amdgpu_dm_atomic_co.patch
blob: 08cd26a4205ae193ed5f2c7c830a85a08c93bbaf (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
30
31
32
33
34
From 89c337fb639e46df87aa337f9f87bb506b8c0fc5 Mon Sep 17 00:00:00 2001
From: Alex Deucher <alexander.deucher@amd.com>
Date: Tue, 15 Mar 2016 13:47:31 -0400
Subject: [PATCH 0898/1110] drm/amd/dal/dm: update hw_mode in
 amdgpu_dm_atomic_commit
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Needed for vblank handling.

Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
 drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c | 1 +
 1 file changed, 1 insertion(+)

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 dcffffe..572c5bd 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
@@ -2228,6 +2228,7 @@ int amdgpu_dm_atomic_commit(
 
 			acrtc->target = new_target;
 			acrtc->enabled = true;
+			acrtc->hw_mode = crtc->state->mode;
 
 			break;
 		}
-- 
2.7.4