We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 899dec4 commit 31135ccCopy full SHA for 31135cc
drivers/gpu/drm/amd/amdgpu/sdma_v7_0.c
@@ -1349,9 +1349,15 @@ static int sdma_v7_0_sw_init(struct amdgpu_ip_block *ip_block)
1349
else
1350
DRM_ERROR("Failed to allocated memory for SDMA IP Dump\n");
1351
1352
- /* add firmware version checks here */
1353
- if (0 && !adev->sdma.disable_uq)
1354
- adev->userq_funcs[AMDGPU_HW_IP_DMA] = &userq_mes_funcs;
+ switch (amdgpu_ip_version(adev, SDMA0_HWIP, 0)) {
+ case IP_VERSION(7, 0, 0):
+ case IP_VERSION(7, 0, 1):
1355
+ if ((adev->sdma.instance[0].fw_version >= 7836028) && !adev->sdma.disable_uq)
1356
+ adev->userq_funcs[AMDGPU_HW_IP_DMA] = &userq_mes_funcs;
1357
+ break;
1358
+ default:
1359
1360
+ }
1361
1362
return r;
1363
}
0 commit comments