diff options
author | Richard Zhao <rizhao@nvidia.com> | 2016-03-31 14:16:23 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-05-31 13:47:22 -0400 |
commit | d707c5a444e024e1184213a75f44a73dbb1707d2 (patch) | |
tree | 09711370df9d9078e4f604e60983877bbf30b9de /drivers/gpu/nvgpu/gk20a/hal_gk20a.c | |
parent | a71ce831fbbca3ba8602e0b07ecd630c4a39f376 (diff) |
gpu: nvgpu: add tsg support for vgpu
- make tsg_gk20a.c call HAL for enable/disable channels
- add preempt_tsg HAL callbacks
- add tsg bind/unbind channel HAL callbacks
- add according tsg callbacks for vgpu
Bug 1702773
JIRA VFND-1003
Change-Id: I2cba74b3ebd3920ef09219a168e6433d9574dbe8
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: http://git-master/r/1144932
(cherry picked from commit c3787de7d38651d46969348f5acae2ba86b31ec7)
Reviewed-on: http://git-master/r/1126942
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/hal_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/hal_gk20a.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/hal_gk20a.c b/drivers/gpu/nvgpu/gk20a/hal_gk20a.c index fb3b3e55..5112af55 100644 --- a/drivers/gpu/nvgpu/gk20a/hal_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/hal_gk20a.c | |||
@@ -30,6 +30,7 @@ | |||
30 | #include "regops_gk20a.h" | 30 | #include "regops_gk20a.h" |
31 | #include "therm_gk20a.h" | 31 | #include "therm_gk20a.h" |
32 | #include "hw_proj_gk20a.h" | 32 | #include "hw_proj_gk20a.h" |
33 | #include "tsg_gk20a.h" | ||
33 | 34 | ||
34 | static struct gpu_ops gk20a_ops = { | 35 | static struct gpu_ops gk20a_ops = { |
35 | .clock_gating = { | 36 | .clock_gating = { |
@@ -142,6 +143,7 @@ int gk20a_init_hal(struct gk20a *g) | |||
142 | gk20a_init_regops(gops); | 143 | gk20a_init_regops(gops); |
143 | gk20a_init_debug_ops(gops); | 144 | gk20a_init_debug_ops(gops); |
144 | gk20a_init_therm_ops(gops); | 145 | gk20a_init_therm_ops(gops); |
146 | gk20a_init_tsg_ops(gops); | ||
145 | gops->name = "gk20a"; | 147 | gops->name = "gk20a"; |
146 | gops->chip_init_gpu_characteristics = gk20a_init_gpu_characteristics; | 148 | gops->chip_init_gpu_characteristics = gk20a_init_gpu_characteristics; |
147 | gops->get_litter_value = gk20a_get_litter_value; | 149 | gops->get_litter_value = gk20a_get_litter_value; |