diff options
author | Jonathan McCaffrey <jmccaffrey@nvidia.com> | 2017-08-18 02:51:03 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-10-26 18:46:01 -0400 |
commit | 00e52529a8431a6520b8e1bbcbfa44b4cc86be80 (patch) | |
tree | f88b91784e966e9c9bbbffe1d127a1d73826d1c2 /drivers/gpu/nvgpu/gk20a/gr_gk20a.h | |
parent | e49d93a960f8995affeb4541941eb7f16d04eafd (diff) |
gpu: gp10b: add gfxp_wfi_timeout sysfs node
Add a sysfs node to allow root user to set PRI_FE_GFXP_WFI_TIMEOUT, for gp10b
only, in units of sysclk cycles. Store the set value in a variable, and write
the set value to register after GPU is un-railgated.
NV_PGRAPH_PRI_FE_GFXP_WFI_TIMEOUT is engine_reset after Bug 1623341.
Change default value to be specified in cycles, rather than time. This value
is almost the current value in cycles calculated each boot.
Bug 1932782
Change-Id: I0a4207e637cd1413a1be95abe2bcce3adccf76fa
Reviewed-on: https://git-master.nvidia.com/r/1540939
Signed-off-by: Jonathan McCaffrey <jmccaffrey@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1580999
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h index 22fc40d1..0a685d01 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h | |||
@@ -343,6 +343,7 @@ struct gr_gk20a { | |||
343 | u32 timeslice_mode; | 343 | u32 timeslice_mode; |
344 | u32 czf_bypass; | 344 | u32 czf_bypass; |
345 | u32 pd_max_batches; | 345 | u32 pd_max_batches; |
346 | u32 gfxp_wfi_timeout_count; | ||
346 | 347 | ||
347 | struct gr_ctx_buffer_desc global_ctx_buffer[NR_GLOBAL_CTX_BUF]; | 348 | struct gr_ctx_buffer_desc global_ctx_buffer[NR_GLOBAL_CTX_BUF]; |
348 | 349 | ||