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/gk20a/gk20a.h | |
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/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 8f3900a1..a361648f 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -433,7 +433,9 @@ struct gpu_ops { | |||
433 | void (*disable_rd_coalesce)(struct gk20a *g); | 433 | void (*disable_rd_coalesce)(struct gk20a *g); |
434 | void (*init_ctxsw_hdr_data)(struct gk20a *g, | 434 | void (*init_ctxsw_hdr_data)(struct gk20a *g, |
435 | struct nvgpu_mem *mem); | 435 | struct nvgpu_mem *mem); |
436 | 436 | void (*init_gfxp_wfi_timeout_count)(struct gk20a *g); | |
437 | unsigned long (*get_max_gfxp_wfi_timeout_count) | ||
438 | (struct gk20a *g); | ||
437 | } gr; | 439 | } gr; |
438 | struct { | 440 | struct { |
439 | void (*init_hw)(struct gk20a *g); | 441 | void (*init_hw)(struct gk20a *g); |