Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.

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

authored by

Michael Chen and committed by
Alex Deucher
971fb574 ac3fd01e

+3
+3
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
··· 597 597 /* reserve engine 5 for firmware */ 598 598 if (adev->enable_mes) 599 599 vm_inv_engs[i] &= ~(1 << 5); 600 + /* reserve engine 6 for uni mes */ 601 + if (adev->enable_uni_mes) 602 + vm_inv_engs[i] &= ~(1 << 6); 600 603 /* reserve mmhub engine 3 for firmware */ 601 604 if (adev->enable_umsch_mm) 602 605 vm_inv_engs[i] &= ~(1 << 3);