Skip to content

Commit 418ec66

Browse files
michchen-amdgregkh
authored andcommitted
drm/amd/amdgpu: reserve vm invalidation engine for uni_mes
commit 971fb57 upstream. 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 8733737) Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 23316ed commit 418ec66

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,9 @@ int amdgpu_gmc_allocate_vm_inv_eng(struct amdgpu_device *adev)
597597
/* reserve engine 5 for firmware */
598598
if (adev->enable_mes)
599599
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);
600603
/* reserve mmhub engine 3 for firmware */
601604
if (adev->enable_umsch_mm)
602605
vm_inv_engs[i] &= ~(1 << 3);

0 commit comments

Comments
 (0)