]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
drm/amdkfd: add KFD support for GC IP v11.5.2
authorTim Huang <Tim.Huang@amd.com>
Tue, 14 May 2024 06:24:44 +0000 (14:24 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 2 Jul 2024 22:05:29 +0000 (18:05 -0400)
Enable KFD for GC 11.5.2.

Signed-off-by: Tim Huang <Tim.Huang@amd.com>
Reviewed-by: Yifan Zhang <yifan1.zhang@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 ead43386a7ef559f3ec021e544a234579082ebeb..cd7b81b7b939a3fe63da87837449d70063a4a424 100644 (file)
@@ -1678,6 +1678,7 @@ int kfd_get_gpu_cache_info(struct kfd_node *kdev, struct kfd_gpu_cache_info **pc
                case IP_VERSION(11, 0, 4):
                case IP_VERSION(11, 5, 0):
                case IP_VERSION(11, 5, 1):
+               case IP_VERSION(11, 5, 2):
                case IP_VERSION(12, 0, 0):
                case IP_VERSION(12, 0, 1):
                        num_of_cache_types =
index 6040ee7918bf24e8481ec6890ab7f2f39fe49229..e6debd63a11631708bd9b7e5b8afbb62f8a5cb97 100644 (file)
@@ -175,6 +175,7 @@ static void kfd_device_info_set_event_interrupt_class(struct kfd_dev *kfd)
        case IP_VERSION(11, 0, 4):
        case IP_VERSION(11, 5, 0):
        case IP_VERSION(11, 5, 1):
+       case IP_VERSION(11, 5, 2):
                kfd->device_info.event_interrupt_class = &event_interrupt_class_v11;
                break;
        case IP_VERSION(12, 0, 0):
@@ -438,6 +439,10 @@ struct kfd_dev *kgd2kfd_probe(struct amdgpu_device *adev, bool vf)
                        gfx_target_version = 110501;
                        f2g = &gfx_v11_kfd2kgd;
                        break;
+               case IP_VERSION(11, 5, 2):
+                       gfx_target_version = 110502;
+                       f2g = &gfx_v11_kfd2kgd;
+                       break;
                case IP_VERSION(12, 0, 0):
                        gfx_target_version = 120000;
                        f2g = &gfx_v12_kfd2kgd;