]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amd/amdgpu: reserve vm invalidation engine for uni_mes
authorMichael Chen <michael.chen@amd.com>
Thu, 13 Nov 2025 17:56:43 +0000 (12:56 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 24 Nov 2025 18:25:31 +0000 (13:25 -0500)
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>
Reviewed-by: Shaoyun liu <Shaoyun.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 873373739b9b150720ea2c5390b4e904a4d21505)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c

index 9dcf51991b5b631094ad7ebcfd1987c689774aee..869bceb0fe2c6d860a6555640f03b87427399c9c 100644 (file)
@@ -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);