]> Git Repo - linux.git/commitdiff
drm/amd/display: Enable VM support only on APUs newer than CZ
authorHarry Wentland <[email protected]>
Mon, 30 Oct 2017 17:41:51 +0000 (13:41 -0400)
committerAlex Deucher <[email protected]>
Mon, 19 Feb 2018 19:17:40 +0000 (14:17 -0500)
VM support is only available for CZ and newer APUs. Trying to
enable it for dGPU will blow up in DC.

v2: Don't enable gpu_vm_support for Raven yet since it leads to
    a black screen. Need to debug this further before enabling.

Change-Id: Ibe467c36affe2e7a7ee740c8d4f73027ca807178
Signed-off-by: Harry Wentland <[email protected]>
Suggested-by: Alex Deucher <[email protected]>
CC: Christian Koenig <[email protected]>
Reviewed-by: Andrey Grodzovsky <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index 4897beda82bce5426ebacf567dad9a2b34038a16..aaa6eb665863c6b0078d95bb747c07139ade1ef6 100644 (file)
@@ -451,6 +451,14 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
        else
                init_data.log_mask = DC_MIN_LOG_MASK;
 
+       /*
+        * TODO debug why this doesn't work on Raven
+        */
+       if (adev->flags & AMD_IS_APU &&
+           adev->asic_type >= CHIP_CARRIZO &&
+           adev->asic_type < CHIP_RAVEN)
+               init_data.flags.gpu_vm_support = true;
+
        /* Display Core create. */
        adev->dm.dc = dc_create(&init_data);
 
This page took 0.059708 seconds and 4 git commands to generate.