Skip to content

Commit a8ac4bc

Browse files
rajbharalexdeucher
authored andcommitted
drm/amdgpu: Fix implicit assumtion in gfx11 debug flags
Gfx11 debug flags mask is currently set with an implicit assumption that no other mqd update flags exist. This needs to be fixed with newly introduced flag UPDATE_FLAG_IS_GWS by the previous patch. Reviewed-by: Felix Kuehling <[email protected]> Signed-off-by: Rajneesh Bhardwaj <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent e3de58f commit a8ac4bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v11.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ static void update_cu_mask(struct mqd_manager *mm, void *mqd,
5555
m = get_mqd(mqd);
5656

5757
if (has_wa_flag) {
58-
uint32_t wa_mask = minfo->update_flag == UPDATE_FLAG_DBG_WA_ENABLE ?
59-
0xffff : 0xffffffff;
58+
uint32_t wa_mask =
59+
(minfo->update_flag & UPDATE_FLAG_DBG_WA_ENABLE) ? 0xffff : 0xffffffff;
6060

6161
m->compute_static_thread_mgmt_se0 = wa_mask;
6262
m->compute_static_thread_mgmt_se1 = wa_mask;

0 commit comments

Comments
 (0)