diff options
author | seshendra Gadagottu <sgadagottu@nvidia.com> | 2017-09-18 14:06:09 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-09-19 20:45:28 -0400 |
commit | c4370d7deff6e3545157e06f51df2fef605a18cc (patch) | |
tree | def6acc583226bade58338ff1ac869636c6d88e0 /drivers/gpu/nvgpu/gm20b | |
parent | c03ccd89c24572dcb65bdfc8d9ab5eb76da28c96 (diff) |
gpu: nvgpu: Initialize ctxsw header counters
Initialize following counters in context header
for all legacy chips:
ctxsw_prog_main_image_num_save_ops
ctxsw_prog_main_image_num_restore_ops
This was already present in the code but move to a function
gk20a_gr_init_ctxsw_hdr_data, so that it can be re-used across
chips.
Additionally initialize following preemption related counters
for gp10b onwards in context header:
ctxsw_prog_main_image_num_wfi_save_ops
ctxsw_prog_main_image_num_cta_save_ops
ctxsw_prog_main_image_num_gfxp_save_ops
ctxsw_prog_main_image_num_cilp_save_ops
Bug 1958308
Change-Id: I0e45ec718a8f9ddb951b52c92137051b4f6a8c60
Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1562654
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/hal_gm20b.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c index 9ff9fdd7..f71c70f5 100644 --- a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c | |||
@@ -283,6 +283,7 @@ static const struct gpu_ops gm20b_ops = { | |||
283 | .init_ovr_sm_dsm_perf = gk20a_gr_init_ovr_sm_dsm_perf, | 283 | .init_ovr_sm_dsm_perf = gk20a_gr_init_ovr_sm_dsm_perf, |
284 | .get_ovr_perf_regs = gk20a_gr_get_ovr_perf_regs, | 284 | .get_ovr_perf_regs = gk20a_gr_get_ovr_perf_regs, |
285 | .disable_rd_coalesce = gm20a_gr_disable_rd_coalesce, | 285 | .disable_rd_coalesce = gm20a_gr_disable_rd_coalesce, |
286 | .init_ctxsw_hdr_data = gk20a_gr_init_ctxsw_hdr_data, | ||
286 | }, | 287 | }, |
287 | .fb = { | 288 | .fb = { |
288 | .reset = fb_gk20a_reset, | 289 | .reset = fb_gk20a_reset, |