]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Block zstate when more than one plane enabled
authorEric Yang <Eric.Yang2@amd.com>
Thu, 10 Mar 2022 22:20:38 +0000 (17:20 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Mar 2022 18:41:28 +0000 (14:41 -0400)
commit84e9f89f9d29d7afb4c08332cbc767ebf9e14fba
tree0cc9ba575c3071975acb683ee946b39f50bbfe5e
parent92bdef6182fd1f97ef7dff70f6fc3197bddea0ee
drm/amd/display: Block zstate when more than one plane enabled

[Why]
Currently Z10 save/restore only covers 1 plane case. If we enter
Z10 with 2 planes enabled, 1 of the 2 planes will not be restored.
causing black screen.

[How]
Disable Zstate when more than 1 plane is enabled. Right now Z9 enable
but Z10 disable is not a supported config, so we disable both.

Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Reviewed-by: Nevenko Stupar <Nevenko.Stupar@amd.com>
Acked-by: Agustin Gutierrez <agustin.gutierrez@amd.com>
Signed-off-by: Eric Yang <Eric.Yang2@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c