]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Pass HostVM enable flag into DCN3.1 DML
authorMichael Strauss <michael.strauss@amd.com>
Wed, 16 Feb 2022 22:01:18 +0000 (17:01 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 4 Mar 2022 17:42:41 +0000 (12:42 -0500)
commit5e7c3bf06a45b42a835f48c41e0a00189cf91556
tree0881107912f357648f2718ee6d2176759d453354
parentd88538e76eca19fba1bf800ea3630be6dd87ee3e
drm/amd/display: Pass HostVM enable flag into DCN3.1 DML

[WHY]
Calculations differ with HostVM enabled/disabled, causing underflow in
configs with high refresh displays + scaling due to lower available BW

[HOW]
Check riommu_active in order to pass correct HostVM enablement to DML

Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Alan Liu <HaoPing.Liu@amd.com>
Signed-off-by: Michael Strauss <michael.strauss@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/dcn31/dcn31_resource.c