Commit 60fb100b authored by Alex Deucher's avatar Alex Deucher

drm/amdgpu/display: set gpu vm flag for all asics which support it

It won't get used unless the driver allows the gtt domain for
display buffers which is controlled elsewhere.
Acked-by: default avatarHuang Rui <ray.huang@amd.com>
Acked-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent d44394a9
...@@ -906,13 +906,15 @@ static int amdgpu_dm_init(struct amdgpu_device *adev) ...@@ -906,13 +906,15 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
init_data.dce_environment = DCE_ENV_PRODUCTION_DRV; init_data.dce_environment = DCE_ENV_PRODUCTION_DRV;
/* switch (adev->asic_type) {
* TODO debug why this doesn't work on Raven case CHIP_CARRIZO:
*/ case CHIP_STONEY:
if (adev->flags & AMD_IS_APU && case CHIP_RAVEN:
adev->asic_type >= CHIP_CARRIZO &&
adev->asic_type < CHIP_RAVEN)
init_data.flags.gpu_vm_support = true; init_data.flags.gpu_vm_support = true;
break;
default:
break;
}
if (amdgpu_dc_feature_mask & DC_FBC_MASK) if (amdgpu_dc_feature_mask & DC_FBC_MASK)
init_data.flags.fbc_support = true; init_data.flags.fbc_support = true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment