After suspend/resume sdma_gang is supported on MES 12.1, SDMA queue reset
is supported too.
Signed-off-by: Amber Lin <Amber.Lin@amd.com>
Reviewed-by: Michael Chen<michael.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
dev->node_props.capability |=
HSA_CAP_AQL_QUEUE_DOUBLE_MAP;
- if (KFD_GC_VERSION(dev->gpu) < IP_VERSION(10, 0, 0) &&
+ if ((KFD_GC_VERSION(dev->gpu) < IP_VERSION(10, 0, 0) ||
+ KFD_GC_VERSION(dev->gpu) == IP_VERSION(12, 1, 0)) &&
(dev->gpu->adev->sdma.supported_reset & AMDGPU_RESET_TYPE_PER_QUEUE))
dev->node_props.capability2 |= HSA_CAP2_PER_SDMA_QUEUE_RESET_SUPPORTED;