]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/amd/display: correct hostvm flag
authorSherry Wang <Yao.Wang1@amd.com>
Tue, 6 Sep 2022 16:12:44 +0000 (00:12 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Jul 2024 07:37:58 +0000 (09:37 +0200)
[ Upstream commit 3a13d1fddaf51b98cdba20b486cb8fd6080b71b7 ]

[Why]
Hostvm should be enabled/disabled accordding to the status of
riommu_active, but hostvm always be disabled on DCN31 which causes
underflow

[How]
Set correct hostvm flag on DCN31

Acked-by: Wayne Lin <wayne.lin@amd.com>
Signed-off-by: Sherry Wang <Yao.Wang1@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/dc/resource/dcn31/dcn31_resource.c

index 04d142f974745e3e4dc327eb0b7f8c7875839501..2fb1d00ff96549494124c03c3c6668c1ca948693 100644 (file)
@@ -892,7 +892,7 @@ static const struct dc_debug_options debug_defaults_drv = {
        .disable_z10 = true,
        .enable_legacy_fast_update = true,
        .enable_z9_disable_interface = true, /* Allow support for the PMFW interface for disable Z9*/
-       .dml_hostvm_override = DML_HOSTVM_OVERRIDE_FALSE,
+       .dml_hostvm_override = DML_HOSTVM_NO_OVERRIDE,
        .using_dml2 = false,
 };