Message ID | 20211215065730.390346-3-vicamo.yang@canonical.com |
---|---|
State | New |
Headers | show |
Series | Support USB4 DP alt mode for AMD Yellow Carp graphics card | expand |
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 3819b0c1c1ec..353c38898d47 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -3971,9 +3971,9 @@ static int amdgpu_dm_initialize_drm_device(struct amdgpu_device *adev) /* Determine whether to enable PSR support by default. */ if (!(amdgpu_dc_debug_mask & DC_DISABLE_PSR)) { - switch (adev->ip_versions[DCE_HWIP][0]) { - case IP_VERSION(3, 1, 2): - case IP_VERSION(3, 1, 3): + switch (adev->asic_type) { + case CHIP_VANGOGH: + case CHIP_YELLOW_CARP: psr_feature_enabled = true; break; default: