drm/amdkfd: add asic support for GC 11.0.2
authorEric Huang <jinhuieric.huang@amd.com>
Tue, 8 Feb 2022 20:22:05 +0000 (15:22 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 May 2022 20:52:48 +0000 (16:52 -0400)
Changes are inherited from GC 11.0.0.

Signed-off-by: Eric Huang <jinhuieric.huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_crat.c
drivers/gpu/drm/amd/amdkfd/kfd_device.c

index e9d79facb83af6c603ebcca009197bc8abd5ec10..765602a2cb4712833de5edfb434250c831b61526 100644 (file)
@@ -1520,6 +1520,7 @@ static int kfd_fill_gpu_cache_info(struct kfd_dev *kdev,
                        num_of_cache_types = ARRAY_SIZE(yellow_carp_cache_info);
                        break;
                case IP_VERSION(11, 0, 0):
+               case IP_VERSION(11, 0, 2):
                        pcache_info = cache_info;
                        num_of_cache_types =
                                kfd_fill_gpu_cache_info_from_gfx_config(kdev, pcache_info);
index 3b6f1fc20ea5b5fda97e1556528e5c5ce29179f1..ad41e6018ccdcd868aa3d9488fb6416719d1d111 100644 (file)
@@ -137,6 +137,7 @@ static void kfd_device_info_set_event_interrupt_class(struct kfd_dev *kfd)
                kfd->device_info.event_interrupt_class = &event_interrupt_class_v9;
                break;
        case IP_VERSION(11, 0, 0):
+       case IP_VERSION(11, 0, 2):
                kfd->device_info.event_interrupt_class = &event_interrupt_class_v11;
                break;
        default:
@@ -368,6 +369,10 @@ struct kfd_dev *kgd2kfd_probe(struct amdgpu_device *adev, bool vf)
                        gfx_target_version = 110000;
                        f2g = &gfx_v11_kfd2kgd;
                        break;
+               case IP_VERSION(11, 0, 2):
+                       gfx_target_version = 110002;
+                       f2g = &gfx_v11_kfd2kgd;
+                       break;
                default:
                        break;
                }