]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/amdgpu: Add function to add/remove gws to kfd process
authorOak Zeng <Oak.Zeng@amd.com>
Wed, 8 May 2019 21:14:45 +0000 (16:14 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 May 2019 19:44:18 +0000 (14:44 -0500)
commit71efab6a30ab392af6a3fe1ce06bcf25c82ff3cb
tree36132e5021df69846d36415dca85a03951416d18
parente09d4fc8db949715848b2d4567ad47e6b8cf0a1b
drm/amdgpu: Add function to add/remove gws to kfd process

GWS bo is shared between all kfd processes. Add function to add gws
to kfd process's bo list so gws can be evicted from and restored
for process.

Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c