diff options
author | seshendra Gadagottu <sgadagottu@nvidia.com> | 2017-11-15 17:35:43 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-11-29 16:17:18 -0500 |
commit | 7a4cb4a6ab6c861a94e9105360967894df749f03 (patch) | |
tree | acfcfa1f607a66b18a579f7d06a48b7746abdabf /drivers/gpu/nvgpu/gv11b/hal_gv11b.c | |
parent | dda9d80a852e099a6304abb07936b4250cf1a141 (diff) |
gpu: nvgpu: gv11b: gfxp wfi timeout
For gv11b, configured gfx preemption wfi timeout in usec.
Set timeout unit as usec in gr_gv11b_init_preemption_state.
Used default timeout as 1msec and this timeout value can
be modified through sysfs node:
/sys/devices/gpu.0/gfxp_wfi_timeout_count
For gp10b:
gfxp_wfi_timeout_count is in syclk cycles
For gv11b:
gfxp_wfi_timeout_count is in usec
Bug 2003668
Change-Id: I68d52ce996a83df90b8b3a8164debb07e5cb370f
Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1599658
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/hal_gv11b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/hal_gv11b.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c index 5649d758..e6cf0e62 100644 --- a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c | |||
@@ -361,7 +361,7 @@ static const struct gpu_ops gv11b_ops = { | |||
361 | .set_czf_bypass = NULL, | 361 | .set_czf_bypass = NULL, |
362 | .pre_process_sm_exception = gr_gv11b_pre_process_sm_exception, | 362 | .pre_process_sm_exception = gr_gv11b_pre_process_sm_exception, |
363 | .set_preemption_buffer_va = gr_gv11b_set_preemption_buffer_va, | 363 | .set_preemption_buffer_va = gr_gv11b_set_preemption_buffer_va, |
364 | .init_preemption_state = NULL, | 364 | .init_preemption_state = gr_gv11b_init_preemption_state, |
365 | .update_boosted_ctx = gr_gp10b_update_boosted_ctx, | 365 | .update_boosted_ctx = gr_gp10b_update_boosted_ctx, |
366 | .set_bes_crop_debug3 = gr_gp10b_set_bes_crop_debug3, | 366 | .set_bes_crop_debug3 = gr_gp10b_set_bes_crop_debug3, |
367 | .create_gr_sysfs = gr_gv11b_create_sysfs, | 367 | .create_gr_sysfs = gr_gv11b_create_sysfs, |
@@ -388,6 +388,10 @@ static const struct gpu_ops gv11b_ops = { | |||
388 | gr_gv11b_handle_tpc_sm_ecc_exception, | 388 | gr_gv11b_handle_tpc_sm_ecc_exception, |
389 | .decode_egpc_addr = gv11b_gr_decode_egpc_addr, | 389 | .decode_egpc_addr = gv11b_gr_decode_egpc_addr, |
390 | .init_ctxsw_hdr_data = gr_gp10b_init_ctxsw_hdr_data, | 390 | .init_ctxsw_hdr_data = gr_gp10b_init_ctxsw_hdr_data, |
391 | .init_gfxp_wfi_timeout_count = | ||
392 | gr_gv11b_init_gfxp_wfi_timeout_count, | ||
393 | .get_max_gfxp_wfi_timeout_count = | ||
394 | gr_gv11b_get_max_gfxp_wfi_timeout_count, | ||
391 | }, | 395 | }, |
392 | .fb = { | 396 | .fb = { |
393 | .reset = gv11b_fb_reset, | 397 | .reset = gv11b_fb_reset, |