VM support is only available for CZ and newer APUs. Trying to
enable it for dGPU will blow up in DC.

Signed-off-by: Harry Wentland <[email protected]>
Suggested-by: Alex Deucher <[email protected]>
CC: Christian Koenig <[email protected]>
---
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 
b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index 26f6d5e4c08c..332761f643f6 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -427,6 +427,10 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
                amdgpu_dm_initialize_fbc(adev);
        init_data.fbc_gpu_addr = adev->dm.compressor.gpu_addr;
 #endif
+
+       if (adev->flags & AMD_IS_APU && adev->asic_type >= CHIP_CARRIZO)
+               init_data.flags.gpu_vm_support = true;
+
        /* Display Core create. */
        adev->dm.dc = dc_create(&init_data);
 
-- 
2.14.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to