]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Check scaling info when determing update type
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Thu, 28 Mar 2019 19:50:06 +0000 (15:50 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 15 Apr 2019 05:21:55 +0000 (00:21 -0500)
commit9d3a17dc36b8dd9f8dd84577c6a07e947eee5b48
treedb61c311c5776eb7cc888f179063a5fff7a37622
parent83a17ddb66df6d3fbbf2e942ebb760d40ffe933e
drm/amd/display: Check scaling info when determing update type

[Why]
Surface scaling info updates can affect bandwidth and blocks. We need
to be checking these with global validation to avoid underflow or
corruption.

[How]
Drop the state->allow_modeset early exit in
dm_determine_update_type_for_commit. Most of those should be considered
fast now anyway.

Fill in scaling info and it to the surface update in atomic
check.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: David Francis <David.Francis@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c