Patch "drm/amdgpu: Properly allocate VM invalidate eng v2" has been added to the 4.14-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
drm/amdgpu: Properly allocate VM invalidate eng v2
to the 4.14-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
drm-amdgpu-properly-allocate-vm-invalidate-eng-v2.patch
and it can be found in the queue-4.14 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
c5066129af4436ab0da8eefe4289774a5409706dMon Sep 17 00:00:00 2001
From: ozeng <[email protected]>
Date: Tue, 6 Jun 2017 10:53:28 -0500
Subject: drm/amdgpu: Properly allocate VM invalidate eng v2
From: ozeng <[email protected]>
commit c5066129af4436ab0da8eefe4289774a5409706d upstream.
v1: Properly allocate TLB invalidation engine to avoid conflict.
v2: Added comments to codes
--- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +12 -3
@@ -395,7 +395,16 @@ static int gmc_v9_0_early_init(void *hanstatic int gmc_v9_0_late_init (void *handle) {struct amdgpu_device *adev = (struct amdgpu_device *)handle; -unsigned vm_inv_eng[AMDGPU_MAX_VMHUBS ] = {3 ,3 }; +/* +* The latest engine allocation on gfx9 is: +* Engine 0, 1: idle +* Engine 2, 3: firmware +* Engine 4~13: amdgpu ring, subject to change when ring number changes +* Engine 14~15: idle +* Engine 16: kfd tlb invalidation +* Engine 17: Gart flushes +*/ +unsigned vm_inv_eng[AMDGPU_MAX_VMHUBS ] = {4 ,4 };unsigned i;for (i =0 ; i < adev->num_rings; ++i) {
@@ -408,9 +417,9 @@ static int gmc_v9_0_late_init(void *hand ring->funcs->vmhub); } -/* Engine 17 is used for GART flushes */ +/* Engine 16 is used for KFD and 17 for GART flushes */ for (i =0 ; i <AMDGPU_MAX_VMHUBS ; ++i) -BUG_ON (vm_inv_eng[i] >17 ); +BUG_ON (vm_inv_eng[i] >16 );return amdgpu_irq_get (adev, &adev->mc.vm_fault,0 ); }
Patches currently in stable-queue which might be from [email protected] are
queue-4.14/drm-amdgpu-properly-allocate-vm-invalidate-eng-v2.patch