]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Simplify underscan and ABM commit
authorDavid Francis <David.Francis@amd.com>
Tue, 18 Dec 2018 20:30:19 +0000 (15:30 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 25 Jan 2019 21:15:36 +0000 (16:15 -0500)
commitd1dcd9a8fb4cebcc9e14b55aa582bf726033cf8d
treeb7f5bc1ea82fc622db7e728ea8c7287d27661df7
parentde1b6faa04bb2cb8638ad96ccb87d4334929a4b1
drm/amd/display: Simplify underscan and ABM commit

[Why]
Underscan and ABM are connector properties but require updates
to DC stream state.  Previously, on updates to these properties
the affected stream and all its planes were committed.
This is unnecessary; only a few fields on the stream need
to be changed.

[How]
If scaling or ABM have changed, change the stream and
create a stream update with those changes.  Call
DC with only those fields.

Signed-off-by: David Francis <David.Francis@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c