Skip to contentSkip to conversation

drm/amd/amdgpu: reserve vm invalidation engine for uni_mes

PATCH In review Michael Chen 3 participants 3 messages Nov 13, 2025 – Nov 14, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amd/amdgpu: reserve vm invalidation engine for uni_mes

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

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c +3 -0
index 97b562a79ea8..4814be022f32 100644
@@ -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);
Signature · 1 line
2.34.1
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Michael Chen

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

Quoted 21 lines
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c +3 -1
index 97b562a79ea8..4814be022f32 100644
@@ -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

Reviewed-by Acked-by Alex Deucher
#2 lore raw

[AMD Official Use Only - AMD Internal Distribution Only]

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

Quoted 5 lines · Michael Chen

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

Quoted 22 lines
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c +3 -1
index 97b562a79ea8..4814be022f32 100644
@@ -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