]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/amdkfd: Fix CU Masking for GFX 9.4.3
authorMukul Joshi <mukul.joshi@amd.com>
Thu, 9 May 2024 21:29:25 +0000 (17:29 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 Aug 2024 06:59:49 +0000 (08:59 +0200)
[ Upstream commit 85cf43c554e438e2e12b0fe109688c9533e4d93f ]

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 <mukul.joshi@amd.com>
Reviewed-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c

index 6bddc16808d7a909ce669c2da6eabb5186f88cef..8ec136eba54a96f48f0a5d7c729c74400643d36d 100644 (file)
@@ -713,7 +713,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) {