]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
drm/amdkfd: add GC 11.0.4 KFD support
authorYifan Zhang <yifan1.zhang@amd.com>
Wed, 12 Oct 2022 05:01:22 +0000 (13:01 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Mar 2023 10:49:31 +0000 (12:49 +0200)
commit 88c21c2b56aa21dd34290d43ada74033dc3bfe35 upstream.

Add initial support for GC 11.0.4 in KFD compute driver.

Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com>
Reviewed-by: Aaron Liu <aaron.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: "Limonciello, Mario" <Mario.Limonciello@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdkfd/kfd_crat.c
drivers/gpu/drm/amd/amdkfd/kfd_device.c

index 97700cb1bbe7abd535227beeeb40bba0e3e41f7e..f522e1c90dd20dbe3af62f7ebc30a0f43cf20820 100644 (file)
@@ -1522,6 +1522,7 @@ int kfd_get_gpu_cache_info(struct kfd_dev *kdev, struct kfd_gpu_cache_info **pca
                case IP_VERSION(11, 0, 1):
                case IP_VERSION(11, 0, 2):
                case IP_VERSION(11, 0, 3):
+               case IP_VERSION(11, 0, 4):
                        num_of_cache_types =
                                kfd_fill_gpu_cache_info_from_gfx_config(kdev, *pcache_info);
                        break;
index a75e1af77365d82363e649b1d5fbfea9baa644ab..27820f0a282d16cd7532ee5e4a9a7d226dec025b 100644 (file)
@@ -154,6 +154,7 @@ static void kfd_device_info_set_event_interrupt_class(struct kfd_dev *kfd)
        case IP_VERSION(11, 0, 1):
        case IP_VERSION(11, 0, 2):
        case IP_VERSION(11, 0, 3):
+       case IP_VERSION(11, 0, 4):
                kfd->device_info.event_interrupt_class = &event_interrupt_class_v11;
                break;
        default:
@@ -396,6 +397,7 @@ struct kfd_dev *kgd2kfd_probe(struct amdgpu_device *adev, bool vf)
                        f2g = &gfx_v11_kfd2kgd;
                        break;
                case IP_VERSION(11, 0, 1):
+               case IP_VERSION(11, 0, 4):
                        gfx_target_version = 110003;
                        f2g = &gfx_v11_kfd2kgd;
                        break;