]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commit41f03a6d74c6f9c064b7edece13cd8716727f80a
treedb15d2bad5046cab8f381d42e1bf37043fdb29fb
parent2c95e35fef21db2aec40c21f6d5267ae6e06a2e6
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