]> 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)
commit92ef55be45202465b0d7535a13bd619751e3934a
treeb7f5bc1ea82fc622db7e728ea8c7287d27661df7
parente9c9bea3c08b5a9e2d9eb328a7846364bf18d3da
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