Re: [PATCH 2/2] drm/amdgpu/mes: enable compute pipes across all MEC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Mar 19, 2025 at 12:25 PM Alex Deucher <alexander.deucher@xxxxxxx> wrote:
>
> Enable pipes on both MECs for MES.
>

Fixes: 745f46b6a99f ("drm/amdgpu: enable mes v12 self test")

> Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx>
> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
> index 920cd1c1eacb6..b8066c0b9014f 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
> @@ -109,8 +109,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;
>         }
> --
> 2.48.1
>




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux