]> git.hungrycats.org Git - linux/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>
Mon, 24 Oct 2022 07:58:19 +0000 (09:58 +0200)
[ Upstream commit 796d6a37ff5ffaf9f2dc0f3f4bf9f4a1034c00de ]

[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

Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
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/dcn31/dcn31_resource.c

index 3d9f07d4770bfa4c86730364cf1bbfff33cf275c..8a0de6bfc716ab1a173b2745fe17b4111f29fdbf 100644 (file)
@@ -892,7 +892,7 @@ static const struct dc_debug_options debug_defaults_drv = {
        .enable_sw_cntl_psr = true,
        .apply_vendor_specific_lttpr_wa = 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,
 };
 
 static const struct dc_debug_options debug_defaults_diags = {