AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/amd/amdgpu: reserve vm invalidation engine for uni_mes
@ 2025-11-13 18:08 Michael Chen
  2025-11-14 14:42 ` Alex Deucher
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Chen @ 2025-11-13 18:08 UTC (permalink / raw)
  To: amd-gfx; +Cc: alexander.deucher, michael.chen

Reserve vm invalidation engine 6 when uni_mes enabled. It
is used in processing tlb flush request from host.

Signed-off-by: Michael Chen <michael.chen@amd.com>
---
 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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] drm/amd/amdgpu: reserve vm invalidation engine for uni_mes
  2025-11-13 18:08 [PATCH] drm/amd/amdgpu: reserve vm invalidation engine for uni_mes Michael Chen
@ 2025-11-14 14:42 ` Alex Deucher
  2025-11-14 19:13   ` Liu, Shaoyun
  0 siblings, 1 reply; 3+ messages in thread
From: Alex Deucher @ 2025-11-14 14:42 UTC (permalink / raw)
  To: Michael Chen; +Cc: amd-gfx, alexander.deucher

On Thu, Nov 13, 2025 at 1:10 PM Michael Chen <michael.chen@amd.com> 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 <michael.chen@amd.com>

Acked-by: Alex Deucher <alexander.deucher@amd.com>

> ---
>  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
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [PATCH] drm/amd/amdgpu: reserve vm invalidation engine for uni_mes
  2025-11-14 14:42 ` Alex Deucher
@ 2025-11-14 19:13   ` Liu, Shaoyun
  0 siblings, 0 replies; 3+ messages in thread
From: Liu, Shaoyun @ 2025-11-14 19:13 UTC (permalink / raw)
  To: Alex Deucher, Chen, Michael
  Cc: amd-gfx@lists.freedesktop.org, Deucher,  Alexander

[AMD Official Use Only - AMD Internal Distribution Only]

Reviewed-By: Shaoyun liu <Shaoyun.liu@amd.com>

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

On Thu, Nov 13, 2025 at 1:10 PM Michael Chen <michael.chen@amd.com> 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 <michael.chen@amd.com>

Acked-by: Alex Deucher <alexander.deucher@amd.com>

> ---
>  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
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-11-14 19:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-13 18:08 [PATCH] drm/amd/amdgpu: reserve vm invalidation engine for uni_mes Michael Chen
2025-11-14 14:42 ` Alex Deucher
2025-11-14 19:13   ` Liu, Shaoyun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox