Skip to content

Commit 204d3bb

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 9cb4deb commit 204d3bb

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
@@ -580,6 +580,9 @@ int amdgpu_gmc_allocate_vm_inv_eng(struct amdgpu_device *adev)
580580
/* reserve engine 5 for firmware */
581581
if (adev->enable_mes)
582582
vm_inv_engs[i] &= ~(1 << 5);
583+
/* reserve engine 6 for uni mes */
584+
if (adev->enable_uni_mes)
585+
vm_inv_engs[i] &= ~(1 << 6);
583586
/* reserve mmhub engine 3 for firmware */
584587
if (adev->enable_umsch_mm)
585588
vm_inv_engs[i] &= ~(1 << 3);

0 commit comments

Comments
 (0)