From: jsg Date: Mon, 27 Mar 2023 04:02:50 +0000 (+0000) Subject: drm/amd/display: Set hvm_enabled flag for S/G mode X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=af561ce059601a575d8ed1212c05aed242d38e99;p=openbsd drm/amd/display: Set hvm_enabled flag for S/G mode From Roman Li 8f720a79bc66a81b6373ba38a1b6b8fdea838143 in linux-6.1.y/6.1.16 40e9f3f067bc6fb47b878f8ba0a9cc7b93abbf49 in mainline linux --- diff --git a/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c index d9b2cfbd98c..856aa52e74c 100644 --- a/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -1242,7 +1242,7 @@ static void mmhub_read_system_context(struct amdgpu_device *adev, struct dc_phy_ pa_config->gart_config.page_table_end_addr = page_table_end.quad_part << 12; pa_config->gart_config.page_table_base_addr = page_table_base.quad_part; - pa_config->is_hvm_enabled = 0; + pa_config->is_hvm_enabled = adev->mode_info.gpu_vm_support; }