]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Update SPM_VMID with the job's vmid when application reserves the vmid
authorJacob He <jacob.he@amd.com>
Fri, 28 Feb 2020 12:24:41 +0000 (20:24 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 6 Mar 2020 19:32:16 +0000 (14:32 -0500)
commitc82d0f249837147a602676475c22aac43c2b7ff7
tree26e4d91ed2dfc19be7cb1c7db0da459edd028c4b
parentf7e1f813240df1ccacf7da1dc629cc929790611c
drm/amdgpu: Update SPM_VMID with the job's vmid when application reserves the vmid

SPM access the video memory according to SPM_VMID. It should be updated
with the job's vmid right before the job is scheduled. SPM_VMID is a
global resource

Signed-off-by: Jacob He <jacob.he@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c