diff options
author | Kirill Artamonov <kartamonov@nvidia.com> | 2018-02-12 08:02:52 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-03-06 17:51:50 -0500 |
commit | 70bf8275efab7e155e9b3f9853a4cf7f38228c43 (patch) | |
tree | dd33a724d2e7a72d63197874372bd8a43bcd6a4c /drivers/gpu/nvgpu/gk20a/gr_gk20a.h | |
parent | c363e1ebe6573dc1b0308fe40aedf158b0a28296 (diff) |
gpu: nvgpu: gv11b: implement gfxp wfi controls
/sys/devices/gpu.0/gfxp_wfi_timeout_unit
usec - microseconds
sysclk - gpu clock count
Treat gr_fe_gfxp_wfi_timeout_r as context-switched
register on gv11b.
Set default gfxp_wfi_timeout to 100 usec to match
gp10b at 1GHz.
bug 1888344
Signed-off-by: Kirill Artamonov <kartamonov@nvidia.com>
Change-Id: I7fa64ce6912ae861244856807543b17bd7a26bed
Reviewed-on: https://git-master.nvidia.com/r/1651517
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 5c638a8d..3fcba678 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h | |||
@@ -377,6 +377,7 @@ struct gr_gk20a { | |||
377 | u32 czf_bypass; | 377 | u32 czf_bypass; |
378 | u32 pd_max_batches; | 378 | u32 pd_max_batches; |
379 | u32 gfxp_wfi_timeout_count; | 379 | u32 gfxp_wfi_timeout_count; |
380 | u32 gfxp_wfi_timeout_unit; | ||
380 | 381 | ||
381 | struct gr_ctx_buffer_desc global_ctx_buffer[NR_GLOBAL_CTX_BUF]; | 382 | struct gr_ctx_buffer_desc global_ctx_buffer[NR_GLOBAL_CTX_BUF]; |
382 | 383 | ||