drm/amd/display: Set hvm_enabled flag for S/G mode
authorjsg <jsg@openbsd.org>
Mon, 27 Mar 2023 04:02:50 +0000 (04:02 +0000)
committerjsg <jsg@openbsd.org>
Mon, 27 Mar 2023 04:02:50 +0000 (04:02 +0000)
From Roman Li
8f720a79bc66a81b6373ba38a1b6b8fdea838143 in linux-6.1.y/6.1.16
40e9f3f067bc6fb47b878f8ba0a9cc7b93abbf49 in mainline linux

sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index d9b2cfb..856aa52 100644 (file)
@@ -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;
 
 }