drm/amd/display: change GPU match with IP version for Vangogh
authorPerry Yuan <Perry.Yuan@amd.com>
Tue, 1 Nov 2022 16:50:17 +0000 (00:50 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Nov 2022 18:35:15 +0000 (13:35 -0500)
Use ip versions (10,3,1) to match the GPU after Vangogh switched to use IP
discovery path.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Perry Yuan <Perry.Yuan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index fc7da97..35fa887 100644 (file)
@@ -10263,8 +10263,8 @@ int amdgpu_dm_process_dmub_aux_transfer_sync(bool is_cmd_aux, struct dc_context
  */
 bool check_seamless_boot_capability(struct amdgpu_device *adev)
 {
-       switch (adev->asic_type) {
-       case CHIP_VANGOGH:
+       switch (adev->ip_versions[DCE_HWIP][0]) {
+       case IP_VERSION(3, 0, 1):
                if (!adev->mman.keep_stolen_vga_memory)
                        return true;
                break;