drm/amdkfd: Add Aldebaran gws support
authorHarish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Wed, 21 Apr 2021 01:09:10 +0000 (21:09 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 29 Apr 2021 03:36:05 +0000 (23:36 -0400)
v2: updated MEC FW version after validating gws with debugger

Signed-off-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Reviewed-by: Joseph Greathouse <Joseph.Greathouse@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_device.c

index 348fd3e..ae3cabb 100644 (file)
@@ -699,7 +699,9 @@ static int kfd_gws_init(struct kfd_dev *kfd)
                        && kfd->device_info->asic_family <= CHIP_RAVEN
                        && kfd->mec2_fw_version >= 0x1b3)
                || (kfd->device_info->asic_family == CHIP_ARCTURUS
-                       && kfd->mec2_fw_version >= 0x30))
+                       && kfd->mec2_fw_version >= 0x30)
+               || (kfd->device_info->asic_family == CHIP_ALDEBARAN
+                       && kfd->mec2_fw_version >= 0x28))
                ret = amdgpu_amdkfd_alloc_gws(kfd->kgd,
                                amdgpu_amdkfd_get_num_gws(kfd->kgd), &kfd->gws);