drm/amdgpu/display: set gpu vm flag for all asics which support it
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 8 Jan 2020 22:43:55 +0000 (17:43 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 14 Jan 2020 15:18:09 +0000 (10:18 -0500)
It won't get used unless the driver allows the gtt domain for
display buffers which is controlled elsewhere.

Acked-by: Huang Rui <ray.huang@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index 76673c7234ed798aad6664b08b51dc6341ccd343..490c73eada8fc03a18c5c4ce994eb0b75680300d 100644 (file)
@@ -906,13 +906,15 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
 
        init_data.dce_environment = DCE_ENV_PRODUCTION_DRV;
 
-       /*
-        * 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)
+       switch (adev->asic_type) {
+       case CHIP_CARRIZO:
+       case CHIP_STONEY:
+       case CHIP_RAVEN:
                init_data.flags.gpu_vm_support = true;
+               break;
+       default:
+               break;
+       }
 
        if (amdgpu_dc_feature_mask & DC_FBC_MASK)
                init_data.flags.fbc_support = true;