[AMD Official Use Only - AMD Internal Distribution Only]

Reviewed-By: Shaoyun liu <[email protected]>

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Alex Deucher
Sent: Friday, November 14, 2025 9:42 AM
To: Chen, Michael <[email protected]>
Cc: [email protected]; Deucher, Alexander 
<[email protected]>
Subject: Re: [PATCH] drm/amd/amdgpu: reserve vm invalidation engine for uni_mes

On Thu, Nov 13, 2025 at 1:10 PM Michael Chen <[email protected]> wrote:
>
> Reserve vm invalidation engine 6 when uni_mes enabled. It is used in
> processing tlb flush request from host.
>
> Signed-off-by: Michael Chen <[email protected]>

Acked-by: Alex Deucher <[email protected]>

> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
> index 97b562a79ea8..4814be022f32 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
> @@ -597,6 +597,9 @@ int amdgpu_gmc_allocate_vm_inv_eng(struct amdgpu_device 
> *adev)
>                 /* reserve engine 5 for firmware */
>                 if (adev->enable_mes)
>                         vm_inv_engs[i] &= ~(1 << 5);
> +               /* reserve engine 6 for uni mes */
> +               if (adev->enable_uni_mes)
> +                       vm_inv_engs[i] &= ~(1 << 6);
>                 /* reserve mmhub engine 3 for firmware */
>                 if (adev->enable_umsch_mm)
>                         vm_inv_engs[i] &= ~(1 << 3);
> --
> 2.34.1
>

Reply via email to