Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu/sdma7: add ucode version checks for userq support

SDMA 7.0.0/1: 7836028

Reviewed-by: Jesse Zhang <Jesse.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

+9 -3
+9 -3
drivers/gpu/drm/amd/amdgpu/sdma_v7_0.c
··· 1349 1349 else 1350 1350 DRM_ERROR("Failed to allocated memory for SDMA IP Dump\n"); 1351 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; 1352 + switch (amdgpu_ip_version(adev, SDMA0_HWIP, 0)) { 1353 + case IP_VERSION(7, 0, 0): 1354 + 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 + break; 1360 + } 1355 1361 1356 1362 return r; 1357 1363 }