]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: fix dcn20 global sync dml param extraction
authorDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Fri, 26 Jul 2019 21:32:02 +0000 (17:32 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Aug 2019 15:57:05 +0000 (10:57 -0500)
commitf25f75be4412ccc1bf0ddf681be8f93db19f2a12
treedb15d2bad5046cab8f381d42e1bf37043fdb29fb
parent8eb37707edbb2d6219d94fbe1ec8582eba378069
drm/amd/display: fix dcn20 global sync dml param extraction

Currently the paremeters are extracted as if dml is calculating
using pipes as we pass them in. in reality, dml internally merges
pipes into planes if pipe split is detected.

This change adds reverse logic to dcn20_calculate_dlg_params so
that the global sync parameters can be correctly extracted for
all the pipes when pipe split is enabled.

Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c
drivers/gpu/drm/amd/display/dc/inc/core_types.h