diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2014-09-30 06:30:13 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:11:50 -0400 |
commit | 5ce4438380eeb7cf4cb5f53e80b2b28dd3ee0fe2 (patch) | |
tree | 3c6bf589333ee1207a5b00a1180e79664c1a83de /drivers/gpu/nvgpu/gm20b/ltc_gm20b.c | |
parent | 492b60fa2eb5c51b9539a0071323995bcafafbe6 (diff) |
gpu: nvgpu: find unused cde context instead of lru
When preparing a new job, loop initially through the small number of
preallocated contexts and try to find one that is already finished,
instead of blindly getting the next slot in lru order. If all have work
to do, select next in lru order. This reduces the possibility of a
deadlock between cde tasks.
Bug 200040211
Change-Id: Ib695c0a8e1bcec095d50ec4f2522f3aad39ce97b
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/552035
GVS: Gerrit_Virtual_Submit
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/ltc_gm20b.c')
0 files changed, 0 insertions, 0 deletions