drm/amd/display: Unblank hubp based on plane visibility
authorWesley Chalmers <Wesley.Chalmers@amd.com>
Fri, 11 Dec 2020 02:47:12 +0000 (21:47 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 14 Jan 2021 04:43:14 +0000 (23:43 -0500)
commitfd1c85d3ac2ccfec33b007399e6677b41899a888
tree6b93eec187c4819bfc769c700e3cbee7f4e7371f
parent4a93aa6f9689148144a9da6446aac08592721f27
drm/amd/display: Unblank hubp based on plane visibility

[WHY]
DCN10 uses plane visibility to determine when to unblank HUBP; there is
no reason DCN20+ should not do the same.

[HOW]
In addition to changing the check in HWSEQ, we must change
is_pipe_tree_visible so that it checks ODM pipe topologies as well as
MPC. Since we're now checking both ODM and MPC topologies, the helper
function names have been changed to reference "parent" and "child"
instead of "top" and "bottom".

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Wesley Chalmers <Wesley.Chalmers@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/basics/dc_common.c
drivers/gpu/drm/amd/display/dc/basics/dc_common.h
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c