Skip to content

Commit a52077b

Browse files
committed
drm/amdgpu/mes: enable compute pipes across all MEC
Enable pipes on both MECs for MES. Fixes: 745f46b ("drm/amdgpu: enable mes v12 self test") Acked-by: Lijo Lazar <[email protected]> Reviewed-by: Prike Liang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 652a06f commit a52077b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,7 @@ int amdgpu_mes_init(struct amdgpu_device *adev)
145145
adev->mes.vmid_mask_gfxhub = 0xffffff00;
146146

147147
for (i = 0; i < AMDGPU_MES_MAX_COMPUTE_PIPES; i++) {
148-
/* use only 1st MEC pipes */
149-
if (i >= adev->gfx.mec.num_pipe_per_mec)
148+
if (i >= (adev->gfx.mec.num_pipe_per_mec * adev->gfx.mec.num_mec))
150149
break;
151150
adev->mes.compute_hqd_mask[i] = 0xc;
152151
}

0 commit comments

Comments
 (0)