]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amdgpu/sdma6: add more ucode version checks for userq support
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 23 Jun 2025 19:47:45 +0000 (15:47 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 30 Jun 2025 16:08:00 +0000 (12:08 -0400)
Fill in the SDMA ucode version checks for more SDMA 6.x parts.

v2: squash in fixes (Alex)

Reviewed-by: Jesse Zhang <Jesse.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c

index cac0882770fd5321dfbba07454a858ea4542da61..d2effa53181766631155869f4637e3ca808464bb 100644 (file)
@@ -1379,6 +1379,10 @@ static int sdma_v6_0_sw_init(struct amdgpu_ip_block *ip_block)
                if ((adev->sdma.instance[0].fw_version >= 24) && !adev->sdma.disable_uq)
                        adev->userq_funcs[AMDGPU_HW_IP_DMA] = &userq_mes_funcs;
                break;
+       case IP_VERSION(6, 0, 1):
+               if ((adev->sdma.instance[0].fw_version >= 18) && !adev->sdma.disable_uq)
+                       adev->userq_funcs[AMDGPU_HW_IP_DMA] = &userq_mes_funcs;
+               break;
        case IP_VERSION(6, 0, 2):
                if ((adev->sdma.instance[0].fw_version >= 21) && !adev->sdma.disable_uq)
                        adev->userq_funcs[AMDGPU_HW_IP_DMA] = &userq_mes_funcs;
@@ -1387,6 +1391,22 @@ static int sdma_v6_0_sw_init(struct amdgpu_ip_block *ip_block)
                if ((adev->sdma.instance[0].fw_version >= 25) && !adev->sdma.disable_uq)
                        adev->userq_funcs[AMDGPU_HW_IP_DMA] = &userq_mes_funcs;
                break;
+       case IP_VERSION(6, 1, 0):
+               if ((adev->sdma.instance[0].fw_version >= 14) && !adev->sdma.disable_uq)
+                       adev->userq_funcs[AMDGPU_HW_IP_DMA] = &userq_mes_funcs;
+               break;
+       case IP_VERSION(6, 1, 1):
+               if ((adev->sdma.instance[0].fw_version >= 17) && !adev->sdma.disable_uq)
+                       adev->userq_funcs[AMDGPU_HW_IP_DMA] = &userq_mes_funcs;
+               break;
+       case IP_VERSION(6, 1, 2):
+               if ((adev->sdma.instance[0].fw_version >= 15) && !adev->sdma.disable_uq)
+                       adev->userq_funcs[AMDGPU_HW_IP_DMA] = &userq_mes_funcs;
+               break;
+       case IP_VERSION(6, 1, 3):
+               if ((adev->sdma.instance[0].fw_version >= 10) && !adev->sdma.disable_uq)
+                       adev->userq_funcs[AMDGPU_HW_IP_DMA] = &userq_mes_funcs;
+               break;
        default:
                break;
        }