Nicholas Kazlauskas 8ad278062d drm/amd/display: Disable cursors before disabling planes
[Why]
We can't do cursor programming after the planes have been disabled
since there won't be any pipes - leading to lock warnings and the wrong
cursor state being left in the registers.

When we re-enable the planes after the previous cursor state will also
remain if we don't have a cursor plane.

[How]
If we're disabling the planes then do the cursor programming first.
If we're not disabling the planes then do the cursor programming after.

Introduce the amdgpu_dm_commit_cursors helper to avoid code duplication
for both of these cases.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: David Francis <David.Francis@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-04-29 14:58:16 -05:00
..
2019-01-24 13:20:42 +01:00
2019-04-04 11:57:34 +10:30
2019-04-05 11:38:02 +10:00
2019-04-12 14:27:45 +10:00
2019-03-25 11:05:12 +01:00
2019-03-29 14:03:01 +10:00
2019-01-24 13:20:42 +01:00
2019-03-29 14:03:01 +10:00
2019-03-25 11:05:12 +01:00
2019-04-12 14:27:45 +10:00
2019-01-29 15:45:21 +01:00
2019-03-29 14:03:01 +10:00
2019-03-29 14:03:01 +10:00
2019-04-12 14:27:45 +10:00
2019-04-12 14:27:45 +10:00
2019-01-29 15:45:21 +01:00
2019-01-24 13:20:42 +01:00
2019-04-01 11:00:18 +02:00
2019-04-05 11:38:02 +10:00
2019-03-19 15:04:03 -05:00
2019-03-29 14:03:01 +10:00
2019-04-12 14:27:45 +10:00
2019-04-05 11:38:02 +10:00
2019-01-24 13:20:42 +01:00
2019-03-25 11:05:12 +01:00
2019-03-25 11:05:12 +01:00
2019-01-10 05:58:52 +10:00
2018-11-20 14:56:18 +01:00
2019-01-29 15:45:21 +01:00
2019-02-18 13:27:15 +10:00
2019-02-04 10:21:17 +01:00
2019-01-10 05:58:52 +10:00
2019-01-12 13:07:58 +01:00
2018-11-30 10:57:18 +01:00
2019-04-05 11:38:02 +10:00
2019-04-12 14:27:45 +10:00