]> 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)
commitf835420e0a80e2d85bc6979abee140db7ce40035
treedb15d2bad5046cab8f381d42e1bf37043fdb29fb
parentf7fbc751810da17eb113eec9e8323835d4c98b6f
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