diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2017-10-25 04:42:03 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-10-25 11:36:35 -0400 |
commit | c79112f3b1e2a428603e06486bd3cea83942c14e (patch) | |
tree | 567d76d0455415a1437561d9aa75abcbf9d8ad90 /drivers/gpu/nvgpu/vgpu | |
parent | 41496b359d858e1c28840eaee2e2e6bba485c642 (diff) |
gpu: nvgpu: initialize czf_bypass only once
We right now initialize czf_bypass value in gr_gp10b_init_preemption_state()
which is run at every rail ungate
And that results in any user specified value through sysfs getting lost after
railgate
To fix this, move initialization of czf_bypass to gk20a_init_gr_setup_sw() so
that it gets initialized only once
Add new HAL g->ops.gr.init_czf_bypass to initialize same and define it for
gp10b/gp106/vgpu-gp10b
Bug 2008262
Change-Id: I80a38ef527c86e32c6d64d0626b867239db9ea51
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1585224
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c index 7f18bfe4..320aa4a5 100644 --- a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c +++ b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c | |||
@@ -203,6 +203,7 @@ static const struct gpu_ops vgpu_gp10b_ops = { | |||
203 | .set_boosted_ctx = NULL, | 203 | .set_boosted_ctx = NULL, |
204 | .set_preemption_mode = vgpu_gr_gp10b_set_preemption_mode, | 204 | .set_preemption_mode = vgpu_gr_gp10b_set_preemption_mode, |
205 | .set_czf_bypass = gr_gp10b_set_czf_bypass, | 205 | .set_czf_bypass = gr_gp10b_set_czf_bypass, |
206 | .init_czf_bypass = gr_gp10b_init_czf_bypass, | ||
206 | .pre_process_sm_exception = gr_gp10b_pre_process_sm_exception, | 207 | .pre_process_sm_exception = gr_gp10b_pre_process_sm_exception, |
207 | .set_preemption_buffer_va = gr_gp10b_set_preemption_buffer_va, | 208 | .set_preemption_buffer_va = gr_gp10b_set_preemption_buffer_va, |
208 | .init_preemption_state = gr_gp10b_init_preemption_state, | 209 | .init_preemption_state = gr_gp10b_init_preemption_state, |