diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2014-10-23 07:10:57 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:11:58 -0400 |
commit | 14577a339ccc160ed58f8d936ebcbd96dba3b6ca (patch) | |
tree | 2e55969ea66a15b23f799e0054d4cba4ab6d85fe /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | b1088fe769ea900438a39c9e9920157b4ba7436a (diff) |
gpu: nvgpu: cde: list for contexts, defer deletion
Instead of current preallocated array plus dynamically allocated
temporary contexts, use a linked list in LRU fashion, always storing
free contexts at the beginning of the list. Initialize the preallocated
contexts to the list and store dynamically allocated temporaries there
too for quick reuse as needed, with a delayed scheduled work for
deleting temporaries when the high load has diminished.
Bug 200040211
Change-Id: Ibc75a0150109ec9c44b2eeb74607450990584b18
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/562856
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 309a1b08..825cb886 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -535,6 +535,7 @@ enum gk20a_dbg_categories { | |||
535 | gpu_dbg_map = BIT(8), /* mem mappings */ | 535 | gpu_dbg_map = BIT(8), /* mem mappings */ |
536 | gpu_dbg_gpu_dbg = BIT(9), /* gpu debugger/profiler */ | 536 | gpu_dbg_gpu_dbg = BIT(9), /* gpu debugger/profiler */ |
537 | gpu_dbg_cde = BIT(10), /* cde info messages */ | 537 | gpu_dbg_cde = BIT(10), /* cde info messages */ |
538 | gpu_dbg_cde_ctx = BIT(11), /* cde context usage messages */ | ||
538 | gpu_dbg_mem = BIT(31), /* memory accesses, very verbose */ | 539 | gpu_dbg_mem = BIT(31), /* memory accesses, very verbose */ |
539 | }; | 540 | }; |
540 | 541 | ||