]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amdkfd: correct the MEC atomic support firmware checking for GC 10.3.7
authorPrike Liang <Prike.Liang@amd.com>
Mon, 11 Jul 2022 08:03:08 +0000 (16:03 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 13 Jul 2022 16:20:36 +0000 (12:20 -0400)
On the GC 10.3.7 platform the initial MEC release version #3 can support
atomic operation,so need correct and set its MEC atomic support version to #3.

Signed-off-by: Prike Liang <Prike.Liang@amd.com>
Reviewed-by: Aaron Liu <aaron.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org # 5.18.x
drivers/gpu/drm/amd/amdkfd/kfd_device.c

index bf420045777221ecf0e6769e18c24b4418ea5bdb..a08769c5e94b0acc825e49584487af624a19d062 100644 (file)
@@ -184,6 +184,8 @@ static void kfd_device_info_init(struct kfd_dev *kfd,
                        /* Navi2x+, Navi1x+ */
                        if (gc_version == IP_VERSION(10, 3, 6))
                                kfd->device_info.no_atomic_fw_version = 14;
+                       else if (gc_version == IP_VERSION(10, 3, 7))
+                               kfd->device_info.no_atomic_fw_version = 3;
                        else if (gc_version >= IP_VERSION(10, 3, 0))
                                kfd->device_info.no_atomic_fw_version = 92;
                        else if (gc_version >= IP_VERSION(10, 1, 1))