OSDN Git Service

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)
commit5e208eb62bb308ebf70fd03145c54215d72e7ba6
tree26e4d91ed2dfc19be7cb1c7db0da459edd028c4b
parent1a2172b5ee1752f4d5b5e5601d5abdd3178f9555
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