]> www.infradead.org Git - users/hch/misc.git/commitdiff
drm/amdgpu/mes: enable compute pipes across all MEC
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 19 Mar 2025 14:42:45 +0000 (10:42 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 Mar 2025 16:16:35 +0000 (12:16 -0400)
Enable pipes on both MECs for MES.

Fixes: 745f46b6a99f ("drm/amdgpu: enable mes v12 self test")
Acked-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Prike Liang <Prike.Liang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c

index 81632feee249b59a5b1ec4361699edfd103e61b9..230d0d05c65e8b717ab92cd4130c72f0d4b9f6c2 100644 (file)
@@ -145,8 +145,7 @@ int amdgpu_mes_init(struct amdgpu_device *adev)
        adev->mes.vmid_mask_gfxhub = 0xffffff00;
 
        for (i = 0; i < AMDGPU_MES_MAX_COMPUTE_PIPES; i++) {
-               /* use only 1st MEC pipes */
-               if (i >= adev->gfx.mec.num_pipe_per_mec)
+               if (i >= (adev->gfx.mec.num_pipe_per_mec * adev->gfx.mec.num_mec))
                        break;
                adev->mes.compute_hqd_mask[i] = 0xc;
        }