drm/amdgpu: cache the fence to wait for a VMID
authorChristian König <christian.koenig@amd.com>
Wed, 31 Jan 2018 15:03:19 +0000 (16:03 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:19:18 +0000 (14:19 -0500)
commit3af81440a9b02e2c6e244539ee567063c3d62292
tree869c184af030c2b386101e5f4b92200836ab74ca
parent58592a095c981a002137221205411f538b9f0fb9
drm/amdgpu: cache the fence to wait for a VMID

Beneficial when a lot of processes are waiting for VMIDs.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h