diff options
author | Kirill Artamonov <kartamonov@nvidia.com> | 2015-09-16 03:51:05 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2015-10-06 16:31:10 -0400 |
commit | 3ad8438c906c815748886ea923320fae91ea2538 (patch) | |
tree | 079cd5e8d6d4ee4c05678a180023bb17c1ee93ec /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | d60a45b9fdd935c5e0c29c2cc3c056e0ce8c9873 (diff) |
gpu: nvgpu: set correct timeslice value
Scale timeslice register value based on platform
specific ptimer scale koefficient.
Expose timeslice values through debugfs to simplify performance
tuning.
bug 1605552
bug 1603226
Change-Id: I49f86f22d58d26a366ee1b5f5a9ab9d7f896ad25
Signed-off-by: Kirill Artamonov <kartamonov@nvidia.com>
Reviewed-on: http://git-master/r/800007
(cherry picked from commit 00c85ef24cf28ffaa81eb53fff7edef1c699220a)
Reviewed-on: http://git-master/r/808251
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 8290e7e7..bec2d2a0 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -491,6 +491,11 @@ struct gk20a { | |||
491 | u32 ch_wdt_enabled; | 491 | u32 ch_wdt_enabled; |
492 | struct mutex ch_wdt_lock; | 492 | struct mutex ch_wdt_lock; |
493 | 493 | ||
494 | /* Channel priorities */ | ||
495 | u32 timeslice_low_priority_us; | ||
496 | u32 timeslice_medium_priority_us; | ||
497 | u32 timeslice_high_priority_us; | ||
498 | |||
494 | bool slcg_enabled; | 499 | bool slcg_enabled; |
495 | bool blcg_enabled; | 500 | bool blcg_enabled; |
496 | bool elcg_enabled; | 501 | bool elcg_enabled; |
@@ -510,6 +515,10 @@ struct gk20a { | |||
510 | struct dentry *debugfs_bypass_smmu; | 515 | struct dentry *debugfs_bypass_smmu; |
511 | struct dentry *debugfs_disable_bigpage; | 516 | struct dentry *debugfs_disable_bigpage; |
512 | struct dentry *debugfs_gr_default_attrib_cb_size; | 517 | struct dentry *debugfs_gr_default_attrib_cb_size; |
518 | |||
519 | struct dentry * debugfs_timeslice_low_priority_us; | ||
520 | struct dentry * debugfs_timeslice_medium_priority_us; | ||
521 | struct dentry * debugfs_timeslice_high_priority_us; | ||
513 | #endif | 522 | #endif |
514 | struct gk20a_ctxsw_ucode_info ctxsw_ucode_info; | 523 | struct gk20a_ctxsw_ucode_info ctxsw_ucode_info; |
515 | 524 | ||