]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Detect plane change when detect pipe change.
authorJinZe.Xu <JinZe.Xu@amd.com>
Thu, 13 Aug 2020 08:59:24 +0000 (16:59 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Sep 2020 21:52:40 +0000 (17:52 -0400)
commit26d1f754e5432b8c93ef93d5a883fe396b52f40c
tree228d6b1730cdc80fd95e8437efa29b0b6ab7043c
parent99b13bb58cc5003c18e284e631026ec2bbc5648a
drm/amd/display: Detect plane change when detect pipe change.

[Why]
If plane has changed, dcn20_detect_pipe_changes doesn't update dc_plane_state->update_flags, and the following dcn20_program_pipe can't reprogram hubp correctly.

[How]
Add a new flags bit "plane_changed" in pipe_ctx->update_flags.If old plane isn’t identical to new plane, this bit will be set and guide “dcn20_program_pipe” to programing HUBP correctly.

Signed-off-by: JinZe.Xu <JinZe.Xu@amd.com>
Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c
drivers/gpu/drm/amd/display/dc/inc/core_types.h