drm/amdkfd: Skip pairwise CU mask check for GFX12.1

GFX12.1 doesn't follow the pair-wise CU mask requirement as
is the case for GFX 10,GFX 11 and GFX 12.
Currently, the ioctl call is returning error because of this
incorrect condition of checking for a pair of CUs to be enabled
in the CU mask.
Fix the issue by removing this check for GFX 12.1.

Signed-off-by: Mukul Joshi <mukul.joshi@amd.com>
Reviewed-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Mukul Joshi 2026-06-30 17:55:58 -04:00 committed by Alex Deucher
parent 95263281fd
commit 155d09cc41

View File

@ -663,7 +663,8 @@ int pqm_update_mqd(struct process_queue_manager *pqm,
/* ASICs that have WGPs must enforce pairwise enabled mask checks. */
if (minfo && minfo->cu_mask.ptr &&
KFD_GC_VERSION(pqn->q->device) >= IP_VERSION(10, 0, 0)) {
KFD_GC_VERSION(pqn->q->device) >= IP_VERSION(10, 0, 0) &&
KFD_GC_VERSION(pqn->q->device) < IP_VERSION(12, 1, 0)) {
int i;
for (i = 0; i < minfo->cu_mask.count; i += 2) {