diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2015-03-27 13:13:16 -0400 |
---|---|---|
committer | Deepak Nibade <dnibade@nvidia.com> | 2016-12-27 04:52:04 -0500 |
commit | 4de370c12e948ded4f9602869209ed499f103b0c (patch) | |
tree | 79d96a0adf446db3334fc1b23b91094d53651a3c /drivers/gpu/nvgpu/gp10b/ltc_gp10b.c | |
parent | d4e870edd0251cb8e8ec4915490e8716b8b67fa9 (diff) |
gpu: nvgpu: gp10b: Program stream id to LTC
Program a constant stream id 31 to LTC.
Bug 1610019
Change-Id: I9b5fb794b5ea8da0fba67a2376126d89e056f955
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/724348
Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/ltc_gp10b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/ltc_gp10b.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c b/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c index dbeed474..78c85f3e 100644 --- a/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c | |||
@@ -148,6 +148,14 @@ void gp10b_ltc_isr(struct gk20a *g) | |||
148 | } | 148 | } |
149 | } | 149 | } |
150 | 150 | ||
151 | void gp10b_ltc_init_fs_state(struct gk20a *g) | ||
152 | { | ||
153 | gm20b_ltc_init_fs_state(g); | ||
154 | |||
155 | gk20a_writel(g, ltc_ltca_g_axi_pctrl_r(), | ||
156 | ltc_ltca_g_axi_pctrl_user_sid_f(31)); | ||
157 | } | ||
158 | |||
151 | void gp10b_init_ltc(struct gpu_ops *gops) | 159 | void gp10b_init_ltc(struct gpu_ops *gops) |
152 | { | 160 | { |
153 | gops->ltc.determine_L2_size_bytes = gp10b_determine_L2_size_bytes; | 161 | gops->ltc.determine_L2_size_bytes = gp10b_determine_L2_size_bytes; |
@@ -157,7 +165,7 @@ void gp10b_init_ltc(struct gpu_ops *gops) | |||
157 | gops->ltc.init_cbc = gk20a_ltc_init_cbc; | 165 | gops->ltc.init_cbc = gk20a_ltc_init_cbc; |
158 | 166 | ||
159 | /* GM20b specific ops. */ | 167 | /* GM20b specific ops. */ |
160 | gops->ltc.init_fs_state = gm20b_ltc_init_fs_state; | 168 | gops->ltc.init_fs_state = gp10b_ltc_init_fs_state; |
161 | gops->ltc.init_comptags = gp10b_ltc_init_comptags; | 169 | gops->ltc.init_comptags = gp10b_ltc_init_comptags; |
162 | gops->ltc.cbc_ctrl = gm20b_ltc_cbc_ctrl; | 170 | gops->ltc.cbc_ctrl = gm20b_ltc_cbc_ctrl; |
163 | gops->ltc.elpg_flush = gm20b_ltc_g_elpg_flush_locked; | 171 | gops->ltc.elpg_flush = gm20b_ltc_g_elpg_flush_locked; |