From: Mukul Joshi Date: Thu, 9 May 2024 21:29:25 +0000 (-0400) Subject: drm/amdkfd: Fix CU Masking for GFX 9.4.3 X-Git-Tag: microblaze-v6.13~537^2~32^2~247 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=85cf43c554e438e2e12b0fe109688c9533e4d93f;p=linux-2.6-microblaze.git drm/amdkfd: Fix CU Masking for GFX 9.4.3 We are incorrectly passing the first XCC's MQD when updating CU masks for other XCCs in the partition. Fix this by passing the MQD for the XCC currently being updated with CU mask to update_cu_mask function. Fixes: fc6efed2c728 ("drm/amdkfd: Update CU masking for GFX 9.4.3") Signed-off-by: Mukul Joshi Reviewed-by: Harish Kasiviswanathan Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c b/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c index 542191656aeb..399fa2106631 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c @@ -715,7 +715,7 @@ static void update_mqd_v9_4_3(struct mqd_manager *mm, void *mqd, m = get_mqd(mqd + size * xcc); update_mqd(mm, m, q, minfo); - update_cu_mask(mm, mqd, minfo, xcc); + update_cu_mask(mm, m, minfo, xcc); if (q->format == KFD_QUEUE_FORMAT_AQL) { switch (xcc) {